beautypg.com

Specify autotag defaults, Map xml tags to styles – Adobe InCopy CC 2015 User Manual

Page 372

background image

370

XML

Last updated 6/13/2015

Untag a page item

Untag an item to remove its tag but retain the associated content.

1

Select the element in the Structure pane window, or select the page item in the document layout.

2

Do one of the following:

• Click Untag Element in the Structure pane menu.

• Click the Untag button in the Tags panel.

Retag a page item

Retag an item to replace the existing tag (you don’t need to untag it first).

1

Select the Type tool

.

2

Do one of the following:

• Select the text or text frame, and then click a different tag in the Tags panel.

• Place the insertion point in a tagged text frame within a story element (not a child element). Select Retag at the

top of the Tags panel, and click a different tag in the Tags panel.

• Select the entire block of text to which a tag has been applied, select Retag at the top of the Tags panel, and click

a different tag. (If you select Add Tag at the top of the Tags panel, and then click a different tag, a new child
element will appear in the Structure pane.)

Specify Autotag defaults

When you select a text frame, table, table cells, or an image, and then click the Autotag icon in the Tags panel, InDesign
applies a default tag to the item you selected. You can specify these default tags in the Tagging Preset Options dialog box.

When you select a text frame, table, table cells, or an image, and then click the Autotag icon in the Tags panel, InCopy
applies a default tag to the item you selected. You can specify these default tags in the Tagging Preset Options dialog box.

Note: InCopy applies a default tag when you create an element that requires a parent element, but doesn’t yet have one. For
example, if you tag text within a text frame but the frame itself isn’t tagged, InCopy assigns the frame a tag according to the
Tagging Preset Options. The capability to apply default tags helps InCopy maintain correct XML structure.

1

Choose Tagging Preset Options from the Tags panel menu.

2

Choose a default tag for text frames, tables, table cells, and images.

If the tag you need isn’t listed, you can choose New Tag from the menu and create a tag.

Map XML tags to styles

XML tags are merely data descriptions; they carry no formatting instructions. As such, you need to format XML
content after you import it and lay it out. One way to do that is to map XML tags to paragraph, character, table, or cell
styles. For example, the Byline tag could be mapped to the Author character style, so that all imported and placed XML
content that is tagged Byline is automatically assigned the Author character style. Mapping tags to styles makes
formatting imported XML content easier and less time-consuming.

You don’t need to map every tag to a paragraph or character style. Some elements may not appear in the layout and
others may be easier to format one at a time. Moreover, child elements take on the paragraph or character style that is
assigned to their parent, which can cause confusion unless you are careful to map parent and child elements separately.