Am Dienstag, 15. August 2006 16:57 schrieb wkrick@(protected):
> Quoting Mattias Jiderhamn <mj-lists@(protected)>:
> > At 2006-08-15 00:22, wkrick@(protected):
> >> I'm trying to use the method shown here to apply an XSL transform to
> >> my JDOM document...
> >>
> >> http://www-128.ibm.com/developerworks/java/library/x-tipjdom.html
> >>
> >> Is there an easier way? Basically, I have a JDOM Document object in
> >> my application, I want to apply an XSL transform and write out the XML
> >> result to a file.
> >
> > TransformerFactory factory = TransformerFactory.newInstance();
> > Transformer transformer = factory.newTransformer( new
> > StreamSource(xslFile) );
> >
> > JDOMSource xmlSource = new JDOMSource(document);
> > StreamResult result = new StreamResult(outputFile);
> >
> > transformer.transform(source, result);
>
> Thanks for the help.
>
> Transform doesn't appear to have any methods that return a JDOM
> Document. Is there some way to transform a JDOM document object and
> not write directly to a file?
StreamSource StreamResult
------------------ = -----------------
JDOMSource x
What might "x" be? Try to find it in the JDOM Javadocs: a great place for
finding answers on JDOM.
regards
Thomas
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)