xsl-list
[Top] [All Lists]

Re: [xsl] position last and attributes

2012-09-20 07:56:42
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)[last()]

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

nothing special about attributes...




-- 
Andrew Welch
http://andrewjwelch.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--