Language reference : Technical content elements : Bookmap elements : Bookmap content elements : part
The <part> element references a part topic or a map that references part topics for the book. A new part is started. Use <part> to divide a document's chapters into logical groupings. For example, in a document that contains both guide and reference information, you can define two parts, one containing the guide information and the other containing the reference information.
Note: These models represent only the default document types distributed by OASIS. Actual content models will differ with each new document type.
Content model
( (topicmeta) (optional) then ( (chapter) or (topicref or anchorref or keydef or mapref or topicgroup or topichead or topicset or topicsetref) ) (any number) )
( (topicmeta) (optional) then ( (chapter) or (topicref or anchorref or keydef or mapref or topicgroup or topichead or topicset or topicsetref or learningObject or learningGroup) ) (any number) )
Contained by
Content model
bookmap, learningBookmap
- map/topicref bookmap/part
Example 288. Example
Part topics that include chapters and subtopics:
<part href="guide.dita">
<chapter href="intro.dita">
<topicref href="caring.dita"/>
<topicref href="feeding.dita"/>
<chapter href="setup.dita">
<topicref href="prereq.dita"/>
<topicref href="download.dita"/>
<part href="ref.dita">
<chapter href="commands.dita">
<topicref href="care.dita"/>
<topicref href="feed.dita"/>
<chapter href="apis.dita">
<topicref href="acare.dita"/>
<topicref href="afeed.dita"/>
Parts that reference ditamaps of content:
<part href="intro.ditamap" format="ditamap"/>
<part href="guide.ditamap" format="ditamap"/>
Data Type
Default Value
Specifies the title of the topic as it will appear in the navigation or tables of contents that are generated from the map. Beginning with DITA 1.2, the preferred way to specify the navigation title in a map is with the navtitle element, available inside the topicmeta element.
A pointer to the resource represented by the <topicref>. See The href attribute for detailed information on supported values and processing implications. References to DITA content cannot be below the topic level: that is, you cannot reference individual elements inside a topic. References to content other than DITA topics should use the format attribute to identify the kind of resource being referenced.
Use the copy-to attribute on the <topicref> element to provide a different file name for a particular instance of the topic in the map (for example, to separate out the different versions of the topic, rather than combining them on output). The links and navigation associated with that instance will point to a copy of the topic with the file name you specified.
Use the <linktext> and <shortdesc> in the <topicref>'s <topicmeta> to provide a unique name and short description for the new copy.
topicref-atts attribute group (collection-type, processing-role, type, scope, locktitle, format, linking, toc, print, search, chunk)
univ-atts attribute group (includes select-atts, id-atts, and localization-atts groups)
A set of related attributes, described in univ-atts attribute group
global-atts attribute group (xtrf, xtrc)
A set of related attributes, described in global-atts attribute group
class, outputclass, keyref
Keyref provides a redirectable reference based on a key defined within a map. See The keyref attribute for information on using this attribute. Class and outputclass are described in Other common DITA attributes