Operation Manual
To the top
To the top
InCopy document formatted with XML tags
For more information on using XML in InDesign, visit www.adobe.com/go/learn_id_XMLscript.
XML tools
InCopy provides the Structure pane and the Tags panel for working with XML content. The Structure pane displays all the elements in the
document and their hierarchical structure. To help you identify each element, InCopy displays its element tag and an icon that indicates what type
of content it holds. In addition, the Structure pane can display the first few words of text in an element, called a text snippet, which is not to be
confused with snippet files that store objects for reuse.
Structure pane (left) and Tags panel (right)
A. Triangle to expand or collapse elements B. Element placed in layout C. Text snippet D. Element tag
The Structure pane lets you view, edit, and manage XML elements. You use the Structure pane in many ways when working with XML. For
example, to place imported XML content into the layout, you can drag elements from the Structure pane directly to a page. You also use the
Structure pane to adjust the hierarchy of the elements. You can add elements, attributes, comments, and processing instructions by way of the
Structure pane.
The Tags panel lists tags for elements. You can import, export, add, delete, and rename tags. You use the Tags panel to apply element tags to
content that you plan to export to XML.
About DTD files
To share XML data with others, you need to agree on a standard set of tag names and element attributes so that everyone in your group uses and
applies tags the same way. One method for handling the sharing of XML data is to use a document type definition (DTD) file.
A DTD file provides a set of elements and attributes for members of the group to use. It also defines the rules about where elements can appear in
the structural hierarchy. For example, the DTD file may require the Title element to be a child of the Story element because the title is supposed to
appear inside the story; if you tag a title without tagging the story it appears in, the DTD file marks the Title element as invalid. You can search for
and flag invalid structural errors in an InDesign file with a DTD file. This process is called validating.
Although you cannot import a DTD file into InCopy, DTD files you import in InDesign are available when you edit the story in InCopy. You can view
239