On 11/21/2011 04:56 PM, Yves Forkl wrote:
> In my DocBook-derived DTD, I have added my own list type for enumerations 
> with fixed values:<labeledlist>.
> Each list item (element<labeledlistitem>) consists of a pair of<itemlabel>  
> and (standard DocBook)<listitem>.
>
> Now I would like to use the Split command on instances of<labeledlist>  just 
> the same way as with<itemizedlist>  or<orderedlist>  in XXE's stock DocBook 
> configuration.
>
> How do I go about modifying my XXE configuration? Do I need to write/adapt a 
> Java command or is it sufficient to write a macro to do the job?
>
> XXE's documentation, which is otherwise excellent, unfortunately doesn't seem 
> to say much about the conditions that the Split command needs for it to be 
> working ([1], [2]).
>

The split command is a generic command which works with any document 
type, with or without a configuration.

This command leverages the schema to determine whether the document 
after splitting the explicitly selected element in two at caret position 
would still be valid. If this is the case, the split command should work 
fine, otherwise it is disabled (grayed).

The split command is somewhat low-level[*]. It is often needed to wrap 
it in a macro to make it easier to use. This is more or less what we did 
to implement: press Enter in a paragraph in order to split it.



>
> P.S.: I am using XXE 4.8.1, please let me know when I am wrong assuming XXE 
> has not changed much in this respect since.

That's right.



---
[*] See 
http://www.xmlmind.com/xmleditor/_distrib/doc/help/editMenu.html#splitAction
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to