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

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