This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Changing output of <returnvalue> to <tt>
- To: docbook at lists dot oasis-open dot org
- Subject: Re: DOCBOOK: Changing output of <returnvalue> to <tt>
- From: Nik Clayton <nik at nothing-going-on dot demon dot co dot uk>
- Date: Mon, 7 Feb 2000 23:10:20 +0000
- Organization: Nik at home, where there's nothing going on
- References: <388F242B.D08EBDAF@cogent.ca> <20000127211224.A5009@catkin.nothing-going-on.org> <3891B709.2CF8D6C0@cogent.ca>
- Reply-To: docbook at lists dot oasis-open dot org
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