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=4058>. 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=4058 include statement in schema definition specification does not work Summary: include statement in schema definition specification does not work Product: Xerces-J Version: 1.4.3 Platform: Sun OS/Version: Solaris Status: NEW Severity: Normal Priority: Other Component: Schema-Structures AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hello, I am trying to use "include" facility provided by schema definition. But it doesnt work. There are 3 files wb.xml, wb.xsd and addr.xsd. Please copy all the 3 files a directory and try to parse the xml file, it gives the following error [XML Parser ERROR] Schema error: type not found : :EmployeeType. [XML Parser ERROR] Schema error: untyped element : Employee. [XML Parser ERROR] Schema error: error in content of <schema> element information item. . . . wb.xml ------- <?xml version="1.0" ?> <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="wb.xsd" > <Employee id="Nandan" /> <Employee surname="Gogate" /> <Employee id="sada" /> <Boss bossname="Nandan" /> </root> wb.xsd ------- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" > <xsd:element name="root" type="rootType" /> <xsd:include schemaLocation="addr.xsd" /> <!-- <xsd:complexType name="EmployeeType"> <xsd:attribute name="id" type="xsd:ID" /> <xsd:attribute name="surname" type="xsd:string" /> </xsd:complexType> --> <xsd:complexType name="rootType"> <xsd:sequence > <xsd:element name="Employee" type="EmployeeType" maxOccurs="unbounded" /> <xsd:element name="Boss" > <xsd:complexType> <xsd:attribute name="bossname" type="xsd:IDREF" /> </xsd:complexType> </xsd:element > </xsd:sequence> </xsd:complexType > </xsd:schema> addr.xsd --------- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" <xsd:complexType name="EmployeeType"> <xsd:attribute name="id" type="xsd:ID" /> <xsd:attribute name="surname" type="xsd:string" /> </xsd:complexType> </xsd:schema> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
