From 1828a9dc5e9ac5b25d1aa01fd50df33299048cbd Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Tue, 19 Jun 2001 09:40:15 +0000 Subject: 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 --- src/org/apache/fop/svg/PDFTranscoder.java | 8 ++++++-- 1 file 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(); + } } /** -- cgit v1.2.3