You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Niclas Hedhman <ni...@hedhman.org> on 2003/01/14 05:31:55 UTC
xsl:include's root is in Tomcat's root.
I have a
<xsl:include href="features.xsl" />
in the main XSL stylesheet, and I get the error message;
java.io.FileNotFoundException:
/home/niclas/internus/bali/cocoon/jakarta-tomcat-4.0.3/connections.xsl (No
such file or directory)
which I think is way off.
Is this expected behaviour or have I completely fouled up the installation?
Shouldn't all <xsl:include> be relative the same directory as the including
stylesheet is in, if no initial "/" is given?
Niclas
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: xsl:include's root is in Tomcat's root.
Posted by Niclas Hedhman <ni...@hedhman.org>.
On Tuesday 14 January 2003 12:31, Niclas Hedhman wrote:
> I have a
>
> <xsl:include href="features.xsl" />
>
> in the main XSL stylesheet, and I get the error message;
>
> java.io.FileNotFoundException:
> /home/niclas/internus/bali/cocoon/jakarta-tomcat-4.0.3/connections.xsl (No
> such file or directory)
I picked the wrong error message!!! But it is the same, should be
java.io.FileNotFoundException:
/home/niclas/internus/bali/cocoon/jakarta-tomcat-4.0.3/features.xsl (No
such file or directory)
> which I think is way off.
> Is this expected behaviour or have I completely fouled up the installation?
>
> Shouldn't all <xsl:include> be relative the same directory as the including
> stylesheet is in, if no initial "/" is given?
>
>
> Niclas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: xsl:include's root is in Tomcat's root.
Posted by Geoff Howard <co...@leverageweb.com>.
I am using xsl:include in 2.1dev (from about 12/7) and haven't seen the
problem you're reporting.
Geoff
> -----Original Message-----
> From: Niclas Hedhman [mailto:niclas@hedhman.org]
> Sent: Monday, January 13, 2003 11:54 PM
> To: cocoon-dev@xml.apache.org
> Subject: Re: xsl:include's root is in Tomcat's root.
>
>
>
> If the href starts with "cocoon" the href is relative to the including
> stylesheet, otherwise it is relative to "tomcat/webapps".
> EXCEPT, if I write "cocoon/../" then we have relative to "tomcat/webapps"
> again.
>
> This can't possibly be correct.
>
> Is this some side-effect of sitemap settings? Using the default
> sitemap (from
> binary download) with the following added section;
>
> <map:match pattern="products/*/datasheets/*">
> <map:generate src="products/{1}/datasheets/{2}"/>
> <map:transform src="products/{1}/datasheets/style/datasheet.xsl"/>
> <map:serialize type="xhtml" />
> </map:match>
>
>
>
> Niclas
>
> On Tuesday 14 January 2003 12:31, Niclas Hedhman wrote:
> > I have a
> >
> > <xsl:include href="features.xsl" />
> >
> > in the main XSL stylesheet, and I get the error message;
> >
> > java.io.FileNotFoundException:
> >
> /home/niclas/internus/bali/cocoon/jakarta-tomcat-4.0.3/connections.xsl (No
> > such file or directory)
> >
> > which I think is way off.
> > Is this expected behaviour or have I completely fouled up the
> installation?
> >
> > Shouldn't all <xsl:include> be relative the same directory as
> the including
> > stylesheet is in, if no initial "/" is given?
> >
> >
> > Niclas
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: xsl:include's root is in Tomcat's root.
Posted by Niclas Hedhman <ni...@hedhman.org>.
If the href starts with "cocoon" the href is relative to the including
stylesheet, otherwise it is relative to "tomcat/webapps".
EXCEPT, if I write "cocoon/../" then we have relative to "tomcat/webapps"
again.
This can't possibly be correct.
Is this some side-effect of sitemap settings? Using the default sitemap (from
binary download) with the following added section;
<map:match pattern="products/*/datasheets/*">
<map:generate src="products/{1}/datasheets/{2}"/>
<map:transform src="products/{1}/datasheets/style/datasheet.xsl"/>
<map:serialize type="xhtml" />
</map:match>
Niclas
On Tuesday 14 January 2003 12:31, Niclas Hedhman wrote:
> I have a
>
> <xsl:include href="features.xsl" />
>
> in the main XSL stylesheet, and I get the error message;
>
> java.io.FileNotFoundException:
> /home/niclas/internus/bali/cocoon/jakarta-tomcat-4.0.3/connections.xsl (No
> such file or directory)
>
> which I think is way off.
> Is this expected behaviour or have I completely fouled up the installation?
>
> Shouldn't all <xsl:include> be relative the same directory as the including
> stylesheet is in, if no initial "/" is given?
>
>
> Niclas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: xsl:include's root is in Tomcat's root.
Posted by Niclas Hedhman <ni...@hedhman.org>.
On Tuesday 14 January 2003 12:31, Niclas Hedhman wrote:
> I have a
>
> <xsl:include href="features.xsl" />
>
> in the main XSL stylesheet, and I get the error message;
>
> java.io.FileNotFoundException:
> /home/niclas/internus/bali/cocoon/jakarta-tomcat-4.0.3/connections.xsl (No
> such file or directory)
>
> which I think is way off.
> Is this expected behaviour or have I completely fouled up the installation?
>
> Shouldn't all <xsl:include> be relative the same directory as the including
> stylesheet is in, if no initial "/" is given?
Furthermore, if I do place something in front of the name, I get the relative
path I am looking for, so
<xsl:include href="./features.xsl" />
and
<xsl:include href="features.xsl" />
resolves to
/home/niclas/internus/bali/cocoon/jakarta-tomcat-4.0.3/features.xsl
but
<xsl:include href="cocoon/products/datasheet/style/features.xsl" />
resolves to
/home/niclas/internus/bali/cocoon/jakarta-tomcat-4.0.3/cocoon/products/datasheet/style/cocoon/products/datasheet/style/features.xsl
Note the reoccuring path elements "cocoon/products/datasheet/style/"
Anyone understand what is going on??
Am I supposed to use xinclude instead?
Niclas
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org