RE: Feeding DOMs to XSLT Processors

Subject: RE: Feeding DOMs to XSLT Processors
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 3 Feb 2000 17:21:09 -0000
> Somewhere along the way, I got confused.  Up until yesterday 
> afternoon, I was of the thought that XSLT Processors such as XT, Xalan, 
> SAXON, and Oracle's XML Parser for Java would accept standard DOM
(Document/Node)
> objects as input.  But, after having gone through all of 
> them, I now am frustrated by the apparent fact that they are all
file-centric. 

SAXON will accept input from a stream of SAX events. There is a tool
somewhere (I think John Cowan's site, http://www.ccil.org/~cowan ) which
will generate a stream of SAX events from a DOM.

Of course this still means rebuilding the tree, but at least the data isn't
reparsed.

What I can't do at all easily is use an arbitrary user-supplied DOM in place
of my own tree structure. I did it at one stage and it was very slow. I
thought James Clark announced that the latest xt would do it and that that
was also very slow (but perhaps I'm mistaken).

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread