Saxon allows you to use the collection() function to access all the files in
a directory, for example
collection("file:///c:/some/dir?select=*.xml")
returns all the .xml files in the given folder.
So you can merge them like this:
<mergeddocs>
<xsl:copy-of select="collection('file:///c:/some/dir?select=*.xml')"/>
</mergeddocs>
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Shailesh [mailto:shailesh(_at_)quagnito(_dot_)net]
Sent: 14 September 2005 14:27
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] How to merge xml files present in folder into
one xml file
Hi All,
I have to merge xml files into one xml file present in folder.
Say in folder "test1" -- there are five xml files. (here I
need to merge
into one xml file)
"test2"--- there are six xml files. (here
I need to merge
into one xml file)
Final output is two merge xml files with respective
foldernames. This I have
to do using XSL + ANT + Java.
Can anyone help me for the same.
Thanks,
Shailesh
--~------------------------------------------------------------------
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>
--~--