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

split-sequence: position() and last()

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 16 Oct 2008 16:58:12 -0400
To: public-xml-processing-model-comments@w3.org
Message-ID: <m2ljwontp7.fsf@nwalsh.com>
Ages ago, before we adopted p:iteration-position() and
p:iteration-size(), we thought that we'd overload the standard
position() and last() functions for that purpose.

In that world, it was possible to imagine that you could get
"head" and "tail" from split-sequence:

  <p:split-sequence name="head" test="position() = 1"/>


  <p:split-sequence name="tail" test="position()=last()"/>

That's not true anymore. And you can't use iteration position and size

So there's no efficient way to get the head or tail of a sequence.


I fear we should fix that.

                                        Be seeing you,

Norman Walsh <ndw@nwalsh.com> | It is a paradoxical but profoundly true
http://nwalsh.com/            | and important principle of life that
                              | the most likely way to reach a goal is
                              | to be aiming not at that goal itself
                              | but at some more ambitious goal beyond
                              | it.--Arnold Toynbee

Received on Thursday, 16 October 2008 20:58:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:25 UTC