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 4114 - RegexTest_24
Summary: RegexTest_24
Status: RESOLVED DUPLICATE of bug 4015
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Microsoft tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard: metadata update confirmed 2010-01-26
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-31 18:31 UTC by Michael Kay
Modified: 2010-01-26 11:27 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-12-31 18:31:07 UTC
In the Microsoft regex tests, test RegexTest_24 has the following in the schema:

<xs:pattern value='{5'/>

The metadata describes this as valid.

This reveals a problem in the specification. The specification says in the text:

(1) An atom is either a ·normal character·, (or other options that aren't relevant here)

(2) A normal character is any XML character that is not a metacharacter. 

(3) A metacharacter is either ., \, ?, *, +, {, } (, ), [ or ].

This would imply that the character "{" cannot be used without escaping, making the above regex invalid.

However, the grammar has:

[10]   	Char ::= [^.\?*+()|#x5B#x5D]

which permits "{" and "}" without escaping, making the above regex valid.
Comment 1 Michael Kay 2006-12-31 18:35:43 UTC
(Note that the English text and the grammar also disagree about whether "|" is a normal character or a metacharacter).
Comment 2 Michael Kay 2008-06-21 13:15:03 UTC
Bug #5778 has been raised against the spec on this point.
Comment 3 Henry S. Thompson 2010-01-26 11:27:13 UTC

*** This bug has been marked as a duplicate of bug 4015 ***