This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: header/footer: How to to separate html-tag in to different xsl-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 different xsl-template rules?
- From: zze-wokup balr001 <wokup dot balr001 at rd dot francetelecom dot fr>
- Date: Fri, 23 Jun 2000 14:41:46 +0200
- Reply-To: xsl-list at mulberrytech dot com
Hi,
This goes can be to you to inspire.
-----------------------------------------------------
<xsl:template name="myHtml">
<html>
<head>
<xsl:call-template name="header"/>
</head>
<body>
<xsl:call-template name="body"/>
</body>
<xsl:call-template name="footer"/>
</html>
</xsl:template>
<xsl:template name="header">
<xsl:apply-templates select="header"/>
<!-- bla bla -->
</xsl:template>
<xsl:template name="body">
<!-- bla bla -->
</xsl:template>
<xsl:template name="footer">
<xsl:apply-templates select="footer"/>
<!-- bla bla -->
</xsl:template>
<xsl:template match="header">
<!-- bla bla -->
</xsl:template>
<xsl:template match="footer">
<!-- bla bla -->
</xsl:template>
-------------------------------------------------
or
<xsl:template name="myHtml">
<xsl:element name="HTML">
<xsl:element name="head">
<xsl:call-template name="header"/>
</xsl:element>
<xsl:element name="body">
<xsl:call-template name="body"/>
</xsl:element>
<xsl:call-template name="footer"/>
</xsl:element>
</xsl:template>
Hope this helps,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PF Lemosquet
e-mail: wokup.balr001@rd.francetelecom.fr
Société Wokup!
http://www.wokup.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----Message d'origine-----
De: Hans-Guenter Stein [mailto:Hans-Guenter.Stein@siteos.de]
Date: vendredi 23 juin 2000 10:07
À: xsl-list@mulberrytech.com
Objet: 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