- From: Priscilla Walmsley <priscilla@walmsley.com>
- Date: Fri, 29 Jun 2001 10:18:51 -0400
- To: "'Chelkowski, Tadeusz'" <Tadeusz.Chelkowski@softwareag.com>, <xmlschema-dev@w3.org>
I believe Xerces 1.3 only supported the Candidate Recommendation, whose namespaces were http://www.w3.org/2000/10/XMLSchema and http://www.w3.org/2000/10/XMLSchema-instance. You should either change the namespace names in both the instance and the schema, or better yet upgrade to Xerces 1.4. Priscilla Walmsley Vitria Technology -----Original Message----- From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org]On Behalf Of Chelkowski, Tadeusz Sent: Friday, June 29, 2001 6:06 AM To: xmlschema-dev@w3.org Subject: Are this files correct? Hello Please take a look at this schema and xml file, below are also result from two different validators xsv and xerces 1.3 could you explain why they behave different? Thank you Regards Tadeusz Chelkowski, Software AG Poland <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:elementname="Person"> <xsd:complexType> <xsd:sequence> <xsd:element ref="Name" /> <xsd:element ref="Surname" /> <xsd:element ref="Date" /> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="Name"type="xsd:string" /> <xsd:element name="Surname"type="xsd:string" /> <xsd:element name="Date"type="xsd:date" /> </xsd:schema> <?xml version="1.0" encoding="UTF-8"?> <Person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="test.xsd"> <Name>Tadeusz</Name> <Surname>Chelkowski</Surname> <Date>19765050</Date> </Person> Xsv gives me no error C:\Program Files\XSV>xsv test.xml <?xml version='1.0'?> <xsv docElt='{None}Person' instanceAssessed='true' instanceErrors='0' rootType=' [Anonymous]' schemaErrors='0' schemaLocs='None -> test.xsd' target='file:/C:/Pro gram Files/XSV/test.xml' validation='strict' version='XSV 1.196/1.97 of 2001/06/ 09 19:14:08' xmlns='http://www.w3.org/2000/05/xsv'> <importAttempt URI='file:/C:/Program Files/XSV/test.xsd' outcome='success'/> </xsv> Results from xerces 1.3 ERROR MSG:org.xml.sax.SAXParseException: Element type "Person" must be declared. ERROR MSG:org.xml.sax.SAXParseException: Element type "Name" must be declared. ERROR MSG:org.xml.sax.SAXParseException: Element type "Surname" must be declared. ERROR MSG:org.xml.sax.SAXParseException: Element type "Date" must be declared.
Received on Friday, 29 June 2001 10:19:28 UTC