When using with xml to produce a web based user interface you do not
need to deal DOM or JDOM. All you need to is to build up an
xml document in String format with a StringBuffer or some kind of
stream (maybe even a JSP) and then send that to a XSLT processor
for transformation to HTML. Using an DOM or JDOM will be much more
difficult than just putting it together using some kind of logic
like:
String xml = "<tag>" + value + "</tag>" + ...
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
Style style = processor.processStylesheet(new
XSLTInputSource(xslFileUri));
style.process(xml);
You should use StringBuffer or stream for efficiency and some constants
instead of hard coded strings. This will be a lot faster than using
DOM, which
will create a Java object for every node on the tree.
-----Original Message-----
From: T A Flores [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 05, 2001 8:41 AM
To: [EMAIL PROTECTED]
Subject: Re: web site internationalization
The JSR(JSR #000102) has been accepted for development.
----- Original Message -----
From: "Pier P. Fumagalli" <[EMAIL PROTECTED]>
Date: Sunday, March 4, 2001 10:49 pm
Subject: Re: web site internationalization
> T A Flores <[EMAIL PROTECTED]> wrote:
> >
> > Just as an additional tip, also be sure to take a look at JDom.org.
> > Pier is definately right XML is definately way cool. Also not
> hard to
> > work with.
>
> And AFAIK Jason and Brett are trying to make a JSR out of JDOM, so
> it might
> happen that in the future all that stuff will be shipped with the
> virtualmachine (or as a standard extension)...
>
> JDOM is a great tool for working with XML and Java 1.2, indeed
> better than
> the W3C dom (which is a BITCH to garbage collect :( :( ...)
>
> Pier
>
> --
> -------------------------------------------------------------------
> ---------
> Pier Fumagalli - Sun Microsystems Inc. -
> <mailto:[EMAIL PROTECTED]>
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV 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