Is there a way to automatically map all para/character styles to tags? I'd like to export an XML file, retaining as much style information as possible. The documents I'm dealing with have a lot of styles, so initially I'd like to map all of those to tags, look at the XML, then rationalise from there on.
XML out of ID is a bit outside of my workflow. I did a quick Google search and came up with a possible solution, which is marked as the answer, in this thread:
I tried it on a few of my files. It failed on a couple I have recently received, but not on my own files. The only difference I can see between my documents and the ones from an outside agency is that I strictly use paragraph and character styles whereas. The files that failed were simply all local formatting.
There may be more scripts out there that work better, but this was the first hit in Google. If this doesn't meet your needs, consider posting in the ID Scripting sub-forum