3 Replies Latest reply: Feb 11, 2009 12:52 PM by DrClap RSS

    emergency xpath help

    807588
      I need to select all nodes that have an attribute id, except if the parent element is of type1 or type2

      so the xpath for just the id attributes is
      //ac:*/@id
      how do i get it to only get the attribute if the parent element is not type1 or type2?

      so

      <text id=""/>

      would be selected by

      <type1 id="">

      would not (and same for type2)

      thanx?