Detect unregistered namespace prefixes and provide useful error messages...

... in the UI.
Add a unit test for this class.