Stefan Franke
Usenet Archive
- Joined
- Sep 16, 2003
- Messages
- 14
- Reaction score
- 0
Hi,
I've got the following simple XSLT stylesheet, that lists all the values of the elements of any given XML file.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:for-each select="/"> <xsl:value-of select="current"/> </xsl:for-each> </xsl:template> </xsl:stylesheet>
What I'm trying to find now is a way to extract the element name as well (e.g. "TITLE" if the element is called <TITLE>).
Does anybody know how to do this?
Thanks,
Stefan
I've got the following simple XSLT stylesheet, that lists all the values of the elements of any given XML file.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:for-each select="/"> <xsl:value-of select="current"/> </xsl:for-each> </xsl:template> </xsl:stylesheet>
What I'm trying to find now is a way to extract the element name as well (e.g. "TITLE" if the element is called <TITLE>).
Does anybody know how to do this?
Thanks,
Stefan