Hi!
I could need some help with a macro. I want to paste text from the clipboard
as docbook listitems. makeParagraphs just seemed fine for this purpose and I
made command to add an itemizedlist, paste the listitems from the clipboard
and remove the first listitem (it is empty).
Now this all works, except for one thing: the listitems lack a para element
and thus I get an invalid document. I tried to add an elementTemplate to
override listitem with listitem/para, but without success.
I hope I could point out what the problem is and maybe someone has a
(simple) solution at hand.
Thanks,
Patrick
p.s. I'm using the standard Edition 2.7
Here the two commands:
<command name="pasteAsList">
<macro>
<sequence>
<command name="docb.addAfter" parameter="itemizedlist" />
<command name="selectNode" parameter="childOrNode" />
<command name="insertAfterAsListitem"/>
<command name="selectNode" parameter="firstSibling"/>
<command name="delete" />
</sequence>
</macro>
</command>
<command name="insertAfterAsListitem">
<macro>
<sequence>
<command name="makeParagraphs" parameter="listitem" />
<command name="paste" parameter="after[implicitElement] %_" />
</sequence>
</macro>
</command>
--
GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail
+++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++