I'm trying to get the tagname, but it doesn't seem to work. I'm not so good
at this so I might have done something very wrong. The node() works but not
the nodeName().
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"
xmlns="http://www.w3.org/TR/REC-html40">
<xsl:template match="/">
<TABLE>
<TR>
<xsl:for-each select="*/element()">
<TD>
<xsl:apply-templates select="./nodeName()"/>
</TD>
</xsl:for-each>
</TR>
<xsl:for-each select="*/element()">
<TR>
<TD>
<xsl:apply-templates select="./node()"/>
</TD>
</TR>
</xsl:for-each>
</TABLE>
</xsl:template>
<xsl:template match="./nodeName()">
<xsl:value-of /><td/>
</xsl:template>
<xsl:template match="./node()">
<xsl:value-of /><td/>
</xsl:template>
</xsl:stylesheet>
I'm using msxml3
regards
Malin
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|