[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] position last and attributes

Subject: Re: [xsl] position last and attributes
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Thu, 20 Sep 2012 13:56:24 +0100

> I saw a lot of comments talking about "[1]" and "[last()]" talking about
> attributes, and I think that is the problem regarding the discussion:  The
> predicate "[1]" and "[last()]" is *not* based on the markup (attributes),
> but rather is based on the order of nodes in the XPath data model (attribute
> nodes).

it's based on the dynamic context, which, changes eg:


(@foo, @bar)[last()]

nothing special about attributes...

Andrew Welch

Current Thread