How to use an expression in xsl:include elment in an XSLT processing

Posted by addinquy on Stack Overflow See other posts from Stack Overflow or by addinquy
Published on 2010-05-04T09:21:04Z Indexed on 2010/05/04 13:58 UTC
Read the original article Hit count: 219

Filed under:
|

I need to include an XSLT that exists in 2 variants, depending on a param value. However, it's seems to be not possible to write an expression in the href attribute of the xsl:include element. My last trial looks like that:

< xsl:param name="ml-fmt" select="mono"/>

...
< xsl:include href="{$ml-fmt}/format.xsl"/>

The XSLT engine used is Saxon 9.2.0.6

Have anybody an idea about how I could do something close to that ?

© Stack Overflow or respective owner

Related posts about xslt

Related posts about xsl