List Info

Thread: maintaining customized docbook xsl files




maintaining customized docbook xsl files
user name
2007-10-11 16:07:57
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/Custo
mMethods.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: ettingergmail.com [mailto:ettingergmail.com] On 
> Behalf Of Anthony Ettinger
> Sent: Wednesday, October 10, 2007 5:39 PM
> To: docbooklists.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.o
rg/resume/
http://utuxia.com/consul
ting

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-helplists.oasis-open.org




------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


maintaining customized docbook xsl files
user name
2007-10-18 02:12:03
On 10/11/07, Dick Hamilton <rlhamiltonfrii.com> wrote:
> 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/Custo
mMethods.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.
>


Thanks, coupled with xsl:apply-imports and/or
xsl:apply-templates, it
gives me everything I need to override or  extend docbook
xslt.

I'll add his book to my wishlist 


-- 
Anthony Ettinger
Ph: 408-656-2473
var (bonita, farley) = new Dog;
farley.barks("very loud");
bonita.barks("at strangers");

http://chovy.dyndns.o
rg/resume/
http://utuxia.com/consul
ting

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )