Re: [MarkLogic Dev General] creating indexes by getting it from from a remote db

2011-07-13 Thread Abhishek53 S
Rojan The range element indexes configuration XML you are getting from one database will act as the infut XML for the other. I guess following sample query will help you for loading the range indexes into other Marklogic DB. import module namespace admin = "http://marklogic.com/xdmp/admin";

[MarkLogic Dev General] creating indexes by getting it from from a remote db

2011-07-13 Thread Rojan K K
Hi , I would like to create all the indexes by getting it from a remote data base where its already available i am using admin:database-get-range-element-indexes($config, xdmp:database("myDatabase") ) to get all the indexes i have used in one data base. Please suggest me how can i load all thes

Re: [MarkLogic Dev General] Async behavior of HTTP request

2011-07-13 Thread Danny Sokolsky
Hi Abhishek, I think the http-get requests are *synchronous*, not asynchronous; that is, they will wait until they get the results to move on to the next thing in the query. So I am not sure I understand your question. For example, if you run the following: let $x := (xdmp:http-get("http://m

Re: [MarkLogic Dev General] Corb processing

2011-07-13 Thread Michael Blakeley
In general, Corb is an aggressively minimalist tool. It does content reprocessing in bulk, and does so with a bare minimum of options. Corb does support arbitrary queries, with the URIS-MODULE option. Simply write the query that returns the uris you want to return. For directories, use cts:uris

Re: [MarkLogic Dev General] question about organizing schema

2011-07-13 Thread helen chen
Hi Geert and Joe, Thanks for the suggestion. I read the article, and I can make chameleon schema work for me. One question here is: it looks like including chameleon schema will make the element to use the parent schema's target namespace. It works good if I want them to be in the same namespace.

[MarkLogic Dev General] Async behavior of HTTP request

2011-07-13 Thread Abhishek53 S
Hi Folks,As per my understanding of HTTP request through Marklogic HTTP APIs is that they are asynchronous by nature.Between the HTTP service requests the behavior is asynchronous.Is the calling module execute asynchronously with invoked HTTP requests ie sample querylet $x := xdmp:http-get($uri1,()

Re: [MarkLogic Dev General] IE(8), ML and XSLTForms

2011-07-13 Thread Steiner, David J. (LNG-DAY)
Yes, changing the MIMETYPE from "application/xslt+xml" to "application/xml" for ".xsl" files allowed my XSLTForms code to work correctly in IE. -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent

Re: [MarkLogic Dev General] IE(8), ML and XSLTForms

2011-07-13 Thread Geert Josten
Hi David, Did changing the mime-type help? I'm not certain, but can't really think why MarkLogic Server should behave differently because of this changed mime-type setting.. Kind regards, Geert -Oorspronkelijk bericht- Van: general-boun...@developer.marklogic.com [mailto:general-boun.

Re: [MarkLogic Dev General] IE(8), ML and XSLTForms

2011-07-13 Thread Steiner, David J. (LNG-DAY)
So, apache returns "application/xml" for ".xsl" files and ML returns "application/xslt+xml". I changed the MIMETYPE in the admin console for "application/xml" to be for extension ".xsl", and now ML will behave like apache (at least in the case of .xsl). And thus, my code will work in IE (whic

Re: [MarkLogic Dev General] IE(8), ML and XSLTForms

2011-07-13 Thread Geert Josten
Wow, that was nearly a year ago.. :) I could imagine that IE is still using the mime-type specified in XSLT 1.0. The XSL FAQ (http://www.dpawson.co.uk/xsl/sect2/mimetypes.html) is talking about text/xsl. The mime-type you mention is specified by XSLT 2.0. You can adjust the mime-types in the ad

Re: [MarkLogic Dev General] question about organizing schema

2011-07-13 Thread Geert Josten
Nice.. :) -Oorspronkelijk bericht- Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] Namens Joseph Bryan Verzonden: woensdag 13 juli 2011 18:15 Aan: General MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] question about org

Re: [MarkLogic Dev General] question about organizing schema

2011-07-13 Thread Geert Josten
Hi Helen, You are right, I forgot about child elements within a complexType. I took a closer look and it looks like the easiest way to get more or less what you want by assigning the common schema the same target namespace as your other schemas (so they all use the same namespace), and use xs:i

Re: [MarkLogic Dev General] question about organizing schema

2011-07-13 Thread Joseph Bryan
Hi Helen, The XML Schema design pattern that allows you to import a "common" schema and have it inherit the namespace of the schema that imports it is sometimes called a "Chameleon" namespace design. This is achieved by placing the "common" schema in the empty namespace, and using the following m

Re: [MarkLogic Dev General] IE(8), ML and XSLTForms

2011-07-13 Thread Steiner, David J. (LNG-DAY)
I pretty much gave up on trying to figure this out a while ago and just stuck with using Firefox to test my code, but now I need for it to work in IE, so I'm back... The response that MarkLogic is sending seems to be for a content type of "application/xslt+xml" for the .xsl files and I'm wonder

Re: [MarkLogic Dev General] question about organizing schema

2011-07-13 Thread helen chen
Hi Geert, I played a little bit, I created a common schema with type PhoneNumber in namespace "http://www.aa.com/datamodel/common"; , and then a contactInfo schema in namespace "http://www.aa.com/datamodel/account"; which imports the common schema. The schema is as following: common schema: ht

[MarkLogic Dev General] Corb processing

2011-07-13 Thread sachin gill
Hi, I have just implemented CORB (implemented as jar)as a processing tool ! I'm successfully able to run this tool.But I found there are some limitations to it: 1) It reads only collection type and not other types(like directory , Query) etc. 5) If somebody can explain what all ways I