restriction query - XML Schema

Hi,

I'm looking for a definitive answer to the following question :

Are the following restrictions equally valid using XML Schema ?

Restriction 1:
<restriction base="xsd:string">
      <pattern value="[A-Z]{1,9}"/>
</restriction>


Restriction 2:
<restriction base="xsd:string">
      <pattern value="[A-Z]"/>
      <minLength value="1"/>
      <maxLength value="9"/>
</restriction>

We often have non-technical people looking at our restrictions - for them
Restriction 2 is easier to decipher, but is it 'legal' ?

regards

Max

-------------------------------------------------------------------------------------------------

Get the best from British Airways at ba.com
http://www.ba.com

Received on Friday, 4 April 2003 06:06:21 UTC