Your XML it is invalid because the "xsd" prefix is not declared (which was even reported in the command output edited out in the second .version of the question).
You want xmlns:xsd=
not xmlns=
.
Also name()
returns a QName. You want to use local-name()
to match local names.