XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Adobe's InDesign and XML
Subject: Those optionally varying graphics...
Date: 2004-12-29 09:46:05
From: MattLembo
Response to: Large documents

I'm a total rookie when it comes to XML but am quickly understanding its power. In your business card example you mention the ability to include a different graphic with each employee. Can you expand on this? I imagine there's a way to get an XML file to refer to an image (jpg? pdf? other?) which would then be embedded into a preformatted box in the .indd -- buy what does the XML code look like? Simple unix style (../images/graph1.jpg)? Thank you very much, by the way, for this thorough and easy to follow introduction to XML. -Matt

Previous Message Previous Message Move up to Parent Message Up Next Message Next Message


Titles Only Titles Only Newest First
  • Those optionally varying graphics...
    2006-06-30 02:48:12 phillhw [Reply]

    Indesign XML works very well with dynamically loading images.
    I am using Indsign 2.0 and the following works fine.
    In Indesign:
    Design the layout with a rectangle frame (the one with a cross on it), right click, define the contents as graphic and give it a tag name ie Image1.


    In XML file:
    Define the tag for Image1 with a href attribute:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Root>
    <Tag1>My New Product</Tag1>
    <Tag2>Buy this and you never need anything else again</Tag2>
    <Tag3>This Product gives you the following benifites</Tag3>
    <image1 href="file:///C:/images/1380.jpg" />
    </Root>

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938