Re: [Moderator Action] RE: XML Schema example

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 UTC