Jed Parsons wrote:
>
> I'm not using docbook in this case, but an in-house xml dialect. Are
> there generic versions of "docb.addSame" etc. that I can use as the
> command in the bindings?
If your in-house XML dialect is not too complex, writing a few simple
macro-commands such as:
---
<command name="addSameAfter">
<macro>
<sequence>
<command name="selectNode"
parameter="ancestorOrSelf[implicitElement] p pre li" />
<command name="insertNode" parameter="sameElementAfter" />
</sequence>
</macro>
</command>
---
should work fine.
In the above macro, replace "p pre li" by your own block element names.
Note that the order of element names may be significant. In the case of
the above example -- XHTML -- an li may contain a p. Therefore the above
macro will try to insert a p before trying to insert a li.
See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/ch02.html
See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/selectNode.html
See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/insertNode.html