Hi Eric,

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"
};

The XQuery spec syntax is here:

http://www.w3.org/TR/xquery/#prod-xquery-ModuleDecl


Thanks for pointing that out.

-Danny


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Eric
Palmitesta
Sent: Thursday, March 12, 2009 11:28 AM
To: ML Developer Mailing List
Subject: [MarkLogic Dev General] module prologs

On page 96 of the dev_guide.pdf, I see:

module namespace "helloworld";

I'm auditing our prologs, and notice that they are of the form:

module namespace blah = "http://blah";;

The first "blah" isn't necessary, as far as I can tell, however removing

it yields an error:

module namespace "http://blah";;

XDMP-LEGACYMODULESYNTAX: (err:XPST0003) NCName required with module 
declaration

Why am I getting this error?

Cheers,

Eric
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to