Re: validator crash during target reading

George.Mraz@Bull.com writes:

> I am having a small(?) problem with xsv.
> 
> I went to the http://www.ltg.ed.ac.uk/~ht/xsv-status.html site and clicked
> on the self-installing package link.
> I did the install and did a cd c:\program files\xsv.
> When I type in xsv d:\xdml\xsd\prod.xml d:\xdml\xsd\prod.xsd I get the
> following output.
> 
> <?xml version='1.0'?>
> <xsv crash='true' instanceAssessed='false' schemaDocs
> ='d:/xdml/xsd/prod.xsd' target='d:/xdml/xsd/prod.xml' version='XSV
> 1.203.2.45/1.106.2.22 of 2002/01/11 16:40:28' xmlns
> ='http://www.w3.org/2000/05/xsv'>
> <bug>validator crash during target reading</bug>
> <XMLMessages>
> Error: scheme "d" not implemented
> </XMLMessages>
> </xsv>
> Traceback (most recent call last):
>   File "<string>", line 1339, in ?
> __main__.SchemaValidationError: Traceback (most recent call last):
>   File "<string>", line 871, in safeReadXML
>   File "<string>", line 33, in readXML
>   File "d:\work\XMLinter\nschema\LTXMLInfoset.py", line 6, in
> documentFromURI
> LTXMLinter.error: Can't open file
> 
> 
> What am I doing/have I done wrong? I have no idea what scheme "d" is, nor
> why it isn't implemented.

XSV is a conformant XML processor, which means it deals in URI
references, not operating-system dependent filenames.  So for full
paths, you need the 'file' scheme:

 >  xsv file:///d:/xdml/xsd/prod.xml file:///d:/xdml/xsd/prod.xsd

Alternatively, if XSV is in your path

 > d:
 > cd \xdml\xsd
 > xsv prod.xml prod.xsd

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2002, 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/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]

Received on Thursday, 4 April 2002 03:28:35 UTC