[xsl] Finding the lowest 'price' element
Subject: [xsl] Finding the lowest 'price' element|
From: "tinku" <amegha1@xxxxxxxxxxxxxx>
Date: 4 May 2002 23:14:31 -0000
I have several book elements, in which each book element has a
'price' child element.
Now, I need to find the lowest 'price' element using XSLT?
One solution which i think is:
1. first sort the above xml document using <xsl:sort>
2. Now we get a new tree with all the price elements in
3. Now we will find the first 'price' element which is the
lowest using the "position()" function.
Here the result tree is again fed with a new stylesheet(to find
the first position), to the xslt processor.
Is there any better solution than this?
Thanks in advance!!
Click below to visit monsterindia.com and review jobs in India or
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list