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

Re: [xsl] position last and attributes


Subject: Re: [xsl] position last and attributes
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxxxxxxx>
Date: Thu, 20 Sep 2012 12:16:28 +0100

On Thu, Sep 20, 2012 at 11:47 AM, Andrew Welch <andrew.j.welch@xxxxxxxxx> 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.


Current Thread
Keywords
xml