+ "let $a := element node1 { attribute id {'id'}, "
+ "element node1 { '1'},element node2 { '2'} }"
+ "for $x in $a where $x/@id eq \"id\" return $x";
final XQueryService service = getQueryService();
final ResourceSet rs = service.query(xQuery);
assertEquals("testComputationBug_wiki_8", 1, rs.getSize());
assertEquals("testComputationBug_wiki_8", "<node1 id=\"id\"><node1>1</node1><node2>2</node2></node1>",
rs.getResource(0).getContent().toString());
}