Article View: adobe.scripting.indesign
Article #1530Re: Access image placed by xml-rules
From: Bob Stucky
Date: Thu, 05 Feb 2009 16:57
Date: Thu, 05 Feb 2009 16:57
22 lines
1292 bytes
1292 bytes
Siegfried, I'm not certain that I fully understand your question. But here's an answer to what I think you're asking. Once you create a rule (or a bunch of rules), you invoke them using the rule processor's glue code. (InDesign CS4/Scripts/XML Rules/glue code.jsx) In that script you'll see: function __processRuleSet (root, ruleSet, prefixMappingTable) In your code, AFTER you have imported your xml, you'll need to call this function with the appropriate XML element and an array or rules to process. var root = app.activeDocument.xmlElements[ 0 ]; var ruleSet = [ new SymbolRule() ]; __processRuleSet( root, ruleSet ); Does that answer the question? Bob
Technical Details
Message-ID:
<59b7c9c9.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b7c9c9.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,68107f50ad7c3079 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Bob Stucky" <rstucky@starband.net> Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Access image placed by xml-rules Message-ID: <59b7c9c9.0@webcrossing.la2eafNXanI> Date: Thu, 5 Feb 2009 08:57:14 -0800 References: <59b7c9c9.-1@webcrossing.la2eafNXanI> Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit