|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: grouping (was: if or template?)
> I want to then display the Tracker_ID if it is unique followed by all the
data for
> the specific tracker.
A FAQ: use something like
<xsl:for-each select="//tracker-id[not(.=preceding::tracker-id)]">
This is the traditional solution; Steve Muench has just told me about a
brilliant alternative using keys:
<xsl:key name="tid" use="tracker-id" select="."/>
<xsl:for-each
select="//tracker-id[generate-id(.)=generate-id(key('tid',.)[1])]">
I hope Steve will forgive me for announcing this discovery before he does,
I'm quite excited by it because it gives much better performance.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








