0 Replies Latest reply on Oct 2, 2012 1:32 AM by Vamitul

    XML processing

    Vamitul Level 4

      Hello!

      i'we been smashing my brains over this one, and I still have no clue how to do it:

       

      I have the following style structure:

       

      styles.jpg

       

      and the following XML:

       

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <werk_kv xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/">
      <gesetz><absatz1 aid:pstyle="gesetz|absatz1">Am sam, ut laccupt <betonung aid:cstyle="gesetz|absatz1|betonung">assinctios sunti</betonung> sed magnimagnis rem. Itati se plam qui dolores parit, teIllorro es et et omnis derit ut harci tem re nulluptasped maiones maion et moluptae plit prem volum laccuptatqui qui re, ut venda int.</absatz1>
      <absatz2 aid:pstyle="gesetz|absatz2">Ut liciaes erorrum verovid quibus atem voluptis <betonung aid:cstyle="gesetz|absatz2|betonung">voluptaque verrum nonse porpore volore</betonung> nectotas ipsam aut a corestiae evendi beatis parchilitae ilici quos di quid magnime nullandit dolum enist que nat.</absatz2>
      </gesetz>
      <kommentar>
      <absatz1 aid:pstyle="kommentar|absatz1">Am sam, ut laccupt <betonung aid:cstyle="kommentar|absatz1|betonung">assinctios sunti</betonung> sed magnimagnis rem. Itati se plam qui dolores parit, teIllorro es et et omnis derit ut harci tem re nulluptasped maiones maion et moluptae plit prem volum laccuptatqui qui re, ut venda int.</absatz1>
      <absatz2 aid:pstyle="kommentar|absatz2">Ut liciaes erorrum verovid quibus atem voluptis <betonung aid:cstyle="kommentar|absatz2|betonung">voluptaque verrum nonse porpore volore</betonung> nectotas ipsam aut a corestiae evendi beatis parchilitae ilici quos di quid magnime nullandit dolum enist que nat.</absatz2>
      </kommentar>
      </werk_kv>
      
      

       

      After importing the XML file i get this:

      styles2.jpg

       

      How can i fix it, so when importing, the "aid:pstyle="kommentar|absatz1" etc. matches the defined styles structure? I'we tried many different things, and the only conclusion i came is that i need scripting. I have no ideea where to start.