Hi,
I am working a lot with XML as a source. Till now I did make a flat XML (having for example as character styles "paragraph_bold" and "list_bold" where in XML it is only "<bold>"), imported in InDesign and mapped tags to styles. Recently I stumbled on a InDesign file made by somebody else (not reachable) who used "aid:pstyle" and "aid:cstyle" in XML tags and imported the XML in InDesign without making it flat and without mapping tags to styles. He also used in Paragraph and Character Styles Groups, having for example in the CharacterStyles Palette a Group "paragraph" with a style "bold" in it and a group "list" with a style "bold" in it.
I did export a XML from the InDesign file (I don't have the original XML file) and I did see something like this: "... text text <bold aid:cstyle="paragraph|bold"> text </bold> ...".
I tried to do the same thing but what I obtained was not exactly the same thing. After importing the XML file I found in the CharacterStyle Palette 2 new styles outside any Group: "paragraph|bold" and "list|bold". The XML started like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/">
What did I do wrong? Or how should the XML look out so that after importing I do not obtain some new Styles?
The original InDesign file was made in InDesign CS 5.5 and I did try this on InDesign CS 5 and a trial Version of InDesign CS 6 with the same result.
If somebody can help,
Thank you very much!
Dan