Subject: Re: [xsl] Getting sibling nodes from unique values From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Tue, 04 Aug 2009 17:27:09 +0200 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:for-each select="distinct-values(//company)">
Use <xsl:for-each-group select="Root/row" group-by="company"> <xsl:result-document href="{current-grouping-key()}.xml"> <Root> <xsl:copy-of select="current-group()"/> </Root> </xsl:result-document> </xsl:for-each-group>
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Getting sibling nodes from un, Mike Ferrari | Thread | Re: [xsl] Getting sibling nodes fro, Mike Ferrari |
[xsl] Getting sibling nodes from un, Mike Ferrari | Date | Re: [xsl] Getting sibling nodes fro, Mike Ferrari |
Month |