Magnus G?fvert wrote:
> 
> I have a docbook book document where I want to move chapters into
> separate chapter files for inclusion. It works fine to write a chapter
> file from scratch, but I cannot figure out how to move a chapter from
> the book document and to the chapter file. When I select a chapter in
> the book I cannot cut it to the clipboard. Copy seems to work, but I
> cannot paste it in the new chapter document. Any suggestions?
> 

It works like everything else in XMLmind XML Editor. The only trick you
need to know is: you cannot replace the root element of a document;
however you can replace all its children using a single paste command.

[1] Select chapter A in the master document M.xml.

[2] "Esc Down_Arrow" to select all the children of chapter A.

[3] Ctrl-C to copy all the selected nodes to the clipboard.

[4] Create a new chapter document. Switch to this new chapter document.
Let's call it C.xml.

[5] Select the empty chapter which is the root of C.xml.

[6] "Esc Down_Arrow" to select all the children of the empty chapter.

[7] Ctrl-V to replace these children by the contents of chapter A (used
here the above trick).

[8] Save the new chapter file as C.xml.

[9] Select the chapter root element of C.xml.

[10] Ctrl+Shift-C to copy a reference to this chapter.

[11] Switch to master document M.xml.

[12] Make sure that chapter A is selected.

[13] Ctrl-V to replace chapter A by a reference to the chapter root
element of C.xml.

We consider that this operation is seldom needed, otherwise we would
have implemented a specific command to perform it.





Reply via email to