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

Re: Combining stylesheets for baseclass-subclass type

Subject: Re: Combining stylesheets for baseclass-subclass type documents
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Sun, 14 Apr 2002 15:28:39 -0800
stylesheets subclass
Daniel Brockman wrote:

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.


Well, in a way, my a.xsl is like your global_definitions.xsl: stylesheets for unique circumstances (e.g., b.xsl) indeed include this base stylesheet. The problem lies in how the two need to be combined (explained and examplified in my previous message) under the restrictions in place:

a.xsl has to be independent of b.xsl, and b.xsl has to inherit the
a-specific information from a.xsl.  Additionally, a.xsl should be able to
transform a document on its own; it's not just a "library-stylesheet".

Can't you just include a.xsl in b.xsl? Call a on it's own and b includes a so it does what want?

-Rob



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.