From dev-return-30550-apmail-forrest-dev-archive=forrest.apache.org@forrest.apache.org Wed Aug 19 06:48:58 2009 Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 7023 invoked from network); 19 Aug 2009 06:48:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Aug 2009 06:48:58 -0000 Received: (qmail 98735 invoked by uid 500); 19 Aug 2009 06:49:17 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 98644 invoked by uid 500); 19 Aug 2009 06:49:17 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 98636 invoked by uid 99); 19 Aug 2009 06:49:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2009 06:49:16 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of sjurnm@mac.com does not designate 195.197.172.116 as permitted sender) Received: from [195.197.172.116] (HELO gw02.mail.saunalahti.fi) (195.197.172.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2009 06:49:07 +0000 Received: from a88-112-42-8.elisa-laajakaista.fi (a88-112-42-8.elisa-laajakaista.fi [88.112.42.8]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 1C9C11396EC for ; Wed, 19 Aug 2009 09:48:44 +0300 (EEST) Message-Id: From: Sjur Moshagen To: dev@forrest.apache.org In-Reply-To: <1250661630.709214696@192.168.1.70> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [jira] Commented: (FOR-1176) enable plugins to utilise stylesheets from exslt.org X-Priority: 3 (Normal) Date: Wed, 19 Aug 2009 09:48:44 +0300 References: <1600356771.1250592134887.JavaMail.jira@brutus> <1250601845.27323.4.camel@kenny> <84039E7C-68C3-4CE1-B0AB-E0614FBEE592@mac.com> <05C07873-525E-449D-A09F-7E9E58AF4AB1@mac.com> <1250661630.709214696@192.168.1.70> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org Den 19. aug. 2009 kl. 09.00 skrev Sina Khakbaz Heshmati: > "Sjur Moshagen" said: > >> Den 18. aug. 2009 kl. 17.07 skrev Sjur Moshagen: >> >>> Den 18. aug. 2009 kl. 16.24 skrev Thorsten Scherler: >>> >>>> the way you call it is not correct. the above should read >>>> >>> href="lm:/exslt-extensions/date.add.template.xsl" /> >> >> Internal Server Error >> Message: null >> ... >> cause >> unknown protocol: lm >> >> Any idea on how to make the protocol 'known' to the xsl processor in >> Cocoon? > > As far as such references are concerned in XSLT stylesheets, how > about using fully qualified URLs and resolve those URLs using XML > Catalogs. *At least* two reasons why this is worth considering: > > (1) Results in more natural XSLT stylesheets for those reading -- > debugging-- the stylesheet. No-one knows what the lm: is but almost > everyone knows HTTP. > > (2) Most XSLT stylesheets are likely to be used in alternate > environments where locationmap is not necessarily present. This is not about using stylesheets, only about finding a way to look up a file that both is understandable by the xslt processor (from Cocoon, on which Forrest is built) and fits reasonably well within the existing forrest infrastructure. Best regards, Sjur