[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

sort problem

Subject: sort problem
From: Claudio Lo Piccolo <lopi-out@xxxxxxxxxxxx>
Date: 24 Jul 2000 13:51:16 +0200
td lopi
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.