Properly fold whitespace around the QName value when validating an XSD schema.

(May also need fixing in other places.)

Issue: 239
4 jobs for 239-qname-whitespace-folding in 7 minutes and 51 seconds (queued for 6 seconds)