cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Milbourne Foster City <>
Subject Cascading stylesheets that are in different directories?
Date Fri, 12 Jan 2001 06:19:50 GMT
I have a problem that maybe someone has a better solution for than the one
I've found.
I have an XML file that is using a stylesheet from a different directory.
The directory its in is /ppg/articles/website and the stylesheet is in /ppg.
Now if I use ../../Page.xsl then all is ok.
<?xml-stylesheet href="../../Page.xsl" type="text/xsl"?>

But the Page.xsl is cascading its output to another stylesheet in the same
directory.  If I simply include the stylesheet with the line;
<xsl:processing-instruction name="xml-stylesheet">href="Document.xsl"
then it doesn't work.  On my win2K installation of Cocoon 1.7.4 I can do the
<xsl:processing-instruction name="xml-stylesheet">href="/Document.xsl"
and that seems to work.   BUT on a Linux box with Cocoon 1.8 installed this
doesn't work.  I read somwhere that using / means that the root of the
current context.  Is this correct? 1.8 seems to have changed.
What I found worked was;
But its not very nice.
Am I doing this the hard way?  Does someone else have the same problem?
Any suggestions would be helpful.

Mark Milbourne
Electronics for Imaging.
Production Printing.

View raw message