Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 31336 invoked from network); 21 Jun 2007 15:04:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jun 2007 15:04:08 -0000 Received: (qmail 74869 invoked by uid 500); 21 Jun 2007 15:04:07 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 74813 invoked by uid 500); 21 Jun 2007 15:04:07 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 74802 invoked by uid 99); 21 Jun 2007 15:04:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2007 08:04:06 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of alexander.daniel@gmx.at designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 21 Jun 2007 08:04:02 -0700 Received: (qmail invoked by alias); 21 Jun 2007 15:03:41 -0000 Received: from chello062178138107.3.14.vie.surfer.at (EHLO [192.168.0.2]) [62.178.138.107] by mail.gmx.net (mp037) with SMTP; 21 Jun 2007 17:03:41 +0200 X-Authenticated: #5890984 X-Provags-ID: V01U2FsdGVkX19z4AVaUNlz7ID2BCuPl7G79R9M2AUKqUzjXgrRLD slMDkw0QeT4hkd Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <467A5F56.7050600@be-value.nl> References: <467A5BD9.9090105@be-value.nl> <467A5F56.7050600@be-value.nl> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Alexander Daniel Subject: Re: catalog and xslt document() function Date: Thu, 21 Jun 2007 17:03:38 +0200 To: users@cocoon.apache.org X-Mailer: Apple Mail (2.752.2) X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org I don't know direct answers to your questions but I can recommend a different approach: Instead of using the XSLT document() function you could use the Include transformer (org.apache.cocoon.transformation.IncludeTransformer) which also supports caching. We use it successfully in our project. Alex On Jun 21, 2007, at 1:21 PM, Jan-Willem Boer wrote: > Jan Willem Boer schreef: >> Hi, >> >> I ran into a problem with the catalog file and the xslt document() >> function. >> >> To include a document into the XML that flows through a Cocoon >> pipeline, I am using the document() function in an XSLT stylesheet: >> >> >> The document-to-include contains a DOCTYPE declaration referring >> to an external entity: >> > "something.dtd"> >> >> I added the DTD-file to the directory WEB-INF/entities and added a >> line to the catalog file containing the PUBLIC and SYSTEM >> identifiers. >> >> The problem occurs when i use the document function to include the >> document directly with an absolute path, the catalog file is >> ignored, and the DTD is not found. >> To circumvent this, I was forced to redirect the document() >> function to a cocoon pipeline like this: >> > this should of course be > >> >> instead of >> >> >> Cocoon reads the catalog and does not complain, so at least I have >> it working now. >> >> I was wondering (1) if this is expected behaviour (2) if there is >> another, more elegant way to solve this: can the XSLT processor be >> instructed to read the catalog somehow? >> >> Jan Willem Boer >> http://www.linkedin.com/in/janwillemboer > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org