<?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>3704</bug_id>
          
          <creation_ts>2006-09-12 16:53:37 +0000</creation_ts>
          <short_desc>[XQuery] xml:space attributes</short_desc>
          <delta_ts>2007-02-25 23:51:10 +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>XQuery 1.0</component>
          <version>Candidate Recommendation</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="Andrew Eisenberg">andrew.eisenberg</reporter>
          <assigned_to name="Don Chamberlin">chamberl</assigned_to>
          <cc>mike</cc>
          
          <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>11621</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-09-12 16:53:37 +0000</bug_when>
    <thetext>In http://www.w3.org/Bugs/Public/show_bug.cgi?id=3636, Michael Kay raises the following issue: 

&quot;However, I think that there&apos;s a wider question about whether XQuery and XSLT
ought to allow the construction of a result tree containing the attribute
xml:space=&quot;strip&quot;, given that it is &quot;erroneous&quot; XML.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11641</commentid>
    <comment_count>1</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2006-09-13 10:50:35 +0000</bug_when>
    <thetext>This was discussed on w3c-xsl-query@w3.org:
http://lists.w3.org/Archives/Member/w3c-xsl-query/2006Aug/0024.html

(A general positiveness towards making it an error to specify an invalid value.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11687</commentid>
    <comment_count>2</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2006-09-14 00:51:53 +0000</bug_when>
    <thetext>On June 13, 2006, the Query Working Group 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;. This change will be reflected in the next version of the XQuery specification.
Don Chamberlin (for the Query Working Group)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11714</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-09-14 07:59:26 +0000</bug_when>
    <thetext>I&apos;m not sure why you put the error in the XPath space rather than the XQuery space?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11717</commentid>
    <comment_count>4</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2006-09-14 11:59:06 +0000</bug_when>
    <thetext>Why is it &quot;MAY&quot;?

This breaks interoperability since a query that runs fine on one implementation can break on another. It neither gives reliability to the user -- she can&apos;t trust that her xml:space attributes are verified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11718</commentid>
    <comment_count>5</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2006-09-14 16:28:50 +0000</bug_when>
    <thetext>Replying to Michael Kay: Sorry, the correct error code is XQDY0092. It&apos;s correct in the XQuery document.
Regards, 
Don Chamberlin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11804</commentid>
    <comment_count>6</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-09-15 19:17:37 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Why is it &quot;MAY&quot;?

We cosidered both the XML Recommendation and the practice of current implementations.

The XML Recommendation, in section 2.10, White Space Handling, says in part:

&quot;This specification does not give meaning to any value of xml:space other than &quot;default&quot; and &quot;preserve&quot;. It is an error for other values 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. Applications may ignore or reject erroneous values.&quot;

Also, when we discussed this, some members said that their products raise an error, and others said that they process it without difficulty.

Finally, we noted that our Data Model does not prohibit values other than &quot;default&quot; and &quot;preserve&quot; for xml:space attributes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11819</commentid>
    <comment_count>7</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2006-09-18 11:10:36 +0000</bug_when>
    <thetext>Andrew, thanks for the summary. However, I&apos;m not sure I would agree with the reasonings; for example, that invalid xml:space attributes works in some circumstances, doesn&apos;t necessarily mean it is a good idea to sometimes allow it. Nevertheless, I accept the resolution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14164</commentid>
    <comment_count>8</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-02-25 23:51:10 +0000</bug_when>
    <thetext>Closing bug because commenter has not objected to the resolution posted and more than two weeks have passed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>