I am new to IDML and I am trying to understand this.
I have figured out that IDML is zip file containing multiple XML files.
I have opened the designmap.xml
and saw the StoryLine
attribute in Document
element.
However, this order in the StoryLine
atribute does not necessary agree with logical order of the text displayed on actual content.
For example the BusinessCardTemplate inside the IDML SDK has the following logical order:
John Doe
Software Developer
InDesign
Adobe Systems Incorporated
801 North 34th Street
Seattle, WA 98103
Phone: 206.675.7000
[email protected]
www.adobe.com
However according to the StoryList
attribute the following is the order that it refers as following:
Software Developer
InDesign
John Doe
[email protected]
www.adobe.com
Phone: 206.675.7000
801 North 34th Street
Seattle, WA 98103
Adobe Systems Incorporated
Is there any way to figure out from the content of IDML to know the logical order (preferably from top left to bottom left) of those stories?
Thanks in advance
Working directly with the Stories is quite difficult. It is easier if you use the Tagging features. Open your InDesign file and import an XML file with the correct structure for your data. You can then Tag the parts of the document to map to the XML nodes.
Once that is done export the document to IDML and then look in the XML directory at the file
BackingStory.xml
where you will find nodes like this:This defines the mapping for the Instructions XML node into the Story_u16a.xml file. However you no longer need to worry about the Story because you now already have access to the node value that will be injected into the Story.
This tutorial explains the InDesign XML tagging.