xsl-list
[Top] [All Lists]

RE: [xsl] Batch processing

2007-05-28 23:09:48
Write a Java code that reads the XYZ.xml and processes the contents. It will
go through each <xmlFile> and get the xmlfile value, read it from file
system and apply transform to it. So when this java program runs, you would
have got the resultd of transformation out of all the <xmlFile> elements in
your XYZ.xml. You can then run the java code as command line and do what you
want to.
What Mike suggested is the standard way and "the" way to process the XML.
You can not mix too many things in one processing.
HTH
Vasu
-----Original Message-----
From: J. S. Rawat [mailto:jrawat(_at_)aptaracorp(_dot_)com] 
Sent: Tuesday, May 29, 2007 11:29 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Batch processing

..but I want it to call it within for-each loop and want to call 
commandline. If you are aware of Perl, we can do it by $sh.

At 01:03 PM 5/28/2007 +0100, you wrote:
You don't need the collection() function for this, you can do it with
document(). With <dir> as your current node, do

<xsl:apply-templates select="document(xmlFile)" mode="m"/>

and it will cause each of these input documents to be processed.

Michael Kay
http://www.saxonica.com/

-----Original Message-----
From: J. S. Rawat [mailto:jrawat(_at_)aptaracorp(_dot_)com]
Sent: 28 May 2007 11:38
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Batch processing

Dear lists-
There are a list of files listed in XYZ.XML. Is there a way
by which I can process these files by XSLT by saxon.
Basically I want a batch processing.
I want to put files into server alongwith XYZ.xml and need to
pass one commandline to process all the XML. I am just
confused with collection().

XYZ.XML
<dir>
<xmlFile>input.xml</xmlFile>
<xmlFile>input_meta.xml</xmlFile>
<xmlFile>sample.xml</xmlFile>
<xmlFile>x.xml</xmlFile>
</dir>

thanks
..JSR


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>