Yes, that seems correct to me.  URI imports should be resolved relative to
the base URI.

> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Per Jessen
> Sent: 14 April 2003 10:18
> To: [email protected]
> Subject: how document() resolves a relative path
>
>
> I've just recently "discovered" something which I'm not certain
> is correct.
> I'm using XSLT function document() to read in a local file. WHen the
> filepath is relative, document() tries to resolve it as relative to the
> location of the .xsl file using document().
>
> Eg. if I call the xalan command-line processor along these lines:
>
> ./xalan [options]  <xmldoc>  ../qwerty.xsl
>
> a document('jessen/g7.xml') will try to access '../jessen/g7.xml' .
>
> Is this correct/expected behaviour?
>
>
> thanks,
> Per Jessen, Zurich
>
>
>

Reply via email to