You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ulrich Mayring <ul...@denic.de> on 2000/03/13 09:46:49 UTC
relative URLs in href attribute of
Hello,
I'm not sure if this is a cocoon or a xalan issue. Let's say I have a
file /usr/xml/subdir/index.xml, where /usr/xml/ is the document root of
my webserver and it contains a stylesheet standard.xsl.
If I put in index.xml this directive:
<?xml-stylesheet href="/standard.xsl" type="text/xsl"?>
then I get the error message that /usr/xml/subdir//standard.xsl cannot
be found. If I just write href="standard.xsl" then the error is that
/usr/xml/subdir/standard.xsl isn't found.
The only way to refer to the standard.xsl in the document root is this:
<?xml-stylesheet href="http://localhost/standard.xsl" type="text/xsl"?>
As I said this may be a xalan issue, but perhaps xalan is getting the
wrong URL from cocoon. Is there an alternative way to refer to a
stylesheet in the document root?
Ulrich
--
Ulrich Mayring
DENIC eG, Softwareentwicklung