Sorry, Max, but it's not that simple. The GNU or Oracle XML parser will throw a SAXNotRecognizedException here.
On 22.02.2008 15:17:20 maxberger wrote: > Author: maxberger > Date: Fri Feb 22 06:17:20 2008 > New Revision: 630215 > > URL: http://svn.apache.org/viewvc?rev=630215&view=rev > Log: > Fixed backward compatiblity with 1.4 > > Modified: > xmlgraphics/fop/trunk/src/java/org/apache/fop/cli/InputHandler.java > > Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/cli/InputHandler.java > URL: > http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/cli/InputHandler.java?rev=630215&r1=630214&r2=630215&view=diff > ============================================================================== > --- xmlgraphics/fop/trunk/src/java/org/apache/fop/cli/InputHandler.java > (original) > +++ xmlgraphics/fop/trunk/src/java/org/apache/fop/cli/InputHandler.java Fri > Feb 22 06:17:20 2008 > @@ -151,8 +151,8 @@ > InputSource is = new InputSource(new FileInputStream( > this.sourcefile)); > SAXParserFactory spf = SAXParserFactory.newInstance(); > - spf.setNamespaceAware(true); > - spf.setXIncludeAware(true); > + spf.setFeature("http://xml.org/sax/features/namespaces", true); > + spf.setFeature("http://apache.org/xml/features/xinclude", true); > XMLReader xr = spf.newSAXParser().getXMLReader(); > result = new SAXSource(xr, is); > } catch (SAXException e) { > > Jeremias Maerki