Subject: Re: Getting Attribute names in an XML with XSLT stylesheet
From: Mike Brown <mike@xxxxxxxx>
Date: Mon, 8 Apr 2002 02:58:17 -0600 (MDT)
|
Morgan Nagarajan wrote:
> <xsl:template match="@*">
> <xsl:value-of select="."/>
> </xsl:template>
> but this displays only attribute's value not it's name.
<xsl:value-of select="name()"/>
or
<xsl:value-of select="local-name()"/>
You might want to look over the functions section of the XPath spec.
- Mike
____________________________________________________________________________
mike j. brown | xml/xslt: http://skew.org/xml/
denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|