diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-02-17 13:20:40 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-02-17 13:20:40 +0000 |
commit | a2010e775b602f00a641cd0b85576db446c037d8 (patch) | |
tree | 1efff5fc93dfa20a0a0226a6b22cc65651221895 /src/java/org/apache/fop/fo | |
parent | c939529a9baf1a9ac1d16f935e8f11c89ca77be2 (diff) | |
download | xmlgraphics-fop-a2010e775b602f00a641cd0b85576db446c037d8.tar.gz xmlgraphics-fop-a2010e775b602f00a641cd0b85576db446c037d8.zip |
DOM2SAX code replaced. Copied and adapted from Xalan-J: http://svn.apache.org/repos/asf/xalan/java/trunk/src/org/apache/xalan/xsltc/trax/DOM2SAX.java
There were issues with well-formedness and namespace prefixes when an XMP fragment was serialized to XML. Now this works fine.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@378503 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo')
-rw-r--r-- | src/java/org/apache/fop/fo/extensions/xmp/XMPMetadata.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/extensions/xmp/XMPMetadata.java b/src/java/org/apache/fop/fo/extensions/xmp/XMPMetadata.java index fd84b2412..57a66ec03 100644 --- a/src/java/org/apache/fop/fo/extensions/xmp/XMPMetadata.java +++ b/src/java/org/apache/fop/fo/extensions/xmp/XMPMetadata.java @@ -86,7 +86,7 @@ public class XMPMetadata implements ExtensionAttachment, Serializable, XMLizable /** @see org.apache.fop.util.XMLizable#toSAX(org.xml.sax.ContentHandler) */ public void toSAX(ContentHandler handler) throws SAXException { - DOM2SAX.writeDocument(getDocument(), handler); + new DOM2SAX(handler).writeDocument(getDocument(), true); } } |