From dev-return-100620-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Mon Oct 06 07:38:36 2008 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 986 invoked from network); 6 Oct 2008 07:38:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Oct 2008 07:38:35 -0000 Received: (qmail 19063 invoked by uid 500); 6 Oct 2008 07:38:34 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 18686 invoked by uid 500); 6 Oct 2008 07:38:33 -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 18675 invoked by uid 99); 6 Oct 2008 07:38:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2008 00:38:33 -0700 X-ASF-Spam-Status: No, hits=-1999.9 required=10.0 tests=ALL_TRUSTED,DNS_FROM_SECURITYSAGE X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2008 07:37:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4EFBF234C21A for ; Mon, 6 Oct 2008 00:37:44 -0700 (PDT) Message-ID: <1748658499.1223278664322.JavaMail.jira@brutus> Date: Mon, 6 Oct 2008 00:37:44 -0700 (PDT) From: "Simone Tripodi (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Updated: (COCOON3-3) Provide an XInclude transformer as a PipelineComponent In-Reply-To: <2090234489.1222698584963.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COCOON3-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simone Tripodi updated COCOON3-3: --------------------------------- Attachment: XInclude.patch As mentioned on http://cocoon.apache.org/3.0/roadmap.html, the XInclude support is one of the unscheduled feature for cocoon 3.0.0 The attached patch provides the porting to Cocoon3's pipeline of old XInclude Transformer already present in previous releases; some TestCase are also provided. Just few notes: - As described in http://www.w3.org/TR/xinclude/, I managed the 'accept' and 'accept-language' attributes that weren't previously implemented; - I maintained the deprecated xpointer support; - The dependencies from old Excalibur's org.apache.excalibur.xml.xpath.* have been replaced with Java5 provided javax.xml.xpath.* - they are very similar; - The XPointer grammar has been adapted to be managed by the maven-javacc-plugin (generation + report); - The original DOMStreamer has been simplified; - I only adapted the existing code to the new structure and used Java5 generics, iterators where possible. I really hope this helps! :) > Provide an XInclude transformer as a PipelineComponent > ------------------------------------------------------ > > Key: COCOON3-3 > URL: https://issues.apache.org/jira/browse/COCOON3-3 > Project: Cocoon 3 > Issue Type: Improvement > Components: cocoon-pipeline > Reporter: Simone Tripodi > Assignee: Cocoon Developers Team > Priority: Minor > Attachments: XInclude.patch > > > Oldest versions of cocoon already contain an XInclude transformer, it could be a good starting point: > http://svn.eu.apache.org/repos/asf/cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/transformation/XIncludeTransformer.java > XPointer package's dependencies should be reduced to be imported in the new pipeline: > http://svn.eu.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer > An alternative solution could be using xerces2 APIs: > http://xerces.apache.org/xerces2-j/faq-xinclude.html -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.