DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24221>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24221 matching wildcard is strict, but no declaration can be found-- importing XMLSchema itself Summary: matching wildcard is strict, but no declaration can be found-- importing XMLSchema itself Product: Xerces2-J Version: 2.5.0 Platform: Other OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: XML Schema Structures AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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'. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
