Hi,

We create XML org.w3c.dom.Document using using Xerces document
implementation (look: xml.apache.org).

Then the org.w3c.dom.Document object is processed using com.lotus.xsl
package and XSL templates. By the way, as far as I am concerned
com.lotus.xsl is only wrapper to the org.apache.Xalan package.

We find the process of creating the Document effortful as there is lot of
programistic job. We wish we improved it. It seems to be weak point of our
implementation process.

So the point is:
How to create dynamic XML?

We use DOM. We consider JSP - but how transform JSP output to HTML on the
server side.
We also consider getting the XML stream from lower layers (bussiness logic
or data).
What do other folks on the list think about this issue?

Here is  transformation code snippet (this is  pseudocode):

        import com.lotus.xsl;

        XSLTProcessorFactory pf = new
org.apache.xalan.xslt.XSLTProcessorFactory();
        XSLTProcessor xproc = pf.getProcessor();
        XSLTInputSource ins= new XSLTInputSource(doc.get());
        xproc.process(new XSLTInputSource( instance of org.w3c.dom.Document
class ),
                          new XSLTInputSource(new
FileInputStream("pathToXSL")),
                        new XSLTResultTarget (new
FileOutputStream(PrintWriter)));

Jarek Mikienko

-----Original Message-----
From: Matthias Carlsson [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 06, 2000 11:26 PM
To: [EMAIL PROTECTED]
Subject: Creating Dynamic XML


Hi,

        I believe I asked a similar question recently, but any replies I
got were lost :(

I want to - in my servlet - create dynamic XML from some information I get
from
a SQL server. I then want to transform this dynamic XML document using a
XSL document and send the output (in this case, HTML) to the client/browser.
The XSL document is a plain text file; the only thing that should be
generated
dynamically is the XML.

I was wondering if someone has done anything similar, and what packaged you
used to create the XML and then to tranform it using XSL.
Small code examples would be great.

Thanks,

[ Matthias Carlsson ]
[ Programmer (Java, CGI/Perl, Javascript, HTML) ] [ Web Designer ]
[ E-Mail : [EMAIL PROTECTED] ] [ ICQ: 1430647 ]
[ http://home1.swipnet.se/~w-18931/programming/ ]

> -----Ursprungligt meddelande-----
> Fr�n: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]F�r Sankolli,
> Sanjay
> Skickat: den 6 november 2000 21:32
> Till: [EMAIL PROTECTED]
> �mne: Servlets and SSL
>
>
> Hi,
>
> We are working on setting shopping cart framework on our site. We
> have many international users logging into our site. We want to
> accept credit card information iff the client browser supports
> 128 bit encryption.
>
> We currently have Apache/JServ running on Linux and we use
> mod_ssl for the ssl support.
>
> Can anyone please let me know how to test if the client browser
> supports 128 bit encryption or not.
>
> Thanks,
>
> San
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to