[jdom-interest] XMLOutputter and InputSource ??
dan.Rubin at qwest.com
Wed Sep 13 16:11:58 PDT 2000
I downloaded jdom to help manipulate XML in an servlet based application
that is currently using saxon (http://users.iclway.co.uk/mhkay/saxon/) to
transform XSL/XML into HTML. Basically I want to use jdom to create the XML
document and then use that XML to execute the transform() method on a saxon
StyleSheetInstance object. That is where I am stuck. I have
StyleSheetInstance.transform(InputSource source) and
XMLOutputter.output(Document doc, java.io.OutputStream out). I can create
an InputSource object from an InputStream object, but the jdom
XMLOutputter.output() method dumps to a OutputStream object? I am confused!
How do you do this? What am I missing? Anyone?
FYI. I got the current version of jdom (beta 4) to run under JDK1.1. It
was really easy to do using the Sun collections package and doing some very
minor code modifications to jdom (added imports for the packages in the
JDK1.1 collections.jar, replaced File.toURL(), Double.parseDouble(value) and
Float.parseFloat(value) with JDK1.1 compatible code)... That's it... Just
in case someone else needed to use jdom under 1.1.
More information about the jdom-interest