Friday, April 27, 2012

How to get XSLT 2.0 Support with WSO2 ESB (4.0.3)


WSO2 ESB 4.5.0 has XSLT 2.0 support. [1]. and the following is NOT required for WSO2 ESB 4.5.0


XSLT 2.0 is supported on WSO2 4.0.3. Follow the steps given below in order to get the XSLT support.

1. Remove xalan-2.7.0.wso2v1.jar in ESB_HOME/lib/endorsed/
2. Remove saxon-8.9.0.wso2v1.jar from ESB_HOME/repository/components/plugins
3. Copy the saxon9he.jar (which is available at [2]) to lib/endorsed and start the server.

[1] http://dist.wso2.org/products/enterprise-service-bus/4.5.0/release-notes.html
[2] saxon9he.ja

2 comments:

  1. Many thanks for this one!

    The ESB will not tell you that the version 2.0 of the XSLT is not supported. You will just get odd output.

    ReplyDelete
  2. As soon as I enable this I am getting error regarding "Try it" service.


    [2012-09-10 11:47:03,491] INFO - CarbonAuthenticationUtil 'admin' logged in at [2012-09-10 11:47:03,0491] from IP address 0:0:0:0:0:0:0:1%0
    Warning: at xsl:stylesheet on line 32 of :
    Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
    Warning: on line 286 of :
    The attribute axis starting at a namespace() node will never select anything
    Error on line 1603 of :
    XPTY0004: Required item type of second operand of '|' is node(); supplied value has item
    type xs:string
    [2012-09-10 11:47:09,515] ERROR - Util Required item type of second operand of '|' is node(); supplied value has item type xs:string
    ; SystemID: ; Line#: 1603; Column#: -1
    net.sf.saxon.trans.DynamicError: Required item type of second operand of '|' is node(); supplied value has item type xs:string


    ReplyDelete

Using Zotero for academic writing