Hi all I am working on the upgrade of a JR2 app to Oak and discovered an incompatibility in the xpath syntax.q
In JR2 (actually CRX 2) both of the following queries for nodes with a boolean property can be parsed, however only query (a) returns search results. (a) /jcr:root/test//*[@foo = true()] (b) /jcr:root/test//*[@foo = true] On Oak 1.2, query (a) results in an exception[0] and query (b) returns search results. This begs three questions: 1. Which of the two is syntactically correct? Or are both? 2. Should both return the same results on JR2? 3. Should the parser in Oak be more lenient and ensure backwards compatible behaviour? Regards Julian [0] java.text.ParseException: Query: /jcr:root/test//*[@foo = true((*))]; expected: ]
