]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix parser construction.
authorJeremias Maerki <jeremias@apache.org>
Sat, 15 Mar 2003 16:58:59 +0000 (16:58 +0000)
committerJeremias Maerki <jeremias@apache.org>
Sat, 15 Mar 2003 16:58:59 +0000 (16:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196103 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/pdf/FontReader.java

index 375c4e56a380d1f184838ae8c29e2647dbe2057f..08a55d4d4be849146135a08a844bad77286ab391 100644 (file)
@@ -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);
         }