<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29867</bug_id>
          
          <creation_ts>2016-09-23 16:57:11 +0000</creation_ts>
          <short_desc>Applets translate ArrowPostfix-103 to XQueryX incorrectly</short_desc>
          <delta_ts>2016-09-25 00:46:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Grammar Test Applets</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Josh Spiegel">josh.spiegel</reporter>
          <assigned_to name="Michael Dyck">jmdyck</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>127518</commentid>
    <comment_count>0</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-09-23 16:57:11 +0000</bug_when>
    <thetext>Here is the query from ArrowPostfix-103:

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

The w3c applets convert it to the following XQueryX:

&lt;xqx:module xmlns:xqx=&quot;http://www.w3.org/2005/XQueryX&quot;
            xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
            xsi:schemaLocation=&quot;http://www.w3.org/2005/XQueryX
                                http://www.w3.org/2005/XQueryX/xqueryx.xsd&quot;&gt;
  &lt;xqx:mainModule&gt;
    &lt;xqx:queryBody&gt;
      &lt;xqx:arrowExpr&gt;
        &lt;xqx:argExpr&gt;
          &lt;xqx:sequenceExpr&gt;
            &lt;xqx:integerConstantExpr&gt;
              &lt;xqx:value&gt;1&lt;/xqx:value&gt;
            &lt;/xqx:integerConstantExpr&gt;
            &lt;xqx:integerConstantExpr&gt;
              &lt;xqx:value&gt;2&lt;/xqx:value&gt;
            &lt;/xqx:integerConstantExpr&gt;
            &lt;xqx:integerConstantExpr&gt;
              &lt;xqx:value&gt;3&lt;/xqx:value&gt;
            &lt;/xqx:integerConstantExpr&gt;
            &lt;xqx:integerConstantExpr&gt;
              &lt;xqx:value&gt;4&lt;/xqx:value&gt;
            &lt;/xqx:integerConstantExpr&gt;
          &lt;/xqx:sequenceExpr&gt;
        &lt;/xqx:argExpr&gt;
        &lt;!-- transform_name got unexpected URIQualifiedName for name_node. --&gt;
        &lt;xqx:EQName xqx:prefix=&quot;Q{http&quot;&gt;//www.w3.org/2005/xpath-functions}sum&lt;/xqx:EQName&gt;
        &lt;xqx:arguments&gt;
        &lt;/xqx:arguments&gt;
      &lt;/xqx:arrowExpr&gt;
    &lt;/xqx:queryBody&gt;
  &lt;/xqx:mainModule&gt;
&lt;/xqx:module&gt;

The EQName is not converted correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127519</commentid>
    <comment_count>1</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-09-23 16:59:34 +0000</bug_when>
    <thetext>Three tests have this problem:

ArrowPostfix-101
ArrowPostfix-102
ArrowPostfix-103</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127523</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2016-09-24 23:27:05 +0000</bug_when>
    <thetext>Fixed!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127524</commentid>
    <comment_count>3</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-09-25 00:46:21 +0000</bug_when>
    <thetext>Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>