This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Finding the highest node value


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]