Re: [basex-talk] Converting a Date

2018-11-02 Thread Joe Wicentowski
Hi Ron, You might find Ryan Grimm's date-parser library module useful if you have a larger range of date formats to handle: https://github.com/marklogic-community/commons/blob/master/dates/date-parser.xqy While it was written with some MarkLogic-specific code, I adapted it for use with eXist

Re: [basex-talk] Converting a Date

2018-11-02 Thread Ron Katriel
Hi Christian, Much appreciated! I hardened the code (see below) since the dates (from CT.gov) occasionally also have the day of the month (e.g., “March 21, 2014”). Currently the function is dropping the day in such cases but I will look into capturing it in a future iteration. Best, Ron

Re: [basex-talk] Converting a Date

2018-11-02 Thread Christian Grün
Hi Ron, If your timestamp is available in IETF format, you can use fn:parse-ietf-date [1]. Otherwise, you’ll need to write a simple function by yourself: declare variable $MONTHS := ( 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October',

[basex-talk] Converting a Date

2018-11-02 Thread Ron Katriel
Hi, Is there a BaseX function for converting a string date in the form of “March 2017” to xs:date or xs:dateTime? Thanks, Ron On November 2, 2018 at 2:37:31 PM, Imsieke, Gerrit, le-tex ( gerrit.imsi...@le-tex.de) wrote: One approach to avoid migration and backwards compatibility issues would

Re: [basex-talk] many distinct namespaces

2018-11-02 Thread Christian Grün
> > How hard can it be to move from a 16 bit architecture to a 32 bit > architecture? Yes, that can be tricky. Just one example that affects Java and BaseX: Java arrays are limited to 2^31 entries. Although 64 bit CPUs were getting popular a long time ago, I don’t believe this limit will ever

Re: [basex-talk] many distinct namespaces

2018-11-02 Thread Imsieke, Gerrit, le-tex
One approach to avoid migration and backwards compatibility issues would be to support a standard storage and an extended storage side by side. The storage and query functions would know beforehand which layout variant the current database is in, and they could use the appropriate optimized

Re: [basex-talk] many distinct namespaces

2018-11-02 Thread Christian Grün
Hi Gerrit, thanks for your generous offer to sponsor the requested feature. I am ashamed to confirm it’s been a long time since this issue has been opened and not closed yet. You are asking how much money will be required to get this fixed. I’m not sure after all. Maybe I would rather ask for 3,