Part 2: problems with 'pattern' spec

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