When creating a new document with one of the constructors, one can specify parameter base_path.
Its purpose is similar to that of attribute…
<…
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xml:base="base URI" …
…yet, the way of specifying the path is different-it conforms with general approach to paths used in Parser (see "Appendix 1. Paths to files and directories"), This approach is much more comfortable, since you do not have to specify full path including that to web space. By default, path to the currently processed document is used.
Note: character "/" at the end of the path is obligatory.
Example $sheet[^xdoc::create[/xsl/]{<?xml version="1.0" encoding="$request:charset"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="import.xsl"/>
</xsl:stylesheet>
}]
File import.xsl will be read from directory /xsl/.