0 Replies Latest reply on Mar 27, 2009 1:12 AM by (ksaravanan)

    Xpath Error

      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){
      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.