|
Subject: RE: [xsl] Headers 'n Footers 'n XSL From: "Lors, Ben" <Lors.Ben@xxxxxxxxxxxxx> Date: Tue, 20 Mar 2001 15:31:41 -0600 |
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@xxxxxxxxxxxxx
-----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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Headers 'n Footers 'n XSL, Tim Watts | Thread | RE: [xsl] Headers 'n Footers 'n XSL, Jon Wynacht |
| [xsl] Headers 'n Footers 'n XSL, Jon Wynacht | Date | Re: [xsl] Headers 'n Footers 'n XSL, Arni J Rognvaldsson |
| Month |