Hi I am using <xsd:include> in my xsd file to refer to elements defined in another xsd.
When I compiled my xsd, xjc complains:
parsing a schema...
src-include.0: Failed to read included schema document 'COS.xsd'.
line 5 of Payment.xsd
src-resolve: Cannot resolve the name 'InstructionKeyInfo' to a(n) >elment declaration component.
line 29 of Payment.xsd
Failed to parse a schema.
Does JAXB 1.0 supports xsd:include?
Thanks!
Joe
My xsd:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema version="$Id$" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb" >
<xsd:include schemaLocation="COS.xsd"/>
<xsd:annotation>
<xsd:appinfo>
<jxb:globalBindings
fixedAttributeAsConstantProperty="true"
collectionType="java.util.Vector"
typesafeEnumBase="xsd:NCName"
choiceContentProperty="false"
typesafeEnumMemberName="generateError"
modelGroupAsClass="false"
enableFailFastCheck="false"
generateIsSetMethod="false"
underscoreBinding="asCharInWord">
</jxb:globalBindings>
<jxb:schemaBindings>
<jxb:package name="com.hsbc.gib.tools.cos.beans"/>
</jxb:schemaBindings>
</xsd:appinfo>
</xsd:annotation>
<xsd:element name="PaymentInstructionReq">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="InstructionKeyInfo" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>