import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
+import org.xml.sax.helpers.AttributesImpl;
import org.xml.sax.helpers.DefaultHandler;
import org.apache.commons.logging.Log;
throws SAXException {
boolean handled = false;
if (AFPExtensionAttachment.CATEGORY.equals(uri)) {
- lastAttributes = attributes;
+ lastAttributes = new AttributesImpl(attributes);
handled = true;
if (localName.equals(AFPElementMapping.NO_OPERATION)
|| localName.equals(AFPElementMapping.TAG_LOGICAL_ELEMENT)
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
+import org.xml.sax.helpers.AttributesImpl;
import org.xml.sax.helpers.DefaultHandler;
import org.apache.commons.logging.Log;
throws SAXException {
boolean handled = false;
if (PDFExtensionAttachment.CATEGORY.equals(uri)) {
- lastAttributes = attributes;
+ lastAttributes = new AttributesImpl(attributes);
handled = false;
if (localName.equals(PDFEmbeddedFileExtensionAttachment.ELEMENT)) {
//handled in endElement
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
+import org.xml.sax.helpers.AttributesImpl;
import org.xml.sax.helpers.DefaultHandler;
import org.apache.commons.logging.Log;
throws SAXException {
boolean handled = false;
if (PSExtensionAttachment.CATEGORY.equals(uri)) {
- lastAttributes = attributes;
+ lastAttributes = new AttributesImpl(attributes);
handled = false;
if (localName.equals(PSSetupCode.ELEMENT)
|| localName.equals(PSSetPageDevice.ELEMENT)