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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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

Subject: 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


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


   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.

    If you want to imagine the future, imagine a tennis shoe stamping
    on a penguin's face forever.
        --- with apologies to George Orwell

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

Powered by eList eXpress LLC