[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook] maintaining customized docbook xsl files
Anthony, If you already have a customization layer, then you can simply include the replacement file in your customization layer using: <xsl:include href="myfiles/foo.xsl"/> If you haven't got a customization layer yet, Bob Stayton's DocBook XSL book has a section on how to create customization layers at this URL: http://www.sagehill.net/docbookxsl/CustomMethods.html#CustomizationLayer The basic idea is to create a local xsl file that imports the standard xsl stylesheet, then adds your customizations. Those customizations can be put directly in your local xsl file, or can be included from another file as shown above. Then, instead of calling your xsl processor with the standard xsl stylesheest, you call your local xsl stylesheet, which in turn pulls in the standard sheets. Bob's description at the URL above goes into detail and gives you some examples that should make things clearer. BTW, If you're going to be doing a lot of DocBook XSL work, his book is worth every penny. Hope that helps. Dick Hamilton P.S. I'm copying this to the docbook-apps list, which is where this kind of question should normally go. > -----Original Message----- > From: ettinger@gmail.com [mailto:ettinger@gmail.com] On > Behalf Of Anthony Ettinger > Sent: Wednesday, October 10, 2007 5:39 PM > To: docbook@lists.oasis-open.org > Subject: [docbook] maintaining customized docbook xsl files > > > I want to provide a mechanism to override the default docbook files > (on case-by-case basis) if needed. > > ie: > > /my_files/foo.xsl (customized) > /distro/foo.xsl (original) > /distro/bar.xsl (original) > > What is the best way to accomplish this? > > -- > Anthony Ettinger > Ph: 408-656-2473 > var (bonita, farley) = new Dog; > farley.barks("very loud"); > bonita.barks("at strangers"); > http://chovy.dyndns.org/resume/ http://utuxia.com/consulting --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]