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 |
---|
|
<- 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 |