- From: <jddahl@micron.com>
- Date: Wed, 5 Nov 2003 08:18:32 -0700
- To: <xmlschema-dev@w3.org>
I am trying to import the XMLSchema itself to allow users to identify their own data types. ---------------------------------------------------------- db.xsd <?xml version="1.0" encoding="US-ASCII"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://testeng.micron.com/data" xmlns="http://testeng.micron.com/data" elementFormDefault="qualified"> <xsd:import namespace="http://www.w3.org/2001/XMLSchema" schemaLocation="http://www.w3.org/2001/XMLSchema.xsd"/> <xsd:element name="model"> <xsd:complexType> <xsd:sequence> <xsd:any namespace="http://www.w3.org/2001/XMLSchema" minOccurs="0" maxOccurs="unbounded" processContents="strict"/> </xsd:sequence> <xsd:attribute name="name" type="xsd:NCName"/> </xsd:complexType> </xsd:element> </xsd:schema> ---------------------------------------------------------- model.xml <?xml version="1.0" encoding="US-ASCII" standalone="no"?> <model xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://testeng.micron.com/data db.xsd" xmlns="http://testeng.micron.com/data" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:simpleType name="my_type"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="string1"/> <xsd:enumeration value="string2"/> <xsd:enumeration value="string3"/> </xsd:restriction> </xsd:simpleType> </model> ---------------------------------------------------------- Yet, when I run Xerces, I get the following error: java -classpath /home/jddahl/xerces-2_5_0/xercesSamples.jar:/home/jddahl/xerces-2_5_0/xercesImpl.jar sax.Counter -v -s -f -n -np model.xml [Error] model.xml:8:42: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'xsd:simpleType'. Is this a Xerces bug, or am I doing something wrong? Thanks, Jeff Dahl
Received on Wednesday, 5 November 2003 10:21:28 UTC