cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ludovic Maitre <Ludovic.Mai...@sophia.inria.fr>
Subject Re: Cascading stylesheets that are in different directories?
Date Fri, 12 Jan 2001 09:25:26 GMT
Mark Milbourne Foster City wrote:

> <xsl:processing-instruction name="xml-stylesheet">href="/Document.xsl"
> type="text/xsl"</xsl:processing-instruction>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;<xsl:processing-instruction
> name="xml-stylesheet">href="http://localhost/ppg/Document.xsl"
> type="text/xsl"</xsl:processing-instruction>But its not very nice.Am I
> doing this the hard way?  Does someone else have the same problem?Any
> suggestions would be helpful.Thanks.
> -----------------------------------------------------------------------
>
Try using ./ before the url of the stylesheet rather than / :

<xsl:processing-instruction name="xml-stylesheet">href="./Document.xsl"
type="text/xsl"</xsl:processing-instruction>

--
 Ludovic.Maitre@sophia.inria.fr

 INRIA - 2004 route des lucioles - BP 93    Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)    Fax: (33/0) 4 92 38 76 02




Mime
View raw message