This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Doesn't' work // FW: How To Include external XSL files into a master XSL file


I attempted to use the
<xsl:include ...>
directive ....
inside of the master xsl file as follows
 
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org>
 
<!-- include the header.xsl file here -->
<!-- how to include syntax here -->
<xsl:include href="header.xsl">
</xsl:include>
 
<!-- include the data.xsl file here -->
<!-- how to include syntax here -->
 <xsl:template match="/">
 </xsl:template>
 
<!-- include the footer.xsl file here -->
<!-- how to include syntax here -->
 
<xsl:include href="footer.xsl">
</xsl:include>
 
</xsl:stylesheet>
 
but when the transformation takes place
all I get back from Internet Explorer 5.0
is the message that I cannot use
<xsl:include> in this location...
 
Does anyone have any insight as to how to
make the <xsl:include ...> function ??
 
Please advise
Jim Garrett
jgarrett@navix.net
-----Original Message-----
From: Jim Garrett [mailto:jgarrett@navix.net]
Sent: Wednesday, February 16, 2000 12:26 PM
To: XSL-List@mulberrytech.com
Subject: How To Include external XSL files into a master XSL file

 
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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]