Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 20078 invoked from network); 15 Feb 2005 11:33:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Feb 2005 11:33:53 -0000 Received: (qmail 23617 invoked by uid 500); 15 Feb 2005 11:33:51 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 23559 invoked by uid 500); 15 Feb 2005 11:33:51 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 23545 invoked by uid 99); 15 Feb 2005 11:33:50 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ap-cocoon-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 15 Feb 2005 03:33:49 -0800 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1D10uz-0006JY-DW for dev@cocoon.apache.org; Tue, 15 Feb 2005 12:31:01 +0100 Received: from ava199.neoplus.adsl.tpnet.pl ([83.27.34.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Feb 2005 12:31:01 +0100 Received: from eltehaem by ava199.neoplus.adsl.tpnet.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Feb 2005 12:31:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@cocoon.apache.org From: Wojciech Gdela Subject: [Fwd: Incorect xsl stylesheets caching with xsl:include and cocoon: protocol] Date: Tue, 15 Feb 2005 12:31:25 +0100 Lines: 113 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ava199.neoplus.adsl.tpnet.pl User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: pl, en-us, en Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: ap-cocoon-dev@m.gmane.org X-MailScanner-To: dev@cocoon.apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, I've asked this question on users list, but no one answered. I've also tried to check in source code if it is a bug, but the caching stuff is to complex for me. Maybe you can help me. -------- Wiadomo�� oryginalna -------- Hello I have problem with caching of xsl stylesheets. Here is a simplified example, I have layout.xsl pipeline: When I try it on browser it works correctly, and depending on host name I see different layout_*.xsl files. This pipeline I include in a stylesheet named test.xsl: Ant test.xsl is used in another pipeline: This time, when I try it in browser the request is cached and output does not vary on host name. For example i try: http://foo.localhost/test -> Foo layout (ok) http://bla.localhost/test -> Foo layout (but should be Bla layout) When i restart server and first try: http://bla.localhost/test -> Bla layout (ok) http://foo.localhost/test -> Bla layout (but should be Foo layout) Simply speaking first request is cached. I've tried setting pipeline to "noncaching" and transformer to "use-request-parameters" but with no success (sitemap included at the end of this mail). The only way I can solve this is turning off "use-store" for transformers in cocoon.xconf, but I think this would reduce performance. The question is: Am I doing something wrong? Or is it a bug in stylesheets caching? My sitemap is: false false false xalan true -- Pozdrawiam, Wojciech Gdela. -- Pozdrawiam, Wojciech Gdela.