Bernd Kuemmerlen wrote:
> I know that working with modular documents is described in the User's
> Guide, and it has come up several times on the mailing list, but I think
> I am still missing something...
> 
> The workflow which is described in the User's Guide is OK when you start
> with the "modules" (for example in DocBook, create new sections as
> standalone documents) and then put them together in a larger document.
> 
> My normal usage is kind of the other way round: I start writing a larger
> document, and as soon as I see that a chapter or section gets too large,
> I want to put it into an external document. I did not find a way to do
> this easily within XXE.
> 
> What I'd like to do is something like this:
> 1. Mark a section of the master document
> 2. Copy it
> 3. Paste it into a new document
> 4. Save this document
> 5. Copy this document as a reference back into the master document
> 
> My problem is that I don't find an easy way to do step 3: I tried this
> by creating (in the DocBook example) a new section-document, but then I
> have no way of replacing the content of the new (empty) document with
> the copied section. The only way I found to achieve what I wanted was to
> copy the *content* of the section into the new section document, which
> can be very cumbersome if there is a lot of stuff inside the section.
> 
> Am I missing something or is this just not possible the way I imagine?

XXE does not allow to replace the root element of the document. In your
case, you cannot replace the new, blank, section by the one contained in
the clipboard.

The best you can do is this:

[1] Select the section to be put in a document of its own.

[2] Select all its children by using highly useful shortcut:
Esc Down-Arrow.

[3] Copy these to the clipboard using Ctrl-C.

[4] Switch to the new document containing an empty section.

[5] Select this empty section.

[6] Select its empty title and para children by using shortcut:
Esc Down-Arrow.

[7] Paste the content of the clipboard using Ctrl-V.

Reply via email to