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

Re: Re: Xsl for each group issue in streaming mode

Subject: Re: Re: Xsl for each group issue in streaming mode
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 23 Aug 2016 16:37:22 -0000
Re:  Re: Xsl for each group issue in streaming mode
On 23.08.2016 16:43, Mailing Lists Mail daktapaal@xxxxxxxxx wrote:
Posted this on saxon list yesterday. Not sure if my post was
successful.. so posting it here.. in case people in this list want to
test and check..

I have seen it and was able to reproduce it, I guess you will have to wait for a bug fix from Saxonica.



    <xsl:template match="Groups" mode="stream">
    <xsl:copy>
    <xsl:for-each-group select="Group/copy-of(.)"
    group-by="Group_Detail/GroupIdentifier">
    <xsl:variable name="GroupDetail" select="Group_Detail/copy-of(.)"/>
    <xsl:variable name="groupId" select="$GroupDetail/GroupIdentifier"/>
    <Formatted-Group groupId="{$groupId}">

Unrelated to the problem, but I think you don't need the variables at all but could simply use


<Formatted-Group groupId="{current-grouping-key()}">


    <xsl:copy-of select="current-group()/specifics"/>
    </Formatted-Group>
    </xsl:for-each-group>
    </xsl:copy>
    </xsl:template>

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.