![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Date comparison in xslt >Thread Next - Re: Date comparison in xslt Re: Date comparison in xsltTo: 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/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
