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


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


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