[MarkLogic Dev General] module declaration boilerplate

Eric Palmitesta eric.palmitesta at utoronto.ca
Mon Oct 20 14:49:26 PDT 2008


All my modules start off with this boilerplate:

module "http://blah/session"
declare namespace session = "http://blah/session"

In the 2nd last page of the XQuery Style Guide 
http://xqdoc.org/xquery-style.pdf, I see this...

module namespace math = "http://xqdoc.org/sample-math-lib";

...which looks like it compresses two lines into one.  When I try this, 
I get "XDMP-UNEXPECTED: Unexpected token syntax error, unexpected 
QName_, expecting $end".

What am I missing?  Both their module and mine start with:

xquery version "1.0"

Cheers,

Eric


More information about the General mailing list