[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: Was test for presence of an attribute
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Sun, 22 Jul 2001 07:43:07 +0100
> What if you don not know the name of the attribute?
> 
> <a>
>   <b/>
>   <c att1="1"/>
>   <d att2="2"/>
>   <e/>
> </a>
> How would one go about to print the element names,
> followed imediately by their attribute name (if it
> exists ?)

select="@*" gives you all the attribute nodes of the current element node.

Mike Kay
Software AG

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member