What is the best way to produce master XML file

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

What is the best way to produce master XML file

msalmadan@yahoo.com
It is possible to use any of the xform functions to produce one single XML file out of the all submitted form runner data. Somewhere in this form there is mention to use the aggregate() function or XLST.

My goal is to produce a master xml file that I can use it to generate a csv file. I am thinking of doing the following:

1- Retrieve the form-type data.xml for all submitted forms data.
2- Run aggregate() to produce the xml master file and store in the filing system.
3- Run some kind of XSLT to produce the csv file.

Any advise or start up sample code or pointers is very helpful !!.

Thanks,
Majeed Almadan



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: What is the best way to produce master XML file

venkata subrahmanyam
Hi,
Majeed Almadan,
 I am following the following 3 steps to store the csv data in my specified folder the given filename.

               
<p:processor name="oxf:text-converter">
        <p:input name="config">
        <config/>
        </p:input>
        <p:input name="data" href="#csvinputxmldata"/>
        <p:output name="data" id="csvbinary"/>
</p:processor>

       
       

<p:processor name="oxf:xslt-2.0">
        <p:input name="data" href="#csvconfigdata"/> 
        <p:input name="config" >
                <config xsl:version="2.0"> 
                <directory><xsl:value-of select="//tempfoldername"/></directory>
                <file><xsl:value-of select="//csvfilename"/>.csv</file>
                <make-directories>true</make-directories>
                <append>false</append>
        </config> 
  </p:input>
<p:output name="data" id="csvfiledata"/>
</p:processor>
<p:processor name="oxf:file-serializer">
        <p:input name="config" href="#csvfiledata"/>
        <p:input name="data" href="#csvbinary"/>
</p:processor>
Reply | Threaded
Open this post in threaded view
|

Re: Re: What is the best way to produce master XML file

msalmadan@yahoo.com
Thanks,  subrahmanyam,
 
Another newbie question. To retrieve all of the data.xml out of the eXist DB, is the easiest and quickest way is to use the xQuery and merge them into one xml save it and then apply your logic or create  a javabean and initiate another processor?
 
Any advise please.

 

 
Thanks,
Majeed


--- On Fri, 1/30/09, subrahmanyam <[hidden email]> wrote:
From: subrahmanyam <[hidden email]>
Subject: [ops-users] Re: What is the best way to produce master XML file
To: [hidden email]
Date: Friday, January 30, 2009, 5:13 AM

Hi,
Majeed Almadan,
 I am following the following 3 steps to store the csv data in my specified
folder the given filename.

		<!-- Convert the csvinpu xml data to a binary -->
<p:processor name="oxf:text-converter">
	<p:input name="config">
	<config/>
	</p:input>
	<p:input name="data" href="#csvinputxmldata"/>
	<p:output name="data" id="csvbinary"/>
</p:processor>

	
	<!-- Write the binary document to a file -->

<p:processor name="oxf:xslt-2.0">
	<p:input name="data" href="#csvconfigdata"/> 	
	<p:input name="config" >
		<config xsl:version="2.0"> 
		<directory><xsl:value-of
select="//tempfoldername"/></directory>
		<file><xsl:value-of
select="//csvfilename"/>.csv</file>
		<make-directories>true</make-directories>
		<append>false</append>
	</config> 
  </p:input>
<p:output name="data" id="csvfiledata"/>
</p:processor>
<p:processor name="oxf:file-serializer">
	<p:input name="config" href="#csvfiledata"/>
	<p:input name="data" href="#csvbinary"/>
</p:processor>

-- 
View this message in context:
http://www.nabble.com/What-is-the-best-way-to-produce-master-XML-file-tp21734070p21745313.html
Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: What is the best way to produce master XML file

venkata subrahmanyam
Hi Majeed,
I am using java processor itself to generate to create final xml for csv.
However you can try both approaches and finalize whichever is gives more performance and maintaintenace . 

 
Thanks,
Majeed