![]() Applying the repeating element tag to selected content. Applying tagsįirst we need to highlight all of the content of the repeating element you’re working on, next click the repeating element tag (dealer) in the Tags panel to apply it.įigure 6. DTD file and click open… and all of the tags defined as part of the DTD are available.Īn easy way to build the rest of the structure for your template and mark-up your template is to highlight content, then apply a tag. Assuming you have a valid DTD available, select Load DTD… from the Tags panel menu and navigate to the. I just remembered… isn’t it easier to use a DTD to add all the tags to the InDesign file? Rather than choosing the New Tag command each time, to insert a new tag? Absolutely! So let’s add the remainder of the tags used in this example by importing a DTD. To add a new tag for the dealer, select New Tag… from the Tags panel menu or click the New Tag icon at the bottom of the panel. In this example that is the dealer element, as you are going to use this template to run-in a list of all of the individual dealers for different brands of cars. When you’re working with repeating elements, as is the case in this example, you would add a Tag to your Tags panel for the element that is the repeated element. We need to add quite a few additional tags. Ok, we’ve added one tag, but what about the rest of the XML elements that need to be inserted? New tagsĪt this stage the Tags panel displays only the DealersList and Story tags. InDesign’s default Tagging Preset Options. ![]() To verify InDesign’s four default tags used for Story, Table, Cells and Images, select Tagging Preset Options from the Tags panel menu.įigure 4. If the Tag that’s added carries another name, then the default tag for Stories has been changed for the document you’re working on. The Story Element is automatically added to the Structure panel and the Text Frame is now tagged. ![]() Why tag things manually when we can do things ‘on-the-fly’ right? Select the Text Frame containing your single car dealer design content, and click the Autotag icon at the bottom of the Tags panel, or select Autotag from the panel menu. When you are basing the development of the InDesign run-in template on a sample document you’ve created, you can automatically add the Story element to the Tags panel and tag the Text Frame – instead of first adding a new Tag to the Tags panel, then adding this element to the Structure.įigure 2. The Story element itself will be the parent of all other elements. In the Structure panel that is indicated by the indentation. This tag is a child tag, which means it is nested within the root tag. The default tag for a Text Frame or series of threaded text frames (a story) in case of a multi page or listing, is… you guessed it… the Story tag. One thing to keep in mind is that the XML list of car-dealers, when imported, will end up as text in a Text Frame. To view the Tags panel, select Window > Tags. The new name automatically updates the Root element name in the Structure panel. If preferred, select the original Root tag in the Tag panel and rename it to your preferred name. With the design element finished, you’re ready to get started with the build of the Structure and template. If you are going to Map Tags to Styles as part of your template design, it is probably a good idea to create matching Tag and Style names in the template, as it makes adding the Tags to the panel a much easier task. ![]() For example a rule could be that a Dealer may must have nested elements for brand name, description, office details, phone listed in a fixed order. DTD’s also enable you to validate the XML structure you create, or that is imported during XML import, against rules set in the DTD. Consider using a DTD – Document Type Definition, to quickly insert all of the possible tags into the Tags panel without making any typos. Give your data meaningful names, in the Tags panel you’d add new tags for each of the XML elements. Building an InDesign XML run-in template for repeating elements. Reviewing the structure of a design and assigning tags to content. I put together some notes at the time, and I recently rediscovered them and thought it was time to share them with the rest of the world □ I’m posting them un-edited, so if you spot any glaring errors feel free to send me an email or leave a comment, and I’ll update the posts accordingly.įigure 1. Some years ago I ran a series of seminars on working with XML and InDesign using an ‘out-of-the-box’ approach. ![]()
0 Comments
Leave a Reply. |