Unexpected result on reversed self-reference XPath

0
Hi, I have a simple enity "Entity" with a self-reference "Self". In a datagrid I want to show all Entities that are referenced by another Entity. I.e. given A and B with A/Self = B the grid should show B. I expected that this could be achieved with //Entity[ Self[ reversed() ]/Entity] However, this does not work, but gives the same result as //Entity[ Self/Entity ] The reversed() seems to be ignored in the first XPATH. On the other hand, when I use the following expression, it works fine: //Entity[ Self[ reversed() ]/Entity/id!=empty] I couldn't find any explanation for this behaviour. Is this a bug, or just some weird special case?
asked
1 answers
0

Seems like a bug.

Did you log the resulting SQL? What does this tell you?

 

answered