assertEquals( "[]", NodeTest.toString(p("foo/bar[1=2]").select(n)));
}
public void testNamespace() throws Exception {
Node n = parse("<r xmlns:q='http://www.example.com/q'>"
+"<foo><q:bar/><q:bar/></foo></r>", "http://www.example.com/q", "q");
System.out.println(n);
assertEquals( "[q: bar, q: bar, ]", NodeTest.toString(p("foo/q:bar[true()]").select(n),true));
assertEquals( "[]", NodeTest.toString(p("foo/q:bar[false()]").select(n),true));
assertEquals( "[q: bar, q: bar, ]", NodeTest.toString(p("foo/q:bar[1=1.0]").select(n),true));