It seems that the addBlockInFlow command does not support element
templates. That is, we can pass to it the name of an element but not the
expression #template(element,name) as for other commands such as insert.
The same needs exists with table edition commands offered by
GenericTableEdit. For example, we could have:
<property name="foo.tableEdit.tableSpecification">
table=x:table
rowGroup=x:thead x:tbody x:tfoot
row=#template(x:tr,special)
cell=#template(x:td,foo) #template(x:th,bar)
rowSpan=rowspan
columnSpan=colspan
</property>
meaning that whenever GenericTableEdit needs to insert a td, it would
use the foo template.
Would you consider extending these commands to support element templates
in the future?
Thanks,
Benoit
--
Benoit Maisonny benoit at synclude.com
Director & Consultant http://synclude.com
Synclude