GNOME Bugzilla – Bug 61720
<xsl:if ... or does not evaluate correctly
Last modified: 2009-08-15 18:40:50 UTC
I have an expression with or: /Object/user/id=/Object/owner/object/id or owner/object/id=/Object/user/id which does not work. I am attaching a testsuite. I am not sure about the usage of or, but this works with sablotron.
Created attachment 5757 [details] the xsl generates lots of html. I placed some lines like ERROR! at the appropriate place. Also there is a line with "---" to show the place.
The error seems to be in your stylesheet. The fact that the two node sets are equal is not defined as the string values of the nodes are equal. A priori the two node sets don't share any nodes and hence they are not equal. The fact that their string values are is not relevant. If you want to compare the string values not the node sets then use string(xxx) = string(yyy) ! Please read the section of the XPath spec on node-sets equality Daniel
Seems there is nothing new to add, Daniel