XSL: How to print an iterated node in for-each

Posted by Shoaib on Stack Overflow See other posts from Stack Overflow or by Shoaib
Published on 2010-06-15T06:38:21Z Indexed on 2010/06/15 6:42 UTC
Read the original article Hit count: 263

Filed under:
|

xml:

<skills>
  <skill>PHP</skill>
  <skill>CSS</skill>
  <skill>HTML</skill>
  <skill>XML</skill>
</skills>

XSL:

<ul>
  <xsl:for-each select="skills/skill">
    <li><xsl:value-of select="[what should be xpath here]" /></li
  </xsl:for-each>
</ul>

Here what should be the xpath to print each skill?

© Stack Overflow or respective owner

Related posts about xslt

Related posts about xpath