On Sat, 31 Oct 2009 06:19:28 -0700, Geert Josten
<[email protected]> wrote:
Mary,
I tried putting things together and was looking at import schema to make
it work with no-namespace schemas and xml, and found the instructive
message http://markmail.org/message/o2f4yi477hbqq67o telling that I
should use something like this:
declare default element namespace "";
import schema namespace "" at "/my-schema.xsd";
But it keeps throwing:
[1.0-ml] XDMP-SCHPRFX: (err:XQST0057) Cannot declare a prefix
for the empty namespace URI in a schema import
I tried various combinations and syntax changes, but none seem to work.
I am running MarkLogic Server 4.1-3.
Any suggestions?
Kind regards,
Geert
The problem is that you are declaring the namespace twice.
The correct way to do this is:
declare default element namespace "";
import schema "" at "/my-schema.xsd";
//Mary
[email protected]
Lead Applications Engineer
Mark Logic Corporation
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general