Proper merging of element references with their elements, and attribute
references with their attributes.
Adding XMLSCHEMA-33 support until Apache XML Schema 2.1.1 is released.