XSL, get current working directory
问题 I'm looking for a concrete example of an XSL stylesheet storing the current working directory into a variable. I need this because in my situation, I need to import certain library stylesheets using a relative path. Knowing the path my processor is choosing as the current directory would be sufficient. EDIT Nothing vendor specific please. 回答1: In XSLT 2.0 one can use the standard XPath 2.0 function resolve-uri(). Do note, that the relative URIs of the included/imported stylesheet modules are