public void startElement(String uri, String localname, String name, Attributes attrs) {
Origin origin = getOrigin();
Node n;
if (uri.equals(XMLParser.XACT_NAMESPACE)) {
if (localname.equals("tgap")) {
n = new TemplateGap(attrs.getValue("", "gap"), attrs.getValue("", "type"), origin);
} else { // agap
String ns = null;
String aname = null;
String gap = null;
for (int i = 0; i < attrs.getLength(); i++) {