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.