You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Warren Hedley <w....@auckland.ac.nz> on 2000/03/29 10:06:10 UTC
xsl:include in imported stylesheet doesn't work?
I'm having trouble loading an XSL stylesheet into Xalan 1_0_0
that imports another stylesheet that includes another, where each
step uses a relative URL. Interestingly, if the last stage is
an import, it works!
That is, if the following stylesheets import each other sequentially
--
/my_files/xsl/stylesheet_1.xsl
<xsl:import href="fragments/stylesheet_2.xsl" />
--
/my_files/xsl/fragments/stylesheet_2.xsl
<xsl:include href="stylesheet_3.xsl" />
( <xsl:import href="stylesheet_3.xsl" /> works!)
--
/my_files/xsl/fragments/stylesheet_3.xsl
--
My code uses an InputSource, and I call
setSystemID("file:/my_files/xsl/stylesheet_1.xsl")
before starting.
I get an error of the following form
File "file:/myfile/xsl/stylesheet_3.xsl" not found.
indicating that the relative URL in stylesheet 2 is being
resolved against the base URL of stylesheet 1, instead of 2.
Can anyone else confirm this behaviour? Am I doing something
wrong? I'm assuming this is the wrong behaviour, because
Saxon loads all three stylesheets without complaint.
Thanks in advance.
--
Warren Hedley
Department of Engineering Science
Auckland University
New Zealand