You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Leszek Gawron <lg...@apache.org> on 2005/02/22 15:49:00 UTC
Re: xsl:includes within includes stylesheets...
Bringing over from cocoon-users:
Wojciech Gdela wrote:
> Hello,
>
>> If you have a stylesheet that uses xsl:include to add extra templates to
>> the stylesheet and in turn the included stylesheet also includes another
>> stylesheet, Cocoon is no longer aware of changes to the stylesheet at
>> the bottom of the 'stack'.
>
>
> Set check-includes attribute to true in root sitemap, it should work:
>
> <map:transformer logger="sitemap.transformer.xslt" name="xslt"
> pool-grow="2" pool-max="32" pool-min="8"
> src="org.apache.cocoon.transformation.TraxTransformer">
> <use-request-parameters>false</use-request-parameters>
> <use-session-parameters>false</use-session-parameters>
> <use-cookie-parameters>false</use-cookie-parameters>
> <xslt-processor-role>xalan</xslt-processor-role>
> <check-includes>true</check-includes>
> </map:transformer>
>
Maybe we should make it default and have a note in documentation to
disable it for production sites?
> It does not work only when you use cocoon: protocol in you xsl:include
> href attribute. See:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=33603
>
--
Leszek Gawron MobileBox
lgawron@apache.org http://www.mobilebox.pl
Re: xsl:includes within includes stylesheets...
Posted by Leszek Gawron <lg...@apache.org>.
Vadim Gritsenko wrote:
> Leszek Gawron wrote:
>
>> Bringing over from cocoon-users:
>>
>>> Set check-includes attribute to true in root sitemap, it should work:
>>>
>>> <map:transformer logger="sitemap.transformer.xslt" name="xslt"
>>> pool-grow="2" pool-max="32" pool-min="8"
>>> src="org.apache.cocoon.transformation.TraxTransformer">
>>> <use-request-parameters>false</use-request-parameters>
>>> <use-session-parameters>false</use-session-parameters>
>>> <use-cookie-parameters>false</use-cookie-parameters>
>>> <xslt-processor-role>xalan</xslt-processor-role>
>>> <check-includes>true</check-includes>
>>> </map:transformer>
>>>
>> Maybe we should make it default and have a note in documentation to
>> disable it for production sites?
>
>
> AFAIKS, it is so in cocoon-2.1.X/src/webapp/sitemap.xmap
I'll have to see if it works then. I use quite fresh cocoon checkout and
had problems lately with editing cforms stylesheets - they surely did
not reload properly.
--
Leszek Gawron MobileBox
lgawron@apache.org http://www.mobilebox.pl
Re: xsl:includes within includes stylesheets...
Posted by Vadim Gritsenko <va...@reverycodes.com>.
Leszek Gawron wrote:
> Bringing over from cocoon-users:
>
>> Set check-includes attribute to true in root sitemap, it should work:
>>
>> <map:transformer logger="sitemap.transformer.xslt" name="xslt"
>> pool-grow="2" pool-max="32" pool-min="8"
>> src="org.apache.cocoon.transformation.TraxTransformer">
>> <use-request-parameters>false</use-request-parameters>
>> <use-session-parameters>false</use-session-parameters>
>> <use-cookie-parameters>false</use-cookie-parameters>
>> <xslt-processor-role>xalan</xslt-processor-role>
>> <check-includes>true</check-includes>
>> </map:transformer>
>>
> Maybe we should make it default and have a note in documentation to
> disable it for production sites?
AFAIKS, it is so in cocoon-2.1.X/src/webapp/sitemap.xmap
Vadim