(Matt) writes:
> Is it possible to traverse the values of children of an element, and
> no need to specify
> the children's element names in XSLT element?
>
> The XML file can be
>
> <bio>
> <skills>
> <languages>
> <language>XML</language>
> <language>Java</language>
> </languages>
> <databases>
> <database>Oracle</database>
> </databases>
> </skills>
> </bio>
<snip>
> Approach #2: correct approach, but it's tedious to specify all element
> names that
> need to traverse
> <UL>
> <xsl:for-each select="/resume/skills">
> <xsl:for-each select="languages/language">
> <LI><xsl:value-of select="."/></LI>
> </xsl:for-each>
> <xsl:for-each select="databases/database">
> <LI><xsl:value-of select="."/></LI>
> </xsl:for-each>
> </xsl:for-each>
> </UL>
>
> any ideas? please advise. thanks!!
Does this help?
<xsl:stylesheet version="1.0"
xmlns

sl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<ul>
<xsl:for-each select="bio/skills/*/*">
<li><xsl:value-of select="."/></li>
</xsl:for-each>
</ul>
</xsl:template>
</xsl:stylesheet>
--
Ben Edgington
Mail to the address above is discarded.
Mail to ben at that address might be read.
http://www.edginet.org/