[jdom-interest] JDOM & XSLT

Bo Wang (Borders Online) BWANG at borders.com
Mon Jul 31 10:02:12 PDT 2000

Right now I can do it by building a new temp doc and then "copy" it to
original document in JDOM:

SAXBuilder builder;
String htmlFragment = "<p> This <a href=\"http://www.borders.com/\"> book
</a> is <em> good </em> . </p>";

Document newDoc = builder.build(new StringReader(htmlFragment));
Element root = newDoc.getRootElement().clone();

Therefore, "root" is the element which could be manipulated in any way.
BTW, is the API doc in jdom.org the latest one?


-----Original Message-----
From: tsasala at hifusion.com [mailto:tsasala at hifusion.com]
Sent: Sunday, July 30, 2000 11:02 AM
To: Brett McLaughlin
Cc: Jason Hunter; Bo Wang (Borders Online); 'jdom-interest at jdom.org'
Subject: Re: [jdom-interest] JDOM & XSLT

	I think an HTMLOutputter makes sense.  Especially for 
javascript and server side includes.


Brett McLaughlin wrote:
> Jason Hunter wrote:
> >
> > > As for just putting the HTML in inline, maybe we do need to think
> > > about CDATA, guys?
> >
> > But you'll still end up with a CDATA block between the <title> tags.
> Well, it depends on what the outputter does. Maybe the more appropriate
> thing is to have an HTMLOutputter as well as an XMLOutputter - one would
> take care of entity references and CDATA conversion, which are not
> needed in HTML, but would be in XML. Since the two outputs are actually
> not that compatible (see XHTML vs. XML)... thoughts?
> -Brett

More information about the jdom-interest mailing list