programmer-in-training Posted April 2, 2008 Share Posted April 2, 2008 With this code: <root> <test attr="data"/></root> How do I access "attr" in XSLT without writing <test><attr>data</attr></test>?I know it's not recommended, but I would still like to be able to! Link to comment Share on other sites More sharing options...
programmer-in-training Posted April 3, 2008 Author Share Posted April 3, 2008 EDIT: I read the XPath tutorial and figured it out! <xsl:value-of select="root/text@data"/>, right? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.