RE: ANN: LotusXSL on IBM's AlphaWorks

Subject: RE: ANN: LotusXSL on IBM's AlphaWorks
From: anette.engel@xxxxxxxx
Date: Mon, 28 Dec 1998 15:20:56 +0100
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


Current Thread