- From: Gustavo Cebrian <gustavo.cebrian@greenhatconsulting.com>
- Date: Thu, 01 May 2003 09:13:53 -0600
- To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
I have problems including files. I am using jabx to generate classes from xsd's. I have got this file: <?xml version = "1.0" encoding = "UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace = "http://www.w3.org" xmlns="http://www.w3.org" xmlns:crisp="http://localhost:8080/crisp/datamodel/xsd" elementFormDefault = "unqualified"> <xs:include schemaLocation="address.xsd"/> <xs:element name="RegisterDirectDebit" type="RegisterDirectDebit"/> <xs:complexType name="RegisterDirectDebit"> <xs:sequence> <xs:element name="addre" ref="crisp:address"/> <xs:element name="ad" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:schema> and this other file. <?xml version = "1.0" encoding = "UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace = "http://www.w3.org" xmlns="http://www.w3.org" elementFormDefault = "unqualified"> <xs:element name="address" type="address"/> <xs:complexType name="address"> <xs:sequence> <xs:element name="houseNumberOrName" type="xs:string"/> <xs:element name="streetName" type="xs:string"/> <xs:element name="minorPostalArea" type="xs:string"/> <xs:element name="mainPostalArea" type="xs:string"/> <xs:element name="county" type="xs:string"/> <xs:element name="postcode" type="xs:string"/> <xs:element name="country" type="xs:string"/> <xs:element name="residenceStartDate" type="xs:date"/> <xs:element name="matched" type="xs:boolean"/> </xs:sequence> </xs:complexType> </xs:schema> both under <tomcat>crisp\datamodel\xsd I RUN TOMCAT AND THEN JAXB like this: //============================================ F:\cvsroot\Crisp>C:\jaxb-1.0\bin\xjc -p com.ghc.crisp.datamodel.xsd http:\\local host:8080\crisp\datamodel\xsd\RegisterDirectDebit.xsd parsing a schema... [ERROR] s4s-att-not-allowed: Attribute 'name' cannot appear in element 'element' . line 23 of RegisterDirectDebit.xsd [ERROR] src-resolve.4: Components from namespace 'http://localhost:8080/crisp/da tamodel/xsd' are not referenceable from schema document 'http://localhost:8080/c risp/datamodel/xsd/RegisterDirectDebit.xsd'. line 23 of RegisterDirectDebit.xsd //===================================================== I get this error ?????????? Gustavo. *********************************************** Gustavo Cebrian Analyst/Programmer Want to improve the ROI on your EAI project? Download RV Tester and reduce your development and testing timescales by as much as 50%. http://www.greenhatconsulting.com/rvtester Green Hat Consulting Ltd. 107 Fleet Street, London EC4A 2AB DDI +44 (0)20 7936 9495 Mobile +44 (0)7788 922291 http://www.greenhatconsulting.com mark.glading@greenhatconsulting.com ***********************************************
Received on Thursday, 1 May 2003 11:23:40 UTC