This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10989 - [XQuery1.0] 3.7.1.1 Attributes: quot-quot and apos-apos special regardless of delimiter?
Summary: [XQuery1.0] 3.7.1.1 Attributes: quot-quot and apos-apos special regardless of...
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 1.0 (show other bugs)
Version: 2nd Edition Recommendation
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-07 08:01 UTC by Michael Dyck
Modified: 2011-02-15 19:12 UTC (History)
0 users

See Also:


Attachments

Description Michael Dyck 2010-10-07 08:01:51 UTC
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.]
Comment 1 Jonathan Robie 2010-11-16 00:55:30 UTC
Fixed in XQuery 3.0 - reassigning to XQuery 1.0 2ed, which still has this problem.
Comment 2 Jonathan Robie 2011-02-15 17:55:56 UTC
Fixed in the Second Edition.
Comment 3 Michael Dyck 2011-02-15 19:12:04 UTC
Yup, got fixed between PER and REC. Closing the bug.