-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix invalid current-grouping-key when called in new for-each
- Loading branch information
1 parent
e36afe9
commit d75572f
Showing
4 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
test/Stubs/Xsl/ForEachGroup/group-by-current-grouping-key-in-new-for-each.xsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
|
||
<xsl:output omit-xml-declaration="yes" /> | ||
|
||
<xsl:template match="packages"> | ||
|
||
<xsl:for-each-group select="package" group-by="author"> | ||
<xsl:for-each select="current-group()"> | ||
<xsl:value-of select="current-grouping-key()" /> | ||
</xsl:for-each> | ||
</xsl:for-each-group> | ||
|
||
</xsl:template> | ||
|
||
</xsl:stylesheet> |