|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Getting sibling nodes from unique values
Subject: Re: Getting sibling nodes from unique values
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 04 Aug 2009 17:27:09 +0200
|
Mike Ferrari wrote:
<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/
|
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
| RSS 2.0 |
|
| Atom 0.3 |
|
|