This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:include blues..
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] xsl:include blues..
- From: Ben Robb <b dot robb at cscape dot com>
- Date: Tue, 13 Feb 2001 11:00:06 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
If you *really* want it in your include file (there was one time when I
did), it can be done by having the following:
===============================
in the include page
===============================
<xsl:template name="headandfoot">
my header info
<xsl:call-template name="main"/>
my footer info
</xsl:template>
===============================
in the main XSLT page
===============================
<xsl:template match="/">
<xsl:call-template name="headandfoot"/>
</xsl:template>
<xsl:template name="main"/>
and now I can do what I wanted to with the XML.
</xsl:template>
Its a bit messy, chopping between them, but it gets the job done.
Ben
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list