Subject: Finding the highest node value
From: "Antoine Quint" <antoine@xxxxxxxxxxxxxx>
Date: Thu, 25 Oct 2001 17:22:32 +0200
|
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
|