How do you properly tag linked images when importing XML content?

I'm importing content from an Access database into ID CS2 using XML. So far so good with the text and numbers--I'm having difficulty with the graphics, though. There's an image associated with each record and I want InDesign to place the appropriate image in a placeholder frame.
Right now I have a field in the database which contains the relative path to the image file for each record, but when I import the XML into ID, the link is displayed as text in the graphics frame.
How do I solve this?
Thanks.

Hi,
Give the path to the image as an attribute href.
example:
<image href="../my/path/to/the/image.jpg">  (if the path is relative to the indesign-file)
or
<image href="C:/my/path/to/the/image.jpg">
Greetz,
Glen

Similar Messages

  • How do you overide fit to frame when importing images in pre11

    I have both landscape and portrait images and the portrait ones are cropping to lanscape by default so I am losing heads etc how do I stop that happening?

    As I say in my books, before you import the photos into your project, go to the preferences (under the Edit menu on a PC) and uncheck Scale to Frame Size.

  • How to find format of an image when its byte[] content alone is available?

    Hi,
    I'm working on code that gets an image content as input in byte[] format. With no other further details provided, how to identify the format of the image contained in the byte array? Specifically, I would like to know if the image contained in it is a PNG, JPG, BMP, etc.
    Image or ImageIO API does not seem to provide a means to do this. Is there a way how this can be achieved?
    Thanks in advance.

    The ImageIO class does provide a way to do what you want... it just takes a couple of steps. Take a look at the determineInputFormat() method below:
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.util.Iterator;
    import javax.imageio.ImageIO;
    import javax.imageio.ImageReader;
    import javax.imageio.stream.ImageInputStream;
    public class ImageFormatTest {
       private static final String IMAGE_PATH = "... PATH TO IMAGE HERE ...";
       public static void main( String[] args ) {
          try {
             final byte[] imageBytes = readImageBytes( IMAGE_PATH );
             final String imageFormat = determineImageFormat( imageBytes );
             System.out.println( "Image format is " + imageFormat );
          } catch (Throwable ex) {
             ex.printStackTrace();
       private static byte[] readImageBytes( String imagePath ) throws IOException {
          final File imageFile = new File( imagePath );
          final byte[] buf = new byte[ (int) imageFile.length() ];
          final FileInputStream fStream = new FileInputStream( imageFile );
          fStream.read( buf );
          fStream.close();
          return buf;
       private static String determineImageFormat( byte[] imageBytes ) throws IOException {
          final ByteArrayInputStream bStream = new ByteArrayInputStream( imageBytes );
          final ImageInputStream imgStream = ImageIO.createImageInputStream( bStream );
          final Iterator<ImageReader> iter = ImageIO.getImageReaders( imgStream );
          final ImageReader imgReader = iter.next();
          return imgReader.getFormatName();
    }

  • When making a photo book in Aperture. How do you eliminate having the image numbers under the pictures?

    When making a photo book in Aperture. How do you eliminate having the image numbers under the pictures?

    Click the "Book Actions" cogwheel and select "Page Numbers " -> "Off"
    Regards
    Léonie

  • Iphoto is blacking out vertical images when importing.  how do i fix this?

    iphoto is blacking out vertical images when importing. how do i fix this?

    There are 9 different versions of iPhoto and they run on eight different versions of the Operating System. The tricks and tips for dealing with issues vary from version to version and OS to OS. So before anyone can help, they need information to work with. Things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. What were you doing when the problem arose?
    - Did it ever work properly?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    Anything else you can think of that might allow someone else to understand your issue.

  • How can I improve quality of image when burning a movie to a DVD

    How can I improve quality of image when burning a movie to a DVD?

    What resolution are you using?  If the DVD is to be playable on an ordinary DVD player, only ordinary TV resolution is supported.  You need Blue ray for HD.
    Geoff.

  • How do you get money credited back when your child mistakenly buys an app while playing a free kids game?

    How do you get money credited back when your child mistakenly buys an app while playing a free kids game?  We need to refund the charges and apps that were mistakenly purchased by a child while playing a free kids game on Ipad.

    There are no refunds, but you can try contacting itunes support and asking for an exception.
    Click "Support" at the top of this page, then click the link under "Contact Us".

  • How can you get a mirror image of a photo on iPhoto?

    How can you get a mirror image of a photo on iPhoto?

    By using an external editor. Preview is already on your Mac. It's called 'Flip Horizontal'
    In order of price here are some other suggestions:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate or the App Store.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.

  • How do I bring tags on images from photoshop elements 8 to photoshop CS6

    How do I bring tags on images from photoshop elements 8 to photoshop CS6

    Mylenium wrote:
    Ask in the PSE/ PS forums. The simple answer is, though, that unless they are emebedded in the image or exist as sidecar XMP files PS won't use them. It doesn't look inside the PSE catalog files/ database.
    Mylenium
    ... which means you have to use the menu /file/write metadata to files so that the tags and ratings are written in the files or sidecar files themselves.

  • HT5312 how do you reset your security questions when the rescue email address no longer exists?

    how do you reset your security questions when the rescue email address no longer exists?

    Didn't the link to contact the iTunes Store staff in the 'Additional Information' section of that article work for you? If you don't already have a valid rescue email address, only Apple itself can reset the questions.
    (90823)

  • How do you properly disconnect a vga monitor?

    I use a vga monitor at work about 2 to 3 times a week. I have a MBP 13, 2011.  I use it for powerpoint presentations.
    I was wondering how do you properly disconnect it once I'm done?
    I normally close out the application; turn off VGA, and then just disconnect.
    I feel like this may not be the proper way to do this.  I've looked for some sort of eject, but haven't found anything.
    Any feedback would be greatly appreciated.

    If you are switching between a monitor and a projector and the display resolutions are not the same as the MBP's then you should turn off the computer as well. I have found when using a projector that things tend to work best if the computer's display resolution is set to the resolution of the projector. It may not turn out to be necessary, but keep it in mind.

  • How do you unlock your itunes account when you can't remember the answers to your security questions?

    How do you unlock your itunes account when you can't remember the answers to your security questions?

    Click here for information. If you can't get the answers emailed to you for some reason, contact the iTunes Store staff via the link in that article.
    (75741)

  • How do you save a transformed image?

    Windows Store App 8.1.
    I have an image that the user has rotated, scaled and clipped etc.  How do you save the transformed image?
    There are solutions of the forums but these use the System.Media.Imaging library that isn't available, classes like the TransformedBitmap etc. are not available. 
    I'm playing around with this approach but the decoder throws a "The image format is unknown"; 
    imageManipulation is UIElement.Image.
    Any ideas on how to achieve the saving of a Transformed image in a 4.5.1 8.1 store app?
    RenderTargetBitmap rtb = new RenderTargetBitmap();
    await rtb.RenderAsync(imageManipulation, (int)imageManipulation.ActualWidth, (int)imageManipulation.ActualHeight);
    IBuffer buffer = await rtb.GetPixelsAsync();
    using (InMemoryRandomAccessStream ras = new InMemoryRandomAccessStream())
    await ras.WriteAsync(buffer);
    await ras.FlushAsync();
    BitmapDecoder dec = await BitmapDecoder.CreateAsync(BitmapDecoder.BmpDecoderId, ras);
    Rob

    Hi,
    You can use BitmapEncoder to apply transforms such as scaling and cropping, set metadata and properties, and edit pixels while preserving any unedited
    data. After transform the data, you can copy the contents from the in-memory stream to the original file’s stream and close all of the streams. That make you can save the encoded image to the file:
    memStream.Seek(0);
    fileStream.Seek(0);
    fileStream.Size = 0;
    await RandomAccessStream.CopyAsync(memStream, fileStream);
    fileStream.Dispose();
    memStream.Dispose();
    You can see the link to get more information:
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/jj709937.aspx
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • How do you create a link to a pdf in Muse? Thought it was going to show that with Katie's menu and can"t find in any of the tutorials.

    How do you create a link to a pdf in Muse? Thought it was going to show that with Katie's menu and can't find in any of the tutorials.

    The steps would be :
    - Add files from file menu > select pdf > add to site
    - Select the content (rectangle,text etc) and click on hyperlink dropdown > it should show you the added files list
    - Select the file you want to link
    Thanks,
    Sanjit

  • How do you position tags in a spreadsheet? Can I eSign more than one tab in a spreadsheet?

    How do you position tags in a spreadsheet? Can I eSign more than one tab in a spreadsheet?

    Using text tags
    https://workspaces.acrobat.com/app.html#d=Bi-SZ3cbVCHwiWBBp-7G7g
    but spreadsheets are quite difficult to predict as they don't typically have a page size defined. If you can do this in Word it'll be easier.
    or convert to pdf before uploading to EchoSign.
    You an upload a spreadsheet with multiple tab and place tags on each tab and all will get converted.

Maybe you are looking for