Re: [xsl] Selecting a particular attribute

Subject: Re: [xsl] Selecting a particular attribute
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 12 Jul 2003 16:59:55 +0100
> How do I select a particular attribute based on position.

@*[2]
will give you the second attribute in the source tree, but that may or
may not (most likely not) be the second attribute in the file.
XML attributes are exlictly unordered and a parser may not report the
original order.

If the ordering matters, use elements not attributes.

David

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


Current Thread