Atomik Xport SE: Tutorials > Chapter 5 Tutorial 3: Atomik Xport Tools << >>

5.2 Associating captions with images

In our extracted XML, you will find that images are not grouped with their respective captions, making our XML data less meaningful. For instance, the picture box containing the Coit Tower on page 2 has been extracted with the caption ‘Above: The Las Vegas Strip‘ as its sibling. This is not the appropriate caption for the image.

In this stage of Tutorial 3, we will use the Xport Tools to associate each caption with its image, thereby ensuring they appear as matched sibling elements in the extracted XML.

To associate a caption with an image, we need to multi-select the two boxes:

  1. Make sure you are using the QuarkXPress content selection tool.
  2. On page 2, select the text-box containing the caption ‘Above: The Las Vegas Strip.‘
  3. Press the ‘Shift’ key and select the image box above the caption.

Once you have an image and an caption box multi-selected, you will find that the relevant icons on the Xport Tools palette are enabled.

  1. Press the first icon on the Xport Tools palette. The image and the caption will be associated.

Note: once the association is made, in addition to the ‘Associate Caption with Image’ icon, two other icons in the Xport Tools palette become enabled: ‘Jump to Caption’ and ‘Remove Caption Association’.

  1. Repeat this process with other images that have captions in the layout.

Once you have completed associating images with captions, you can view the associations as follows:

  1. From the Window menu select ‘Xport Image Captions’

This palette will list all the images that have associated with captions or copyright text. If you have associated all captions, you will find four images listed.

  1. Open the XML Preview and extract the XML using the Tutorial3 ruleset.

If you explore the XML tree view (remember: Alt + Click on the triangular icon to fully expand the tree), you will find that images appear together with their associated captions, in the Graphic element.

Associating text when an image is grouped with multiple boxes

It may be that the image you want to associate with a caption and copyright text has been grouped with multiple boxes. In this case, Atomik Xport will offer a dialog enabling you to specify which text box represents the caption and which text box represents the copyright information.

The same dialog is presented when you have multiple text boxes selected with the image.