Require all namespace aliases to be defined on the root element

Change-Id: I8aa53f4aacd86a331b42a9bb3575015e6857c07b