In MarkLogic Server, the default function namespace of a library module is the namespace of the library module. That is one of the implementation-defined semantics of MarkLogic Server. So the namespace prefix on the function declaration name is not required.
-Danny -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Florent Georges Sent: Thursday, March 12, 2009 1:17 PM To: General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] module prologs Danny Sokolsky wrote: > That is a bug in the doc. The NCName is required. The doc > should read: > xquery version "1.0-ml"; > module namespace hello = "helloworld"; > declare function helloworld() > { > "hello world" > }; I guess you mean "declare function hello:world()" ;-) Or to bind the default function namespace. Regards, -- Florent Georges http://www.fgeorges.org/ _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
