[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] sort problem
Hi, I'm a very novice for both xsl and this list. I'm given the following xml: <parade> <personaggio punteggio="14"> <nome> Carolina di Monaco </nome> <tendenza> salita </tendenza> </personaggio> <personaggio punteggio="10"> <nome> Luca Cordero di Montezemolo </nome> <tendenza> salita </tendenza> </personaggio> </parade> I can list the items with the following xsl: <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <TABLE WIDTH="316" CELLSPACING="0" CELLPADDING="0" BORDER="0"> <tr> <td align="center" valign="top">Posizione</td> <td align="center" valign="top">Personaggio</td> <td valign="top">Apparizioni</td> <td valign="top">Tendenza</td> </tr> <xsl:apply-templates select="parade/personaggio" /> </TABLE> </xsl:template> <xsl:template match="personaggio"> <TR> <td align="center"></td> <TD><xsl:value-of select="nome" /></TD> <TD align="center"><xsl:value-of select="@punteggio" /></TD> <TD align="center"><xsl:value-of select="tendenza" /></TD> </TR> </xsl:template> </xsl:stylesheet> but I don't know how to sort the items by the field punteggio Thanks for your attention ___________________________________________________ Se vuoi un indirizzo di posta elettronica gratuito, iscriviti a http://www.katamail.com 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
|