Adobe InDesign CS3 Bible

Chances are that most of the time, you'll be exporting InDesign documents for use in XML databases, such as converting a publication's articles into a structured format used by a Web site's content management system. To export content properly, you need to apply tags to it. In InDesign, you can do that directly or by having InDesign translate style tags into XML tags. You'll use both methods , since some content (such as images) wouldn't have style tags associated to them but need XML tags for proper processing in an XML database.

Those tags come from two sources: They're imported from a file provided by the Web site's content engineer, or they're created in InDesign by the page designer. Most of the time, you should use tags created by the content engineer, since that engineer is creating a standard set of tags for multiple page designers (both print- and Web-based). You might create your own tags when helping develop the initial tags in concert with that content engineer ‚ or if you also are the content engineer, as well as page designer.

Importing tags

There are two places where you import tags: the Tags pane (Window ‚ Tags) and the Import XML dialog box (File ‚ Import XML). In the Tags pane, shown in Figure 34-1, you use the Load Tags option in the pane's palette menu to import tags from an XML file or an InDesign document that has tags defined in it. All tags are imported when you choose Load Tags.

Figure 34-1: The Tags pane.

The other way to import XML tags is to choose File ‚ Import XML, which imports not only XML tags but also XML content from an XML file. This process works two ways, depending on how your document is set up:

Creating tags

You also create XML tags in the Tags pane using the New Tag palette menu. A tag simply consists of the tag name and the tag color ‚ its formatting is defined in the XML database or in a DTD file.

Mapping tags and styles

In the Tags pane's palette menu, you can also map style tags to XML tags and vice versa using the Map Tags to Styles menu option and the Map Styles to Tags menu option, respectively. (They're also available in the Structure pane's palette menu.) Figure 34-2 shows the Map Tags to Styles dialog box; the Map Styles to Tags dialog box is nearly identical, except the two columns are switched. Here's what they do:

Figure 34-2: The Map Tags to Styles dialog box.

Категории