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

Re: XSLT 4: Define proper streaming

Subject: Re: XSLT 4: Define proper streaming
From: "Dimitre Novatchev dnovatchev@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 26 May 2020 15:51:39 -0000
Re:  XSLT 4: Define proper streaming
  On Mon, May 25, 2020 at 10:13 PM Martin Honnen martin.honnen@xxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

>  Are there any such designs or implementations in terms of the XDM?



Not that I know of, but it is possible to express any tree - processing
using a 2-dimensional fold - like function.

See the *foldtree* function as defined by John Hughes in "Why functional
programming matters" (p. 7):

https://www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.pdf

Although this particular example isn't strictly a left fold (a left fold is
tail-recursive and can be implemented without recursion) , it is possible
to write a left-fold-tree function -- see for example:

https://stackoverflow.com/questions/52451923/variations-of-folds-on-haskell-trees




Cheers,
Dimitre



On Mon, May 25, 2020 at 10:13 PM Martin Honnen martin.honnen@xxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> Am 25.05.2020 um 22:00 schrieb Dimitre Novatchev dnovatchev@xxxxxxxxx:
> > This one should be obvious enough:
> >
> > In XSLT 3.0 only a source XML document can be streaming -processed.
> >
> > Why not an output of a (potentially other/unknown/external/independent)
> > transformation?
>
> I think you can chain two or more streaming transformations with Saxon
> EE, at least from the host language like Java and s9api or even relying
> on SAX APIs. Not sure whether it is also possible using fn:transform.
>
>
> > Please, don't tell us that we don't know how to exactly formulate this
> > requirement, or that it is ("extremely") difficult to implement it. Both
> > a possible design and implementation are delivered in the concept of a
> > **concurrent queue**.
>
> Are there any such designs or implementations in terms of the XDM?

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.