W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2001

Detecting of schema errors

From: <Mike_Leditschke@nemmco.com.au>
Date: Mon, 25 Jun 2001 17:03:04 +1000
To: xmlschema-dev@w3.org
Message-ID: <OFBAE57394.5096A344-ON4A256A76.00255AB9@nemmco.com.au>
I have the following two definitions in a schema. You'll notice the
second is using a hyphen not an underscore as per the pattern.

     <xsd:simpleType name="ReleaseIdentifier">
          <xsd:restriction base="xsd:string">
               <xsd:pattern value="r[0-9]*|r[0-9]*_[a-z][0-9]*"/>

     <xsd:simpleType name="r3">
          <xsd:restriction base="ReleaseIdentifier">
               <xsd:enumeration value="r3-e3"/>

Should the parser flag an error when loading the schema, or only
when validating an instance based on a schema using r3?

Both XMLSpy 4.0b1 and XSV happily ignore the error as far as the
schema is concerned.

XMLSpy reports an error when validating an instance even if the value
"r3-e3" is provided, saying that it doesn't match the regular expression.

XSV is happy provided the instance uses the string "r3-e3" and doesn't
report the value as violating the regular expression. Is this a bug? I
that regular expressions were not supported in XSV a while back but
they are not mentioned in the "Not Implemented yet" section of the
latest status page.

Any help much appreciated.


This e-mail is confidential.  If you are not the intended recipient, any use, disclosure or copying of this document is unauthorised and prohibited.  If you have received this document in error, please delete the email and notify me by return email or by phoning the NEMMCO Helpdesk on 1300 300 295.
Received on Monday, 25 June 2001 03:03:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC