I have just started using JAXP (GNU or otherwise), so
first of all I am sorry if this is a rather basic
question. I am trying to build a very simple pipeline
with the gnu.xml.pipeline package: basically for
reading an input XML file, processing it via XSLT, and
displaying the transformation in the standard output.
The problem is that my program always throws a
java.lang.RuntimeException at the XSLT stage,
something like this:
Exception in thread "main" java.lang.RuntimeException
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:
3407)
at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(Transfo
rmerHandlerImpl.java:433)
at
gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:334)
at
gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at
org.deriva.pipeliner.Pipeliner.main(Pipeliner.java:63)
Both program and used files can be found at the end of
this message. I have tried to change the XSLTFilter
step for other stages and it works perfectly, so the
problem should lie there. I have also tried with
different SAXDrivers and XSLT processors -- Xerces,
Xalan and SAXON -- and I always have the same problem.
I have also tried to transform the document from the
command line, with both xsltproc and the xalan command
line utility and it works perfectly with both.