W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > December 2006

XPath 1.0 and sequence of documents

From: Innovimax SARL <innovimax@gmail.com>
Date: Fri, 22 Dec 2006 21:06:21 +0100
Message-ID: <546c6c1c0612221206n7e645dqd34a373c169de4c3@mail.gmail.com>
To: "XProc WG" <public-xml-processing-model-wg@w3.org>

Looking carefully at the current story, I see some point that need
some clarifications

== construction ==
We need a special construct for creating empty sequence of document
<p:empty-sequence/> is proposed (against just p:empty, which could
recall noop, void instead of empty sequence or worse an empty document
!)
The concatenation of zero or more empty-sequence is an empty-sequence

== extract subsequence ==
It seems like there is no easy way to extract a subsequence out of a
sequence with existing constructs in the language

We need
* a predefined component that does the work
* or special functions in xpath with a clear story (like head() and tail())

== xpath operating on a sequence ==
It seems that the obvious way is to let operate xpath on each document
of the sequence.
In suche case, there is no simple way to let xpath access to the whole sequence.

Worse :
how can we test that a sequence is empty easily ?

And really worse :
Can we let a @test in a p:when operate on a sequence ?
What do mean "*[@version<2.0]" on an empty sequence ? on a sequence
with two document ?

Mohamed

-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 8 72 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 
Received on Friday, 22 December 2006 20:06:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:49 GMT