|
Subject: Re: [xsl] 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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Getting Attribute names i, Morgan Nagarajan | Thread | [xsl] Re: Removing namespaces from , Dimitre Novatchev |
| RE: [xsl] xslt, xml, and databases , Graham Seaman | Date | RE: [xsl] object "me", Ladetto, Juan (Siste |
| Month |