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

Re: Onion-skin overriding stylesheet

Subject: Re: Onion-skin overriding stylesheet
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Wed, 07 Sep 2011 10:34:20 +0100
Re:  Onion-skin overriding stylesheet
On 07/09/2011 09:50, Jesper Tverskov wrote:

As far as I know, no matter what a stylesheet looks like, we can always import and override it in another stylesheet. But if the original stylesheet is mostly one big template with many xsl:for-each, we will have to recreate most of the original stylesheet in the overriding stylesheet, and that is not that attractive.
Which is a very good reason for not using that coding style.

Is the onion-skin approach to stylesheet making so attractive, that we should make it a habit always to prepare for it, should we so to speak "override" optimize our stylesheets to make them as easy as possible to override (to maintain, to customize)?


Yes. Stylesheets should consist of lots of small templates and functions, to give maximum potential for evolution and reuse.

Michael Kay
Saxonica

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.