if (simpleType != null) {
st = simpleType.compress(parent);
} else {
if ((ref != null) && !"".equalsIgnoreCase(ref)) {
Attribute refA = parent.lookUpAttribute(ref);
if (refA == null) {
throw new SAXException("Attribute '" + ref
+ "' was refered and not found");
}
st = refA.getSimpleType();
name1 = refA.getName();
use1 = use1 | refA.getUse();
if ((def1 == null) || "".equalsIgnoreCase(def1)) {
def1 = refA.getDefault();
}
if ((fixed1 == null) || "".equalsIgnoreCase(fixed1)) {
fixed1 = refA.getFixed();
}
} else if ((type != null) && (!"".equalsIgnoreCase(type))) {
// look it up --- find it
st = parent.lookUpSimpleType(type);
}