programmer-in-training Posted April 2, 2008 Share Posted April 2, 2008 Given this code: <root> <test>Data 1</test> <test>Data 2</test> <test>Data 3</test></root> How do I look though all the tests and get the xsl:value-of the data? Do I write <xsl:value-of select=""/> ? I don't want to have to write: <root> <test><sub_test>Data 1</sub_test></test> <test><sub_test>Data 2</sub_test></test> <test><sub_test>Data 3</sub_test></test> </root> and use <xsl:value-of select="sub_test"/>, just to do that. 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 just read the XPath tutorial, and <xsl:value-of select="."/> works! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.