[xsl] call another XSL

Subject: [xsl] call another XSL
From: Rosa I-Ting Cheng <Rosa@xxxxxxxxxxxxx>
Date: Mon, 12 Feb 2001 11:11:15 +1100
Anyone know how to call in an XSL in the middle of the another XSL? because
if say i had import/include within a template, the browser conplains about
import/include not being able to be used there.
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:template match="/" xml:space="preserve">
   <xsl:variable name="xslFile" select="/document/stylesheet/Menu/@XSL"/>
   <xsl:import href="/XSLFile/{$xslFile}"/>
   <xsl:apply-templates/>
</xsl:template>

</xsl:stylesheet>

I have a XML which has a list of different XSL pages that the page will use
at various times.  And this stylesheet will be named between the
stylesheet/Menu tag.  The above way is wrong (it doesn't work).  how else
can i import/include this XSL file between the stylesheet/menu tag?!

thanx

Rosa

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


Current Thread