Paged.The open publishing system
The format atlas
Package anatomy

IDML Reference / Package anatomy

The design map

designmap.xml is the root of an IDML package — document settings, the definitions that belong to the whole document, and an idPkg reference to every part.

Tier: IntermediateIntermediateIIreference

Reviewed against engine v0.71.6

designmap.xml is the root of an IDML package: it holds the document's own settings and definitions, and names every other part.

In short The design map's root Document element carries document-wide attributes: the DOM version, the story list, the colour profiles and rendering intents. Its children are of two kinds. idPkg:* elements reference the other parts by a src path. The rest are definitions that belong to the whole document rather than to one part: layers, sections, text variables, hyperlinks and bookmarks, conditions, numbering lists and colour groups. Open the design map and you see the whole shape of the document before reading anything else.

designmap.xmlResources/Graphic.xmlResources/Styles.xmlSpreads/Spread_*.xmlStories/Story_*.xmlParentStory → Story(TextFrame in a spreadpoints at its story)
The design map names every other part; parts reference each other by id.

The package below has two stories in two frames. Note how StoryList enumerates the stories and how each idPkg:* element points at a part by src.

The design map of a two-story document, the manifest that ties the package together.

designmap.xmlRead / the source
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?aid style="50" type="document" readerVersion="6.0" featureSet="257" product="20.0(32)"?>
<Document xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" DOMVersion="20.0" Self="d" StoryList="ustory1 ustory2" Name="two-stories.indd" CMYKProfile="Coated FOGRA39 (ISO 12647-2:2004)" RGBProfile="sRGB IEC61966-2.1" SolidColorIntent="UseColorSettings" AfterBlendingIntent="UseColorSettings" DefaultImageIntent="UseColorSettings">
  <idPkg:Graphic src="Resources/Graphic.xml"/>
  <idPkg:Fonts src="Resources/Fonts.xml"/>
  <idPkg:Styles src="Resources/Styles.xml"/>
  <idPkg:Preferences src="Resources/Preferences.xml"/>
  <idPkg:Tags src="XML/Tags.xml"/>
  <idPkg:MasterSpread src="MasterSpreads/MasterSpread_umaster.xml"/>
  <idPkg:Spread src="Spreads/Spread_uspread.xml"/>
  <idPkg:Story src="Stories/Story_ustory1.xml"/>
  <idPkg:Story src="Stories/Story_ustory2.xml"/>
  <idPkg:BackingStory src="XML/BackingStory.xml"/>
</Document>

The processing instruction

Before the root element, InDesign writes an <?aid … ?> processing instruction. Its pseudo-attributes record the package style, the reader version the file targets, a feature set and the exporting product build, for example product="20.0(32)". It describes the file; the document's content does not depend on it. See version markers.

The Document element

Attribute · DocumentValuesSeen in
AfterBlendingIntentUseColorSettings100%
CMYKProfilebuiltin / text100%
DefaultImageIntentUseColorSettings100%
DOMVersionreal100%
RGBProfilebuiltin / text100%
Selftext100%
SolidColorIntentUseColorSettings100%
StoryListid100%
AccurateLABSpotsfalse89%
The 9 attributes real documents use most. Seen in: the share of documents with a Document that set it. All 21 attributes of Document; what Paged reads, edits and writes is in its Paged support panel.
  • DOMVersion names the scripting-DOM revision the package was written for, such as 20.0. Every part repeats it on its root element.
  • StoryList lists the ids of the document's stories, one per idPkg:Story.
  • CMYKProfile, RGBProfile name the document's colour profiles, and SolidColorIntent, AfterBlendingIntent, DefaultImageIntent the rendering intents for solid colours, transparency blending and images. See colour and swatches.
  • Name is the file name of the document it was exported from; descriptive only.

The part references

Each idPkg:* child names one part by a src path relative to the package root. A reader expects every named part to be in the archive; entries the design map does not name are not part of the document.

ReferencePartHow many
idPkg:GraphicResources/Graphic.xmlone
idPkg:FontsResources/Fonts.xmlone
idPkg:StylesResources/Styles.xmlone
idPkg:PreferencesResources/Preferences.xmlone
idPkg:TagsXML/Tags.xmlone
idPkg:MasterSpreadMasterSpreads/MasterSpread_<id>.xmlone per master spread
idPkg:SpreadSpreads/Spread_<id>.xmlone per spread, in page order
idPkg:StoryStories/Story_<id>.xmlone per story
idPkg:BackingStoryXML/BackingStory.xmlone

The order of the spread references is the order of the spreads in the document. The resource parts are described in resource parts, the spreads and stories in content parts.

Definitions that live in the design map

Some definitions belong to the document as a whole, so InDesign writes them as direct children of Document rather than in a resource part. The counts are from the census of 305 packages behind the element reference:

ElementWhat it definesPackages
TextVariableA computed piece of text, such as a running header or the file name273
LayerA layer; a Layer inside a Layer is a layer group272
SectionWhere page numbering restarts, and how it is styled272
NumberingListA named list that numbered paragraphs continue across271
ColorGroupA folder of swatches in the Swatches panel, members as ColorGroupSwatch265
ConditionalTextPreferenceWhich condition set is active, and whether indicators show271
Condition, ConditionSetConditional-text tags and saved visibility setswhen used
HyperlinkURLDestination, HyperlinkPageDestination, Hyperlink, BookmarkHyperlinks and bookmarkswhen used

Two placements were measured in InDesign 20.0.1 and matter to a writer:

  • Conditions belong here, not in Styles.xml. A condition set lists its members as VisibilityPair records inside a typed SetConditions property.
  • The hyperlink and bookmark block comes after the last idPkg:Story. Placed earlier, InDesign binds none of it.

The full list of such rules is in what InDesign needs to open a file.

In Paged: the importer reads Document's attributes, the part references, and the layers (nested), sections, text variables, numbering lists, colour groups, hyperlinks, bookmarks and conditions in the design map. It reads numbering lists and conditions from Styles.xml too, for older files, and the design map wins on a clash. It does not read META-INF/container.xml, the XML/ parts, or Fonts.xml. Parsed, not rendered

What the design map does not hold

It lists the stories but does not contain them: the text lives in the story parts. It names the spreads but holds no geometry. How the ids in one part find their targets in another (ParentStory, AppliedMaster, style and swatch references) is the subject of how the parts reference each other.

Frequently asked questions

What is the design map in an IDML file? designmap.xml, the package's root part. Its Document element holds document-wide settings, the definitions that belong to the whole document, and an idPkg:* reference to every other part.

What does the StoryList attribute do? It lists the ids of the document's stories. Each id has a matching idPkg:Story naming the part that holds it, and the same id appears as ParentStory on the frames the story flows through.

Where are layers, sections and conditions defined? In the design map, as direct children of Document. InDesign writes conditional-text conditions here too, not in Styles.xml.

Does the order of elements in the design map matter? For some of them, yes. The spread references are in page order, and InDesign only binds hyperlinks and bookmarks that come after the last idPkg:Story reference.

Does the design map contain the document's text and pages? No. It names the parts; the pages are in the spread parts and the text is in the story parts.

On this page