<foo xmlns="http://foo-ns">). These expressions where not matching whereas using a prefixed namespace declaration would work.
I thought about a Xalan bug and always ended up using prefixed namespaces instead of the default one, without looking for a further explanation or bug fix.
This is actually not a bug: XPath doesn't consider the namespace declaration of unprefixed elements.
You never stop learning...
Via Dave .