- From: Martin Gudgin <marting@develop.com>
- Date: Wed, 6 Dec 2000 22:10:17 -0000
- To: "Michael Burns" <Michael.Burns@sas.com>, "'Don Mullen'" <donmullen@tibco.com>, <ht@cogsci.ed.ac.uk>
- Cc: <xmlschema-dev@w3.org>
XSV is telling you it can't find out what type Cat, Dob and Zebra are. You asked it to find type defintions for these elements because the default value for processContents is strict. Set processContents to lax and you'll be fine; <xs:any processContents='lax' minOccurs='0' maxOccurs='unbounded' /> Regards Martin Gudgin DevelopMentor ----- Original Message ----- From: "Michael Burns" <Michael.Burns@sas.com> To: "'Don Mullen'" <donmullen@tibco.com>; <ht@cogsci.ed.ac.uk> Cc: <xmlschema-dev@w3.org> Sent: Wednesday, December 06, 2000 9:55 PM Subject: RE: how to define an element which can contain any attributes or elements > Still does not work. Gee, I thought this was a simple request :*) > > Here is my instance: > - - - snip - - - > > <Properties xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="Useless6.xsd" > Name="" Rank="" SerialNumber="" > > > <Cat/> > <Dog/> > <Zebra/> > </Properties> > > /- - - snip - - - > > > and here is my schema: > - - - snip - - - > > <?xml version="1.0" encoding="UTF-8"?> > <xs:schema xmlns:xs="http://www.w3.org/2000/10/XMLSchema" elementFormDefault="qualified"> > <xs:element name="Properties"> > <xs:complexType mixed="true"> > <xs:sequence> > <xs:any minOccurs="0" maxOccurs="unbounded"/> > </xs:sequence> > <xs:anyAttribute/> > </xs:complexType> > </xs:element> > > </xs:schema> > > /- - - snip - - - > > Here is what xsv says: > - - - snip - - - > > Problems with the schema-validity of the target > file:/C:/ModelCompilerTestPen/test/xmlout/Properties.xml:5:2: Invalid per src-resolve: can't find a type for wildcard-matching element {None}:Cat > > file:/C:/ModelCompilerTestPen/test/xmlout/Properties.xml:6:2: Invalid per src-resolve: can't find a type for wildcard-matching element {None}:Dog > > file:/C:/ModelCompilerTestPen/test/xmlout/Properties.xml:7:2: Invalid per src-resolve: can't find a type for wildcard-matching element {None}:Zebra > > /- - - snip - - - > > And XML Spy says: Unexpected attribute 'Name' in element 'Properties' > > And Oracle's schema validating parser says: > - - - snip - - - > Parsing Properties.xml > > <Line 4, Column 32>: XSD-2026: (Error) Invalid attribute 'mixed' in element 'complexType' > > <Line 5, Column 8>: XSD-2034: (Error) Element 'Cat' not expected. > <Line 6, Column 8>: XSD-2034: (Error) Element 'Dog' not expected. > <Line 7, Column 10>: XSD-2034: (Error) Element 'Zebra' not expected. > Parser Exception: Element 'Cat' not expected. > > /- - - snip - - - > <SNIP>
Received on Wednesday, 6 December 2000 17:11:59 UTC