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

How to change Sort keyword dynamicly

Subject: How to change Sort keyword dynamicly
From: HeHangjun <sameulhe@xxxxxxx>
Date: Sat, 19 May 2001 13:18:45 +0800
change sort xslt
Dear all,
I have xslt dou like this:  
<xsl:template match="catalog" >
<xsl:param name="sortField" select="node(//title)"/>
	 <h2><xsl:value-of select="$sortField"/></h2>
    <h2>Titles Grouped by Genre</h2>
    <xsl:for-each select="book"> 			
            <xsl:sort select="$sortField"/>
            <table border="0" width="75%">
                <tr>
                    <th width="10%" align="right">Title</th>
                    <td width="90%" align="left"><xsl:value-of select="title" /></td>
                </tr>
                <tr>
                    <th width="10%" align="right">Author</th>
                    <td width="90%" align="left"><xsl:value-of select="author" /></td>
                </tr>                 
            </table>
            <hr width="75%" align="left"/>    
    </xsl:for-each>
</xsl:template>

I wanna the sort keyword can changed when the param changed,but above document failed,who can help me to handle it?
Thanks.




 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.