0 Replies Latest reply on Aug 25, 2013 10:32 PM by suripappu

    How can traverse the  xpath attribute name having namespace?


      tell application "Adobe InDesign CS5"

          set Xpath to {"//*/ext-link[@xlink:href !='']"}

          set myXPath to {Xpath}

          set myRuleProcessor to make XML rule processor with properties {rule paths:Xpath}

          set myRootXMLElement to XML element 1 of active document

          tell myRuleProcessor

              set myMatchData to start processing rule set initial element myRootXMLElement

              repeat while myMatchData is not equal to nothing

                  set myParentElement to get element of myMatchData

                  select myParentElement

                  set myMatchData to find next match

              end repeat

          end tell

      end tell


      -- error occur........