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

>


Drs. G.P.H. Josten
Consultant


http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.


> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Mary Holstege
> Sent: vrijdag 30 oktober 2009 17:04
> To: General Mark Logic Developer Discussion
> Subject: Re: [MarkLogic Dev General] Validating an XML
> document in MarkLogicthat references a DTD as part of a
> precommit trigger
>
> On Fri, 30 Oct 2009 08:17:40 -0700, Mary Holstege
> <[email protected]> wrote:
>
> > The schema is located by: (1) looking for an
> xsi:schemaLocation (or,
> > in this case, an xsi:noNamespaceSchemaLocation) on the document
> > itself, (2) looking for an explicit module import for that
> namespace
> > (or non-namespace) in the query prolog, (3) looking in the schemas
> > database, (4) reverting to built-in schemas.
> > In the case of (3), the server settings that bind
> namespaces to schema
> > locations will be used for disambiguation (otherwise the
> server will
> > use the first schema it finds for that namespace).
>
> Correction: I meant to say "schema import" for (2).
>
> _______________________________________________
> 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