Jump to content

To Make a List to be ordered in XSLT Page


prichardson
 Share

Recommended Posts

Hello,I have setup a property list which displays in lowest price to high price property as the default. I would like to change it, so the most expensive property is shown first.Here is the link to the website http://www.oliverfinn.com/pages/properties...F0207B0A16964DECan anyone please just mention the piece of code that I need to add or change to make the xslt /classic asp page display the most expensive property first.My guess is it might be in this bit of code?

<xsl:when test="xyz/xyz/property/address/property_location">	<xsl:for-each select="xyz/xyz/property">

Thanks

Link to comment
Share on other sites

Have you tried the <xsl:sort> and set it to sort on the lowest price node??

Hello,I have setup a property list which displays in lowest price to high price property as the default. I would like to change it, so the most expensive property is shown first.Here is the link to the website http://www.oliverfinn.com/pages/properties...F0207B0A16964DECan anyone please just mention the piece of code that I need to add or change to make the xslt /classic asp page display the most expensive property first.My guess is it might be in this bit of code?
<xsl:when test="xyz/xyz/property/address/property_location">	<xsl:for-each select="xyz/xyz/property">

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...