This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: qnaentry in div, not html wrapper
- From: Bob Stayton <bobs at sco dot com>
- To: Dave Pawson <dpawson at nildram dot co dot uk>
- Cc: Docbook-Apps <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 11 Mar 2003 10:55:06 -0800
- Subject: Re: DOCBOOK-APPS: qnaentry in div, not html wrapper
- References: <5.2.0.9.2.20030311163240.022d0548@pop3.Nildram.co.uk>
On Tue, Mar 11, 2003 at 04:34:43PM +0000, Dave Pawson wrote:
> I'm playing with docbook via a servlet,
> with queries into mySQL database.
> That means I may get n results.
> Each row would refer to a single qnaentry.
>
> I'd like to wrap them all in a single html document,
> each entry in some wrapper.
>
> Has anyone looked at this class of customisation please?
I'm not completely clear on what you are trying to do.
Is your servlet converting the data to DocBook elements?
Couldn't you create a DocBook document with
root element <qandaset> and each entry in
a <qandaentry>? If you give it a title and
turn on the qandaset toc, then you wouldn't need any
stylesheet customization.
If you want each entry (both Q and A) in a <div> wrapper,
then something like this should work:
<xsl:template match="qandaentry">
<div class="qandaentry">
<xsl:apply-templates/>
</div>
</xsl:template>
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs at sco dot com