Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question - not(not

 
mary morris
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following expression:
//*[not(not(@*))]
not(@*)
returns true only for those elements that have no attributes
this part is see,
but not;
not(not (@*)) which will return true for elements that have at least one attribute
how does the not(not work ??
 
Micheal Jacob
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
//*[not(not(@*))]
As u said not(@*) will give all the elements which dont have attributes.
not(elements dont have attributes) => elements which have attributes.
so it gives all the elements which atleast have one attribute
Micheal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic