🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9337

Re: XML Element invalid after placing asset

#9337
From: Dirk_Becker
Date: Tue, 05 Sep 2006 12:05
7 lines
1326 bytes
There is a similar problem with text. If you have a text reference such as returned by find, and modify preceding text, it will point to somewhere else. This is because the script objects used for text and xml are actually only temporary "proxy" objects.

One approach is yours - remember the xml item by some immutable criteria and recover it when needed.

Another approach would be similar to one used in text: find patterns which operations touch which (e.g. preceding) xml items, and work in the reverse order. I haven't yet seen investigations in this area, and the tree nature of XML might make it more complicated.

Dirk
Technical Details
Message-ID: <3bc18824.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!newsfeed.freenet.de!news.albasani.net!news.buerger.net!news.isoc.lu!webcrossing
References: <3bc18824.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,d3ddd70d0fa9b296
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dirk_Becker@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!newsfeed.freenet.de!news.albasani.net!news.buerger.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: XML Element invalid after placing asset
Message-ID: <3bc18824.1@webcrossing.la2eafNXanI>
Date: Tue, 5 Sep 2006 05:05:47 -0700
References: <3bc18824.-1@webcrossing.la2eafNXanI>
Lines: 14
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit