public void setDocumentLocator(Locator locator) {
this.locator = locator;
}
private Attribute makeAttributes(Attributes as, Origin origin) {
Attribute a = null;
for (int i = 0; i < as.getLength(); i++) {
String ns = as.getURI(i);
if (ns.length() == 0) {
ns = null;
}
if ((ns == null || ns.equals("http://www.w3.org/2000/xmlns/")) && as.getLocalName(i).equals("xmlns")) { // TODO: Why do we need to filter these in the results from XSL transformation? startPrefixMapping is called correctly
continue;
}
a = new Attribute(ns, as.getLocalName(i), as.getValue(i), a, origin);
}
return a;
}