This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Getting Attribute names in an XML with XSLT stylesheet


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]