You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/10/29 16:20:23 UTC
DO NOT REPLY [Bug 24221] New: -
matching wildcard is strict, but no declaration can be found-- importing XMLSchema itself
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: xerces-j-dev@xml.apache.org
ReportedBy: jddahl@micron.com
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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org