Hi!
I have this simple schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" targetNamespace="http://www.ogf.org/dfdl/dfdl-1.0/examples/"
xmlns:tns="http://www.ogf.org/dfdl/dfdl-1.0/examples/"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="employee" type="personinfo" />
<xs:element name="student" type="personinfo" />
<xs:element name="member" type="personinfo" />
<xs:complexType name="personinfo">
<xs:sequence>
<xs:element name="aPersonsName" type="name"></xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="name">
<xs:sequence>
<xs:element name="firstname" type="xs:string" />
<xs:element name="lastname" type="xs:string" />
</xs:sequence>
</xs:complexType>
Message Broker gives me the following errors:
CTDX1100E : XSD: Type reference '#name' is unresolved … line 13 XSD Schema Validation Problem
CTDX1100E : XSD: Type reference '#personinfo' is unresolved … line 7 XSD Schema Validation Problem
CTDX1100E : XSD: Type reference '#personinfo' is unresolved … line 8 XSD Schema Validation Problem
CTDX1100E : XSD: Type reference '#personinfo' is unresolved … line 9 XSD Schema Validation Problem
In this model, all the elements and the complex type are given a name and are global. Shouldn’t it be possible to reference them?
If I remove the [xmlns:dfdl=http://www.ogf.org/dfdl/dfdl-1.0/ targetNamespace=http://www.ogf.org/dfdl/dfdl-1.0/examples/] every thing is ok.
This message including any attachments may contain confidential information,
according to our Information Security Management System, and intended solely
for a specific individual to whom they are addressed. Any unauthorised copy,
disclosure or distribution of this message is strictly forbidden. If you have
received this transmission in error, please notify the sender immediately and delete it.
Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener
informaci?n clasificada por su emisor como confidencial en el marco de su
Sistema de Gesti?n de Seguridad de la Informaci?n siendo para uso
exclusivo del destinatario, quedando prohibida su divulgaci?n copia o
distribuci?n a terceros sin la autorizaci?n expresa del remitente.
Si Vd. ha recibido este mensaje err?neamente, se ruega lo notifique al
remitente y proceda a su borrado.
Gracias por su
colaboraci?n.
Esta mensagem, incluindo qualquer ficheiro anexo, pode conter informa??o confidencial,
de acordo com nosso Sistema de Gest?o de Seguran?a da Informa??o, sendo para uso exclusivo
do destinat?rio e estando proibida a sua divulga??o, c?pia ou distribui??o a terceiros
sem autoriza??o expressa do remetente da mesma. Se recebeu esta mensagem por engano,
por favor avise de imediato o remetente e apague-a.
Obrigado pela sua colabora??o.