Subject: Re: [xsl] Finding the first among equals using XPath From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 22 Jun 2006 12:27:58 -0400 |
xslt2's for-each-group makes it easier (or at least easier to read) but any xslt 1 grouping construct would work here. Muenchian grouping (ie using keys) is the usual approach, but making the keys unique in subtrees rooted at each W is a bit tiresome, so unless you have 100's of X below each W I'd just write it directly in XPath
something like
<xsl:for-each select="W"> <xsl:for-each select="X[not(@Y=../following-sibling::X/@Y)]"> something
Cheers, Wendell
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Finding the first among e, David Carlisle | Thread | Re: [xsl] Finding the first among e, Peter Riocreux |
Re: [xsl] Merging attributes in one, Wendell Piez | Date | [xsl] document() vs. current(), Marco Plum |
Month |