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))

Can someone confirm that the behavior for the first query is a bug and, if so, 
please add it to your bug tracking system? I'm hoping you will be able to 
reproduce the problem in some form; the problem didn't occur for any elements 
that happen to occur in the documents in my collection, and I'm not sure why it 
occurred for the pair of elements (<refentry> and <relatedlinks>) I used above.

Thanks,
Amanda Galtman
The MathWorks, Inc.
 
--
Qizx Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/qizx-support

Reply via email to