XML-import in InDesign

Ask a Question related to Adobe Indesign Windows, Design and Development.

  1. #1

    Default XML-import in InDesign

    Hi!
    I am software developer for visual basic in a company producing disposition software for theatres. One of our customers requested some database content to be exported to a format, InDesign is able to read.

    After i read some documentation about InDesign, i decided to choose XML as my format of choice. Is there any point that militates against that choice?

    The data to be imported into InDesign belongs to a report which shows, which actors play in a performances at night. So this report has to be done every day for the evening performance. The report is then printed and put into a leaflet all theatre guest get a the entrance.

    So, now to my question. I have some data occuring once (e.g. title of the play, date, composer) and some data occuring multiple times (first and last name of the numerous actors/actresses, names of their roles, staff with their functions, etc.).

    I have already built a template in ID, with text and images boxes all around, being able to store all the importet values. The data which i want to be displayed together (first and last name) is grouped under a tag called "name" so that i can assign this "name" tag to a text box.

    This works already, the central window is displaying the data. But how can i process the reocurring data so that i get one line for each dataset? The line has to look like "first name, last name, role" where first and last name are right-aligned and role is left-aligned, both meeting in the middle. Hmm, i hope, i have cleary stated, what my problem is..

    It has to look like this:




    ................DATE-OF-PLAY..............
    ...............TITLE-OF-PLAYY.............
    ..............NAME OF COMPOSER............
    ..........................................
    * ..........NAME NO1 | ROLE NO1..........
    * ..AND.NOW NAME NO2 | AND NOW ROLE NO2..
    * ......NOW NAME NO3 | NOW ROLE NO3......
    * ....LAST NAME HERE | LAST ROLE HERE....

    ..........................................
    .................OTHER TEXT...............
    ..........................................

    * difficult lines


    Can anyone plz help with this problem?

    Kind regards
    QuadBlade



    QuadBlade@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. import to Indesign from Excel
      I have a spreadsheet output from an Access db I receive every week. Signs get printed in Indesign for a retail store, detailing the item and the...
    2. Cannot import .pdfs into InDesign CS
      Hi folks; I'm trying to place a .pdf into InDesign CS on the Mac running 10.3.9. I keep getting this error message: Cannot place this file....
    3. InDesign Cs PDF Multipage import
      I like a script for importing Pdf multipage files using Indesign CS(Windows version). Anyone can help me? I tried with a script found in Studio...
    4. Illustrator CS EPS - Import InDesign CS
      An drawing made in Illustrator CS, collored white en saved as an EPS file, gives the folowing Result when importing into InDesign CS. You get a...
    5. Non Aliased import to Indesign
      Hi, Think I've had a mental block, this works fine at work. I'm importing a simple device type logo into Indesign in .ai or .eps format but the...
  3. #2

    Default Re: XML-import in InDesign

    Hmm, thats not much response.. :-/

    No InDesign-Crack who can help me with that problem?
    Any hint is greatly appreciated :-)
    QuadBlade@adobeforums.com Guest

  4. #3

    Default Re: XML-import in InDesign

    Seems to me the best way to do this is:

    In your XML file, create a tag called "Cast". Create a child tag within "Cast" called "Actor" and one called "Role". Assign the tags to the appropriate elements. Save your XML file for use as a tag template in ID.

    In your ID template, create a paragraph style with two tab stops: a right aligned stop for the actor name and a left aligned stop for the role. Make the center point between the tab stops the center of the text frame. Apply all other text formatting in this Paragraph Style. Name this style "Cast". Now, in your template, set dummy text (John Doe : John Smith) in the "Cast" style with one tab character before "John Doe" and one before "John Smith".

    Open your "Tags" pallete in ID and select "Import Tags" from the flyout menu. Select the XML tag template you saved earlier. Now, you should have the "Cast", "Actor", and "Role" tags available. In the "Tags" pallete, select "Map Styles to Tags" from the flyout menu. Click on the "Map By Name" button to assign the styled text to the appropriate tags. Using the text tool, select the words "John Doe" (not the tab character). Click on "Actor" in the Tags pallete to assign that text to the "Actor" tag. Repeat with the "Role" text, assigning "John Smith" to the "Role" tag. Save as an ID template. Now, when you open the ID template and import XML, your dummy text should be replaced with the appropriately tagged text from your XML file.

    (Caveat: this is mainly theoretical from my viewpoint, since I haven't actually tried the importing process :). I have done the tagging, though. You might need to repeat the dummy text into several lines, because I'm not sure if ID will automatically add lines as needed. Experimentation may be in order.)
    Greg_Gaspard@adobeforums.com Guest

  5. #4

    Default Re: XML-import in InDesign

    Where are data stored? In database or in .xml? If in database, I would skip .xml export (via VB) and replace it by export into Tagged Text. Try to export some text from ID into this format and then have a look at its source. There is possibility to specify paragraph styles, formating and many other things. Generated file can be in next step imported into text frame. Tag specification you can find in TaggedText.pdf file on installation CD.
    If data are stored in .xml, they could be transformed into tagged format by proper XSLT transform template.
    Jan_Tosovsky@adobeforums.com Guest

  6. #5

    Default Re: XML-import in InDesign

    Please report on how this works for you! After working with XML import and tag-to-style mapping in InDesign for over a year now, I still have numerous issues, although I'm still trying. (The payoffs for getting it working will be huge.) I have solicited and gotten help here on the Forums from time to time, but basically have concluded that although it "should work," nobody actually does this in a production environment.

    Thanks,
    Theano
    theano_mouratides@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139