[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Generating XML fragment to DOM node using XSL
>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: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|