Hi,
no problem at all, the mailinglist is actually for questions, so it is absolutely ok to ask questions, even if they are beginner questions. We are happy to welcome new XQuery developers in the community. XML namespaces is an important topic for XML related programming, so you might want to read in more detail about it.
I do not understand the url I must write for the element 'book', because I do not have a web site with a url that points to the element 'book'. I expect to add another line in my xqm file, something like:
... (:~ : This module contains some basic examples for RESTXQ annotations : @author BaseX Team :) module namespace page = 'http://basex.org/modules/web-page'; module namespace book = 'http://i.don%27t.know'; ...
You just want to have one module namespace statement. This statement determines the target namespace of the whole module, hence having multiple statements is invalid. See the spec for some more information: http://www.w3.org/TR/xquery/#id-module-declaration
Another very important point is the URI format of a namespace. Although it looks like an URL, it actually has nothing to do with it. It is actually just an identifier (in the same way a URL is an identifier for a certain webpage, this URIs server as identifier for a certain module). So you could have something like
module namespace book = 'http://your-company.org/my-project';
However, also a namespace like
module namespace book = 'ABC';
would be valid - but beware (!) that this is considered bad practice and you should not do that. Some pointer to a more detailed explanation: http://www.xml.com/pub/a/1999/01/namespaces.html
Cheers, Dirk