xalan with pull parser 2007-03-14 - By keshlam@(protected)
> Is it possible to use xalan with a pull parser like Woodstox?
Possible? I'm not familiar with Woodstox, but I think it could be done.
Easy? No, unless someone has already written the needed code and I missed the announcement.
Internally, Xalan runs across the DTM data model. It is certainly possible to implement a demand-loaded version of the DTM; we had (and probably still have) a variant that runs across a "throttled" SAX parser, constructing nodes as they are requested through the DTM API. A variant of that which used a real pull-parser rather than a pulsed SAX parser certainly ought to be possible.
But to make this work, you'd essentially be reimplementing the demand-loaded SAX2DTM code. That's a nontrivial amount of work. <html><body> <p><tt>> Is it possible to use xalan with a pull parser like Woodstox?</tt> <br> <br> <tt>Possible? I'm not familiar with Woodstox, but I think it could be done.</tt ><br> <br> <tt>Easy? No, unless someone has already written the needed code and I missed the announcement.</tt><br> <br> <tt>Internally, Xalan runs across the DTM data model. It is certainly possible to implement a demand-loaded version of the DTM; we had (and probably still have) a variant that runs across a "throttled" SAX parser, constructing nodes as they are requested through the DTM API. A variant of that which used a real pull-parser rather than a pulsed SAX parser certainly ought to be possible.</tt><br> <br> <tt>But to make this work, you'd essentially be reimplementing the demand -loaded SAX2DTM code. That's a nontrivial amount of work.</tt></body></html>
|
|