AnsweredAssumed Answered

trouble with XSD

Question asked by cholou on Feb 18, 2009
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="" targetNamespace="urn:prueba1" elementFormDefault="qualified">
         <xsd:element name="jornada" type="jornada"/>
         <xsd:complexType name="jornada">
               <xsd:element maxOccurs="unbounded" minOccurs="1" name="partido" type="partido"/>
            <xsd:attribute name="id" type="xsd:token"/>
            <xsd:attribute name="liga" type="xsd:token"/>
            <xsd:attribute name="num" type="xsd:int"/>
         <xsd:complexType name="partido">
               <xsd:element name="equipoLocal" type="xsd:token"/>
               <xsd:element name="equipoVisitante" type="xsd:token"/>
               <xsd:element name="marcador" type="xsd:token"/>

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