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

    Xpath Error

    Level 1
      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