This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Was test for presence of an attribute
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Was test for presence of an attribute
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Sun, 22 Jul 2001 07:43:07 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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