Jeni Tennison has written an article about the use of default namespaces using XPath 1.0 and 2.0 in either XSLT or XQuery.
The main issue being that XPath 2.0 allows (maybe a little confusing) applications to specify a default namespace for elements. For more information see:
http://www.jenitennison.com/blog/node/36
Labels: Jeni Tennison, namespaces, xml
Added an article about XPath and Default Namespaces describing how to handle XPath expressions when using default namespaces in your XML document. Illustrated using examples for 3 popular XPath implementations: Jaxen (dom4j/XOM/JDOM), the JAXP XPathFactory and XSLT.
Labels: namespaces, xml, xpath