Markos, I double checked again. In Revision 6506 I still get the empty result. I also double checked with Saxon which gives me my expected result of 260 text nodes. I executed the query as follows (note that doc.xml contains the file that is attached to this bug report):
tmp.xq
declare default element namespace "http://www.w3.org/1999/xhtml";
fn:data (doc("doc.xml")//td [not(@class) and parent::tr[@class]]/a/text())
Markos, I double checked again. In Revision 6506 I still get the empty result. I also double checked with Saxon which gives me my expected result of 260 text nodes. I executed the query as follows (note that doc.xml contains the file that is attached to this bug report):
tmp.xq www.w3. org/1999/ xhtml"; :tr[@class] ]/a/text( ))
declare default element namespace "http://
fn:data (doc("doc.xml")//td [not(@class) and parent:
command
bin/zorba -q tmp.xq -f