Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
XML and InDesign
A Note Regarding Supplemental Files
Preface
About This Book and InDesign CS
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Contributor
Acknowledgments
1. A Brief Foray into Structured Content (a.k.a. XML)
2. InDesign XML Publishing: College Catalog Case Study
Data-Like Content Example: The Course Description XML
Data Exported as XML
Modeling the Structure for the Import XML
Topical Content: The Handbook XML
Evaluating the Handbook Text for Structure
Modeling the Structure as a Set of Topics
Iteration and Refinement
Net Results: Vast Improvements in Understanding and Speed
3. Importing XML
Doing It Adobe’s Way: The Placeholder Approach
Modeling the XML You Want
Getting some structure into InDesign
Create placeholders for XML elements
Creating test XML
Importing XML into Placeholders
Adding style to the XML elements
Mapping styles to tags
Importing the “real” XML file
An Aside: The Scary “Map Styles to Tags” Dialog Message
Mingling Non-XML and XML Content in a Text Flow
Exporting XHTML When XML is in Your InDesign File
Doing It Your Way: Using the Options for Your Own Process
Import XML Using Only Merge—No Other Import Settings
Using Append
Linking to External XML Files
External updates on Open and using the Links palette
Creating Text Flows for the Imported XML
The Importance of “Document Order” for Imported XML
Rearranging XML elements in the structure pane
Fixing up structure in the Story Editor
Understanding InDesign’s XML Import Options
Using “Clone Repeating Text Elements”
Importing Only Elements That Match Structure
Avoiding Overwriting Text Labels in the Placeholder Elements
Deleting Nonmatching Structure, Text, and Layout Components
Importing Images
Inline Image Imports
4. Tagging XML in InDesign
The Case for Tagging Content: Why You Need XML
Tagging for Import
Tagging for Iterative XML Development
Working Without an Initial DTD
5. Looking Forward: InDesign as an XML “Skin”
6. Exporting XML
Marking Up (Tagging) Existing Content for XML Export
The Special Case of InDesign Tables (Namespaced XML)
Examining the Table
Tagging Images as XML in InDesign
Image Options in the Export XML Dialog
7. Exporting ePub Content (InDesign CS5.5 and CS6)
Export in XML Order Compared with Page Layout and Article Pane Order
Alternate Layouts and XML Are Not Compatible Features
Untested: Liquid Layout and InDesign Files Containing XML Structure
8. Validating XML in InDesign
Why Validate?
How to Validate XML in InDesign
Loading a DTD and Getting the Correct Root Element
Authoring with a DTD
Dealing with Validation Problems
Occurrence and Sequences of Elements
Validating Outside of InDesign
Duplicating Structure to Build XML
Cleaning Up Imported XML Content
Fast and Light Credo: Develop Now, Validate Later
Iterating the Information Structure and DTD
9. What InDesign Cannot Do (or Do Well) with XML
The 1:1 Import Conundrum
Bad Characters
Inscrutable Errors, Messages, and Crashes
InDesign Is Not an XML Authoring Tool
10. Advanced Topics: Transforming XML with XSL
XSLT for Wrangling XML versus XML Scripting for Automating XML Publishing
XSL: Extracting Elements from a Source XML File for a New Use
XSL: Getting the Elements to Sort Themselves
XSL: Getting Rid of Elements You Don’t Want
Creating Wrappers for Repeating Chunks
Making a Table from Element Structures
Upcasting Versus Downcasting
Upcasting from HTML to XML for InDesign Import
Downcasting to HTML
Generate a Link with XSLT (Not Automated)
Adding Useful Attributes to XML
A General Formula for Adding Attributes
Generating an id Attribute for a div
Use of the lang Attribute for Translations
Creating an Image href Attribute
Paths to images
A Word about Using Find/Change for XML Markup in InDesign
11. Content Model Depth Issues and Their Impact on Round-Tripping XML
The Challenge of Mapping Deep DTDs to Shallow InDesign Structures
The Challenge of Mapping Shallow Structures to Deep DTD Structures
Use of Semantic ids and Style Names (Expert-Level Development)
12. Brief Notes
A Brief Note about InCopy and XML
A Brief Note about IDML and ICML
Automating InDesign: The Power of IDML and ICML Programming
An ICML developer’s test case
Summary
A. Resources
InDesign Resources
XML Resources
XSLT Resources
About the Author
Colophon
Copyright
← Prev
Back
Next →
← Prev
Back
Next →