Jump to content

I don't know how to access certain things with xsl:for-each


programmer-in-training

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...