(Q5) In the document "zoo.xml", find <tiger> elements in the namespace defined by www.abc.com/names that contain any subelement in the namespace defined by www.xyz.com/names.

NAMESPACE abc = "www.abc.com/names"
NAMESPACE xyz = "www.xyz.com/names"
document("zoo.xml")//abc:tiger[xyz:*]
  • XQuery's namespace-prefix binding mechanism is different than XSLT's, because XQuery does not use XML syntax.
<<<  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15    >>>