]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
gets the xml parser class name properly
authorKeiron Liddle <keiron@apache.org>
Tue, 19 Jun 2001 09:40:15 +0000 (09:40 +0000)
committerKeiron Liddle <keiron@apache.org>
Tue, 19 Jun 2001 09:40:15 +0000 (09:40 +0000)
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

index 8b91723cacf3811048201d28df445b515dd40e05..74c6a1f457ae2e70374d3db52cdda28a6aa3c1ab 100644 (file)
@@ -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();
+            }
         }
 
         /**