[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: "J. S. Rawat" <jrawat@xxxxxxxxxxxxxx>
Date: Mon, 07 May 2007 11:28:38 +0530
Re:  How to merge multiple XML files
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.