[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
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>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|