<?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>3636</bug_id>
          
          <creation_ts>2006-08-27 22:20:52 +0000</creation_ts>
          <short_desc>Constr-ws-xmlspace-2</short_desc>
          <delta_ts>2006-11-30 15:21:26 +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>1.0.2</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="Michael Kay">mike</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</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>11294</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-08-27 22:20:52 +0000</bug_when>
    <thetext>test Constr-ws-xmlspace-2 takes the form:

&lt;elem xml:space=&quot;strip&quot;&gt; &lt;/elem&gt;

In XML, the two legal values of xml:space are &quot;preserve&quot; and &quot;default&quot;. It seems this is a legal query, but it generates an erroneous XML document. It&apos;s not actually a well-formedness error: the XML spec says &quot;It is an error for other values [than &apos;preserve&apos; or &apos;default&apos;] to be specified; the XML processor MAY report the error or MAY recover by ignoring the attribute specification or by reporting the (erroneous) value to the application. 

As it happens the System.Xml parser on .NET does report the error, which makes it impossible to compare the result of this query with the expected results.

I shall raise an issue on the XQuery spec as to whether this query ought to be legal. Whether it&apos;s a legal query or not, however, it&apos;s not a good idea for a test in the test suite to generate a result that&apos;s an error according to the XML specification, if only because it&apos;s legitimate for the comparison with expected results to fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11305</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-08-29 19:00:09 +0000</bug_when>
    <thetext>I&apos;ll wait for WG discussion before I take any action on this bug report.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11893</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-09-20 20:36:17 +0000</bug_when>
    <thetext>The XSL and XML Query WGs discussed this issue (http://www.w3.org/Bugs/Public/show_bug.cgi?id=3704). We decided that an implementation MAY raise a dynamic error [XPDY0092] if a constructed attribute named xml:space has a value other than &quot;preserve&quot; or &quot;default&quot;.

I&apos;ll modify Constr-ws-xmlspace-2, allowing error XPDY0092 in addition to its existing result.

Please close this bug report if you agree with this resolution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13048</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-11-30 15:21:26 +0000</bug_when>
    <thetext>The November 21 spec says that the error code should be XQDY0092 rather than XPDY0092.

&quot;This change closes Bugzilla entry 3704. Sections affected: 3.7.1.3 Content, 3.7.3.2 Computed Attribute Constructors, 3.7.3.2 Computed Attribute Constructors, and new error code XQDY0092.&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>