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 4646 - K2-DirectConOther-59
Summary: K2-DirectConOther-59
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-13 18:35 UTC by Andrew Eisenberg
Modified: 2007-06-14 17:23 UTC (History)
0 users

See Also:


Attachments

Description Andrew Eisenberg 2007-06-13 18:35:12 UTC
The query for this test case is:

<elem attr='
                            
                    
                    
                    

                 '/>

The expected result has an attribute value of:

<elem attr=" "/>

I believe that it should be:

<elem attr="                                                                                                               "/>

In case it does not display correctly, this attribute contains 111 space characters.


In 3.7.1.1 Attributes, bullet 1 says:

"Each consecutive sequence of literal characters in the attribute content is treated as a string containing those characters. Attribute value normalization is then applied to normalize whitespace and expand character references and predefined entity references. ... In either case, the normalization rules are applied as though the type of the attribute were CDATA (leading and trailing whitespace characters are not stripped.) ..."


XML, section 3.3.3 Attribute-Value Normalization says:

"If the attribute type is not CDATA, then the XML processor MUST further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by a single space (#x20) character."
Comment 1 Frans Englich 2007-06-14 10:10:07 UTC
A fix has been attempted in CVS, XQTS_current.zip is updated.