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

How To Include external XSL files into a master XSL file

Subject: How To Include external XSL files into a master XSL file
From: "Jim Garrett" <jgarrett@xxxxxxxxx>
Date: Wed, 16 Feb 2000 12:25:35 -0600
jim garrett
 
What is the syntax to link multiple child style sheets into
a master style sheet ...
 
e.g.
header style sheet     header.xsl
footer style sheet      footer.xsl
data style sheet       data001.xsl
master style sheet.  master.xsl
 
this way i can always reference the master.xsl
style sheet from any/all   *.xml files
and then link in header.xsl (this one never changes)
then the appropriate data.xsl (this one changes)
then link the footer.xsl (this one never changes)
 
this way if I make any changes to the header
or the footer, they are edited in just one file
and reflected in all master.xsl files
 
 
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org>
<xsl:template match="/">
 
<!-- include the header.xsl file here -->
<!-- how to include syntax here -->
 
<!-- include the data.xsl file here -->
<!-- how to include syntax here -->
 
<!-- include the footer.xsl file here -->
<!-- how to include syntax here -->
 
 
</xsl:template>
</xsl:stylesheet>
 
also
what is the proper syntax in the included external xsl files
 
are they structured the same as the master.xsl file would
e.g.
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org>
<xsl:template match="/">
 
<!-- this is the header xsl file -->
 
</xsl:template>
</xsl:stylesheet>
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.