May be you should align your numbers on the right : A00000000000001 A00000000000002 ... A00000000000010
so that 10 is after 1 and not the oposite Julien ----- Original Message ----- From: "Vince Marco" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, August 13, 2003 2:55 PM Subject: Re: last-of-type() or max() function? > Yes. I am aware of that. Still, I need this functionality, and I > haven't gotten the right XPath statement to do what I need in Xindice. > My IDs are numbers appended to a letter to fit the XML name criteria. > > Any help? > > Vince > > > 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? > > >
