[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: multiple stylesheets in one
Subject: RE: multiple stylesheets in one From: Kay Michael <Michael.Kay@xxxxxxx> Date: Fri, 21 Jul 2000 15:39:23 +0100 |
> that uses a stylesheet that includes this data plus three other > (essentially) static > html files. > > ie :- > > header.xsl > data.xsl - using the above xml file > footer.xsl > If header.xsl is completely fixed (ie.. it is really header.xhtml) then the simplest thing to do to include it in the output is <xsl:copy-of select="document('header.xhtml')"/> An alternative is to wrap it up as an xsl variable: <xsl:stylesheet ...> <xsl:variable name="header"> ... here goes your header HTML ... </xsl:variable> </xsl:stylesheet> Then you can use the top-level element <xsl:include href="header.xsl"/> to include this in your main stylesheet module, and the instruction <xsl:copy-of select="$header"/> to copy the contents to the output file at the place you want it. But it only really makes sense to do this if it's not fixed, e.g. it can contain <xsl:value-of select="$xyz"/> to substitute a global variable defined in the main stylesheet module. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: AW: document() and position(), Gary L Peskin | Thread | RE: multiple stylesheets in one, Matt Watson |
multiple stylesheets in one, Matt Watson | Date | document() function..., Martin_Genhart |
Month |