- From: <bugzilla@jessica.w3.org>
- Date: Fri, 23 Sep 2016 18:16:52 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29868
Bug ID: 29868
Summary: XQueryX stylesheet does not always convert arrowExpr
to XQuery correctly
Product: XPath / XQuery / XSLT
Version: Candidate Recommendation
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: XQueryX 3.1
Assignee: josh.spiegel@oracle.com
Reporter: josh.spiegel@oracle.com
QA Contact: public-qt-comments@w3.org
Target Milestone: ---
The XQueryX for test ArrowPostfix-021 is:
<xqx:module xmlns:xqx="http://www.w3.org/2005/XQueryX"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2005/XQueryX
http://www.w3.org/2005/XQueryX/xqueryx.xsd">
<xqx:mainModule>
<xqx:queryBody>
<xqx:arrowExpr>
<xqx:argExpr>
<xqx:integerConstantExpr>
<xqx:value>2</xqx:value>
</xqx:integerConstantExpr>
</xqx:argExpr>
<xqx:mapConstructor>
<xqx:mapConstructorEntry>
<xqx:mapKeyExpr>
<xqx:integerConstantExpr>
<xqx:value>1</xqx:value>
</xqx:integerConstantExpr>
</xqx:mapKeyExpr>
<xqx:mapValueExpr>
<xqx:integerConstantExpr>
<xqx:value>2</xqx:value>
</xqx:integerConstantExpr>
</xqx:mapValueExpr>
</xqx:mapConstructorEntry>
<xqx:mapConstructorEntry>
<xqx:mapKeyExpr>
<xqx:integerConstantExpr>
<xqx:value>2</xqx:value>
</xqx:integerConstantExpr>
</xqx:mapKeyExpr>
<xqx:mapValueExpr>
<xqx:integerConstantExpr>
<xqx:value>4</xqx:value>
</xqx:integerConstantExpr>
</xqx:mapValueExpr>
</xqx:mapConstructorEntry>
<xqx:mapConstructorEntry>
<xqx:mapKeyExpr>
<xqx:integerConstantExpr>
<xqx:value>3</xqx:value>
</xqx:integerConstantExpr>
</xqx:mapKeyExpr>
<xqx:mapValueExpr>
<xqx:integerConstantExpr>
<xqx:value>6</xqx:value>
</xqx:integerConstantExpr>
</xqx:mapValueExpr>
</xqx:mapConstructorEntry>
</xqx:mapConstructor>
<xqx:arguments>
</xqx:arguments>
</xqx:arrowExpr>
</xqx:queryBody>
</xqx:mainModule>
</xqx:module>
The XQueryX to XQuery stylesheet produces the following:
( 2 => map { 1 : 2 , 2 : 4 , 3 : 6 } () )
This is not a valid XQuery because the map constructor needs to be in a
parenthesized expression.
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 23 September 2016 18:17:00 UTC