User Guide

279
ADOBE INCOPY CS2
User Guide
To view comments and processing instructions
Choose Show Comments or Show Processing Instructions in the Structure pane menu.
Validating XML content
About DTD files
If you plan to share XML data with other users, youll need to agree on a set of tags, attributes, and how to apply them
to page items in InCopy. One way to facilitate this agreement is to use a Document Type Definition (DTD) file.
A DTD file defines the allowable tags and structures in an XML file. These structures include all elements, the
attributes that can be assigned to them, and the relationships between elements.
Although youcannotimportaDTDfileintoInCopy, DTDfiles youimportinInDesignare availablewhenyou edit
the story in InCopy. You can view the DTD file in InCopy and validate stories against it to ensure that tags have been
applied correctly.
DTD file opened for viewing in InCopy
To view a DTD file
Since DTDs are written in plain language, not code, they often contain embedded instructions and explanations to
help you apply tags and order elements correctly. You can view any DTD you import in InCopy.
Choose View DTD from the Structure pane menu.
To print the DTD file, copy code from the View DTD window and paste it in a text editor.
To validate a story
When you validate the XML in a document, InCopy compares the structure, element tag names, and attributes
against the DTD you loaded in InDesign. InCopy alerts you if the XML deviates from the DTD, and suggests ways
to fix the XML to match the DTD requirements. You can fix errors one at a time or view all errors at once in a separate
window.