Permalink
Browse files

Fix issue #51; if we have to create an XMLReader, make sure it's name…

…space aware
  • Loading branch information...
ndw committed Jan 29, 2013
1 parent 5fac356 commit f3f5e9744c10ab67803b85852af6ce048dd08b27
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/com/xmlcalabash/util/XProcURIResolver.java
@@ -129,7 +129,9 @@ public Source resolve(String href, String base) throws TransformerException {
XMLReader reader = ssource.getXMLReader();
if (reader == null) {
try {
- reader = SAXParserFactory.newInstance().newSAXParser().getXMLReader();
+ SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
+ saxParserFactory.setNamespaceAware(true); // Must be namespace aware
+ reader = saxParserFactory.newSAXParser().getXMLReader();
reader.setEntityResolver(this);
ssource.setXMLReader(reader);
} catch (SAXException se) {

0 comments on commit f3f5e97

Please sign in to comment.