"./Outer" doesn't select the "Outer" declared in your schema. This is because the default namespace does not apply to node tests [1] in XPath expressions. You must use prefixes for names which have a namespace. The following should work: