Subject: Re: sort, count, number, group
From: Steve Tinney <stinney@xxxxxxxxxxxxx>
Date: Sun, 12 Mar 2000 22:04:45 -0500
|
> <artist>
> <recording year="1991">
> <name>Solace</name>
> </recording>
> <recording year="1999">
> <name>Mirrorball</name>
> </recording>
> </artist>
>
> How can I find the name of the most recent recording using XSLT?
<xsl:template match="artist">
<xsl:for-each select="recording">
<xsl:sort data-type="number" order="descending" select="@year"/>
<xsl:if test="position()=1">
<xsl:value-of select="name"/>
</xsl:if>
</xsl:for-each>
</xsl:template>
Steve
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- sort, count, number, group
- quagly - Sat, 11 Mar 2000 19:23:14 -0800
- <Possible follow-ups>
- violet wright - Sun, 12 Mar 2000 23:20:17 GMT
- Mark Volkmann - Sun, 12 Mar 2000 20:02:20 -0600
- Steve Tinney - Sun, 12 Mar 2000 22:04:45 -0500 <=
- Kay Michael - Mon, 13 Mar 2000 09:51:28 -0000
- Volkmann, Mark - Mon, 13 Mar 2000 10:36:11 -0600
|
| <- Previous | Index | Next -> |
| Re: sort, count, number, group, Mark Volkmann
|
Thread |
MSXML Parser V3.0 released, Gerard Wood
|
| Re: sort, count, number, group, Mark Volkmann
|
Date |
Applying a named template to arbitr, Iain Huxley
|
|
Month |
|
|