W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2009

Re: ^ should not be allowed by XmlCharIncDash

From: Dave Peterson <davep@iit.edu>
Date: Thu, 9 Apr 2009 09:58:08 -0400
Message-Id: <a06240800c603adc69e48@[192.168.1.139]>
To: "MURATA Makoto (FAMILY Given)" <eb2m-mrt@asahi-net.or.jp>, www-xml-schema-comments@w3.org
At 2:16 PM +0900 2009-04-09, MURATA Makoto (FAMILY Given) wrote:
>"[^a]" can be interpreted as a posCharGroup, since
>
>charClassExpr -> '[' charGroup ']'
>   ->  '[' posCharGroup ']'
>   ->  '[' charRange charRange ']'
>   ->  '[' XmlCharIncDash XmlCharIncDash ']'
>   ->  '[' '^' 'a' ']'

There is a constraint immediately following the charGroup production:

>If the first character in a charGroup is '^', this is taken as 
>indicating that the charGroup starts with a negCharGroup. A 
>posCharGroup can itself start with '^' but only when it appears 
>within a negCharGroup, that is, when the '^' is preceded by another 
>'^'.

Good catch.  The constraint should probably be labelled more formally
as a constraint so it won't be overlooked.
-- 
Dave Peterson
SGMLWorks!

davep@iit.edu
Received on Thursday, 9 April 2009 13:59:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:17 GMT