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

Re: Why does my streaming program hang when the input

Subject: Re: Why does my streaming program hang when the input is a streaming web site ?
From: "Michael Sokolov msokolov@xxxxxxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 10 Jun 2014 14:11:15 -0000
Re:  Why does my streaming program hang when the input
On 6/10/2014 5:55 AM, Abel Braaksma (Exselt) abel@xxxxxxxxxx wrote:

But this is in conflict with another rule. A processor is not allowed to create a non-valid principal output document (it is allowed to do this with result-document though, as in the case of failure or interruption). So either it must write all (when successfully processed whole stream) or nothing (in case of error/interruption).
I wasn't aware of this rule, but strictly speaking it's impossible to achieve given normal file I/O behavior, even when the entire document is buffered in memory before writing. Writes happen sequentially, so there will certainly be incomplete intermediate file states which may be readable by other processes, depending on operating system rules. It seems to me that as a practical matter it doesn't make sense to spend a lot of time worrying about it, though, and it's not really a good justification for buffering on its own. I hope that streaming processors will feel free to write intermediate results as needed; perhaps a <xsl:flush /> instruction wouldn't be amiss, either :)

-Mike

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.