Re: $p:position available everywhere

/ Innovimax SARL <innovimax@gmail.com> was heard to say:
| I submit a proposal to make $p:position available everywhere
| It would be 0 for an empty sequence
| and 1 for a single document
| or the position of the current document in the sequence

I'm not sure how "everywhere" applies. Can you give an example of
somewhere else you might want it? I suppose in p:for-each, but I
can't think of anywhere else where it makes sense.

| PS : in a case of empty sequence what would be the evaluation of an
| XPath expression ?

That probably needs to be considered on a case-by-case basis.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | 'Heartless Cynics,' the young men
http://nwalsh.com/            | shout, / Blind to the world of Fact
                              | without; / 'Silly Dreamers,' the old
                              | men grin / Deaf to the world of Purpose
                              | within.--W. H. Auden

Received on Tuesday, 1 May 2007 20:02:17 UTC