<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>1220</bug_id>
          
          <creation_ts>2005-04-06 21:12:12 +0000</creation_ts>
          <short_desc>Serialization - choice of quotes on attributes</short_desc>
          <delta_ts>2005-08-17 14:57:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Serialization 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Scott Boag">scott_boag</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3815</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-04-06 21:12:12 +0000</bug_when>
    <thetext>In serialization section 4, phase 2f states:

If a quote (&quot;) character is in an attribute, and the attribute is delimited by
quote, the character will be changed to an an apostrophe (&apos;). Likewise, if a
apostrophe (&apos;) character is in an attribute, and the attribute is delimited by
apostrophe, the character will be changed to an an quote (&quot;).

I&apos;m sure the intention here is to change the attribute delimiters, not the
attribute value; but that&apos;s not how it reads. Change both occurrences of &quot;the
character will be changed&quot; to &quot;the delimiter will be changed&quot;. Add, for
completeness. &quot;If both characters are present in an attribute value, one of them
will be escaped.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3821</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Boag">scott_boag</who>
    <bug_when>2005-04-07 00:20:26 +0000</bug_when>
    <thetext>&quot;Michael Rys&quot; &lt;mrys@microsoft.com&gt; wrote:
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!).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3705</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Boag">scott_boag</who>
    <bug_when>2005-04-28 16:19:43 +0000</bug_when>
    <thetext>from http://lists.w3.org/Archives/Member/w3c-xsl-wg/2005Apr/0030.html:

MK reports: &apos; In serialization section 4, phase 2f states:
If a quote (&quot;) character is in an attribute, and the attribute is delimited by
quote, the character will be changed to an an apostrophe (&apos;). Likewise, if a
apostrophe (&apos;) character is in an attribute, and the attribute is delimited by
apostrophe, the character will be changed to an an quote (&quot;).

I&apos;m sure the intention here is to change the attribute delimiters, not the
attribute value; but that&apos;s not how it reads. Change both occurrences of &quot;the
character will be changed&quot; to &quot;the delimiter will be changed&quot;. Add, for
completeness. &quot;If both characters are present in an attribute value, one of them
will be escaped.&quot;&apos;

MK: Character map use case, want to give user more control. It is clear that we
are referring to changing delimiters, not content, but this should be explicit.
MR: Added comment saying that this really did refer to content rather than
delimiters.  Streaming output scenario.
MK: Entitizing is fine, but doesn&apos;t work in character map use case where output
is not XML.

Joanne: Henry doesn&apos;t like this rule, would prefer parameter specifying which
type of delimiter to use.
MK: We can take this provision out of the spec, implementation is permitted to
fix delimiters, but user doesn&apos;t have predictability.  We should all agree that
serializer can&apos;t change content except by escaping.

PC: Proposal is to drop this paragraph entirely.

Anders: Proposes change to SHOULD.
PC: This used to say &quot;should&quot;, we changed it to &quot;will&quot;.
Scott: Changed December 8.

Karun, Joanne, MR agree to drop.

RESOLUTION: &quot; http://www.w3.org/Bugs/Public/show_bug.cgi?id=1220  Serialization
- choice of quotes on attributes&quot; is resolved. Offending paragraph will be deleted.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>