[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
xhtml multiple stylesheets
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.