Hello Xavier,

Thanks for your answer, but ..... mmhh

Assuming that the x:transform() function is executed server-side,
I'd expect to add the saxon-jar to the server classpath e.g.
<jetty>/lib/ext or <tomcat>/lib/endorsed
and optionally, additionally add some property setting
to guide the server to use sf.net.saxon.TransformerFactoryImpl
instead of org.apache.xalan.processor.TransformerFactoryImpl

Following your approach I do get errors stating the v2.0-stylesheet could not 
be compiled.
The error messages are indicating that still the standard xslt-processor is 
used.
The stylesheet itself is working as I do use it in Orbeon forms sucessfully.
A v1.0-stylesheet is properly processed.

Following my above mentioned approach I do get an unspecified error:
Failed to compile stylesheet. 1 error detected.
This error occurs for v1.0 and v2.0-stylesheets,
I therfore assume that the saxon as such is not properly recognized.

How can I increase the verbosity of error messages, in which log-file can 
detailed
error messages been seen?

Best Regards
Roman Klein


-----Original Message-----
From: Xavier Franc [mailto:[email protected]]
Sent: Mittwoch, 4. April 2012 16:07
To: [email protected]; Roman Klein
Subject: Re: [Qizx] XSLT 2.0 and x:transform()

Hello Roman,

Qizx supports XSLT through the standard JAXP interface
therefore it is sufficient to add the Saxon jar to your classpath.

for example copy saxon9he.jar to QIZX/lib/

then modify the Qizx scripts (eg qizxstudio or qizxstudio.bat) to include
the jar:
there is a line provided for that purpose:
        jars=$jars:$dlib/saxon9he.jar


and that's it, you can invoke the XSLT processor:

x:transform(doc("mydoc.xml"), "stylesheet.xsl", <parameters p1="xxx"/>)

regards


--
Xavier Franc
Qizx design and development


On Wed, 04 Apr 2012 09:56:57 +0200, Roman Klein <[email protected]>
wrote:

> Hello all,
>
> I would like to transform an xml-document with the x:transform()
> built-in function.
> The Xalan-processor does not support Version 2.0 stylesheets, which I
> need.
> Is it possible to switch to e.g. Saxon-processor? If yes, how?
>
> Best Regards
> Roman

Rote Liste Service GmbH
Firmensitz: Mainzer Landstr. 55, 60329 Frankfurt am Main
Registergericht: Amtsgericht Frankfurt am Main, HRB 42436
Geschäftsführer: Roman Klein, Marlies Langendorf, Dr. Ulrich Vorderwülbecke
 
--
Qizx Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/qizx-support

Reply via email to