W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2010

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 07 Oct 2010 08:01:51 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-10989-523@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:44 UTC