Author |
Message
|
vmurali_au |
Posted: Wed Aug 30, 2006 11:51 am Post subject: Choosing different XSL Parser in XMLTransformation node ??? |
|
|
 Voyager
Joined: 26 Mar 2004 Posts: 76
|
Can i make the Broker to use different XSL parser for transformation in the XMLTransformation node?
My guess is MB is using Xalan to transform XML. But Xalan supports only XPath 1.0. I want to use Saxon 8.x as it supports XSLT 2.0 and XPath 2.0.
Also, can i send runtime parameters to the XMLTransformation node for use in the stylesheet? By runtime parameters i mean not the XSL file name and directory, but some other dynamic content that can be used in transformation.
Currently i require to use datetime functions in my XSL. XPath 1.0 doesnt provide any support for datetime functions. Can i invoke external java functions from the XSL to achieve this functionality? How to do it? |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Aug 30, 2006 11:57 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can write a JCN that calls Saxon. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vmurali_au |
Posted: Wed Aug 30, 2006 12:33 pm Post subject: |
|
|
 Voyager
Joined: 26 Mar 2004 Posts: 76
|
Thanks Jeff.
But then i'm losing the advantage that is provided by XMLTransformation node, which is precompiled cached Stylesheets.
So this approach also has disadvantages.
Is there anyway i can make the XMLTransformation node itslef to use Saxon, thereby also taking advantage of pre-compiled stylesheets. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Aug 30, 2006 12:35 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can build a persistant cache for compiled stylesheets in a JCN using a singleton - then you can get this advantage.
I'd be surprised if there were a way to change how any of the presupplied nodes work, including something like changing what XSLT engine the XLT node uses.
Among other things, there's some reasonable chance that the XLT node is written in C, and not Java. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vmurali_au |
Posted: Wed Aug 30, 2006 1:15 pm Post subject: |
|
|
 Voyager
Joined: 26 Mar 2004 Posts: 76
|
I want to call external java functions from my XSL stylesheet. So i want to know is it possible?
Also what parser is internally used by XMLTransformation node. I remember reading somewhere that it is Xalan.
I want this information as procedure for calling external java function from a stylesheet differs from parser to parser.
Any info on the above would be helpful. |
|
Back to top |
|
 |
XZ |
Posted: Thu Aug 31, 2006 1:36 am Post subject: |
|
|
 Apprentice
Joined: 22 May 2006 Posts: 45 Location: IBM Hursley
|
call external java functions. The node is based on Xalan and uses Xerces (parser). You can not change it. _________________ Regards,
-XZ
WMQI Development |
|
Back to top |
|
 |
|