This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: qandaentry: HTML output
- To: DocBook-Apps ML <docbook-apps at lists dot oasis-open dot org>
- Subject: Re: DOCBOOK-APPS: qandaentry: HTML output
- From: Michael Wiedmann <michael dot wiedmann at detewe dot de>
- Date: Fri, 21 Jul 2000 14:43:59 +0200
- Organization: Cordless Technology
- References: <39782004.E8051AF6@detewe.de> <87zonblpjf.fsf@nwalsh.com>
Norman Walsh wrote:
> Something like this should work:
>
> (element (answer para)
> (make sequence
> (make element gi: "P"
> (process-children))
> (if (last-sibling? (current-node))
> (make empty-element gi: "BR"))))
This works in general - almost perfect.
I only have to figure out the case where there is only one <para> in an
<answer> - because this case is not handled in the above code (no <BR>
for <answer>s with only one <para>).
Thanks
Michael
PS: I only had to add an "(empty-sosofo)" for the "alternate" part
of the condition.
--
Michael Wiedmann office: <michael.wiedmann@detewe.de>
private: <mw@miwie.in-berlin.de>