RE: [xsl] Generating XML fragment to DOM node using XSL

Subject: RE: [xsl] Generating XML fragment to DOM node using XSL
From: Joseph Kesselman <keshlam@xxxxxxxxxx>
Date: Wed, 17 Dec 2003 08:24:33 -0500

>I believe this does what you want, I've included the java source, the xml
and >xsl files... I used xalan-j_2.5.1. I found that passing an Element to
the >DOMResult constructor caused an error during the transform when there
wasn't a >single document node, using a DocumentFragment worked. This seems
like a bug >in xalan...

Possible; it's been a while since I've looked at the DOMResult support. If
it really is a bug, it should be reported to Apache's BugZilla database for
Xalan so we don't forget to fix it.

The DocumentFragment solution will be almost as efficient in any DOM
implementation I've seen, so it's a good workaround.

Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk

 XSL-List info and archive:

Current Thread