Page 1 of 1

Howto specify a working directory?

Posted: Wed Jan 18, 2006 11:41 am
by TheMeLLeR
I have multiple xsl-templates that i want to include. But Oxygen complains about file not found... Is it possible to specify a working directory?

Posted: Wed Jan 18, 2006 1:09 pm
by george
Hi,

If you are using a relative location that is resolved relative to the system identifier of the stylesheet that contains thse xsl:include instructions.
If you still have problems please provide more details.

Best Regards,
George

Posted: Wed Jan 18, 2006 1:25 pm
by TheMeLLeR
the xsl-template is loaded by a Javaservlet. The root-directory is the servlet but the xsl is in a subdirectory.
The working directory when i load the xsl is different from when i open de xsl with oxygen.

Posted: Wed Jan 18, 2006 1:37 pm
by george
Sorry, I do not understand your exact problem...
You may eventually want to load the stylesheet using the URL that points to its location on the server and thus have the references resolved in the same way.
If you have the problem in your code than it may be possible that you did not set the system id for the stylesheet when you parse it thus the XSLT processor does not know how to resolve relative references and uses the current working directory instead of the stylesheet system identifier.

Best Regards,
George