This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Extending Norm's stylesheets to process <docinfo>
- To: Norman Walsh <ndw at nwalsh dot com>
- Subject: Re: DOCBOOK-APPS: Extending Norm's stylesheets to process <docinfo>
- From: Nik Clayton <nik at nothing-going-on dot demon dot co dot uk>
- Date: Tue, 01 Aug 2000 15:04:14 +0000
- Cc: docbook-apps at lists dot oasis-open dot org
- Organization: Nik at home, where there's nothing going on
- References: <20000726195212.A20121@catkin.nothing-going-on.org><87d7k0snfp.fsf@nwalsh.com>
On Wed, Jul 26, 2000 at 03:26:18PM -0400, Norman Walsh wrote:
> / Nik Clayton <nik@nothing-going-on.demon.co.uk> was heard to say:
> | Before I embark on the path, has anyone produced an extension to Norm's
> | stylesheets that handle the DocInfo element and children?
>
> Er, other than me, you mean?
Any published examples? I know that the code's there in dbinfo.dsl, I was
hoping for something that actually extended things to produce output.
> You just need to redefine a few lists and they'll start to appear in
> the output. Then you may need to tweak a few moded element rules to
> get the right appearance.
Ha ha. That's easy for you to say. You know what you're doing :-)
OK, to move this out of the abstract, suppose I have the following as
part of my document:
<docinfo>
<authorgroup>
<author>
<firstname>Sean</firstname>
<surname>Kelly</surname>
<affiliation>
<address><email>kelly@ad1440.net</email></address>
</affiliation>
<contrib>Wrote the initial version of this chapter,
provided the majority of the examples.</contrib>
</author>
<author>
<firstname>Jim</firstname>
<surname>Mock</surname>
<affiliation>
<address><email>jim@FreeBSD.org</email></address>
</affiliation>
<contrib>Edited and updated the chapter in preparation for
producing the commercially printed FreeBSD
Handbook.</contrib>
</author>
</authorgroup>
<date>Nth MMMM, YYYY</date>
</docinfo>
By default, the stylesheets won't do anything with this information. I can
get some of it to appear by putting
(element docinfo (process-children))
(element (docinfo authorgroup) (process-children))
(element (docinfo date) (process-children))
in my stylesheet. However, the affiliation information (and in particular,
the e-mail address) is ignored, as is the <contrib> stuff.
From what I can see, the stylesheets already have code to handle these
elements, in dbttlpg.dsl. Can I (in my customisation) make it use the
existing formatting code for this information, or do I need to rewrite
the code for this element context?
N
--
Internet connection, $19.95 a month. Computer, $799.95. Modem, $149.95.
Telephone line, $24.95 a month. Software, free. USENET transmission,
hundreds if not thousands of dollars. Thinking before posting, priceless.
Somethings in life you can't buy. For everything else, there's MasterCard.
-- Graham Reed, in the Scary Devil Monastery