0 Replies Latest reply on Sep 12, 2012 3:52 AM by Loic.Aigon

    Xpath issue with operators ?

    Loic.Aigon Adobe Community Professional



      I am facing an issue while trying to use operators in a ExtendScript Xpath Call.


      var xml = <root>
      xml.xpath ( "//*[number(substring-before(time,':'))<6]" ); //OK
      //Now let's try to use the * operator
      xml.xpath ( "//*[number(substring-before(time,':'))*2<12]" );  //SYNTAX ERROR claiming a missing right paren.


      If I test this expression with Oxygen & XPath 1.0, everything is fine. Are the use of operators a know issue ?

      Do I miss something ?


      TIA Loic