Next in thread →
Next in month →
Re: trying to use abs()
I'd suggest something closer to the math definition of abs(x): x*(x >= 0) - x*(x < 0) Cheers, Dimitre Novatchev "David Carlisle" <> wrote in message news:... > >> I would like to suggest a simple way >> to implement abs() functionality in XSLT 1.0 > > or even just select="number(translate(number(.),'-',''))" > > David > > ----------------------------------------------------------------- > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an > initiative of OASIS <http://www.oasis-open.org> > > The list archives are at http://lists.xml.org/archives/xml-dev/ > > To subscribe or unsubscribe from this list use the subscription > manager: <http://www.oasis-open.org/mlmanage/index.php> > >
Next in thread →
Next in month →