This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Finding the highest node value
- To: "XSLT" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Finding the highest node value
- From: "Antoine Quint" <antoine at graougraou dot com>
- Date: Thu, 25 Oct 2001 17:22:32 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
Say I have an XML fragment going like this:
=====================
<population unit="million">
<country>
<name>China</name>
<population>1273</population>
<continent key="2"/>
</country>
<!-- some more <country> -->
<country>
<name>India</name>
<population>1033</population>
<continent key="2"/>
</country>
</population>
=====================
What I would like to do is store in a <xsl:variable> the highest
<population> value?
How would one go around this?
Thanks,
Antoine
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list