This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: qandaentry: HTML output
/ Michael Wiedmann <michael.wiedmann@detewe.de> was heard to say:
| 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>).
Really? How odd. Is there something other than a para after the first
para in that case?
| PS: I only had to add an "(empty-sosofo)" for the "alternate" part
| of the condition.
D'oh!
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | We look back on our life as a
http://www.oasis-open.org/docbook/ | thing of broken pieces, because
Chair, DocBook Technical Committee | our mistakes and failures are
| always the first to strike us, and
| outweigh in our imagination what
| we have accomplished and
| attained.--Goethe