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]

RE: Was test for presence of an attribute


> 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


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