[Bug 26788] [XPath30] XQuery-only errors in XPath 3.0 specification, like XQST0134

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26788

Michael Dyck <jmdyck@ibiblio.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdyck@ibiblio.org

--- Comment #4 from Michael Dyck <jmdyck@ibiblio.org> ---
(In reply to Jonathan Robie from comment #3)
> 
> <quote>
> If the axis name is omitted from an axis step, the default axis is child,
> with two exceptions: if [...] then the default axis is attribute; in an
> implementation that does not support the namespace axis, an error is raised
> [err:XQST0134].
> </quote>

No, if the second exception omits the syntactic constraint on the NodeTest,
you're saying that, with an implementation that doesn't support 'namespace',
you can only omit the axis name when it's 'attribute'.

I think the text should be something like:

<quote>
If the axis name is omitted from an axis step, the default axis is 'child',
with two exceptions: if [...] then the default axis is 'attribute';
if the NodeTest in an axis step is a NamespaceNodeTest then
   <xquery>
   a static error is raised [err:XQST0134],
   because XQuery does not support the namespace axis.
   </xquery>

   <xpath>
   in an implementation that supports the namespace axis, the default axis is
   'namespace'; in an implementation that does not support the namespace axis,
   a static error is raised [err:XQST0134].
   </xpath>
</quote>

(This might be more comprehensible if the two exceptions were formatted as
bullet points. You could also start the bullets after "axis step", and add a
third bullet: "Otherwise, the default axis is 'child'".)

(In any case, I think you could omit the Note that follows.)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 30 September 2014 22:52:09 UTC