I am doing a transformation in jaxp, underlying it is xalan 2.4.1

I have several stylesheets, all have includes that are relative to a base
(e.g. /usr01/h3/rhodepc/d/jrun-16981/default-app/)  There is an xsl
subdirectory here.

All my includes in my stylesheets begin with the path "xsl/"

I have a master stylesheet, that will include one stylesheet, which in turn
includes another stylesheet, and so on...

I set the systemId on the first stylesheet, so that when it does an include
of the first stylesheet, the stylesheet is found.

However, this second stylesheet does an include (also relative).  This
include is resolved relative to the second stylesheet's location, not the
original location of the stylesheet, hence the document root moves from
stylesheet to stylesheet.

It seems that setSystemId is not used recursively for resolving the
stylesheets that are included...

Any help and guidance would be appreciated!

Here is more detail:
java.io.FileNotFoundException:
/usr01/h3/rhodepc/d/jrun-16981/default-app/xsl/purchasing/xsl/util/jsp/xmlui
.xsl (No such file or directory)

The file is located at
/usr01/h3/rhodepc/d/jrun-16981/default-app/xsl/util/jsp/xmlui.xsl 

The include was (in the 2nd included xsl)

<xsl:include href="xsl/util/jsp/xmlui.xsl"/>

I had set the systemid on the first stylesheet to point to
"/usr01/h3/rhodepc/d/jrun-16981/default-app/"
So the first stylesheet is found.
The master stylesheet (the first one called) is located at
/usr01/h3/rhodepc/d/jrun-16981/default-app/xsl/purchasing/ebiz

Thanks very much.  Fighting this all day!



Phillip Rhodes

Reply via email to