Hi,
I am trying to use TEI-to-xhtml stylesheet* provided
by the tei consortium using the saxon HE transformer.
The importing of xsl dependencies fails with this error:
XTSE0165: I/O error reported by XML parser
processing file:/../xhtml2/tei.xsl:
/../xhtml2/tei.xsl (No such file or directory)
The specific file i try to run is
The actual href in the xsl:import is <xsl:import
href="../../../xhtml2/tei.xsl"/>
From the error message it looks as if the relative path:
"../../../xhtml2/tei.xsl"
is converted to the (non-existent) absolute path:
"/../xhtml2/tei.xsl
The same transformation works fine if called from the cli with
java -jar path/to/saxon9he.jar some-tei.xml
path/to/tei-stylesheets/xml/tei/stylesheet/profiles/tei/html/to.xsl
Is there some sort of url resolution happening on behalf of basex
before the xsl is passed to saxon?
I will try to reproduce with a set of less complex xsl files but it
seems like the issue lies with relative path resolution.
Thanks,
Alexandros
*You can download the latest stylesheets from sourceforge at:
http://sourceforge.net/projects/tei/files/Stylesheets/tei-xsl-6.14.zip/download