This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
call another XSL
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] call another XSL
- From: Rosa I-Ting Cheng <Rosa at ceanet dot com dot au>
- Date: Mon, 12 Feb 2001 11:11:15 +1100
- Reply-To: xsl-list at lists dot mulberrytech dot com
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