Subject: Re: Getting Attribute names in an XML with XSLT stylesheet
From: jon budar-danoff <jbudardanoff@xxxxxxxxx>
Date: Tue, 9 Apr 2002 12:18:33 -0700 (PDT)
|
Jeni wrote, in answer to Morgan's question:
>
> You can get the name of any node (including attributes) using the
> name() function. Pass the node as the argument to the name()
> function, or don't pass any arguments if you want to use the context
> node:
>
> <xsl:template match="@*">
> <xsl:value-of select="name()"/>
> </xsl:template>
I was just struggling with very much the same problem when I decided to
check the (digested) list.
Problem solved -- thanks, Jeni (and Morgan for asking the question)!
=====
-----------------------------------------------------------------------
In walking, just walk. In sitting, just sit. Above all, don't wobble.
-- Yun-Men
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|