Hi, libxml rejects expressions such as '- - 17' whereas the XPath Rec says they are valid expressions: [27] UnaryExpr ::= UnionExpr | '-' UnaryExpr The attached patch should fix the problem (2 minor changes in xmlXPathEvalUnaryExpr, not tested). Tom.
Attachment:
xpath.patch
Description: Text document