You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Meukens, Kris" <kr...@eds.com> on 2000/07/12 19:11:27 UTC

RE: PLEASE HELP: setting stylesheet root directory for relative S tylesheet URIs in Apache Xalan

Apparently the 'getURLFromString(String urlString, String base)' method in
the org.apache.xalan.xpath.xdom.XercesLiaison is responsible for the
incorrect resolving.  The File("...").getAbsolutePath returns a wrong
resolution.

Any hints what should be done?

-----Original Message-----
From: Meukens, Kris 
Sent: Wednesday, July 12, 2000 6:39 PM
To: 'xalan-dev@xml.apache.org'
Subject: PLEASE HELP: setting stylesheet root directory for relative
Stylesheet URIs in Apache Xalan
Importance: High


Hi,

When I have an XML file (e.g. file://C:/xml/test.xml) with a relative
stylesheet URI (e.g. ../xsl/test.xsl) included, apparently Xalan resolves
that by adding the current directory (e.g. c:\dir\program) to the relative
URI.  This is obviously not correct (file://C:/dir/program/../xsl/test.xsl
vs. file://C:/xsl/test.xsl).  Is there a way to tell Xalan that the URI is
relative against the XML URL instead of the current directory?

Regards,
Kris.