This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 5068 - [XQuery] Ambiguity in 3.2.4 Abbreviated Syntax
Summary: [XQuery] Ambiguity in 3.2.4 Abbreviated Syntax
Status: RESOLVED WONTFIX
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 1.0 (show other bugs)
Version: Recommendation
Hardware: PC Windows XP
: P2 trivial
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-23 12:15 UTC by Hans-Juergen Rennau
Modified: 2009-03-17 16:48 UTC (History)
1 user (show)

See Also:


Attachments

Description Hans-Juergen Rennau 2007-09-23 12:15:46 UTC
One tiny ambiguity (?) in the examples given in "3.2.4 Abbreviated Syntax":

<quote>
chapter[title="Introduction"] selects the chapter children of the context node that have one or more title children whose typed value is equal to the string Introduction
</quote>

The words "typed value is equal to ..." are only correct if one interpretes "is equal" in the formal sense defined in "3.5.2 General Comparisons", rather than intuitively. Maybe this is intended; if not, I suggest to enhance clarity by adding a few words:

- perhaps ", according to the definition of equality given in 3.5.2 General Comparisons."
- or something like ", or is a sequence of values one of which is equal to the string Introduction."

With kind regards -
Hans-Juergen Rennau
Comment 1 Jonathan Robie 2009-03-16 14:47:48 UTC
This list is intentionally informal. It contains several examples of the = operator, as well as other operators. While it's possible to add text along these lines, doing this increases the complexity of the text considerably while adding little in clarity. I agree that some people may not know the meaning of the = operator, but that is defined in a different section.

Jonathan