atom feed5 messages in org.oasis-open.lists.docbook-appsRe: DOCBOOK-APPS: qandaentry: HTML ou...
FromSent OnAttachments
Michael WiedmannJul 21, 2000 3:04 am 
Norman WalshJul 21, 2000 3:58 am 
Michael WiedmannJul 21, 2000 5:44 am 
Norman WalshJul 21, 2000 6:09 am 
Michael WiedmannJul 21, 2000 6:25 am 
Subject:Re: DOCBOOK-APPS: qandaentry: HTML output
From:Michael Wiedmann (mich@detewe.de)
Date:Jul 21, 2000 5:44:15 am
List:org.oasis-open.lists.docbook-apps

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.