RE: [xsl] Headers 'n Footers 'n XSL

Subject: RE: [xsl] Headers 'n Footers 'n XSL
From: "Tim Watts" <timw@xxxxxxx>
Date: Wed, 21 Mar 2001 10:57:49 +1100
Jon,

The alternative way to do this is to have the *external* template as the
main one and call the template contained in the XSL file you are using.

The advantage in this is that you won't have to have to type the html and
body tags (and associated code) over again in each page

I think that would save your fingers a little more.

Tim

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Jon Wynacht
Sent: Wednesday, 21 March 2001 10:19 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] Headers 'n Footers 'n XSL


Ben,

This works great!

Thanks,

Jon

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Lors, Ben
Sent: Tuesday, March 20, 2001 1:32 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: RE: [xsl] 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@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



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread