On Thu, Aug 29, 2013 at 3:23 PM, Mary Holstege <[email protected]>wrote:
> On Thu, 29 Aug 2013 07:48:19 -0700, Timothy W. Cook <[email protected]> wrote: > > '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 think I understand your point. However, in this case; mlhim2.xsd *is* the name of the schema. It is physically located at: http://www.mlhim.org/xmlns/**mlhim2/2_4_0/mlhim2.xsd<http://www.mlhim.org/xmlns/mlhim2/2_4_2/mlhim2.xsd> and http://www.mlhim.org/xmlns/**mlhim2/2_4_1/mlhim2.xsd<http://www.mlhim.org/xmlns/mlhim2/2_4_2/mlhim2.xsd> and http://www.mlhim.org/xmlns/**mlhim2/2_4_2/mlhim2.xsd<http://www.mlhim.org/xmlns/mlhim2/2_4_2/mlhim2.xsd> The various children schemas point to their respective parent at that location. This is because these children schemas may exist in multiple systems for interoperability reasons. In current software we use an XML Catalog to redirect those URIs to local copies so that we aren't dependent upon mlhim.org or even a live Internet connection. Locally editing the children schemas isn't a valid action within the eco-system, nor is it even practical when there can be 100's of them. The catalog.xml file works fine for this. ... > 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 <http://www.mlhim.org/xmlns/mlhim2/2_4_0/mlhim2.xsd>", > xdmp:document-get("/tmp/path/**to/mlhim2.xsd")) Okay, thanks for this tip. I guess I still have a question about how ML will know to resolve the different versions. Does it keep track of the fact that the document came from that URL? IF so then it already acts as an XML catalog. Which will be very cool. :-) Thanks, Tim -- MLHIM VIP Signup: http://goo.gl/22B0U ============================================ Timothy Cook, MSc +55 21 94711995 MLHIM http://www.mlhim.org Like Us on FB: https://www.facebook.com/mlhim2 Circle us on G+: http://goo.gl/44EV5 Google Scholar: http://goo.gl/MMZ1o LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
