You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Spencer Tickner <sp...@qp.gov.bc.ca> on 2007/11/16 17:50:45 UTC
cocoon 2.2 and Saxon
Hi List,
Thanks in advance for any help. I've been playing around with cocoon 2.2,
and need to use XSLT 2.0 for a transformation. After scouring the web I
can't figure out how to integrate Saxon into the new cocoon model. So far
I've created a few Blocks as per the 2.2 tutorials using maven that all work
fine.
Thanks,
Spencer
Re: cocoon 2.2 and Saxon
Posted by Grzegorz Kossakowski <gk...@apache.org>.
Spencer Tickner pisze:
> Hi List,
>
>
>
> Thanks in advance for any help. I've been playing around with cocoon
> 2.2, and need to use XSLT 2.0 for a transformation. After scouring the
> web I can't figure out how to integrate Saxon into the new cocoon model.
> So far I've created a few Blocks as per the 2.2 tutorials using maven
> that all work fine.
Have you tried to:
- add saxon as dependency to your block's pom:
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>saxon</artifactId>
<version>8.7</version>
</dependency>
- create a file named cocoon-core-xslt-saxon.xconf with following content:
<components>
<!--+
| Saxon XSLT Processor
+-->
<component logger="core.xslt"
role="org.apache.excalibur.xml.xslt.XSLTProcessor/saxon"
class="org.apache.cocoon.components.xslt.TraxProcessor">
<parameter name="use-store" value="true"/>
<parameter name="transformer-factory" value="net.sf.saxon.TransformerFactoryImpl"/>
</component>
</components>
Then it should work with following usage in a sitemap:
<map:transform src="..." type="saxon"/>
HTH.
--
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org