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]

call 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


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