cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] Saxon Thu May 20 20:00:02 2004
Date Thu, 20 May 2004 18:00:03 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=Saxon , version: 7 on Wed May 20 17:58:05 2004
by DavidCrossley

- __Note:__ This FAQ is under development via this Wiki. Please extract summary content from
these sources.
- If it gets too much for an FAQ then it can become a How-to.
+ !!Saxon6.5.2 and Cocoon-2.1.5
+ Add saxon6.5.2.jar to lib/local/
+ 
+ Edit src/webapp/WEB-INF/cocoon.xconf and declare the component for Saxon after the other
xslt-processor components ...
+ {{{
+ <component logger="core.xslt-processor"
+     role="org.apache.excalibur.xml.xslt.XSLTProcessor/saxon"
+     class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl">
+   <parameter name="use-store" value="true"/>
+   <parameter name="incremental-processing" value="false"/>
+   <parameter name="transformer-factory" value="com.icl.saxon.TransformerFactoryImpl"/>
+ </component>
+ }}}
+ 
+ Edit src/webapp/samples/hello-world/sitemap.xmap to add the "xslt-saxon" transformer ...
+ {{{
+ <map:components>
+   <map:transformers default="xslt">
+     <map:transformer name="xslt-saxon" pool-grow="2" pool-max="32" pool-min="8"
+         src="org.apache.cocoon.transformation.TraxTransformer">
+       <use-request-parameters>false</use-request-parameters>
+       <use-browser-capabilities-db>false</use-browser-capabilities-db>
+       <xslt-processor-role>saxon</xslt-processor-role>
+     </map:transformer>
+   </map:transformers>
+ </map:components>
+ }}}
+ 
+ Add a sitemap match to use the xslt-saxon transformer ...
+ {{{
+ <map:match pattern="hello.html">
+   <map:generate src="content/hello.xml"/>
+   <map:transform type="xslt-saxon" src="style/xsl/page2html.xsl"/>
+   <map:serialize type="html"/>
+ </map:match>
+ }}}
+ 
+ Raise the log level to build.webapp.loglevel=DEGUG and look in core.log to see Saxon being
used.
- Remove xalan-2.3.1.jar from the WEB-INF/lib, drop in saxon-6.5.2.jar instead, restart.
- (Extracted from Vadim comments in source #5 below. Is that really all that is required?)
+ !!Saxon7.* and Cocoon-2.1.5
+ {{{
+ ... to be continued ...
+ }}}
+ 
- Other starting points:
+ Some other discussion points (be careful, there are some furphies which may confuse you):



Mime
View raw message