This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Headers 'n Footers 'n XSL
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Headers 'n Footers 'n XSL
- From: "Lors, Ben" <Lors dot Ben at principal dot com>
- Date: Tue, 20 Mar 2001 15:31:41 -0600
- Reply-To: xsl-list at lists dot mulberrytech dot com
Here's how I've accomplished what you're talking about:
Put this code in your XSL file to pull in the header/footer file:
<xsl:include href="menu.xsl"/>
where "menu.xsl" is an XSL file that contains the header/footer that you need. Then, at the point where you need to actually insert the header/footer, you'd have code like this:
<!-- Include menu file -->
<xsl:call-template name="menu" />
Here's a sample of what menu.xsl might look like:
<xsl:template name="menu">
<table border='0' cellspacing='1'>
<tr>
<td><a href='somelink.html'><span class='menu'>Index</span></a></td>
<td><a href='somelink2.html'><span class='menu'>Index2</span></a></td>
<td><a href='somelink3.html'><span class='menu'>Index3</span></a></td>
<td><a href='somelink4.html'><span class='menu'>Index4</span></a></td>
</tr>
</table>
</xsl:template>
I'm pretty new to XSL (and just found this list today), but that's how I've done what you're describing.
Ben Lors
Principal Financial Group
Des Moines, IA
lors.ben@principal.com
-----Original Message-----
Subject: [xsl] Headers 'n Footers 'n XSL
I was wondering if anybody on this list has ever worked with headers and
footers and XSL.
<<snip>>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list