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. 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>
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.
ReplyDeleteit means more reading for me.
thanks for sharing!