W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > November 2008

[closed] Re: split-sequence: position() and last()

From: Norman Walsh <ndw@nwalsh.com>
Date: Sat, 08 Nov 2008 18:59:26 -0500
To: public-xml-processing-model-comments@w3.org
Message-ID: <m2ljvtojkx.fsf_-_@nwalsh.com>
mozer <xmlizer@gmail.com> writes:

> Hum...
>
> The spec says
>
> [[
> The XPath context for the test option changes over time. For each
> document that appears on the source port, the expression is evaluated
> with that document as the context document. The context position
> (position()) is the position of that document within the sequence and
> the context size (last()) is the total number of documents in the
> sequence.
> ]]
>
> So I can't see why
>  <p:split-sequence name="head" test="position() = 1"/>
> and  <p:split-sequence name="tail" test="position()=last()"/>
> wouldn't work

Right.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Of all lies, art is the least untrue.--
http://nwalsh.com/            | Flaubert

Received on Sunday, 9 November 2008 00:00:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:41:08 UTC