← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: DOCBOOK: Changing output of <returnvalue> to <tt>

From
Nik Clayton <>
Date
2000-02-08T12:04:18+00:00
ID
Thread
Re: DOCBOOK: Changing output of <returnvalue> to <tt>
On Fri, Jan 28, 2000 at 10:34:33AM -0500, Bob McIlvride wrote:
> Nik Clayton wrote:
> > Create a customisation of the DSSSL stylesheet, and put
> > 
> >     (element returnvalue ($mono-seq$))
> > 
> > in it.  This *should* do the trick.
> 
> We plugged it into our stylesheet and it works like a charm!  Thanks a
> bunch!  Where do you learn to do these nifty little tricks?

Find an element that is already converted/rendered the way you want, and
then grep for the definition of that element in the stylesheet.

For example, when I was working this out, I decided to look at how 
<filename> was handled.

    % cd /usr/local/share/sgml/docbook/dsssl/modular/html
    % grep 'element filename' *
    dbinline.dsl:(element filename ($mono-seq$))

If you go digging around in dbinline.dsl you'll see how all the inline
element conversion to HTML is done.  For example, other sequences available
are

    $charseq$
    $monoseq$
    $bold-seq$
    $italic-seq$
    $italic-mono-seq$

Grepping for "(define ($bold-seq$" will show you where this sequence is
actually defined, so you can the underlying DSSSL.

Everything I know about DSSSL so far I've picked up from

   a) a rudimentary knowledge of Emacs lisp

and

   b) studying Norm's stylesheets.

> > A heavily customised example stylesheet you can use is at
> > 
> >     http://www.freebsd.org/cgi/cvsweb.cgi/doc/share/sgml/freebsd.dsl
> 
> That's great, too.  We've got most of it, and are studying the rest.
> Thanks again.

Hope it's useful.  Any questions, drop me a line.

N
-- 
    If you want to imagine the future, imagine a tennis shoe stamping
    on a penguin's face forever.
        --- with apologies to George Orwell
← Prev in month ← Prev in thread
Next in thread → Next in month →