[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: ANN: LotusXSL on IBM's AlphaWorks
Dear Ferenc, Thanks for your response. I am working on a servlet which handles HTTP client requests.The sevlet process data posted over HTTPS using an HTML form. It has to 1. consruct a XML document from the incoming data 2. store the XML document 3. transform the XML document using a XSL style sheet to a HTML document 4. process the XML document using a XSL style sheet to build a RTF document In my demo program the servlets response to the client request is only constructing the XML document, tranforming the XML document to a HTML document using a XSL style sheet and post the resutling HMTL document back to the client. For this purpose the XSLEval class of the KOALA engine and its constructor was quite useful: public XSLEval(Document XML, Document XSL, OutputStream print, XSLErrorHandler error) which takes the DOM representation of the XML document and the DOM representation of the XSL document and prints the transformed result to a specified OutputStream. In a short my programm looks like: TXDocument mydoc = new TXDocument(); ... // Creating a new document ... XslDOM = DOMXMLFactory.getDocument(myStyleSheet, errHandler); XSLEval xsleval = new XSLEval((Document)mydoc, XslDOM, out, errHandler); ... In my program I'd like to take the DOM representation of my XML document and convert it according to XSL stylesheet. But when having a quick look to the LotusXSL API I only found classes and methods which take a URL to a XML document. Now I am wondering if I have missed something when having a quick look to the documentation ofthe LotusXSL API, or wether I have to store my document first in a File and the I have to read it again using the LotusXSL API and then I can transform it. Regards and a happy new year Anette Engel IT Engineer New Media Group anette.engel@xxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|