This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2639 - xml:id processing: normalizing the attribute value
Summary: xml:id processing: normalizing the attribute value
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-05 11:08 UTC by Michael Kay
Modified: 2006-01-27 20:08 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-01-05 11:08:49 UTC
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 "collapse" 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
Comment 1 Michael Kay 2006-01-27 20:07:51 UTC
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.