Thread View: adobe.scripting.indesign
3 messages
3 total messages
Started by jacintha_mary
Sat, 14 Mar 2009 09:03
XML Rules in Indesign
Author: jacintha_mary
Date: Sat, 14 Mar 2009 09:03
Date: Sat, 14 Mar 2009 09:03
16 lines
1169 bytes
1169 bytes
Hi all, I'm trying to use the XMLRuleProcessor for getting the elements directly by giving the x-path using Visual basic6.0.I have tried working on the below code, xpath="//para" Set rulesProcessor = myIndesign.XMLRuleProcessors.Add(xpath) but its returning the error as, "Invalid value for parameter 'RulePaths' of event 'Add'. Expected Array of Strings, but received "//para". Then i have delcared the array as "Dim arr(5) as string" and passed the array value "xpath=arr(0)" but still i'm not able to solve this problem. I really don know what its expecting to give. Does Anyone has any idea about this? Thanks, Jacintha.
Re: XML Rules in Indesign
Author: Robert Tkaczyk
Date: Sat, 14 Mar 2009 12:17
Date: Sat, 14 Mar 2009 12:17
13 lines
1095 bytes
1095 bytes
if you declare variable as Array of Strings but you send as param first element of this Variable - you still send String - not whole Array Dim xpath(5) as string xpath(0)="//para" Set rulesProcessor = myIndesign.XMLRuleProcessors.Add(xpath) but I don't know how XMLRuleProcessor work :( robin -- www.adobescripts.com
Re: XML Rules in Indesign
Author: jacintha_mary
Date: Mon, 16 Mar 2009 04:57
Date: Mon, 16 Mar 2009 04:57
5 lines
761 bytes
761 bytes
Hi Robert, I have tried your code. But still its not working. The error "Adobe Indesign cannot process xpath expression '//para' " has occured. Jacintha
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads