OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: How can I specify monofont for markup <type>


> From: Jeffrey Franks <jfranks@quik.com>
> 
>  1) Problem Description:
> 
> What do I have to change in the stylesheet
> to get a monofont for <type> markup. As it
> is, the font does not appear to be different
> from the rest of the text. This is true for
> a various other markups rendered in HTML.
> 
> I don't know much about Xsl stylesheets, but
> that is about to change. How do I go about
> deciding if I need to over-ride something,
> minorly customize something, or completely
> re-write something. Is there a procedural
> step-by-step that guides one in making
> these decisions, or do you just get educated
> in Xsl and the answer becomes apparent by
> familiarity and experience?

I wrote some guidelines for customizing the XSL
stylesheets in the updated duck book:

http://docbook.org/tdg/html/ch04.html#xsl

(see the section "Customizing the DocBook XSL Stylesheets).

In general, look in param.xsl to see if there is
a parameter controlling what you want to do.
If not, then you'll have to create a replacment
template in a customization layer.  Depending
on the degree of modification, you'll have to
learn a little or a lot about XSL and the way
Norm structured the stylesheets.  In this case,
it is an easy change:

<xsl:template match="type">
  <xsl:call-template name="inline.monoseq"/>
</xsl:template>

This just changes the named template called for "type"
elements  from "inline.charseq" to "inline.monoseq".
Other elements you might want to look at are in
the inline.xsl file.

I would highly recommend taking some time to study
Norm's XSL stylesheets.  They are an excellent
example of XSLT programming. They exercise most of the
standard, and use good programming practices for XSLT
(which definitely is a different kind of programming!).
Learning his templates will teach you a lot about XSL,
although you'll need a reference book like Michael Kay's
XSLT Programmer's Reference.

bobs
Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC