[
Lists Home |
Date Index |
Thread Index
]
- From: Oliver Becker <obecker@informatik.hu-berlin.de>
- To: jgarrett@navix.net, xml-dev@lists.xml.org
- Date: Tue, 25 Jul 2000 12:40:38 +0200 (MET DST)
Hi Jim,
> >So my issue is to find a method to "simply" insert
> >the header, menu, footer and various structures in
> >the master table layout...not something I can do
> >"simply" with the current xsl...
>
> It seems to me that global variables and named templates and the xsl:copy-of
> instruction between them provide all the capability you need.
To be a little bit more detailed:
I think you probably try to include "in the wrong direction"
Your master stylesheet doesn't have to include something, but
will be included by others.
Instead of using <xsl:include> or <xsl:insert> you have to use
e.g. <xsl:call template name="menu"/>
This template may be defined in different versions in other
stylesheets, each of them includes your master stylesheet,
which in turn calls the "right" (specific) named template at the
appropriate position.
Accordingly you may define global variables with different values
in the specific stylesheets and use these variables in the master
stylesheet.
Does this solve your problem?
Regards,
Oliver
/-------------------------------------------------------------------\
| ob|do Dipl.Inf. Oliver Becker |
| --+-- E-Mail: obecker@informatik.hu-berlin.de |
| op|qo WWW: http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
|