[ 
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.

Reply via email to