[Bug 10989] New: [XQuery1.0] 3.7.1.1 Attributes: quot-quot and apos-apos special regardless of delimiter?

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

           Summary: [XQuery1.0] 3.7.1.1 Attributes: quot-quot and
                    apos-apos special regardless of delimiter?
           Product: XPath / XQuery / XSLT
           Version: Proposed Edited Recommendation
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery
        AssignedTo: jonathan.robie@redhat.com
        ReportedBy: jmdyck@ibiblio.org
         QAContact: public-qt-comments@w3.org


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 " characters
     is replaced by a single " character.
  d. Each occurrence of two consecutive ' characters
     is replaced by a single ' character.

Note that these two points apparently both happen regardless of the delimiter.
E.g., given:
    <e a="""''">
the value of the constructed attribute node would consist of a single "
character followed by a single ' character. I'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.]

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 7 October 2010 08:01:52 UTC