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

[Bug 24200] New: '"as" SequenceType' vs 'TypeDeclaration' in XPath/XQuery 3.0?

From: <bugzilla@jessica.w3.org>
Date: Fri, 03 Jan 2014 13:08:35 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-24200-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24200

            Bug ID: 24200
           Summary: '"as" SequenceType' vs 'TypeDeclaration' in
                    XPath/XQuery 3.0?
           Product: XPath / XQuery / XSLT
           Version: Proposed Recommendation
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: XPath 3.0
          Assignee: jonathan.robie@gmail.com
          Reporter: tgraham@mentea.net
        QA Contact: public-qt-comments@w3.org

Is it an omission that in XPath 3.0 [1], '"as" SequenceType' appears in
production [64] whereas 'TypeDeclaration' appears in production [3], where
'TypeDeclaration' is defined as '"as" SequenceType' in production [66]?

[64] InlineFunctionExpr ::= "function" "(" ParamList? ")" ("as"
SequenceType)? FunctionBody
[2] ParamList ::= Param ("," Param)*
[3] Param ::= "$" EQName TypeDeclaration?
[66] TypeDeclaration ::= "as" SequenceType

XQuery 3.0 [2] similarly uses '"as" SequenceType' in its production [165] while
making rather more uses of 'TypeDeclaration' in other productions.

[1] http://www.w3.org/TR/xpath-30/
[2] http://www.w3.org/TR/xquery-30/#id-inline-func
[3] http://www.w3.org/TR/xpath-30/#prod-xpath30-Param
[64] http://www.w3.org/TR/xpath-30/#prod-xpath30-InlineFunctionExpr
[66] http://www.w3.org/TR/xpath-30/#prod-xpath30-TypeDeclaration
[165] http://www.w3.org/TR/xquery-30/#prod-xquery30-InlineFunctionExpr

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 3 January 2014 13:08:44 UTC

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