<?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>2639</bug_id>
          
          <creation_ts>2006-01-05 11:08:49 +0000</creation_ts>
          <short_desc>xml:id processing: normalizing the attribute value</short_desc>
          <delta_ts>2006-01-27 20:08:02 +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>XSLT 2.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="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</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>7616</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-01-05 11:08:49 +0000</bug_when>
    <thetext>There is a residual difference between XSLT and XQuery in the area of xml:id
processing. XQuery specifies that a constructed xml:id value will be
whitespace-normalized (as per normalize-space(), or &quot;collapse&quot; in schema
terminology). XSLT does not require this.

I think we should bring XSLT into line with XQuery on this.

The impact of this is:

In 11.3 (xsl:attribute) change the sentence 

If the name of a constructed attribute is xml:id, the resulting attribute node
will have the is-id property. 

to read

If the name of a constructed attribute is xml:id, the processor must perform
attribute value normalization by applying the fn:normalize-space() function to
the value of the attribute, and the resulting attribute node must be given the
is-id property. 

In 11.1.2 (attributes of literal result elements) add, before the second Note:

If the name of a constructed attribute is xml:id, the processor must perform
attribute value normalization by applying the fn:normalize-space() function to
the value of the attribute, and the resulting attribute node must be given the
is-id property. 

Michael Kay</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8014</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-01-27 20:07:51 +0000</bug_when>
    <thetext>The proposal was accepted, with the additional provision that it is
implementation-defined whether attribute-value-normalization is applied to an
xml:id attribute during copy of copy-of operations, in the unusual event that
the attribute was not already whitespace normalized on the source tree.

Changes now applied to source document.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>