Use name of nodes, not just attributes
Use DOM, not inputsource as this fixes a "bug"http://stackoverflow.com/questions/1985509/saxon-xpath-api-returns-tinyelementimpl-instead-of-org-w3c-dom-node in new versions of saxon