RE: [Bug 1220] New: Serialization - choice of quotes on attributes

The intent as far as I understand XML serializers is to change the
character and not the quotes (since you may write the quote before you
have seen the full value of the attribute!).

Best regards
Michael

> -----Original Message-----
> From: public-qt-comments-request@w3.org [mailto:public-qt-comments-
> request@w3.org] On Behalf Of bugzilla@wiggum.w3.org
> Sent: Wednesday, April 06, 2005 2:12 PM
> To: public-qt-comments@w3.org
> Subject: [Bug 1220] New: Serialization - choice of quotes on
attributes
> 
> 
> http://www.w3.org/Bugs/Public/show_bug.cgi?id=1220
> 
>            Summary: Serialization - choice of quotes on attributes
>            Product: XPath / XQuery / XSLT
>            Version: Last Call drafts
>           Platform: PC
>         OS/Version: Windows XP
>             Status: NEW
>           Severity: normal
>           Priority: P2
>          Component: Serialization
>         AssignedTo: scott_boag@us.ibm.com
>         ReportedBy: mike@saxonica.com
>          QAContact: public-qt-comments@w3.org
> 
> 
> In serialization section 4, phase 2f states:
> 
> If a quote (") character is in an attribute, and the attribute is
> delimited by
> quote, the character will be changed to an an apostrophe (').
Likewise, if
> a
> apostrophe (') character is in an attribute, and the attribute is
> delimited by
> apostrophe, the character will be changed to an an quote (").
> 
> I'm sure the intention here is to change the attribute delimiters, not
the
> attribute value; but that's not how it reads. Change both occurrences
of
> "the
> character will be changed" to "the delimiter will be changed". Add,
for
> completeness. "If both characters are present in an attribute value,
one
> of them
> will be escaped."

Received on Wednesday, 6 April 2005 21:34:14 UTC