W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2010

[Bug 8762] New: [XPath 2.1] Ambiguity of occurrence indicators in FunctionTest

From: <bugzilla@wiggum.w3.org>
Date: Fri, 15 Jan 2010 09:10:46 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-8762-523@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=8762

           Summary: [XPath 2.1] Ambiguity of occurrence indicators in
                    FunctionTest
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XPath 2.1
        AssignedTo: jonathan.robie@redhat.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


Gunther Rademacher <grd@gmx.net> asked me to raise this: he reported difficulty
registering for bugzilla.

<quote>
     The addition of FunctionTest to the sequence type syntax
     causes an ambiguity for occurrence indicators, because the
     grammar allows an optional occurrence indicator both
     at the end of a FunctionTest, and following a FunctionTest.

     Though the occurrence-indicators constraint assigns them
     precedence over other uses of the respective symbols, I
     can't see that it regulates the FunctionTest problem - both
     alternatives clearly would provide the SequenceType context
     (hope I didn't miss something...).
</quote>

MHK observation: The spec says "It is permitted to use parentheses to enclose
item types, in order to resolve ambiguities that could arise from the
OccurrenceIndicator of a SequenceType." - but it doesn't say what the
interpretation is if you don't use parentheses. It should make it clear that

function () as xs:string *

means

function () as (xs:string *)

rather than

(function () as xs:string) *


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 15 January 2010 09:10:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:29 UTC