[
Lists Home |
Date Index |
Thread Index
]
"learning xml" <learning_xml@hotmail.com> writes:
> Hi,
>
> xerces version is xerces-2_2_1.
>
> book.xml is as follows:
> <?xml version="1.0" encoding="UTF-8"?>
> <book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="/tmp/example/xml_1/book.xsd">
That's not a valid URI -- the advice you were given was to use a
_relative_ URI, e.g.
xsi:noNamespaceSchemaLocation="../xml_1/book.xsd"
Obviously you need to use the _correct_ relative URI depending on the
relative (:-) locations of your .xml and .xsd files.
Alternatively, use the correct _absolute_ URI:
xsi:noNamespaceSchemaLocation="file:/tmp/example/xml_1/book.xsd" (UN*X)
xsi:noNamespaceSchemaLocation="file:///c:/tmp/example/xml_1/book.xsd" (W32)
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@inf.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]
|