<?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>10989</bug_id>
          
          <creation_ts>2010-10-07 08:01:51 +0000</creation_ts>
          <short_desc>[XQuery1.0] 3.7.1.1 Attributes: quot-quot and apos-apos special regardless of delimiter?</short_desc>
          <delta_ts>2011-02-15 19:12:04 +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>XQuery 1.0</component>
          <version>2nd Edition Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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 Dyck">jmdyck</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</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>40765</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2010-10-07 08:01:51 +0000</bug_when>
    <thetext>3.7.1.1 Attributes
1. Each consecutive sequence of literal characters in the attribute content is treated as a string containing those characters, with the following exceptions:
  ...
  c. Each occurrence of two consecutive &quot; characters
     is replaced by a single &quot; character.
  d. Each occurrence of two consecutive &apos; characters
     is replaced by a single &apos; character.

Note that these two points apparently both happen regardless of the delimiter. E.g., given:
    &lt;e a=&quot;&quot;&quot;&apos;&apos;&quot;&gt;
the value of the constructed attribute node would consist of a single &quot; character followed by a single &apos; character. I&apos;m pretty sure this was never our intent.

[The wording of points 1c and 1d arrived in erratum XQ.E13:
    http://www.w3.org/XML/2007/qt-errata/xquery-errata.html#E13
which was the fix for Bug 5083. However, the wording proposed in 
Bug 5083 comment 4 did not have the above problem. E.g., it says that
an EscapeQuot is replaced by a quotation mark, and the EBNF says that
an EscapeQuot can only occur in a quot-delimited DirAttributeValue.]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42556</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2010-11-16 00:55:30 +0000</bug_when>
    <thetext>Fixed in XQuery 3.0 - reassigning to XQuery 1.0 2ed, which still has this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45612</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2011-02-15 17:55:56 +0000</bug_when>
    <thetext>Fixed in the Second Edition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45628</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2011-02-15 19:12:04 +0000</bug_when>
    <thetext>Yup, got fixed between PER and REC. Closing the bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>