Vince Marco wrote:
I'm new to XMLDB and need to retrieve the highest value in an ID field for a document type. What is the best method of finding this using Xindice? This would be akin to using a max() function in an RDBMS.

You are aware that IDs in Xindice are by definition XML Names [1], i.e., they are strings, not numbers? So that you're asking for the highest value of a sorted list of Java Strings?

Murray

[1] http://www.w3.org/TR/REC-xml#NT-Name
...........................................................................
Murray Altheim                         http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK                    .

   "There have been ongoing problems with cockroaches getting on the
    floor... they can wreak havoc with 350,000 dominoes." -- Brian Kim
    http://www.guardian.co.uk/silly/story/0,10821,1017133,00.html



Reply via email to