[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

call another XSL

Subject: call another XSL
From: Rosa I-Ting Cheng <Rosa@xxxxxxxxxxxxx>
Date: Mon, 12 Feb 2001 11:11:15 +1100
calling xsl from another xsl
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.