[Home] [By Thread] [By Date] [Recent Entries]
On 23/03/2010 01:38, Joyce Chapman wrote:
Any advice on how to do the following would be greatly appreciated. I need to combine and dedupe a list of authors, compiling all children of grouped<author> into one<author> (grouped on<authorizedName>), but deduping the<authorizedName>. See example below. I think I need to use an XSL 2.0 for-each-group, but am not sure how. Duplicate author elements will not be adjacent to each other. Thanks for any help! <xsl:for-each-group select="author" group-by="authorizedName"> <copy> <xsl:copy-of select="authorizedName,current-group()/(* except authorizedName)"/> </xsl:copy> </xsl:for-each-group> or if necessary sorting teh children by name to bring them back together. David
|

Cart



