title: Xpath error with not() and ends-with()
body: <p>I have the following Xpath expression:</p>
  
  <pre><code>//*[not(input)][ends-with(@*, 'Copyright')]
  </code></pre>
  
  <p>I expect it to give me all elements - except input - with any attribute value which ends with "Copyright".</p>
  
  <p>I execute it in the Selenium 2 Java API with <code>webDriver.findElements(By.xpath(expression))</code> and get the following error:</p>
  
  <blockquote>
    <p>The expression is not a legal
    expression</p>
  </blockquote>
  
  <p>But these expressions work without trouble:</p>
  
  <pre><code>//*[not(input)][starts-with(@*, 'Copyright')]
  //*[ends-with(@*, 'Copyright')]
  </code></pre>
  
  <p>Any ideas?</p>