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]

RE: Headers 'n Footers 'n XSL


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


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