Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Date comparison in xslt

From: tokyo12@-----.---
To: NULL
Date: 7/9/2007 1:31:00 PM

Many thanks for your reply.

So basically what I need to do is make sure my variable is in that
format or force it to be in that format using some date conversion
functions.

I found some functions to do that like format-dateTime but I couldnt
get them to work - they dont print anything.  Do they require a "xs:"
constuct or something else that specifies the namespace where the
function is to be found?

Also, if you use some editor like XMLSpy, is there a way to pause the
processing and print the values of variables?  Kind of like
Debug.Print in Excel/VBA, is there an equivalent which would print the
output to some debug window?   My XSLT is generating an Excel file so
I would prefer to have some way to get a quick look at some
variables...

Many thanks in advance for your valuable help.

Regards,

On Jul 9, 8:34 pm, Martin Honnen <mahotr...@yahoo.de> wrote:
> toudidel wrote:
> > Uzytkownik <toky...@gmail.com> napisal w wiadomosci
> >news:1183853658.004211.269610@j......
> >> How do you do a date comparison?
>
> > If you have date value in YYYY-MM-DD (in my opinion it's best) you havent
> > any problems with date comparisons (as strings) like that:
>
> > '2007-12-02' > '2007-12-01'
>
> But that does not work in XSLT/XPath 1.0, the operator > is defined for
> numbers but not for strings.
>
> --
>
>         Martin Honnen --- MVP XMLhttp://JavaScript.FAQTs.com/




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent