Add a comment, Add a processing instruction, View comments and processing instructions – Adobe InDesign CS5 User Manual

Page 598: Edit comments and processing instructions, Use dtd files to validate xml

Advertising
background image

592

USING INDESIGN

XML

Last updated 11/16/2011

More Help topics

“

Rearrange structured elements

” on page 588

Add a comment

1 Select the element about which you will comment.

Note: To add a comment to a table, select a table cell element. You can add comments to table cells, not tables.

2 Choose New Comment in the Structure pane menu.

3 Type the comment in the New Comment dialog box.

Add a processing instruction

1 Select an element for the processing instruction.

Note: To add a processing instruction to a table, select a table cell element. You can add processing instructions to table
cells, not tables.

2 Choose New Processing Instruction in the Structure pane menu.

3 For Target, enter a name that identifies the processing instruction to an application that reads exported XML files.

4 For Data, enter a value that tells the application what to do with the processing instruction.

View comments and processing instructions

❖

Choose Show Comments or Show Processing Instructions in the Structure pane menu.

Edit comments and processing instructions

1 Select the comment or processing instruction.

2 Do any of the following:

•

Double-click the comment or processing instruction.

•

Choose Edit on the Structure pane menu.

3 Edit the comment or processing instruction and click OK.

Use DTD files to validate XML

Validating the XML in a document means to compare the structure, element tag names, and attributes against the
specifications of a DTD file. To validate against a DTD file, you must first load it into your document in InDesign.

Note: Loading a DTD file imports tag names into the Tags panel. These imported tag names are locked; they can’t be
deleted or renamed except by deleting the DTD file from the document.

The DOCTYPE element appears at the top of the Structure pane if a DTD file has been loaded into your document.
(DTDs are sometimes loaded automatically when you import an XML file.) To replace the DTD file in a document,
delete the existing DTD and then load a new one.

Advertising