(Q6) (Equivalent to Q5)

NAMESPACE DEFAULT = "www.abc.com/names"
NAMESPACE xyz = "www.xyz.com/names"
document("zoo.xml")//tiger[xyz:*]
  • This query illustrates the use of default namespaces in path expressions.
  • This deviates from the XPath standard which states: "the default namespace declared with xmlns is not used: if the QName does not have a prefix, then the namespace URI is null (this is the same way attribute names are expanded)."
  • Of course, the XPath spec probably shouldn't be talking about xmlns... which is only one possible way to define namespace mappings (XSLT's way)
<<<  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15    >>>