This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Feeding DOMs to XSLT Processors


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]