This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
multiple stylesheets in one
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: multiple stylesheets in one
- From: Matt Watson <Matt dot Watson at rufusleonard dot co dot uk>
- Date: Fri, 21 Jul 2000 13:16:25 +0100
- Reply-To: xsl-list at mulberrytech dot com
Hi,
I'm trying to evaluate cocoon for a project I need to do for a client.
What I want to test - I'm a nembie - is combining multiple stylesheets into
one document. I have seen some references to this in the nulberrytech lists
but nothing specifically seems to answer my question.
What I want to do is.
have an xml file
<?xml...>
<people>
<person age="50" name="larry"/>
<person age="50" name="larry"/>
</people>
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
I want the header.xsl to contain html that defines the menuing system for
the page ie. something like
<table>
<tr>
<td>
<a href="/">Home</a>
</td>
<td>
<a href="/movies/">Movies</a>
</td>
<td>
<a href="/shop/">Shop</a>
</td>
</table>
whereas the footer will have the usual copyright stuff. ie.
<table><tr><td>This is the copyright message</td></<tr></table>
I have seen reference to the include/import and call-template routines but I
don't really
understand how you use these. Will I have to put the contents of the header
and footer
into a xsl variable and use that or can I just incorporate the file
directly?
Any clues would be fantastic.
Thanks for your time.
-matt
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list