This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Is it possible to call xsl-StyleSheet from a different XSl-StyleSheet
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Is it possible to call xsl-StyleSheet from a different XSl-StyleSheet
- From: Philip dot Strube at ofd dot mf dot lsa-net dot de (Philip Strube)
- Date: Tue, 19 Dec 2000 08:49:28 +0100
- Organization: OFD Magdeburg
- References: <1FE58DA3D740D411BCBD00D0B774C146293A73@exchange.vizional.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi sirish Kumar vallabhu,
>
> My Header for all pages is Common So I Wanted to write a xsl file for the
> header and call it where ever it is required which I think is a good idea
> cause changes in one file could apply for the whole module ,Could any one
try something like this (i didnt test, watch out for typos):
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="header.xsl"/>
<xsl:template match="/">
<xsl:call-template name="mycommonheader"/>
write some more stuff for your page
</xsl:template>
</xsl:stylesheet>
and in another file named "header.xsl":
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="mycommonheader">
here goes your header
</xsl:template>
</xsl:stylesheet>
Viele Grüße, Philip
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list