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 6794 - ^ and $ in XmlChar and XmlCharIncDash
Summary: ^ and $ in XmlChar and XmlCharIncDash
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Recommendation
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2009-04-09 02:33 UTC by Murata
Modified: 2009-10-16 20:53 UTC (History)
0 users

See Also:


Description Murata 2009-04-09 02:33:02 UTC
[21] XmlChar  and [22] XmlCharIncDash in XML Schema Part 2 (second edition) 
allows $ and ^, and XQuery 1.0 and XPath 2.0 Functions and Operators borrows 
these rules.   Since $ and ^ in [10] Char are explicitly disallowed 
in XQuery 1.0 and XPath 2.0 Functions and Operators, they should also 
be disallowed in [21] XmlChar  and [22] XmlCharIncDash.
Comment 1 Michael Kay 2009-04-09 07:12:37 UTC
Personal response:

I'm not sure I understand why this should be the case. Most characters that are metacharacters when used outside square brackets (for example "+", "?", "(") are allowed with their ordinary meaning (that is, to represent themselves) inside square brackets. If you can write "[+-Z]" then it's not clear to me why you shouldn't write "[$-Z]". The case of "^" is a bit more complex, because it has a special meaning inside square brackets that it doesn't have outside. But the XPath regex syntax is not changing its meaning inside square brackets, it is only changing its meaning outside.
Comment 2 Murata 2009-04-09 08:12:14 UTC
(In reply to comment #1)

Thanks for your reply.  I withdraw my comment.