cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fleischer Roman <roman.fleisc...@siemens.com>
Subject Using Saxon 7.6 with cocoon2.1
Date Mon, 15 Sep 2003 12:50:36 GMT
Hi,

does anybody a solution for using saxon instead of xalan? I´m using
cocoon2.1 and try to change the XSLT-Processor to Saxon. In the cocoon.xconf
I added the entry

<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="false"/>
  <parameter name="transformer-factory"
value="net.sf.saxon.TransformerFactoryImpl"/>
</component>

and in the sitemap.xmap:

<map:transformer name="xslt" pool-grow="2" pool-max="32" pool-min="8"
src="org.apache.cocoon.transformation.TraxTransformer">
	<use-request-parameters>false</use-request-parameters>
	<use-session-parameters>false</use-session-parameters>
	<use-cookie-parameters>false</use-cookie-parameters>
	
<xslt-processor-role>org.apache.excalibur.xml.xslt.XSLTProcessor/saxon</xslt
-processor-role>
</map:transformer> 

I copied the files saxon.jar and saxon-jdom.jar to the lib-directory of
cocoon,but I get the following error:

Original Exception: javax.xml.transform.TransformerException: Cannot compare
xs:boolean to xs:string at
net.sf.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:
105) at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
at
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer
.java:529) at
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStrea
mInterpreter.java:120) at
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByt
eStreamInterpreter.java:110) at
org.apache.cocoon.components.profiler.ProfilingXMLPipe.endDocument(Profiling
XMLPipe.java:136) at
org.apache.cocoon.generation.RequestGenerator.generate(RequestGenerator.java
:215) at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLP
ipeline(AbstractProcessingPipeline.java:548) at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
.processXMLPipeline(AbstractCachingProcessingPipeline.java:196) at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
tractProcessingPipeline.java:492) at
org.apache.cocoon.components.profiler.ProfilingCachingProcessingPipeline.pro
cess(ProfilingCachingProcessingPipeline.java:290) at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:150).................................. 

Do I need a special excalibur-util like:
"avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/xpath
Saxon6ProcessorImpl.java Saxon7ProcessorImpl.java"? Where can I get this
util?

Thanks for any help

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message