<?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>3540</bug_id>
          
          <creation_ts>2006-07-28 10:46:25 +0000</creation_ts>
          <short_desc>comments on guidelines (editorial)</short_desc>
          <delta_ts>2006-08-09 09:53:08 +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>unspecified</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="Carmelo Montanez">carmelo</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>10866</commentid>
    <comment_count>0</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2006-07-28 10:46:25 +0000</bug_when>
    <thetext>I started to make some comments in bug #3532 but that&apos;s probably the wrong place for editorial comments, so I opened another report.

These comments are on the guidelines cvs version 1.22

I think that the whole section &quot;Customizing Namespaces&quot; should be removed.
All tests using schema import have now been removed from the minimal conformance section, and the tests that do use schema import, changing it to a namespace declaration will not produce the expected result.

the section on module location hints says

 The &quot;at&quot; keyword specifies an optional location hint. Location Hints can be      interpreted or disregarded in an implementation-dependent way. An implementation can choose to use any of the location hints, or none at all.

which is more or less what it has to say, given the specification, but as noted in bug #3003, some of the tests assume that all the location hints are used (as they test for duplicated declarations) I think the guidelines need to allow implementors testing a system that would only use one location hint to 
rewrite the query to use a URI to a system specific module which has done the merge &quot;by hand&quot;. 



Customizing XQueryX Tests The example XQueryX is not valid  xqx:external may not take content. (first reported in bug #2400)

in Comparing Results
you say

  Error: The expected result of the test case is and error, identified as an     eight-character error code (e.g., XPST0003). The result of a test is true, if the implementation raises an error.

apart from the typo &quot;and error&quot; which should read &quot;an error&quot; Am I correct to read this as saying that it is _not_ necessary to check that exactly the correct
error code is produced. My current test harness checks the codes but classes the test as a pass anyway, adding a comment if the codes are different. I thought I was doing that incorrectly and was planning to classify these as failures but if it is OK to classify these as pass, that is good (for me).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10897</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-07-31 19:20:27 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; I started to make some comments in bug #3532 but that&apos;s probably the wrong
&gt; place for editorial comments, so I opened another report.
&gt; 
&gt; These comments are on the guidelines cvs version 1.22
&gt; 
&gt; I think that the whole section &quot;Customizing Namespaces&quot; should be removed.
&gt; All tests using schema import have now been removed from the minimal
&gt; conformance section, and the tests that do use schema import, changing it to a
&gt; namespace declaration will not produce the expected result.

Our thinking when we wrote this was that some XQuery implementations would choose to augment their static context with the necessary schema definitions and statically known namespaces, making the import schema clauses unnecessary.  

&gt; Customizing XQueryX Tests The example XQueryX is not valid  xqx:external may
&gt; not take content. (first reported in bug #2400)

I believe that you are suggesting that the example be rewritten as:

&lt;xqx:varDecl&gt;
   &lt;xqx:varName&gt;input-context&lt;/xqx:varName&gt;
   &lt;xqx:external/&gt;
&lt;/xqx:varDecl&gt;

&lt;xqx:varRef&gt;
   &lt;xqx:name&gt;input-context&lt;/xqx:name&gt;
&lt;/xqx:varRef&gt;
 

&gt; in Comparing Results
&gt; you say
&gt; 
&gt;   Error: The expected result of the test case is and error, identified as an   
&gt;  eight-character error code (e.g., XPST0003). The result of a test is true, if
&gt; the implementation raises an error.
&gt; 
&gt; apart from the typo &quot;and error&quot; which should read &quot;an error&quot; Am I correct to
&gt; read this as saying that it is _not_ necessary to check that exactly the
&gt; correct
&gt; error code is produced. My current test harness checks the codes but classes
&gt; the test as a pass anyway, adding a comment if the codes are different. I
&gt; thought I was doing that incorrectly and was planning to classify these as
&gt; failures but if it is OK to classify these as pass, that is good (for me).

You are doing this correctly. In section 2.3.2, Identifying and Reporting Errors, XQuery says:

&quot;The method by which an [XPath/XQuery] processor reports error information to the external environment is implementation-defined.&quot;
 
We didn&apos;t feel that we could require implementations to return specific URIs to identify specific errors.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10929</commentid>
    <comment_count>2</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2006-08-01 09:32:14 +0000</bug_when>
    <thetext>&gt;   &lt;xqx:external/&gt;

yes, so it&apos;s schema valid:-)

&gt; You are doing this correctly. 
Ah OK thanks for the confirmation. I hadn&apos;t noticed that previously.

Actually each time I&apos;ve released a new version of my test results I&apos;ve always tried to take care to flag this as something I&apos;m _not_ doing correctly. So I can stop doing that now. I will however keep my current practice of commenting the tests where I get &quot;incorrect&quot; codes. The development version of xq2xsl is actually a lot better at getting the codes right but there are still a couple of thousand or so cases where I get the wrong code (usually because the W3C XQuery parser doesn&apos;t distinguish errors with codes, or because I can&apos;t trap underlying XSLT errors, so XSLT rather than XQuery codes are reported). Probably other implementors will have similar issues with codes so I agree classing &quot;wrong error code&quot; as &quot;fail&quot; would be a bit severe. However it may be worth having a different classification other than pass such as &quot;pass-up-to-error-code&quot; (probably with a shorter name) so that you can more easily see which systems are using the W3C specified error codes and which are not, even if you treat pass and pass-up-to-error-code as equivalent for the purpose of the CR implementability testing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11056</commentid>
    <comment_count>3</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-08-08 21:22:57 +0000</bug_when>
    <thetext>(In reply to comment #0)

&gt; I think that the whole section &quot;Customizing Namespaces&quot; should be removed.
&gt; All tests using schema import have now been removed from the minimal
&gt; conformance section, and the tests that do use schema import, changing it to a
&gt; namespace declaration will not produce the expected result.

Yes, this has been changed.

&gt; the section on module location hints says
&gt; 
&gt;  The &quot;at&quot; keyword specifies an optional location hint. Location Hints can be   
&gt;   interpreted or disregarded in an implementation-dependent way. An
&gt; implementation can choose to use any of the location hints, or none at all.
&gt; 
&gt; which is more or less what it has to say, given the specification, but as noted
&gt; in bug #3003, some of the tests assume that all the location hints are used (as
&gt; they test for duplicated declarations) I think the guidelines need to allow
&gt; implementors testing a system that would only use one location hint to 
&gt; rewrite the query to use a URI to a system specific module which has done the
&gt; merge &quot;by hand&quot;. 

I believe that Carmelo made ths change.

&gt; Customizing XQueryX Tests The example XQueryX is not valid  xqx:external may
&gt; not take content. (first reported in bug #2400)

This has been changed.

&gt; in Comparing Results
&gt; you say
&gt; 
&gt;   Error: The expected result of the test case is and error, identified as an   
&gt;  eight-character error code (e.g., XPST0003). The result of a test is true, if
&gt; the implementation raises an error.
&gt; 
&gt; apart from the typo &quot;and error&quot; which should read &quot;an error&quot; Am I correct to
&gt; read this as saying that it is _not_ necessary to check that exactly the
&gt; correct
&gt; error code is produced. My current test harness checks the codes but classes
&gt; the test as a pass anyway, adding a comment if the codes are different. I
&gt; thought I was doing that incorrectly and was planning to classify these as
&gt; failures but if it is OK to classify these as pass, that is good (for me).

Yes, it is not necessary to have the correct error code to pass the test (see comment #1).


Please mark this report closed if you agree with our resolutions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11062</commentid>
    <comment_count>4</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2006-08-09 09:53:08 +0000</bug_when>
    <thetext>thanks</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>