Parameter of creating a new document: Base path

When creating a new document with one of the constructors, one can specify parameter base_path.

Its purpose is similar to that of attribute…

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.


$sheet[^xdoc::create[/xsl/]{<?xml version="1.0" encoding="$request:charset"?> 
<xsl:stylesheet xmlns:xsl="" version="1.0">
    <xsl:import href="import.xsl"/>

import.xsl will be read from directory /xsl/.

Copyright © 1997–2021 Art. Lebedev Studio | Last updated: 21.09.2007