cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: Saxon
Date Wed, 23 Jun 2004 11:00:45 GMT
   Date: 2004-06-23T04:00:45
   Editor: DavidCrossley <crossley@apache.org>
   Wiki: Cocoon Wiki
   Page: Saxon
   URL: http://wiki.apache.org/cocoon/Saxon

   added test text to the last line only

Change Log:

------------------------------------------------------------------------------
@@ -2,50 +2,50 @@
 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>
+{{{
+<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>
+{{{
+<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>
+{{{
+<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.
 
 ----
 == Saxon7.* and Cocoon-2.1.5 ==
-{{{
-... to be continued ...
+{{{
+... to be continued ...
 }}}
 
 There is a problem with XSP in combination with Saxon7. When the Saxon libraries are in your
classpath, the root element of a page generated by XSP gets two extra namespace attributes:
-{{{
-xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsp="http://apache.org/xsp"
+{{{
+xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsp="http://apache.org/xsp"
 }}}
 This is only noticeable if the XSP generator is immediately followed by a serializer. In
this case, Internet Explorer will complain: ''The namespace prefix is not allowed to start
with the reserved string "xml".''
 Firefox won't mind these namespace prefixes.
@@ -60,4 +60,4 @@
  1. Discussion: [http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102248410901124 Re:
Saxon and Cocoon]
  1. Discussion: [http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=103114330121800 Re:
default xsl transformer?]
  1. Discussion: [http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=104403403124898 Re:
BUG: EmptyStackException] - Timothy Larson describes how he configured Saxon
- 1. Discussion: [http://marc.theaimsgroup.com/?t=108009658000004 Re: Using Saxon 7.9 with
Cocoon?] (note Vadim's comment about needing CVS version of excalibur-xmlutils)
+ 1. Discussion: [http://marc.theaimsgroup.com/?t=108009658000004 Re: Using Saxon 7.9 with
Cocoon?] (note Vadim's comment about needing CVS version of excalibur-xmlutils) added test
text

Mime
View raw message