- Inside the Structure View
- XML Tags and the Tags Panel
- Tagging Objects
- Importing and Exporting XML
- Creating Placeholders for Repeating Content
- Working with DTDs
- Transforming XML with XSLT
- InDesign Interchange Formats INX and IDML
- About XML Rules
- Stay Tuned
Creating Placeholders for Repeating Content
All of the techniques we’ve discussed so far—tagging text and frames, importing XML, replacing XML—can be used to create and populate placeholder frames for XML content. A key point, however, is that InDesign will never create new frames or add pages to accommodate new XML elements. InDesign duplicates text items as you import XML elements into a placeholder story. So you can have InDesign repeat the arrangement of placeholder elements and static text for each corresponding element in an imported XML file.
You create placeholder text by creating an XML structure that matches the structure of the XML content you plan to import (see Figure 14-24). You then use the elements from the XML structure to mark up text. The structures do not need to be an exact match, but the sequence of elements in the template and the sequence of elements in the incoming XML file must match.
Figure 14.24 Creating Placeholders for XML Content
We know that we said that InDesign won’t create new frames, but there is a way to incorporate graphics in your XML placeholder—and that is to create inline frames. Inline graphic frames can be filled in with a graphic just like XML placeholder text, (see Figure 14-25).
Figure 14.25 Inline Placeholders for Graphics