Adobe InDesign CS3 User Manual

Page 534

Advertising
background image

INDESIGN CS3

User Guide

527

Tag content according to paragraph or character style

Paragraph styles and character styles you assign to text can be used as a means of tagging paragraphs and text for
XML. For example, a paragraph style called Caption can be associated with a tag called

FigureName

. Then, using the

Map Styles To Tags command, you can apply the

FigureName

tag to all text in your document assigned the Caption

paragraph style. You can map more than one style to the same tag.

Important: The Map Styles To Tags command tags content automatically, including paragraphs and characters that are
tagged already. For example, if a paragraph assigned the Context style has been tagged with the

Body

tag, but you then

associate the Context style with the

Expository

tag, the paragraph is retagged; it is stripped of the

Body

tag and given

the

Expository

tag instead. If you want to retain existing tags, apply tags manually (or use the Map Styles To Tags

command very carefully).

1

Choose Map Styles To Tags from the Tags panel menu.

2

For each style in your document, specify the tag that you want it to be mapped to.

Map Styles To Tags dialog box

3

To match style names to tag names, click Map By Name. Styles that are named identically to tag names are selected

in the dialog box. Map By Name is case-sensitive;

Head1

and

head1

, for example, are treated as different tags.

4

To use style mappings set up in another InDesign file, click Load and select the file.

5

Select or deselect Include options:

Master Page Items

Maps styles found on master page text frames to tags.

Pasteboard Items

Maps styles found on text frames on the pasteboard to tags. (Deselect this option to avoid tagging

content on the pasteboard.)

Empty Frames

Maps styles located on empty text frames to tags. (Deselect this option to avoid tagging empty

frames.)

6

Click OK.

The new XML tags are applied throughout your document to paragraph and character styles that you specified in
the Map Styles To Tags dialog box.

Note: You cannot tag images with the Map Styles To Tags command. You need to manually tag images if you want to
include them in an XML file.

Advertising