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

RE: similar stylesheets

Subject: RE: similar stylesheets
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 4 Aug 2005 00:14:23 +0100
RE:  similar stylesheets
Put common code in a module L; import this from separate modules A, B, C...
that define the templates that are different. Run the transformation by
invoking A, B, or C as appropriate. If code is used in stylesheets A and B
but not in C, you can put the template in the common module L and override
it in C: the version in C will be used in preference to the version in L.

Michael Kay
http://www.saxonica.com/


> -----Original Message-----
> From: Lee Breisacher [mailto:LBreisacher@xxxxxxxxxxxxxxxxxxx] 
> Sent: 03 August 2005 22:21
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  similar stylesheets
> 
> I have a single type of (rather complex) input document that gets
> transformed into a number of different output documents (but 
> not all at
> the same time). So I have a collection of different 
> stylesheets that all
> have the same basic structure (based on the structure of the input
> document of course) -- the same match templates, etc. Then within that
> structure, each stylesheet has its own particular output content. 
> 
> My question is: Are there any tricks or conventions that people use in
> this kind of situation to avoid the duplication of the 
> structure of each
> stylesheet? For example, if I want to pick up some portion of 
> the input
> doc that I've not dealt with before, I have to make identical 
> changes in
> each stylesheet. Ugly.
> 
> Thanks,
> 
> Lee

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.