Re: [xslt] Troubles with the EXSLT date extensions
- From: Igor Zlatkovic <igor stud fh-frankfurt de>
- To: <xslt gnome org>
- Subject: Re: [xslt] Troubles with the EXSLT date extensions
- Date: Tue, 17 Sep 2002 14:25:51 +0200
Hi there,
> seems some people are using them and are hitting a few bugs:
> http://bugzilla.gnome.org/show_bug.cgi?id=93444
> http://bugzilla.gnome.org/show_bug.cgi?id=92818
The one thing I believe is wrong is the reversed substraction. Exslt.org
says, that in
d = date:difference(x, y):
d is positive if x < y (means if x occurs before y),
d is negative if x > y.
Folowing this, the basic guide would be to compute the difference as
d = y - x
The relevant function inn libexslt computes it as
d = x - y
which results in the wrong sign. Can it be, that I am right there? :-)
That should however produce the wrong result dw, which is nothing else than
dw = d * -1
but it should not produce anything different to that, which it does for
certain combinations of x and y.
I'll now check where the wrong numbers, that is those which differ from the
correct result by more than d * -1, come from. I suspect the problem to be
some odd double->long conversion, or similar.
Ciao
Igor
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]