1 year ago

#70974

test-img

Nicolas Sousa

Error : src-resolve: Cannot resolve the name 'ElementosType' to a(n) 'type definition' component

i have already seen others solution but basically can't resolve mine cause it says is missing a complextype but it's not true cause i have the complextype in the same xsd file .

the code is here

complextype:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ipp.estg.pt/Dados_clientes"
 elementFormDefault="qualified">
  <!-- Elemento completo -->


  <!-- COMPLEX TYPE RELATIVO AOS ELEMENTOS DA FAMILIA  -->

  <xs:complexType name="ElementosType">
    <xs:sequence>
      <xs:element name="nome" type="xs:string" />
      <xs:element name="data_nascimento" type="xs:date" />
      <xs:element name="pais" type="xs:string" />
      <xs:element name="cidade_origem" type="xs:string" />
    </xs:sequence>
  </xs:complexType>`

the other complextype i used to call him

<xs:complexType name="FamiliasType">
<xs:sequence>
  <xs:element name="clientes" type="ElementosType" maxOccurs="7"/>
  <xs:element name="preferencia_dias" type="PreferenciasType" minOccurs="1" maxOccurs="5" />
</xs:sequence>

</xs:complexType>

The error says : src-resolve: Cannot resolve the name 'ElementosType' to a(n) 'type definition' component.xsd(src-resolve)

I really dont know how to solve i already tried different ways.

xml

xsd

xquery

0 Answers

Your Answer

Accepted video resources