AnsweredAssumed Answered

trouble with XSD

Question asked by cholou on Feb 18, 2009
Hello,
I'm trying to convert from wsdl2java, but at the generation I found this error:

"src-resolve.4.1: Error resolving component 'jornada'. It was detected that 'jornada' has no namespace, but components with no target namespace are not referenceable from schema document. If 'jornada' is intended to have a namespace, perhaps a prefix needs to be provided. If it is intended that 'jornada' has no namespace, then an 'import' without a "namespace" attribute should be added"

I dont found the error, this is the XSD:
<xsd:schema xmlns="urn:prueba1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:prueba1" elementFormDefault="qualified">
         <xsd:element name="jornada" type="jornada"/>
         <xsd:complexType name="jornada">
            <xsd:sequence>
               <xsd:element maxOccurs="unbounded" minOccurs="1" name="partido" type="partido"/>
            </xsd:sequence>
            <xsd:attribute name="id" type="xsd:token"/>
            <xsd:attribute name="liga" type="xsd:token"/>
            <xsd:attribute name="num" type="xsd:int"/>
         </xsd:complexType>
         <xsd:complexType name="partido">
            <xsd:sequence>
               <xsd:element name="equipoLocal" type="xsd:token"/>
               <xsd:element name="equipoVisitante" type="xsd:token"/>
               <xsd:element name="marcador" type="xsd:token"/>
            </xsd:sequence>
         </xsd:complexType>
      </xsd:schema>

I've searching and i didnt find any solution that could help me. does anybody know where the problem is?
thanks a lot :)

Outcomes