Hi to all,

Can your Fop use Stax(pull) to "handle" events instead SAX (push)?

Stax is like Sax but it dont use a class methods to handle events (fires
startDocument, startElement, endElement etc.)
A class have method that can iterate through events for eg. while
(events.hasnext()) { choose events to read event.next().. -> do some_job())
This is a pull not push..and then stAX can write result directly without
using DOM.. this is what undestand and i think its more easy to use and add
functionality to only some pieces of xml or xsl stylesheet
(subparsing)..Dont you think is it good job in some cases?

https://docs.oracle.com/javase/tutorial/jaxp/stax/why.html

Let me updated

Thanks

Roby

Reply via email to