[XQZone General] Cookies

Raffaele Sena raff at aromatic.org
Fri Mar 11 10:08:04 PST 2005


I actually just happened to read that for some completely unrelated  
project and I found it a little odd that there is no way to force the  
formatting to a specific locale or at least to the RFC 822 standard.  
Maybe it would be worth to extend the xdt: function to support an extra  
format, since the main use of these function is in a web server  
environment.

It would also be useful to have another extension function to parse  
dates (at least in the 3 formats specified for HTTP) and return an  
xs:date (and then another one to get in input a day, month, year, etc.  
as integers and return a date).

-- Raffaele


On Mar 11, 2005, at 3:02 AM, John Snelson wrote:

> Ron Hitchens wrote:
>>    In the meantime, I noticed that your get-cookie-date-string()
>> function could probably be greatly simplified by using
>> the builtin xdmp:strftime() function.  See:
>> http://developer.marklogic.com/pubs/2.2/apidocs/ 
>> Extension.html#strftime
>
> I hadn't noticed this function, but I am worried about using it. "man  
> strftime" tells me that "%b" gives "The abbreviated month name  
> according to the current locale" - but how does the locale change it?  
> RFC 822 is very specific that the month has to be an english three  
> letter abbreviation, so if strftime() doesn't do this in, say, germany  
> than unfortunately I can't use it.
>
> Do you have any experience with this?
>
> John Snelson
>
> -- 
> John Snelson, XML Consultant           +44-1865-811184
> Parthenon Computing Ltd                http://blog.parthcomp.com/dbxml
> _______________________________________________
> General mailing list
> General at xqzone.marklogic.com
> http://xqzone.com/mailman/listinfo/general
>
>
> !DSPAM:42317f1f72785813518181!
>




More information about the General mailing list