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

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

--- Comment #5 from Jonathan Robie <jonathan.robie@gmail.com> ---
(In reply to Michael Dyck from comment #4)

> 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>


I do not think that is the intended meaning of the text - neither XPath 1.0 nor
XPath 2.0 ever default to the namespace axis in abbreviated syntax.

But my text was also wrong, misuse of conditional markup ... here's a second
try:

<quote text="XPath 3.1">
If the axis name is omitted from an axis step, the default axis is child, with
two exceptions: if the NodeTest in an axis step contains an AttributeTest or
SchemaAttributeTest then the default axis is attribute; if the NodeTest in an
axis step is a NamespaceNodeTest in an implementation that does not support the
namespace axis, an error is raised [err:XQST0134].

Note:

The namespace axis is deprecated as of XPath 2.0, but required in some
languages that use XPath, including XSLT.
</quote>

<quote text="XQuery 3.1">
If the axis name is omitted from an axis step, the default axis is child, with
two exceptions: if the NodeTest in an axis step contains an AttributeTest or
SchemaAttributeTest then the default axis is attribute; if the NodeTest in an
axis step is a NamespaceNodeTest then a static error is raised [err:XQST0134].

Note:

The namespace axis is deprecated as of XPath 2.0, but required in some
languages that use XPath, including XSLT.
</quote>

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

Received on Wednesday, 1 October 2014 00:31:56 UTC