xsl-list
[Top] [All Lists]

Re: [xsl] position last and attributes

2012-09-20 06:16:37
On Thu, Sep 20, 2012 at 11:47 AM, Andrew Welch 
<andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> wrote:
    I think your confusion comes from the fact that, you want to get
position of a node in the sequence as per document order. If that's
your objective, then I think this problem can't be solved for
attributes (due to it's unordered semantics at the XML level).


I am not confused. I understood how the semantics of position() and
last() affected @* before I posted.

position() and last() don't affect @*


yes I know they operate on what @* returns (the confusion here is
entirely not on my part).


maybe post a small complete example demonstrating your point?


<A 1st="1" second="2" third="3" fourth="4" fifth="5"/>

now tell me what are the first and last attributes of  A.

Now if you tell me it's implementation defined then I'll say to you
that I can define an implementation of a drawing package that deems
the start point of a circle to be the coordinate at which it starts to
serialise the circle and since that could be any point whatsoever that
 is totally meaningless.

--~------------------------------------------------------------------
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>
--~--