I have the following Xpath expression:
//*[not(input)][ends-with(@*, \'Copyright\')]
I expect it to give me all elements - except input - w
Most likely explanation is that you are using an XPath 1.0 processors. The ends-with() function requires XPath 2.0 support.