Re: Relative path in Include Element

NJayaraman@tomax.com writes:

> Hi,
> 
>      I would like to know how to specify relative path name when including
> other schema definitions. For eg.
> 
>      <?xml version="1.0" encoding="UTF-8"?>
>      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>      <xsd:include schemaLocation="tmx_schema_lib.xsd"/>

The URL of the schema document should be used as the base for relative 
URLs in the schemaLocation attributes of xs:include and xs:import, in
my opinion, although I don't _think_ the REC says anything about this.

Similarly, the URL of the target document should be used as the base
for relative URLs in the xsi:schemaLocation and
xsi:noNamespaceSchemaLocation attributes.

XSV behaves according to those principles.

Which validator are you using?

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 Thursday, 20 September 2001 05:29:20 UTC