I can make a simple transform work in JDOM. But if I use the same code for
a more complex transform, I get an empty result document. XMLSPY produces a
non-empty (and correct, I think) result for the same transform.
My code is:
SAXBuilder builder = new SAXBuilder();
Document inDoc = builder.build("I:/simonm/temp/sample/complex.xml");
Document stylesheet = builder.build("I:/simonm/temp/sample/complex.xsl");
XSLTransformer transformer = new XSLTransformer(stylesheet);
Document outDoc = transformer.transform(inDoc);
XMLOutputter fmt = new XMLOutputter(Format.getPrettyFormat());
fmt.output(outDoc, System.out);
The files are at <http://www.iptech.demon.co.uk/XSLTSamples/>. I'm using
the XALAN that comes with JDK 1.4.2_03, but putting a more recent version
into lib/endorsed gives the same result.
Can anyone help me out?
Thanks,
Simon Morris
Software Developer
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected)