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 ;-)
http://cxan.org/pkg/functx
-- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/