Subject: Re: dynamically reading tag-names in XSL
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 14 Dec 1999 10:31:51 GMT
|
By the way, they are element names not tag names.
Tags don't have names, they are just markup syntax for XML constructs.
<xsl:template match="/">
<xsl:for-each select="stocks/stock/*">
<xsl:value-of select="name(.)"><xsl:text> = </xsl:text>
<xsl:value-of select="."><xsl:text> ; </xsl:text>
</xsl:for-each>
</xsl:template>
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|