[Bug 4829] Attribute normalization in K2-DirectConOther-49

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4829

           Summary: Attribute normalization in K2-DirectConOther-49
           Product: XML Query Test Suite
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: nick@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


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;"/>

Received on Thursday, 28 June 2007 10:06:32 UTC