/** Replace {vars} in attributes. */ public void startElement(String uri, String localName, String qName, Attributes attr) throws SAXException { AttributesImpl newAttr = new AttributesImpl(attr); for (int i=0; i<attr.getLength(); i++) { newAttr.setValue(i, interp(attr.getValue(i))); } super.startElement(uri, localName, qName, newAttr); }