Watch out because normalize-space only trims leading and trailing whitespace characters and replacing sequences of whitespace characters by a single space.
If the attribute value in your input XML may contain an invalid QName then sooner or later you will get a runtime error
Hope this helps
Ivan
here a quick example
======================
input XML
<Createelement_MT>
<Field Name="A">
<Value>A</Value>
</Field>
<Field Name=" space ">
<Value> space </Value>
</Field>