Article View: adobe.scripting.indesign
Article #8916Append XML Element, Attribute & value
From: rajeevkumar_sinha
Date: Wed, 20 Sep 2006 14:35
Date: Wed, 20 Sep 2006 14:35
11 lines
1250 bytes
1250 bytes
Hi All, I have some InDesign document, which is XML tagged. But now DTD has been changed, and I have to update the InDesign file as per the new DTD. Please suggest me how can I do it. I would like to prefer only Applescript, because I know applescript. In old file there is root called level 1 and within it there some attribute h1, h2, h3, h4. And with in the h1 attributes are p, list, item. In new file I want to create new root i.e. book within the book there is level 1, level 2, level 3, level 4, level 5. I want to move h1 to level 1, h2 to level 2 etc. list should be in level 4. It is only overview. Please give a sample code so that I will start working on it. Thanks
Technical Details
Message-ID:
<3bc1b4f6.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news1.google.com!news.germany.com!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,1789cac9167a996,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: rajeevkumar_sinha@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news1.google.com!news.germany.com!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Append XML Element, Attribute & value Message-ID: <3bc1b4f6.-1@webcrossing.la2eafNXanI> Date: Wed, 20 Sep 2006 07:35:00 -0700 Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit