This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: newbie : dynamic include



> Is it possible to include a file in a dynamic way?

Not from within XSL<xsl:variable

> <xsl:variable name="include">include.xsl</xsl:variable>
> <xsl:include href="{$include}"/>

the xsl files need to be included first as otherwise you couldn't
evaluate (in general) the variable.

In some contexts it is possible to load the stylesheet into memory
and then dynamically alter it via dom scripting or some such before
applying it to the document)

Or of course you can use XSL to transfrom the stylesheet, writing out a
new stylesheet that is applied to the document.

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]