Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 77314 invoked from network); 12 Oct 2006 08:02:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Oct 2006 08:02:22 -0000 Received: (qmail 39343 invoked by uid 500); 12 Oct 2006 08:02:20 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 39270 invoked by uid 500); 12 Oct 2006 08:02:20 -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 List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 39258 invoked by uid 99); 12 Oct 2006 08:02:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2006 01:02:20 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2006 01:02:19 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B93DB7142DF for ; Thu, 12 Oct 2006 01:01:36 -0700 (PDT) Message-ID: <19066171.1160640096756.JavaMail.jira@brutus> Date: Thu, 12 Oct 2006 01:01:36 -0700 (PDT) From: =?utf-8?Q?J=C3=B6rg_Heinicke_=28JIRA=29?= To: dev@cocoon.apache.org Subject: [jira] Updated: (COCOON-1881) Xinclude transformer has changed behaviour with Saxon 8.7.1 In-Reply-To: <14242172.1152775664186.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/COCOON-1881?page=3Dall ] J=C3=B6rg Heinicke updated COCOON-1881: ---------------------------------- Component/s: - Components: Sitemap (was: Blocks: (Undefined)) > Xinclude transformer has changed behaviour with Saxon 8.7.1 > ----------------------------------------------------------- > > Key: COCOON-1881 > URL: http://issues.apache.org/jira/browse/COCOON-1881 > Project: Cocoon > Issue Type: Bug > Components: - Components: Sitemap > Affects Versions: 2.1.8, 2.1.10-dev (current SVN) > Reporter: Philip Fennell > Attachments: xinclude.tar.gz > > > With Windows XP sp2, Cocoon 2.1.8, Tomcat 5.5 and Saxon 8.6.1 or 8.7 conf= igured as the default XSLT transformer I was able to embed xi:include instr= uctions within source documents and have Cocoon's Xinclude processor resolv= e the URL (relative to the source document) correctly. > e.g. > > login.xml not included. > However, when I moved to Saxon 8.7.1 (and also with 8.7.3) the xinclude f= ails to locate the referenced file unless I change the href attribute so th= at the url is relative to the current Cocoon context. > e.g. > > login.xml not included. > Important Note: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > It is important to understand that I am 'NOT' using Cocoon to process the= requested document but rather to process the request (by using Cocoon's re= quest generator) information itself, which includes a refernece to the orig= inal requested document. The request info is transformed into an 'envelope'= containing the request parameters, HTTP header info and an interface defin= ition file that may contain xi:include instructions that reference addition= al static content. It is these xi:include instructions that are at the cent= re of the problem. The example is in: > xinclude/interface/config/login.xml > The Cocoon pipeline match that does all the work can be found starting at= line 182 of sitemap.xmap. > During the processing, the requested content and referenced content merge= d and transformed into XHTML within the main rendering transform: > xinclude/interface/transforms/xhtml/screen.xsl > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > To run the test webapp that I have attached you will need to set-up Cocoo= n as follows: > 1) Add the following lines to cocoon/WEB-INF/cocoon.xconf: > role=3D"org.apache.excalibur.xml.xslt.XSLTProcessor/saxon" > class=3D"org.apache.excalibur.xml.xslt.XSLTProcessorImpl"> > > > > > after the Xalan component declaration. > 2) Get Saxon 8.7 and 8.7.3 from http://www.saxonica.com/ and place the fo= llowing jars in cocoon/WEB-INF/lib > saxon8.jar > saxon8-dom.jar > saxon8-xpath.jar > 3) Unpack the attached ZIP file (xinclude.zip) in your cocoon directory > 4) Use the following link to access the test page: > http://localhost:8080/cocoon/xinclude/interface/config/login.html > (Depending on host and port number etc you may need to tweak this url.) --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira