W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2002

Part 2: problems with 'pattern' spec

From: Ross Thompson <rthompson@contivo.com>
Date: Fri, 1 Feb 2002 08:44:53 -0800
Message-ID: <15450.50693.830828.916607@localhost.localdomain>
To: www-xml-schema-comments@w3.org

I found two problems, I think, with the specification of the pattern
attribute.  

1) The type of the 'value' attribute of pattern is 'anySimpleType.' [1]
   Should it not be 'string'?

2) The definition of 'atom' in the BNF for regular expressions [2]
   says 

        atom ::= Char | charClass | ( '(' regExp ')' )

   'Char' says

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

    Since '()' is included in 'Char', the status of these characters
    is, strictly speaking, ambiguous w.r.t. parsing an atom.

- Roß

[1] http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#element-pattern
[2] http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#nt-atom

---
Wife: a former sweetheart.		-- H. L. Mencken
Received on Friday, 1 February 2002 11:45:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:33 UTC