This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Combining stylesheets for baseclass-subclass type documents
- From: Robert Koberg <rob at koberg dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 31 Dec 1969 16:49:49 -0800
- Subject: Re: [xsl] Combining stylesheets for baseclass-subclass type documents
- References: <fc.0064b54a0167c46c0064b54a0167c46c.167c4b5@utb.sandviken.se>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
Can you break out the common templates/variables/params into separate
XSL documents? This way you can directly target your unique
circumstance. For example, what i do is have a global_defintions.xsl
that includes all the common XSLT documents (variables, params) that
have common usage. Then in the unique XSLTs, I just include
global_defintions.xsl. When you need the unique view you call the unique
XSLT doc which includes the common stuff.
best,
-Rob
Daniel Brockman wrote:
>I need help designing a couple of stylesheets that both transform similar
>source types; the first stylesheet transforms the base type while the
>second
>stylesheet transforms an extension to this type.
>
>The first stylesheet, a.xsl, provides the a-specific information. It has
>to be
>independant of the second stylesheet, b.xsl, which provides the b-specific
>information. By definition, the second stylesheet, b.xsl, cannot provide
>the a-
>specific information.
><snip/>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list