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

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