Does this make sense for a count function, though? I did not get from the spec that all functions returned doubles. It would seem to me a count should be a whole number and the framework is capable of this.
What am I missing in understanding this? > -----Original Message----- > From: Elliotte Rusty Harold [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 10:01 AM > To: bob mcwhirter; Tilly, Jesse > Cc: [EMAIL PROTECTED] > Subject: [Jaxen] Re: Count function in Jaxen 1.0 > > > At 8:30 AM -0400 5/22/02, bob mcwhirter wrote: > > >> We've been working with the Jaxen implementation of the > XSLT functions for > >> our project. During some of our tests we noticed double > values where we > >> expected integer values. We determined that the doubles > were coming from the > >> count() function. We count the number of HTML rows in a > document. However, > >> it seems strange that the number returned is a double. > > The reason is that XPath 1.0 only uses doubles. There are no integers > in XPath. This is more of an XPath decision than a Jaxen decision. > -- > > +-----------------------+------------------------+-------------------+ > | Elliotte Rusty Harold | [EMAIL PROTECTED] | Writer/Programmer | > +-----------------------+------------------------+-------------------+ > | The XML Bible, 2nd Edition (Hungry Minds, 2001) | > | http://www.cafeconleche.org/books/bible2/ | > | http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/ | > +----------------------------------+---------------------------------+ > | Read Cafe au Lait for Java News: http://www.cafeaulait.org/ | > | Read Cafe con Leche for XML News: http://www.cafeconleche.org/ | > +----------------------------------+---------------------------------+ > _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest