Fixed an incorrect comparison where the schema's qualified name was
compared to the qualified names of named elements.