[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Customizing DocBook numbering scheme using XSL (le
Dear Nestor,
There are a couple of things about your question that are confusing. You are correct that you cannot parameterize the setting on xsl:number/@level. But you also say But I am stuck because I cannot change the element <xsl:number> without having to rewrite a new template from scratch. without explaining why this is a problem. The usual approach to customizing code (such as the Docbook stylesheets you might download) is indeed to write new templates, keeping them in a separate layer that imports the generic logic, overriding its templates selectively. So you rewrite only what needs rewriting, while keeping your customizations separate from a standard distribution. The mechanism you would use is xsl:import. But it's not clear from your message whether this advice is even relevant, since you don't say much about what kind of architectural issues you are dealing with. So: what's wrong with rewriting the template? You would have to do this anyway even if you could parameterize the setting you wanted, since the template as given doesn't accept a parameter. :-) Cheers, Wendell At 04:57 AM 10/14/2010, you wrote: Hello, ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|