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

Re: xsl:for-each-group using multiple threads?

Subject: Re: xsl:for-each-group using multiple threads?
From: "David Rudel fwqhgads@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Jan 2015 14:10:03 -0000
Re:  xsl:for-each-group using multiple threads?
I don't know if this is at all helpful because it requires two passes
through the data, but...

You can first create a map holding the grouping information
(map(xs:integer,xs:item*)) with 1 mapped to the first group, 2 mapped
to the second group, etc. Then you can processes these groups using
<xsl:for-each>, which supports multi-threading:

<xsl:for-each select="saxon:sort(map:keys($my.grouping.map)))"
<xsl:variable name="group" select="$my.grouping.map(current())"/>

On Tue, Jan 27, 2015 at 11:20 AM, Marc Kupietz kupietz@xxxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> Unfortunately, xsl:for-each-group does not seem to support the
> saxon:threads attribute. Can anyone think of a workaround to split the
> processing of groups among multiple threads without causing a lot of
> overhead?
> If there is no such workaround, wouldn't it be a nice (and cheap?)
> feature to add saxon:threads support to xsl:for-each-group?
> I think such a feature would in many applications allow for a better
> control over the thread-overhead/work ratio when using multiple
> threads.
> Marc


"A false conclusion, once arrived at and widely accepted is not
dislodged easily, and the less it is understood, the more tenaciously
it is held." - Cantor's Law of Preservation of Ignorance.

Current Thread


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.
First Name
Last Name
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.