[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to merge multiple XML files

Subject: Re: How to merge multiple XML files
From: George Cristian Bina <george@xxxxxxxxxxxxx>
Date: Mon, 07 May 2007 09:07:10 +0300
Re:  How to merge multiple XML files
Look at Saxon 8 collection function
http://www.saxonica.com/documentation/sourcedocs/collections.html

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina - http://aboutxml.blogspot.com/
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


J. S. Rawat wrote:


b) XSLT :


<xsl:template match="/">
<xsl:variable name="a" select="document('a.xml')/records" />
<xsl:variable name="b" select="document('b.xml')/records" />
<xsl:variable name="c" select="document('c.xml')/records" />
<records>
<xsl:copy-of select="$a/text()|$a/*" />
<xsl:copy-of select="$b/text()|$b/*" />
<xsl:copy-of select="$c/text()|$c/*" />
</records>
</xsl:template>
This option is more closer to my purpose. Would you let me know that how to pick all the files of the directory. I mean if you don't know how many files are there in the directory and even you don't know the names of the files.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.