- From: <MarkH@i2.co.uk>
- Date: Mon, 22 Jan 2001 09:08:57 -0000
- To: xmlschema-dev@w3.org
We think this is an XSV bug but with no-one commenting we're not sure. XML Spy v3.5 release thinks the schema is valid. Henry - please would you look at this. Thanks Mark -- Mark Hughes Agile HTML Editor http://www.agilic.com > -----Original Message----- > From: MarkH@i2.co.uk [mailto:MarkH@i2.co.uk] > Sent: 18 January 2001 15:14 > To: xmlschema-dev@w3.org > Subject: RE: XSV reports a validation error I can't figure out > > > I'd like to add that this cropped up when we moved from XSV10.EXE to > XSV11.EXE so assuming this is either a tightening of XSV's > validation or a > recently introduced bug. > > Mark > > > -----Original Message----- > > From: Alex.Vallat@i2.co.uk [mailto:Alex.Vallat@i2.co.uk] > > Sent: 18 January 2001 11:20 > > To: xmlschema-dev@w3.org > > Subject: XSV reports a validation error I can't figure out > > > > > > I am using XSV to validate an instance against a schema, but > > I keep getting > > an error reported that a certain xsi:type is undefined. I am > > fairly sure > > that it is defined, so I have produced a massivley cut down > > xsd and xml pair > > that still produce the error, and I can't figure out how to > > fix it. I am > > very new at xml and xsd, so I realise this is almost certain > > to be something > > I have done wrong rather than a problem with XSV, but I would > > appreciate it > > if someone could look at the following: > > > > ==== Test.xsd ==== > > > > <?xml version="1.0" encoding="UTF-8"?> > > <schema > > > targetNamespace="http://www.i2group.com/Schemas/2001-01-01/TestSchema" > > xmlns:vlvx="http://www.i2group.com/Schemas/2001-01-01/TestSchema" > > xmlns="http://www.w3.org/2000/10/XMLSchema"> > > <complexType name="endType" abstract="true"> > > <sequence> > > <element name="properties" type="string"/> > > </sequence> > > </complexType> > > <complexType name="person"> > > <complexContent> > > <extension base="vlvx:endType"> > > <sequence> > > <element name="PersonProperties" > > type="string"/> > > </sequence> > > </extension> > > </complexContent> > > </complexType> > > <element name="ends"> > > <complexType> > > <sequence> > > <element name="end" type="vlvx:endType" > > minOccurs="0" maxOccurs="unbounded"/> > > </sequence> > > </complexType> > > </element> > > </schema> > > > > =============== > > > > ==== Test.xml ==== > > > > <?xml version="1.0" encoding="UTF-8"?> > > <vlvx:ends > > xmlns:vlvx="http://www.i2group.com/Schemas/2001-01-01/TestSchema" > > xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" > > xsi:schemaLocation="http://www.i2group.com/Schemas/2001-01-01/ > > TestSchema > > Test.xsd"> > > <end xsi:type="vlvx:person"> > > <properties>NormalBit</properties> > > <PersonProperties>ExtraBit</PersonProperties> > > </end> > > </vlvx:ends> > > > > ============== > > > > Running xsv with command line: xsv -o xsvout.xml Test.xml > > > > results in the output: > > > > ==== xsvout.xml ==== > > > > <?xml version="1.0"?> > > <xsv > > docElt="{http://www.i2group.com/Schemas/2001-01-01/TestSchema}ends" > > instanceAssessed="true" instanceErrors="1" rootType="[Anonymous]" > > schemaErrors="0" > > schemaLocs="http://www.i2group.com/Schemas/2001-01-01/TestSchema -> > > Test.xsd" target="file:/C:/Documents and Settings/Alex/My > > Documents/TestXML/Test.xml" validation="strict" version="XSV > > 1.173.2.15/1.74.2.20 of 2000/12/16 12:10:29" > > xmlns="http://www.w3.org/2000/05/xsv"> > > <importAttempt URI="file:/C:/Documents and Settings/Alex/My > > Documents/TestXML/Test.xsd" > > namespace="http://www.i2group.com/Schemas/2001-01-01/TestSchema" > > outcome="success"/> > > <invalid char="2" code="cvc-elt.2.2" line="3" > > resource="file:/C:/Documents and Settings/Alex/My > > Documents/TestXML/Test.xml">xsi:type > > vlvx{<XMLInfoset.Namespace instance > > at 8f2fb8>}:person undefined</invalid> > > </xsv> > > > > ================ > > > > The important part being: xsi:type > > vlvx{<XMLInfoset.Namespace instance > > at 8f2fb8>}:person undefined > > > > I would appreciate any help with this matter. > > > > Best Regards, > > > > Alex Vallat > > >
Received on Monday, 22 January 2001 04:16:22 UTC