Sunday, May 6, 2012

How to reference another XSLT from WSO2 ESB registry.

WSO2 ESB 4.0.3 is used for this.

1. If xslinclude.xsl needs to include xslincludefile.xsl , you have to include the following line in xslinclude.xsl.
<xsl:include href="xslincludefile.xsl" />

2. Next include the following in the synapse configuration.

 <xslt key="conf:/xslinclude.xsl">
         <resource location="xslincludefile.xsl" key="conf:/xslincludefile.xsl" />
  </xslt>  

1 comment:

  1. I didn't know that it is possible to do that in xslt, web development. just thinking of it gives me an idea to order the templates in different file and make a clean development.

    it means more reading for me.

    thanks for sharing!

    ReplyDelete

Using Zotero for academic writing