W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2003

Escape for $ in XPath 2 regexps

From: Richard Tobin <richard@cogsci.ed.ac.uk>
Date: Fri, 28 Nov 2003 13:09:16 GMT
Message-Id: <200311281309.NAA03882@mcpherson.cogsci.ed.ac.uk>
To: public-qt-comments@w3.org

This comment concerns section 7.6.1 of XQuery 1.0 and XPath 2.0
Functions and Operators.

Since the regular expression syntax adds the meta-character $, there
should be a corresponding escape \$ added to the single-character
escapes (schema production [24]).

(There is already an escape for ^ because schema uses it as a
metacharacter in character groups.)

You should also urge the Schema WG to add this escape, for
consistency.  It would not break any existing schema regular
expressions.

-- Richard
Received on Friday, 28 November 2003 08:15:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:28 GMT