fn:format-number()#2 possible bug
Wednesday, 18 September 2013 · 2 messages
A
alxarch18 Sep 2013 12:53 #
There seems to be an unexpected behaviour whem using
fn:format-number() while having declared a default element namespace in the prologue.
Example:Quoted text · 2 lines
> declare default element namespace "http://foo.bar"; > format-number(1234, "0000")
Throws an [FODF1280] 'Unknown decimal format: Q{http://foo.bar}'
Am i missing something or is this a bug in the 2 argument form of
fn:format-number?
Thanks,
AlexCG
Christian Grün18 Sep 2013 14:40 #
Hi Alex,
thanks for the observation. I’ve fixed the bug [1]; a new snapshot will be available tonight or tomorrow.
Best,
Christian
[1] https://github.com/BaseXdb/basex/commit/ef2b19dab6308aeaee130d4fdc7935027dec4003 ___________________________
2013/9/18 alxarch <alxarch at gmail.com>:
Quoted text · alxarch · 22 lines
> There seems to be an unexpected behaviour whem using fn:format-number() > while having declared a default element namespace in the prologue. > > Example: > >> declare default element namespace "http://foo.bar"; >> format-number(1234, "0000") > > > Throws an [FODF1280] 'Unknown decimal format: Q{http://foo.bar}' > > Am i missing something or is this a bug in the 2 argument form of > fn:format-number? > > Thanks, > Alex > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 7.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery