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

[closed] Re: p:xquery - empty context item

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 09 Apr 2009 10:54:28 -0400
To: public-xml-processing-model-comments@w3.org
Message-ID: <m2hc0xlvx7.fsf@nwalsh.com>
Toman_Vojtech@emc.com writes:
> Currently we say this about p:xquery:
>
> "If a sequence of documents is provided on the source port, the first
> document is assumed to be the initial context item. This sequence is
> also the default collection."
>
> So, what happens if the sequence of documents is empty? I think that in
> XQuery, the context item can be empty, so we should probably cover this
> case and say that if the sequence of documents is empty, the context
> item will be empty.

That was the intent. I've updated the draft (for both XQuery and XSLT) to
be more explicit.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Why shouldn't things be largely absurd,
http://nwalsh.com/            | futile, and transitory? They are so,
                              | and we are so, and they and we go very
                              | well together.-- Santayana

Received on Thursday, 9 April 2009 14:55:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 9 April 2009 14:55:09 GMT