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

Re: [Moderator Action] RE: XML Schema example

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 14 Jan 2002 12:47:45 +0000
To: Cretella Rosario <RCretella@naples.sema.slb.com>
Cc: "'Ashok Malhotra'" <ashokma@microsoft.com>, "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Message-ID: <f5b4rlpumj2.fsf@cogsci.ed.ac.uk>
Cretella Rosario <RCretella@naples.sema.slb.com> writes:

> Thanks a lot for your answer.
> Iīve tried the examples in  http://www.w3.org/TR/xmlschema-0/  but it seems
> they donīt work
> with Xsv 1.4 validator. I have the following error:
> 
> ***************************
> 
> D:\data\xsv14\XSV>xsv po1.xml
> <?xml version='1.0'?>
> <xsv docElt='{http://www.example.com/PO1}purchaseOrder'
> instanceAssessed='true' instanceErrors='0' schemaErrors='0'
> target='file:/D:/data/xsv14/XSV/po1.xml' validation='lax' version='XSV
> 1.203.2.37/1.
> 106.2.19 of 2001/11/29 11:00:00' xmlns='http://www.w3.org/2000/05/xsv'>
> <schemaDocAttempt URI='http://www.example.com/PO1'
> namespace='http://www.example.com/PO1' outcome='failure' source='docElt'>
> <notASchema filename='http://www.example.com/PO1'>couldn't open</notASchema>
> </schemaDocAttempt>
> <XMLMessages>
> Error: connection to host "www.example.com" failed for http URL
> "http://www.example.com/PO1": Invalid argument
> </XMLMessages>
> </xsv>

You need to supply the schema document somehow, e.g.

D:\data\xsv14\XSV>xsv po1.xml po1.xsd

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Monday, 14 January 2002 07:47:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT