xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Finding the highest node value


Subject: [xsl] 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



Current Thread
Keywords
xml
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor