String uri = attrs.getURI(i);
String local = attrs.getLocalName(i);
String qname = attrs.getQName(i);
String type = attrs.getType(i);
String value = attrs.getValue(i);
Substitutions substitutions = new Substitutions(parsingContext.getStringTemplateParser(), getLocation(), value);
if (substitutions.hasSubstitutions()) {
getAttributeEvents().add(
new SubstituteAttribute(uri, local, qname, type,
substitutions));
} else {
getAttributeEvents().add(