You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by do...@cocoon.apache.org on 2004/08/09 14:59:30 UTC
[Cocoon Wiki] Updated: XSLTC
Date: 2004-08-09T05:59:29
Editor: VadimGritsenko <vg...@apache.org>
Wiki: Cocoon Wiki
Page: XSLTC
URL: http://wiki.apache.org/cocoon/XSLTC
no comment
Change Log:
------------------------------------------------------------------------------
@@ -4,16 +4,16 @@
In the "xslt processor" section of cocoon.xconf, add[[BR]]
[[BR]]
-{{{
- <xslt-processor class="org.apache.cocoon.components.xslt.XSLTProcessorImpl"
- logger="core.xslt-processor"
- role="org.apache.cocoon.components.xslt.XSLTProcessor/XSLTC"
- >
- <parameter name="use-store" value="true"/>
- <parameter name="transformer-factory"
- value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"
- />
- </xslt-processor>
+{{{
+ <xslt-processor class="org.apache.cocoon.components.xslt.XSLTProcessorImpl"
+ logger="core.xslt-processor"
+ role="org.apache.cocoon.components.xslt.XSLTProcessor/XSLTC"
+ >
+ <parameter name="use-store" value="true"/>
+ <parameter name="transformer-factory"
+ value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"
+ />
+ </xslt-processor>
}}}
There are two differences between this and the regular xslt component declaration:
@@ -25,20 +25,20 @@
In the transformers section of your sitemap, add:[[BR]]
[[BR]]
-{{{
- <map:transformer name="xslt-xsltc"
- logger="sitemap.transformer.xslt"
- src="org.apache.cocoon.transformation.TraxTransformer"
- pool-max="32"
- pool-min="16"
- pool-grow="4"
- >
- <use-request-parameters>false</use-request-parameters>
- <use-browser-capabilities-db>false</use-browser-capabilities-db>
- <xslt-processor-role>
- org.apache.cocoon.components.xslt.XSLTProcessor/XSLTC
- </xslt-processor-role>
- </map:transformer>
+{{{
+ <map:transformer name="xslt-xsltc"
+ logger="sitemap.transformer.xslt"
+ src="org.apache.cocoon.transformation.TraxTransformer"
+ pool-max="32"
+ pool-min="16"
+ pool-grow="4"
+ >
+ <use-request-parameters>false</use-request-parameters>
+ <use-browser-capabilities-db>false</use-browser-capabilities-db>
+ <xslt-processor-role>
+ org.apache.cocoon.components.xslt.XSLTProcessor/XSLTC
+ </xslt-processor-role>
+ </map:transformer>
}}}
Note that you are specifying the processor with the role you assigned earlier.
@@ -51,11 +51,11 @@
I also noticed (minor) incompatibilities between xsltc and Xalan. (I had trouble with document('x'), and found a weird problem with <xsl:variable name="x" select="normalize-space(y)"/> which I fixed by rewriting it as <xsl:variable name="x"><xsl:value-of select="normalize-space(y)"/>...).
-Many thanks to [:Vadim] for his help with this.
+Many thanks to [wiki:VadimGritsenko Vadim] for his help with this.
----
I am unable to get this to work with 2.0.4 - Cocoon Confusion results.
-''can someone confirm this, please? I'm considering using 2.0.4 + xsltc''
+''can someone confirm this, please? I'm considering using 2.0.4 +