From: Jeremias Maerki Date: Sat, 15 Mar 2003 16:58:59 +0000 (+0000) Subject: Fix parser construction. X-Git-Tag: Alt-Design-integration-base~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5f997459511a9d9047a76e98a16864f123ffb379;p=xmlgraphics-fop.git Fix parser construction. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196103 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/pdf/FontReader.java b/src/java/org/apache/fop/render/pdf/FontReader.java index 375c4e56a..08a55d4d4 100644 --- a/src/java/org/apache/fop/render/pdf/FontReader.java +++ b/src/java/org/apache/fop/render/pdf/FontReader.java @@ -55,6 +55,8 @@ import java.util.List; import java.util.Map; import java.io.IOException; +import javax.xml.parsers.SAXParserFactory; + //SAX import org.xml.sax.XMLReader; import org.xml.sax.SAXException; @@ -102,7 +104,9 @@ public class FontReader extends DefaultHandler { XMLReader parser = null; try { - parser = javax.xml.parsers.SAXParserFactory.newInstance().newSAXParser().getXMLReader(); + final SAXParserFactory factory = javax.xml.parsers.SAXParserFactory.newInstance(); + factory.setNamespaceAware(true); + parser = factory.newSAXParser().getXMLReader(); } catch (Exception e) { throw new FOPException(e); }