On Thu, 29 Aug 2013 07:48:19 -0700, Timothy W. Cook <[email protected]> wrote:

>>
>> If you do have a location on the import, then it matters
>> whether it is abolute (http://whatever) or relative
>> ("mlhim2.xsd"). An absolute URI will find that schema
>> at the given URI in the schemas database.  So if
>> you said the location was "http://www.example.org/ns1/mlhim2.xsd";
>> then doc("http://www.example.org/ns1/mlhim2.xsd";) (in the
>> schemas database) is where we go looking for the schema.
>
> Yes, the URIs are all absolute.  The tricky part (in my mind) is that
> the schemas all have the name 'mlhim2.xsd'.

'mlhim2.xsd' isn't the schema name: it is a relative path
to a location where a schema might be located. So what
is the absolute path where that schema is located? That
will be a URI in the schemas database where you loaded
your schemas.

> I am not sure how to load them into the Schemas database with the full
> URI as the doc() name.
>
> I now see that the Schemas database isn't available to use for an
> information flow and the Load tab for the database just wants a
> pathname on the server.  I can't load it from its location at
> http://www.mlhim.org/xmlns/mlhim2/2_4_2/mlhim2.xsd
> So, how do I get:
>  doc("http://www.mlhim.org/xmlns/mlhim2/2_4_0/mlhim2.xsd";)
> doc("http://www.mlhim.org/xmlns/mlhim2/2_4_1/mlhim2.xsd";)
> and
> doc("http://www.mlhim.org/xmlns/mlhim2/2_4_2/mlhim2.xsd";)
>

You insert them as you would any other document, but
against the schemas database.  So you could use
xdmp:document-insert, for example.  If you do this
in Query Console, say, shift to the database "Schemas",
and do something like
xdmp:document-insert("http://www.mlhim.org/xmlns/mlhim2/2_4_0/mlhim2.xsd";,
     xdmp:document-get("/tmp/path/to/mlhim2.xsd"))

//Mary
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to