RE: [xsl] Conditional Include statements

Subject: RE: [xsl] Conditional Include statements
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 31 Mar 2009 09:15:28 +0100
No, it's not possible. Like most programming languages since the late 1950s,
XSLT stylesheets cannot modify themselves at run-time.

Now tell us what you want to achieve, and we can probably tell you the XSLT
way of doing it.

Michael Kay
http://www.saxonica.com/


> -----Original Message-----
> From: Tony Rowe [mailto:tony.rowe@xxxxxxxxxxxxxx]
> Sent: 31 March 2009 06:54
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Conditional Include statements
>
> Hi
> les
> In a stylesheet I have...
>
> <xsl:stylesheet version="1.0"
> xmlns:msxsl="urn:schemas-microsoft-com:xslt"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>                 <xsl:output method="text"
> encoding="ISO-8859-1"></xsl:output> <!--Note method is text here-->
>                
> <
> <xsl:include href="HLP xxx.xslt"/>
> ...
>
> But is it possible that I can put this include statement
> within a Template match, based upon some variable value?
>
> Tony

Current Thread