W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2001

XSV reports a validation error I can't figure out

From: <Alex.Vallat@i2.co.uk>
Date: Thu, 18 Jan 2001 11:19:50 -0000
Message-ID: <1E73B637CFC3D411A12F00B0D0795DDD078100@uknts40exh01.i2.co.uk>
To: xmlschema-dev@w3.org
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"?>
	<complexType name="endType" abstract="true">
			<element name="properties" type="string"/>
	<complexType name="person">
			<extension base="vlvx:endType">
					<element name="PersonProperties"
	<element name="ends">
				<element name="end" type="vlvx:endType"
minOccurs="0" maxOccurs="unbounded"/>


==== Test.xml ====

<?xml version="1.0" encoding="UTF-8"?>
<vlvx:ends xmlns:vlvx="http://www.i2group.com/Schemas/2001-01-01/TestSchema"
	<end xsi:type="vlvx:person">


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]"
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 of 2000/12/16 12:10:29"
	<importAttempt URI="file:/C:/Documents and Settings/Alex/My
	<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{&#60;XMLInfoset.Namespace instance
at 8f2fb8>}:person undefined</invalid>


The important part being: xsi:type vlvx{&#60;XMLInfoset.Namespace instance
at 8f2fb8>}:person undefined

I would appreciate any help with this matter.

Best Regards,

Alex Vallat
Received on Thursday, 18 January 2001 06:27:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:50 UTC