This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: header/footer: How to to separate html-tag in to differentxs l-template rules?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: header/footer: How to to separate html-tag in to differentxs l-template rules?
- From: "Carlson, Thor" <CarlsonT at DNB dot com>
- Date: Fri, 23 Jun 2000 08:12:26 -0400
- cc: "'Hans-Guenter dot Stein at siteos dot de'" <Hans-Guenter dot Stein at siteos dot de>
- Reply-To: xsl-list at mulberrytech dot com
Here's one way:
<xsl:template match="/">
<HTML>
<HEAD>
<xsl:apply-templates select="header"/>
</HEAD>
<BODY>
<xsl:apply-templates select="footer"/>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="header">
<!-- some stuff -->
</xsl:template>
<xsl:template match="footer">
<!-- some stuff -->
</xsl:template>
- Thor
----------------------------------
Thor Carlson
Dun & Bradstreet
carlsont@dnb.com
-----Original Message-----
From: Hans-Guenter Stein [mailto:Hans-Guenter.Stein@siteos.de]
Sent: Friday, June 23, 2000 4:07 AM
To: xsl-list@mulberrytech.com
Subject: header/footer: How to to separate html-tag in to different
xsl-template rules?
How could I separate headers and footers in my xsl-templates? My problem
is, that I cannot have a tag like "body" in an <xsl:template>, whithout
closing it.
So how to do:
<xsl:template match="header">
<html>
<head>
</head>
<body>
</xsl:template>
<xsl:template match="footer">
</body>
</html>
</xsl:template>
Hans-Guenter
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list