The following examples cover many common chunking scenarios, such as splitting one document into many rendered objects or merging many documents into one rendered object.
In the examples below, an extension of ".xxxx" is used in place of the actual extensions that will vary by output format. For example, when the output format is HTML, the extension might actually be ".html", but this is not required.
<dita xml:lang="en-us">
<topic id="X">
<title>Topic X</title><body><p>content</p></body>
</topic>
<topic id="Y">
<title>Topic Y</title><body><p>content</p></body>
<topic id="Y1">
<title>Topic Y1</title><body><p>content</p></body>
<topic id="Y1a">
<title>Topic Y1a</title><body><p>content</p></body>
</topic>
</topic>
<topic id="Y2">
<title>Topic Y2</title><body><p>content</p></body>
</topic>
</topic>
<topic id="Z">
<title>Topic Z</title><body><p>content</p></body>
<topic id="Z1">
<title>Topic Z1</title><body><p>content</p></body>
</topic>
</topic>
</dita>
<map chunk="to-content">
<topicref href="parent1.dita">
<topicref href="child1.dita"/>
<topicref href="child2.dita"/>
</topicref>
</map>
<map chunk="by-topic">
<topicref href="parent1.dita">
<topicref href="nested1.dita"/>
</topicref>
</map>
<map>
<topicref href="parent1.dita">
<topicref href="child1.dita" chunk="to-content">
<topicref href="grandchild1.dita"/>
<topicref href="grandchild2.dita"/>
</topicref>
</topicref>
</map>
<map>
<topicref href="ditabase.dita#Y" copy-to="Y.dita"
chunk="to-content select-topic">
<topicref href="ditabase.dita#Y1" copy-to="Y1.dita"
chunk="to-content select-branch"/>
<topicref href="ditabase.dita#Y2" copy-to="Y2.dita"
chunk="to-content select-topic"/>
</topicref>
</map>
<map chunk="by-document">
<topicref href="parent1.dita" chunk="to-content">
<topicref href="ditabase.dita#Y1"
chunk="select-topic"/>
</topicref>
</map>
<map chunk="by-document">
<topicref href="parent1.dita" chunk="to-content">
<topicref href="ditabase.dita#Y1"
chunk="select-branch"/>
</topicref>
</map>
<map chunk="by-topic">
<topicref href="parent1.dita" chunk="to-content">
<topicref href="ditabase.dita#Y1"
chunk="select-document"/>
</topicref>
</map>
<map chunk="by-document">
<topicref href="parent1.dita" chunk="to-content" copy-to="parentchunk.dita">
<topicref href="nested1.dita" chunk="select-branch"/>
</topicref>
</map>
<map chunk="by-document">
<topicref href="parent1.dita"
chunk="to-content" copy-to="parentchunk.dita">
<topicref href="child1.dita" chunk="select-branch"/>
<topicref href="child2.dita"
chunk="to-content select-branch"
copy-to="child2chunk.dita">
<topicref href="grandchild2.dita"/>
</topicref>
<topicref href="child3.dita">
<topicref href="grandchild3.dita"
chunk="select-branch"/>
</topicref>
</topicref>
</map>
<map>
<topicref href="nested1.dita#N1"
copy-to="nestedchunk.dita"
chunk="to-content select-topic"/>
</map>
<map>
<topicref href="parent1.dita"
navtitle="How to set up a web server"
chunk="to-navigation">
<topicref href="child1.dita"
chunk="select-branch"/>
<!-- ... -->
</topicref>
<topicref href="parent2.dita"
navtitle="How to ensure database security"
chunk="to-navigation">
<topicref href="child2.dita"
chunk="select-branch"/>
<!-- ... -->
</topicref>
<!-- ... -->
</map>