Skip to main content
Andreas Jansson
Inspiring
November 3, 2011
Question

Importing XML containing tables with images

  • November 3, 2011
  • 1 reply
  • 1098 views

Hi

I'm to decide the input-format, and the approach for importing a table. The source format is XML, similar to an HTML table, but this will take a tour through a web service, where I'll be able to transform it into what's needed.

In addition to rows and columns (and other things that all tables have), I need to support:

* Cells spanning more than one column or row.

* Images in cells.

Creating, and exporting tables manually in InDesign, it seems that CALS tables are the ones most close to the original format (HTML like), but I find no clues as to how to support images in CALS tables.

The InDesign tables seem to be a pain, with all it's cells, and no row-markers.

Should I look at something else than "standard XML", such as IDMS (snippets)?

The CALS XML way looks good... just the image support I can't find.

Best regards,

Andreas

Edit: Since I can't find a single question about images in CALS tables I suppose anything inside the "<entry>" elements is not part of the actual CALS tables specification. Just as if the table spec for HTML would explain the IMG tag (which it of course shouldn't do). But to rephrase: can an image (preferrably "image link")  be put in a CALS table entry somehow?

Message was edited by: Andreas Jansson

This topic has been closed for replies.

1 reply

John Hawkinson
Inspiring
November 3, 2011

I would give up and put a placeholder in the table, and then postprocess it with a script to turn all the placeholders into image links.

Andreas Jansson
Inspiring
November 4, 2011

Giving up is the word! I've put far too much time trying to find a built-in capability.

I just needed someone to point this out to me :-)

Thanks,

Andreas