>Let me know if you see any huge gotchas with this

One suggestion: You proposed

>1) Output a query of rows incrementally as an XML stream
>2) Parse the stream using a SAX2 Parser (the one in Xerces)

If these are happening in the same program, you could speed this up by
outputting the query's results directly as SAX events or a DOM, passing
that directly into your stylesheet selection and invocation logic. Calling
these APIs is generally not much harder than generating XML text syntax...
and in fact is sometimes easier, since it allows you to dodge some of the
subtleties of XML's syntax.

Looks workable to me. Let us know how it works out -- as I said, automating
this kind of divide-and-conquer analysis is something of a Holy Grail for
us, and it'd be nice to have a real-world benchmark to prove that our
performance expectations are correct.

Reply via email to