Browse Source

Bugfix: Need to copy attributes. Xalan XSLTC reuses the Attributes instance (and modifies it freely).

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@743492 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-1_0
Jeremias Maerki 15 years ago
parent
commit
2a40886018
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/java/org/apache/fop/area/AreaTreeParser.java

+ 2
- 1
src/java/org/apache/fop/area/AreaTreeParser.java View 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);

Loading…
Cancel
Save