The following patch will fix the compilation failures in xml-fop. The only
required portion of the fix is the handing of namespaceAware.
Index: DocumentBuilderImpl.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/jaxp/DocumentBuilderImpl.java,v
retrieving revision 1.6
diff -u -r1.6 DocumentBuilderImpl.java
--- DocumentBuilderImpl.java 2001/02/07 01:56:06 1.6
+++ DocumentBuilderImpl.java 2001/02/11 02:29:04
@@ -124,16 +124,36 @@
// XXX Ignore unimplemented features for now
try {
- // Set various parameters obtained from DocumentBuilderFactory
domParser.setFeature(XERCES_FEATURE_PREFIX +
INCLUDE_IGNORABLE_WHITESPACE,
!dbf.isIgnoringElementContentWhitespace());
+ } catch (SAXException e) {
+ }
+
+ // XXX Ignore unimplemented features for now
+ try {
domParser.setFeature(XERCES_FEATURE_PREFIX +
CREATE_ENTITY_REF_NODES_FEATURE,
!dbf.isExpandEntityReferences());
- // XXX No way to control dbf.isIgnoringComments() or
- // dbf.isCoalescing()
} catch (SAXException e) {
+ }
+
+ try {
+ namespaceAware = dbf.isNamespaceAware();
+ domParser.setFeature("http://xml.org/sax/features/namespaces",
+ namespaceAware);
+ } catch (SAXException e) {
+ throw new ParserConfigurationException("Cannot set namespace "+
+ "awareness to "+ namespaceAware);
+ }
+
+ try {
+ validating = dbf.isValidating();
+ domParser.setFeature("http://xml.org/sax/features/validation",
+ validating);
+ } catch (SAXException e) {
+ throw new ParserConfigurationException("Cannot set validation
to "+
+ validating);
}
} catch (SAXException e) {
// Handles both SAXNotSupportedException, SAXNotRecognizedException
- Sam Ruby