|
(I forgot to answer to the list, so I'm forwarding my reply to the
list) Le 08/01/2012 13:36, Amanda Galtman a écrit : Hi, I believe the following query should not produce any "1"s in the result. However, it produces a small number of "1"s along with the many correct "0"s.for $node in //refentry[count(descendant::relatedlinks)=0] return (count($node//relatedlinks)) I first saw a problem like this in Qizx Studio 4.2. I tried the same thing in Qizx Studio 4.4, with the same result. I tried this variation, and it produced the expected result of all "0"s. for $node in //refentry where (count($node//relatedlinks)=0) return (count($node//relatedlinks)) Your queries are different: // is a synonym for descendant-or-self Try the first query with "descendant-or-self::relatedlinks" (or ".//relatedlinks") instead of "descendant::relatedlinks", if there still are "1", this is a bug. |
-- Qizx Support List [email protected] http://www.xmlmind.com/mailman/listinfo/qizx-support

