URN as library module namespace
Hi,
I am trying to do a “REPO INSTALL” a library module which has a namespace which is an URN, urn:ihe:iti:csd:2013, but am receiving the error: [bxerr:BXRE0002] Namespace URI is invalid: 'urn:ihe:iti:csd:2013'.
I noticed that URNs are not discussed here: http://docs.basex.org/wiki/Repository#URI_Rewriting
Taking a look here:
http://www.w3.org/TR/2014/REC-xquery-30-20140408/#doc-xquery30-ModuleDecl I don’t see anywhere where URNs are explicitly disallowed.
Any suggestions would be appreciated.
Cheers, -carl
Quoted text · Carl Leitner · 19 lines
On Wednesday 25 June 2014 15:16:21 Carl Leitner wrote: > Hi, > > I am trying to do a “REPO INSTALL” a library module which has a namespace > which is an URN, urn:ihe:iti:csd:2013, but am receiving the error: > [bxerr:BXRE0002] Namespace URI is invalid: 'urn:ihe:iti:csd:2013'. > > I noticed that URNs are not discussed here: > http://docs.basex.org/wiki/Repository#URI_Rewriting > > Taking a look here: > > http://www.w3.org/TR/2014/REC-xquery-30-20140408/#doc-xquery30-ModuleDecl > I don’t see anywhere where URNs are explicitly disallowed. > > Any suggestions would be appreciated. > > Cheers, > -carl
I guess this is an effect of bug #928 [1] :/
Regards, Dimitar
Hi Carl,
Module URIs that are to be installed in a repository need to have a path component. I have revised the documentation [1], and I have slightly extended the error message in the latest snapshot [2].
Christian
[1] http://docs.basex.org/wiki/Repository#URI_Rewriting [2] http://files.basex.org/releases/latest/
Quoted text · Carl Leitner · 21 lines
On Wed, Jun 25, 2014 at 3:16 PM, Carl Leitner <litlfred at ibiblio.org> wrote: > > Hi, > > I am trying to do a "REPO INSTALL" a library module which has a namespace > which is an URN, urn:ihe:iti:csd:2013, but am receiving the error: > [bxerr:BXRE0002] Namespace URI is invalid: 'urn:ihe:iti:csd:2013'. > > I noticed that URNs are not discussed here: > http://docs.basex.org/wiki/Repository#URI_Rewriting > > Taking a look here: > > http://www.w3.org/TR/2014/REC-xquery-30-20140408/#doc-xquery30-ModuleDecl > I don't see anywhere where URNs are explicitly disallowed. > > Any suggestions would be appreciated. > > Cheers, > -carl >
Written for BaseX 7.8. BaseX may have changed since: please check the current documentation.