diff options
author | Keiron Liddle <keiron@apache.org> | 2001-06-19 09:40:15 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-06-19 09:40:15 +0000 |
commit | 1828a9dc5e9ac5b25d1aa01fd50df33299048cbd (patch) | |
tree | e51dd0ae92afa21c264cb47ea9245be64abfbdbb | |
parent | 6df7df632cefa4be0e6116342dc7ec2504980da1 (diff) | |
download | xmlgraphics-fop-1828a9dc5e9ac5b25d1aa01fd50df33299048cbd.tar.gz xmlgraphics-fop-1828a9dc5e9ac5b25d1aa01fd50df33299048cbd.zip |
gets the xml parser class name properly
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194296 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/org/apache/fop/svg/PDFTranscoder.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/org/apache/fop/svg/PDFTranscoder.java b/src/org/apache/fop/svg/PDFTranscoder.java index 8b91723ca..74c6a1f45 100644 --- a/src/org/apache/fop/svg/PDFTranscoder.java +++ b/src/org/apache/fop/svg/PDFTranscoder.java @@ -70,6 +70,7 @@ import org.apache.batik.transcoder.*; import org.apache.batik.transcoder.image.*; import org.apache.batik.util.SVGConstants; +import org.apache.batik.util.XMLResourceDescriptor; import org.apache.batik.bridge.*; import org.apache.batik.swing.svg.*; @@ -397,8 +398,11 @@ public class PDFTranscoder extends XMLAbstractTranscoder { * Returns the XML parser to use from the TranscodingHints. */ public String getXMLParserClassName() { - return (String) getTranscodingHints().get( - KEY_XML_PARSER_CLASSNAME); + if (getTranscodingHints().containsKey(KEY_XML_PARSER_CLASSNAME)) { + return (String)getTranscodingHints().get(KEY_XML_PARSER_CLASSNAME); + } else { + return XMLResourceDescriptor.getXMLParserClassName(); + } } /** |