On 23.08.2016 16:43, Mailing Lists Mail daktapaal(_at_)gmail(_dot_)com 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>
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--