This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: qandaentry: HTML output


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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]