{
state.error("Attribute reference cannot also specify form", XmlErrorContext.INVALID_NAME, xsdAttr);
// recovery: ignore form
}
SchemaGlobalAttribute referenced = state.findGlobalAttribute(ref, chameleon ? targetNamespace : null);
if (referenced == null)
{
state.notFoundError(ref, XmlErrorContext.ATTRIBUTE_REF_NOT_FOUND, xsdAttr.xgetRef());
// recovery: ignore this element
return null;
}
qname = ref;
use = referenced.getUse();
sType = referenced.getType();
deftext = referenced.getDefaultText();
if (deftext != null)
{
isFixed = referenced.isFixed();
}
}
else
{
if (local)