keiron      01/06/19 02:40:16

  Modified:    src/org/apache/fop/svg PDFTranscoder.java
  Log:
  gets the xml parser class name properly
  
  Revision  Changes    Path
  1.5       +8 -4      xml-fop/src/org/apache/fop/svg/PDFTranscoder.java
  
  Index: PDFTranscoder.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFTranscoder.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PDFTranscoder.java        2001/05/18 10:03:18     1.4
  +++ PDFTranscoder.java        2001/06/19 09:40:15     1.5
  @@ -1,4 +1,4 @@
  -/* $Id: PDFTranscoder.java,v 1.4 2001/05/18 10:03:18 keiron Exp $
  +/* $Id: PDFTranscoder.java,v 1.5 2001/06/19 09:40:15 keiron Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources."
  @@ -70,6 +70,7 @@
   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.*;
  @@ -121,7 +122,7 @@
    * millimeter conversion factor.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Keiron Liddle</a>
  - * @version $Id: PDFTranscoder.java,v 1.4 2001/05/18 10:03:18 keiron Exp $
  + * @version $Id: PDFTranscoder.java,v 1.5 2001/06/19 09:40:15 keiron Exp $
    */
   public class PDFTranscoder extends XMLAbstractTranscoder {
   
  @@ -397,8 +398,11 @@
            * 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();
  +            }
           }
   
           /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to