I have a workflow where I would like to modify content and import the new content into the same Indesign layout. I thought the following would work:
- Export XML from Indesign
- Modify XML
- Import XML into indesign
- Repeat at 2 for each update
However, the xml exported by Indesign is a single line of xml. When I reformat in webstorm or any editor to easily modify the document, the import of that xml ruins my layout (I assume because I changed some special or hidden characters at the format) even if I manually remove tabs and newline characters.
Is there any other way to make this workflow work? The only ways I can see are:
- Must edit content directly in indesign document
- Use XSLT somehow?
- An editor that displays xml pretty but saves without any changes in whitespace (i.e. will display your xml pretty but of course, you can't edit it)
- use
<?whitespace-handling use-tags?>
in the xml but didn't work for me see (http://www.justskins.com/forums/xml-import-whitespace-and-78216.html)