Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XSL for-each and value-of

Given the xml:

<element>text</element>
...
<element>text</element>

And xsl:

<xsl:for-each select="element">
...
</xsl:for-each>

What do I need to put inside the for-each loop to access the text? There doesn't seem to be a corresponding xsl:value-of because select="", select="/", and select="element" are all wrong.

like image 644
Sandy Vanderbleek Avatar asked Mar 16 '10 03:03

Sandy Vanderbleek


1 Answers

<xsl:value-of select="."/>
like image 88
Paulo Santos Avatar answered Sep 22 '22 14:09

Paulo Santos