]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugfix: Need to copy attributes. Xalan XSLTC reuses the Attributes instance (and...
authorJeremias Maerki <jeremias@apache.org>
Wed, 11 Feb 2009 20:34:11 +0000 (20:34 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 11 Feb 2009 20:34:11 +0000 (20:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@743492 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/area/AreaTreeParser.java

index 580ce19f440958dfea6e5937f2c69627501f147e..7269bdf108841447a53184d414a54b4c01cec984 100644 (file)
@@ -42,6 +42,7 @@ import org.w3c.dom.Document;
 import org.xml.sax.Attributes;
 import org.xml.sax.ContentHandler;
 import org.xml.sax.SAXException;
+import org.xml.sax.helpers.AttributesImpl;
 import org.xml.sax.helpers.DefaultHandler;
 
 import org.apache.commons.logging.Log;
@@ -250,7 +251,7 @@ public class AreaTreeParser {
                 delegate.startDocument();
                 delegate.startElement(uri, localName, qName, attributes);
             } else {
-                lastAttributes = attributes;
+                lastAttributes = new AttributesImpl(attributes);
                 boolean handled = true;
                 if ("".equals(uri)) {
                     Maker maker = (Maker)makers.get(localName);