This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29867 - Applets translate ArrowPostfix-103 to XQueryX incorrectly
Summary: Applets translate ArrowPostfix-103 to XQueryX incorrectly
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Grammar Test Applets (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Michael Dyck
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-23 16:57 UTC by Josh Spiegel
Modified: 2016-09-25 00:46 UTC (History)
0 users

See Also:


Attachments

Description Josh Spiegel 2016-09-23 16:57:11 UTC
Here is the query from ArrowPostfix-103:

  (1, 2, 3, 4) => Q{http://www.w3.org/2005/xpath-functions}sum()

The w3c applets convert it to the following XQueryX:

<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:sequenceExpr>
            <xqx:integerConstantExpr>
              <xqx:value>1</xqx:value>
            </xqx:integerConstantExpr>
            <xqx:integerConstantExpr>
              <xqx:value>2</xqx:value>
            </xqx:integerConstantExpr>
            <xqx:integerConstantExpr>
              <xqx:value>3</xqx:value>
            </xqx:integerConstantExpr>
            <xqx:integerConstantExpr>
              <xqx:value>4</xqx:value>
            </xqx:integerConstantExpr>
          </xqx:sequenceExpr>
        </xqx:argExpr>
        <!-- transform_name got unexpected URIQualifiedName for name_node. -->
        <xqx:EQName xqx:prefix="Q{http">//www.w3.org/2005/xpath-functions}sum</xqx:EQName>
        <xqx:arguments>
        </xqx:arguments>
      </xqx:arrowExpr>
    </xqx:queryBody>
  </xqx:mainModule>
</xqx:module>

The EQName is not converted correctly.
Comment 1 Josh Spiegel 2016-09-23 16:59:34 UTC
Three tests have this problem:

ArrowPostfix-101
ArrowPostfix-102
ArrowPostfix-103
Comment 2 Michael Dyck 2016-09-24 23:27:05 UTC
Fixed!
Comment 3 Josh Spiegel 2016-09-25 00:46:21 UTC
Thanks!