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

Errors in 4.4.1 p:xpath-context

From: Tim Mills <tim@cbcl.co.uk>
Date: Tue, 31 Jul 2012 13:09:42 +0100
Message-ID: <5017CB06.9050706@cbcl.co.uk>
To: public-xml-processing-model-comments@w3.org
In Section 4.4.1 p:xpath-context, the grammar:

<p:xpath-context>
     (p:empty |
       p:pipe |
       p:document |
       p:inline |
       p:data)
</p:xpath-context>

indicates that exactly one connection is permitted.  This appears to be 
confirmed by the text:

"Only one connection is allowed..."

It is not specified what error should be raised if a connection is omitted.

The later text

"In an XPath 1.0 implementation, if the context node is connected to 
p:empty, or is unconnected and the default readable port is undefined, 
an empty document node is used instead as the context. In an XPath 2.0 
implementation, the context item is undefined."

seems to suggest that the connection can be omitted.  It hints that the 
xpath-context behaves like a primary input port, but this is not 
explicitly stated.
Received on Tuesday, 31 July 2012 12:08:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 31 July 2012 12:08:40 GMT