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

Re: p:input doppelgangers

From: Alessandro Vernet <avernet@orbeon.com>
Date: Wed, 4 Jul 2007 23:17:51 -0700
Message-ID: <4828ceec0707042317x642d03cdg1f8eff108a53c8b9@mail.gmail.com>
To: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>

On 7/4/07, Norman Walsh <ndw@nwalsh.com> wrote:
> / ht@inf.ed.ac.uk (Henry S. Thompson) was heard to say:
> |  p:xpath-context
> |    (p:empty | p:pipe | p:document | p:inline )?
> |
> |    A special case -- exactly one document, or none.  A dynamic error
> |    if p:empty is used and a 'test' XPath expression appeals to the
> |    context-node or context-position.
>
> Fixed.

And p:empty is accepted? XPath expressions are evaluated in a context,
and a context node is part of that context. Even if some expressions
do not use the context node, my understanding is that XPath requires a
context node to be present. In fact (at least some) XPath libraries
enforce this by require a context node. So what would the context node
be when p:empty is used?

Alex
-- 
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/
Received on Thursday, 5 July 2007 06:18:03 GMT

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