[Bug 5068] [XQuery] Ambiguity in 3.2.4 Abbreviated Syntax

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5068

           Summary: [XQuery]  Ambiguity in 3.2.4 Abbreviated Syntax
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: XQuery
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: hrennau@yahoo.de
         QAContact: public-qt-comments@w3.org


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

Received on Sunday, 23 September 2007 12:15:56 UTC