Thanks Andy,
this problem seems to be related with GitHib issue 133..
https://github.com/BaseXdb/basex/issues/133
..which is why I have added your observation to this bug entry.
Christian ___________________________
On Tue, Nov 1, 2011 at 1:17 PM, Andy Bunce bunce.andy@gmail.com wrote:
There seems to be a namespace issue when using nested modules... This works..
import module namespace functx="http://www.functx.com"; functx:capitalize-first("test")
I define foo.xy..
module namespace foo = "http://example.org/module1"; import module namespace functx="http://www.functx.com"; declare function foo:first($s){ functx:capitalize-first($s) };
Then execute import module namespace foo = "http://example.org/module1" at "foo.xq"; foo:first("aa")
I get the error Query: import module namespace foo = "http://example.org/module1" at "foo.xq";
foo:first("aa") Error: [FONS0004] Namespace prefix not declared: "functx:Different_number_of_names".
This works: import module namespace foo = "http://example.org/module1" at "foo.xq"; declare namespace functx="http://www.functx.com"; foo:first("aa")
But surely I should not be required to define the functx namespace here?
/Andy
On Mon, Oct 31, 2011 at 7:19 PM, Florent Georges lists@fgeorges.org wrote:
Michael Seiferle wrote:
it sure is the most comfortable approach, I myself use the functx library via our repository extension. REPO INSTALL http://files.basex.org/xar/functx-1.0.xar
You can even find it directly from CXAN ;-)
-- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk