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

Question about 3.4.2, <restriction> content

From: Alain Frisch <Alain.Frisch@inria.fr>
Date: 21 Apr 2005 20:27:37 -0600
Message-ID: <42677A8F.7090706@inria.fr>
To: www-xml-schema-comments@w3.org




Hello,

In section 3.4.2, we can read:

=============================================================
<restriction
   base = QName
   id = ID
   {any attributes with non-schema namespace . . .}>
   Content: (annotation?, (simpleType?, (minExclusive | minInclusive | 
maxExclusive | maxInclusive | totalDigits | fractionDigits | length | 
minLength | maxLength | enumeration | whiteSpace | pattern)*)?, 
((attribute | attributeGroup)*, anyAttribute?))
</restriction>
=============================================================

I'm wondering why the ? after "pattern)*)"  is here, since it does not 
change the language recognized by the regular expression.


Cheers,


Alain Frisch
Received on Friday, 22 April 2005 02:29:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 October 2007 06:13:36 GMT