🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2376

Duplicating a page - problem in CS3 - Using Javascript

#2376
From: Venkateswara_Rao
Date: Fri, 02 Jan 2009 07:23
59 lines
1951 bytes
Hi,

I am trying to replace images on my page (indesign tempalate) using "importXML" method.

I have added tags and XML looks like this

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

  <container>
    <imagefile></imagefile>
    <att_1></att_1>
  </container>
 <container>
    <imagefile></imagefile>
    <att_1></att_1>
  </container>


Now when I am duplicating a page which contains items as mentioned in above xml and when I exported a whole document xml to a file the final xml looks like this.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>


<container>
    <imagefile></imagefile>
    <att_1></att_1>

<imagefile></imagefile>
    <att_1></att_1>

</container>

<container>

<imagefile></imagefile>
    <att_1></att_1>

<imagefile></imagefile>
    <att_1></att_1>

</container>

<container> </container>
 <container> </container>


The container element is not properly duplicated.

Can you please tell me how to fix this problem.

Actually I will get dynamic xml (like above) from my server which may have
1 or any number and I have indesign template that contains a single page with 2 images boxes + 2 text boxes.

So if I get 6 images in xml, then I have duplicate the 1st page twice so that it will become 3 pages (3 x 2 = 6).

I am facing problem while duplicating page. Please help.

Thanks,
Venky
Technical Details
Message-ID: <59b76816.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,839d5b3a87e3336c,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Venkateswara_Rao@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Duplicating a page - problem in  CS3 - Using Javascript
Message-ID: <59b76816.-1@webcrossing.la2eafNXanI>
Date: Thu, 1 Jan 2009 23:23:36 -0800
Lines: 65
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit