Article View: adobe.scripting.indesign
Article #14654Re: [JS] How does the associated XMLElements property work?
From: Mark_Volmer
Date: Tue, 27 Jan 2004 09:48
Date: Tue, 27 Jan 2004 09:48
14 lines
1950 bytes
1950 bytes
Phil, Roberto, I'm kind of pursuing the same thing and am left VERY confused ;-) My experience/theory is that InDesign only allows you to tag top level elements, (inherited from pageItem), like textFrame is. Although 'sub'-elements within the contents of the textFrame appear to be tagged, this tagging cannot be accessed/modified from a script and only be used for formating with styles (it seems). What puzzles me most is the fact that pageItem does have placeXML and markup methods and an associatedXMLElement property. I've tried to add text to a textFrame as a new pageItem and use the placeXML method in several ways but none of them seem to work. Same thing goes for trying to tag sub-elements manually through the interface. The associatedXMLElement property gives me the same behaviour as Roberto describes. Even weirder is the 'markup' method behaviour, I can use markup to mark a selected part of a story but this adds the content as a new 'story' element at the bottom of my XML structure.... I figure there is no way to do XML association on a sub-story level, propably because this could alow you to create unsolvable circular references.... Will somebody please prove me wrong ?
Technical Details
Message-ID:
<2ccf94be.2@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf94be.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,19f5d2c2e731681c X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-27 02:07:54 PST From: Mark_Volmer@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: [JS] How does the associated XMLElements property work? Message-ID: <2ccf94be.2@webx.la2eafNXanI> Date: Tue, 27 Jan 2004 01:48:06 -0800 References: <2ccf94be.-1@webx.la2eafNXanI> Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit