Re: DOCBOOK-APPS: qandaentry: HTML output

From
Norman Walsh <>
Date
2000-07-21T13:09:35+00:00
ID
Thread
Re: DOCBOOK-APPS: qandaentry: HTML output
/ Michael Wiedmann <> 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 <>      | 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