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 2464 - [F+O] Regex production 10
Summary: [F+O] Regex production 10
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ashok Malhotra
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2005-11-04 17:08 UTC by Michael Kay
Modified: 2006-11-16 18:48 UTC (History)
0 users

See Also:


Description Michael Kay 2005-11-04 17:08:02 UTC
Bug against Schema Part 2
proposes a correction to production 10 in the syntax of regular expressions.
This production is referenced and further modified in the rules for XPath
regular expressions. Need to determine the status of the schema erratum and
ensure it is applied to the F+O spec.

Michael Kay
Comment 1 Ashok Malhotra 2005-11-22 00:07:50 UTC
The XML Schema bug 2019 "Production 10 should be modified to consider brace
brackets as metacharacters." has status "decided" but it is not clear when it
will appear in Schema 1.1.  Technically, the change is sound but procedurally
the situation is murky.
Comment 2 Jim Melton 2006-01-04 16:38:10 UTC
The procedural situation is, indeed, a bit murky, but a solution has been agreed
by the Working Groups.  This is an official response from the XML Query WG and
the XSL WG. 

The solution has two parts:

1) In F&O, section 7.6.1, Regular Expression Syntax, first bullet, first
instance of production [10], delete the left and right braces ("{" and "}") so
the F&O copy of the production accurately reflects what actually appears in XML
Schema, Part 2, second edition.  The result should read:
   [10] Char ::= [^.\?*+()|#x5B#x5D]

NOTE: In that same location, the second instance of production [10] must be left
exactly as published in the F&O CR edition -- thus, it continues to read:
   [10] Char ::= [^.\?*+{}()|^$#x5B#x5D]

2) In that same location, between the paragraph starting "The characters
#x5B..." and the paragraph that reads "The following production:", insert the
following NOTE:
   The definition of Char (production [10]) in [XML Schema Part 2: Datatypes
Second Edition] has a known error in which it omits the left brace ("{") and
right brace ("}").  That error is corrected here. 

(The text given here for the NOTE is merely a suggestion; the responsible editor
should select appropriate wording.)
Comment 3 Ashok Malhotra 2006-01-07 20:53:06 UTC
Fixed as decided on the 1/3/2006 telcon and recapitulated by Jim Melton below.