Hi Gnana,

Transformation suits best where the whole input document is transformed and 
stored in the DB. I had faced similar issues where I was inserting 
(xdmp:document-insert) a new document (after extracting some part of input XML) 
in transformation phase, and those document were not getting inserted into the 
database.

In my case, I dumped all the extracted files to disk using xdmp:save() (which 
is not a very elegant solution) and the application picked it up from there.

As Geert mentioned, it is good if you create a custom one-shot collector.

Hope this helps.
________________________________________
From: general-boun...@developer.marklogic.com 
[general-boun...@developer.marklogic.com] on behalf of 
general-requ...@developer.marklogic.com 
[general-requ...@developer.marklogic.com]
Sent: Thursday, May 31, 2012 12:30 AM
To: general@developer.marklogic.com
Subject: General Digest, Vol 95, Issue 53

Send General mailing list submissions to
        general@developer.marklogic.com

To subscribe or unsubscribe via the World Wide Web, visit
        http://community.marklogic.com/mailman/listinfo/general
or, via email, send a message with subject or body 'help' to
        general-requ...@developer.marklogic.com

You can reach the person managing the list at
        general-ow...@developer.marklogic.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of General digest..."


Today's Topics:

   1. Splitting documents using Information Studio
      (Gnanaprakash Bodireddy)
   2. Re: Splitting documents using Information Studio (Geert Josten)


----------------------------------------------------------------------

Message: 1
Date: Wed, 30 May 2012 19:09:31 +0530
From: Gnanaprakash Bodireddy <gnanaprakash.bodire...@gmail.com>
Subject: [MarkLogic Dev General] Splitting documents using Information
        Studio
To: general@developer.marklogic.com
Message-ID:
        <CACppFhRHpE94KdRiB326Mb-HCHZZa+yOtdz7uyM=3unjzrh...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I am trying to split a simple xml document into small documents using
XQuery transformation and load them into my database using Information
studio.

But, the documents are chunked and kept in *Fab *database and are not
getting moved to my *target database*.

Information Studio document says only if there is any error while loading
documents, it will retain documents in Fab else it will move documents into
the target database from fab after processing.

Can you please let me know why documents are not getting loaded into the
target database. i am not getting errors while loading content.

--
Thanks and Regards,
Gnanaprakash Bodireddy
Phone | Mobile: +918897575644 | gnanaprakash.bodire...@gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://community.marklogic.com/pipermail/general/attachments/20120530/ff2a14a1/attachment-0001.html

------------------------------

Message: 2
Date: Wed, 30 May 2012 15:58:13 +0200
From: Geert Josten <geert.jos...@dayon.nl>
Subject: Re: [MarkLogic Dev General] Splitting documents using
        Information     Studio
To: MarkLogic Developer Discussion <general@developer.marklogic.com>
Message-ID: <9d722646336739a7560931ad87893...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Gnanaprakash,



Let me guess, you are splitting the documents in the transformation phase?
With the current design it works best if you would customize one of the
collectors to do the splitting there. There are ways around doing it in the
Transformation phase, but they are less elegant..



Kind regards,

Geert



*Van:* general-boun...@developer.marklogic.com [mailto:
general-boun...@developer.marklogic.com] *Namens *Gnanaprakash Bodireddy
*Verzonden:* woensdag 30 mei 2012 15:40
*Aan:* general@developer.marklogic.com
*Onderwerp:* [MarkLogic Dev General] Splitting documents using Information
Studio



Hi,



I am trying to split a simple xml document into small documents using
XQuery transformation and load them into my database using Information
studio.



But, the documents are chunked and kept in *Fab *database and are not
getting moved to my *target database*.



Information Studio document says only if there is any error while loading
documents, it will retain documents in Fab else it will move documents into
the target database from fab after processing.



Can you please let me know why documents are not getting loaded into the
target database. i am not getting errors while loading content.



--
Thanks and Regards,
Gnanaprakash Bodireddy
Phone | Mobile: +918897575644 | gnanaprakash.bodire...@gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://community.marklogic.com/pipermail/general/attachments/20120530/f1a60c88/attachment-0001.html

------------------------------

_______________________________________________
General mailing list
General@developer.marklogic.com
http://community.marklogic.com/mailman/listinfo/general


End of General Digest, Vol 95, Issue 53
***************************************
"This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message. Any unauthorized review, 
use, disclosure, dissemination, forwarding, printing or copying of this e-mail 
or any action taken in reliance on this e-mail is strictly prohibited and may 
be unlawful."
_______________________________________________
General mailing list
General@developer.marklogic.com
http://community.marklogic.com/mailman/listinfo/general

Reply via email to