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 4829 - Attribute normalization in K2-DirectConOther-49
Summary: Attribute normalization in K2-DirectConOther-49
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: 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-28 10:06 UTC by Nick Jones
Modified: 2007-09-12 10:20 UTC (History)
0 users

See Also:


Attachments

Description Nick Jones 2007-06-28 10:06:14 UTC
I think (unless I'm missing something in the combination of normalization/serialization rules) this query is wrong:

<e attr="&#x20;&#xD;&#xA;&#x9;&#xD;&#xD;&#xD;&#xD;


                &#xD;&#xA;
                &#xD;&#xA;
                &#xD;&#xA;"/>

I think both the newlines and the spaces are replaced with spaces, hence the attribute is normalized to:

" \r\n\t\r\r\r\r                   \r\n                \r\n                \r\n"

and hence should output:

<e attr=" &#xD;&#xA;&#x9;&#xD;&#xD;&#xD;&#xD;                   &#xD;&#xA;                 &#xD;&#xA;                 &#xD;&#xA;"></e>

but the expected result is:

<e attr=" &#xD;&#xA;&#x9;&#xD;&#xD;&#xD;&#xD;   &#xD;&#xA; &#xD;&#xA; &#xD;&#xA;"></e>

which appears to be ignoring the spaces at the start of lines 5-7 of the attribute; I can't find anything in the spec to say should be happening. Is the input meant to be the following?

<e attr="&#x20;&#xD;&#xA;&#x9;&#xD;&#xD;&#xD;&#xD;


&#xD;&#xA;
&#xD;&#xA;
&#xD;&#xA;"/>
Comment 1 Frans Englich 2007-07-13 12:24:59 UTC
I've attempted to fix this in CVS, I hope I got it right. XQTS_current.zip is updated.
Comment 2 Nick Jones 2007-09-12 10:20:42 UTC
Thanks. XQTS_current.zip looks right to me.