xsl-list
[Top] [All Lists]

Re: [xsl] How to merge multiple XML files

2007-05-06 23:07:35
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.


--~------------------------------------------------------------------
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>