🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #66

Xpath Error

#66
From: ksaravanan
Date: Fri, 27 Mar 2009 09:12
25 lines
1125 bytes
Hi there,

I have done various process through Xpath. However a strange error occur if xpath = orderedlist

Please look the code :
----------------------
function AddReturns(){
this.name = "AddReturns";
this.xpath = "//orderedlist";
this.apply = function(myElement, myRuleProcessor){
with(myElement){
insertTextAsContent("\r", XMLElementPosition.afterElement);
}
return true;
}
}

It raise the following error :
------------------------------
Adobe InDesign cannot process the illegal fragment 'ord' of Xpath expression '//orderedlist'

Please enlighten me.

Thanks in advance.
Saravanan.K
Technical Details
Message-ID: <59b86cdb.-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,5bb35df69bbe835,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: ksaravanan@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Xpath Error
Message-ID: <59b86cdb.-1@webcrossing.la2eafNXanI>
Date: Fri, 27 Mar 2009 02:12:48 -0700
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit