This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Including a common HTML Header
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Including a common HTML Header
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 11 May 2001 19:59:43 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I am building a document publishing web site with the content
> stored in XML.
> Since all pages will include the same HTML tags and images as a header
> portion, I would like to keep this in one place and include it in each
> stylesheet. Is there a simple way to include common pieces
> such as this?
The obvious answer is xsl:include.
In fact, it's not quite so simple, because the chances are that the common
parts have variable content. So you may need to generate the common parts
using named templates that take a parameter holding the variable content.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list