Hmm, I can't remember any change between 2.1m1 and 2.1 that should have influence on the working of Saxon. But as I already said, the problem does not look like a problem with Saxon but a maybe more strict validation handling in Saxon 7.6. As far as I know Vadim uses Saxon without any problems within Cocoon. I don't know which version of Saxon, but at least with an already up to date Cocoon. Maybe he can add anything?

Joerg

Fleischer Roman wrote:

Hello Joerg,

I wonder why my sheets work well with cocoon 2.1m1 and saxon 6.5.2 and also
with cocoon2.1 and the default xalan XSLT-Processor. But I got crazy effects
when using cocoon2.1 and saxon 6.5.2 and the described error when using
cocoon 2.1 with saxon 7.6. I did not change anything in the sheets.

Thanks,

-----Original Message-----
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Sent: Montag, 15. September 2003 17:16
To: [EMAIL PROTECTED]
Subject: Re: Using Saxon 7.6 with cocoon2.1


Hello Roman,


AFAIK you don't need anything specific in Excalibur XML util. Saxon is TRaX compatible and so it should work.

From the error I guess you have an error in an XML file that's validated against an XML Schema ("Cannot compare xs:boolean to xs:string ..."). I don't know of any default usage of XML Schema in Cocoon, so you have to look

where you use it.

Regards,

Joerg

Fleischer Roman wrote:

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:


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to