[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Q on incremental processing and count()

Subject: Re: Q on incremental processing and count()
From: Markus Spath <mspath@xxxxxxxx>
Date: Tue, 19 Feb 2002 13:49:10 +0100
markus spath


Enke Michael wrote:


Do you mean I can put some lines of code into my xsl-file to tell the transformer
to emit a SAXResult?


no :(

but given you have within your servlet a javax.xml.transform.Transformer instance based on your stylesheet, you call the actual transformation in your servlet (given you use one) somehow like:

name_of_this_instance.transform(javax.xml.transform.Source your_source, javax.xml.transform.Result your_result)

and i guess you directly write it somehow wrapped as StreamResult in your ServletResponse.
Result can be either a ...DOMResult, ...StreamResult or javax.xml.transform.SAXResult - and the last one you could utilize controlling when what is send to the browser, but there is probably a little bit of work to do ;) - since you have to provide a ContentHandler and write the ServletResponse yourself.



Normally the XSLT machine should emit the transformed code as soon as possible.
But I encountered that this is broken (at least for Xalan-J) if I count
nodes with count("node") for nodes which where earlier in the stream.


Markus






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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.