<?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>2525</bug_id>
          
          <creation_ts>2005-11-15 10:37:23 +0000</creation_ts>
          <short_desc>xqx: encoding of leading (or lone) /</short_desc>
          <delta_ts>2006-08-09 10:03:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>0.8.6</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</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="David Carlisle">davidc</reporter>
          <assigned_to name="Ravindranath (Ravi) Chennoju">ravindranath.chennoju</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>7192</commentid>
    <comment_count>0</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2005-11-15 10:37:23 +0000</bug_when>
    <thetext>Parenexpr-20.xq involves a subterm (/) (I think this is the only example
of a leading / in a path expression in the test suite)

xq2xqx and the test parser applet both encode this as

         &lt;xqx:parenthesizedExpr&gt;
                  &lt;xqx:rootExpr/&gt;
                &lt;/xqx:parenthesizedExpr&gt;


Which seems to be the natural XqueryX encoding, given that XqueryX has a
rootExpr element. However the supplied XqueryX version of this test expands /
and encodes this subterm as (the XqueryX equivalent of) the expansion of /
if thought of as abreviated syntax. The XQueryX specification is currently
rather inconsistent in whether abbreviated syntax should be expanded or not,
but in the test suite I think it&apos;s best to keep the two forms as close as
possible, so that the tests are testing the same thing, and that rootExpr should
be used (or removed from XQueryX if it shouldn&apos;t be used).

                              &lt;xqx:parenthesizedExpr&gt;
                                &lt;xqx:pathExpr&gt;
                                  &lt;xqx:argExpr&gt;
                                    &lt;xqx:treatExpr&gt;
                                      &lt;xqx:argExpr&gt;
                                        &lt;xqx:functionCallExpr&gt;
                                          &lt;xqx:functionName
xqx:prefix=&quot;fn&quot;&gt;root&lt;/xqx:functionName&gt;
                                          &lt;xqx:arguments&gt;
                                            &lt;xqx:pathExpr&gt;
                                              &lt;xqx:stepExpr&gt;
                                                &lt;xqx:xpathAxis&gt;self&lt;/xqx:xpathAxis&gt;
                                                &lt;xqx:anyKindTest/&gt;
                                              &lt;/xqx:stepExpr&gt;
                                            &lt;/xqx:pathExpr&gt;
                                          &lt;/xqx:arguments&gt;
                                        &lt;/xqx:functionCallExpr&gt;
                                      &lt;/xqx:argExpr&gt;
                                      &lt;xqx:sequenceType&gt;
                                        &lt;xqx:documentTest/&gt;
                                      &lt;/xqx:sequenceType&gt;
                                    &lt;/xqx:treatExpr&gt;
                                  &lt;/xqx:argExpr&gt;
                                &lt;/xqx:pathExpr&gt;
                              &lt;/xqx:parenthesizedExpr&gt;
                            &lt;/xqx:filterExpr&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7193</commentid>
    <comment_count>1</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2005-11-15 10:49:31 +0000</bug_when>
    <thetext>Also note that xqx:rootExpr unambiguously denotes the document root, but the
expression using fn:root() is dependent on the current namespace bindings.
It&apos;s not possible to tell from just one sample if the convertor used is taking
account of the statically known namespaces and would use something other than
fn:root if fn had been redeclared. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10499</commentid>
    <comment_count>2</comment_count>
    <who name="Ravindranath (Ravi) Chennoju">ravindranath.chennoju</who>
    <bug_when>2006-07-14 00:00:41 +0000</bug_when>
    <thetext>Fixed in previous release of XQTS</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>