Working with a document set

What is a document set?

A document set is simply a set of related XML documents. These documents are related because they all contribute to the content of the same deliverable: PDF file, EPUB file, Web site, etc.

When XMLmind XML Editor knows that some opened documents are members of the same set:

Modular documents, for example a DITA map referencing a number of topics or a modular DocBook book including a number of chapters, implicitly specify a document set. When you author such modular documents, it is strongly recommended to first open their document set in XXE.

How to open a document set in XXE?

Use FileDocument SetOpen Document Set to let XXE know about a given document set. This menu item displays a dialog box allowing to choose the file specifying the document set.

A document set specified by a DITA map and 3 topic members opened in XXE

A document set specified by a DITA map and 3 topic members opened in XXE
A document set specified by a modular DocBook book and 3 chapter or section members opened in XXE

A document set specified by a modular DocBook book and 3 chapter or section members opened in XXE
A document set specified by a glob pattern and 3 XHTML page members opened in XXE

A document set specified by a glob pattern and 3 XHTML page members opened in XXE

The "Document Set" tool

As you can see it in the 3 above screenshots, a document set is represented by a special tool added to the left of XXE's main window: the "Document Set" tool. Each instance of this tool is given a specific, random, background color. This specific background color is also given to the tabs of all the opened documents which are members of the set.

The "Document Set" tool is a convenient, interactive, navigational tool: you can double-click on an element to open in XXE the member document corresponding to this element; dragging the selected element will drag the corresponding member document inside or outside XXE; etc. More information in XMLmind XML Editor - Online Help, Using the "Document Set" tool.

However the most important part of its job is done behind the scene, because opening a document set in XXE automatically modifies the behavior of the Validity tool and the Attributes tool:

A simple use case

Modular book mybook.xml includes 3 chapters. Each chapter is found in its own file: chapterA.xml, chapterB.xml and chapterC.xml.

File chapterA.xml contains:

<chapter id="chapterA">
  <title>Chapter A</title>

  <para>Link to <link linkend="nowhere">nowhere</link>. Link to <link
  linkend="sectionB1">Section B1</link>.</para>

  <section id="sectionA1">
    <title>Section A1</title>

    <para>TODO.</para>
  </section>

  <section id="sectionA2">
    <title>Section A2</title>

    <para>TODO.</para>
  </section>
</chapter>

In the above file, the first link element points to a non-existent target and the second link points to the first section of chapterB.xml.

The user wants to check the links found in chapterA.xml and also to add an xref element pointing to the first section of chapterC.xml. In order to do that, she/he opens chapterA.xml in XXE.

Before opening mybook.xml as a document set:

After opening mybook.xml as a document set:

Screencast Watch the screencast

(same but in a new window New window)
Similar use case, but based on a DITA map rather than on a DocBook modular book

Screencast Watch the screencast

(same but in a new window New window)