RE: [xsl] Multiple XMLs and One XSL to display the data in one webpage

Subject: RE: [xsl] Multiple XMLs and One XSL to display the data in one webpage
From: "Scott Trenda" <Scott.Trenda@xxxxxxxx>
Date: Tue, 20 Nov 2007 09:05:28 -0600
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

  <xsl:template match="/">
    <xsl:apply-templates select="//funcdef |
document("path/funcdefs2.xml")//funcdef |
document("path/funcdefs3.xml")//funcdef |
document("path/funcdefs4.xml")//funcdef |
document("path/funcdefs5.xml")//funcdef"/>
  </xsl:template>

  <xsl:template match="funcdef">
    <!-- whatever you'd do here -->
    <xsl:copy-of select="."/>
  </xsl:template>

</xsl:stylesheet>

~ Scott


-----Original Message-----
From: Nistala, Anu [mailto:anistala@xxxxxxxxx]
Sent: Tuesday, November 20, 2007 8:52 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Multiple XMLs and One XSL to display the data in one
webpage


Hi all,

I have 5 different XML files, I want to merge them together and display
on one webpage. The node names all match in all the xml files. Below is
an example of one XML I have. Does anyone know how to merge the xmls to
one xml or directly get data from the xmls to display in one webpage.
Thank you all for your help in advance..

<?xml-stylesheet type="text/xsl" href="todropdown.xsl"?>

<functiontitle>
  <funcdef>
    <FunctionType>Navigation</FunctionType>
    <funcname >flNVGLogin</funcname>
    <funcdesc >This function logs into CMM app</funcdesc>
    <CreationDate>2:12 PM 11/14/2007</CreationDate>
    <Author>Anu Nistala</Author>
  </funcdef>

  <funcdef >
    <FunctionType>Validation</FunctionType>
    <funcname >flVLDLogin</funcname>
    <funcdesc >This validates login page</funcdesc>
    <CreationDate>2:12 PM 11/14/2007</CreationDate>
    <Author>Ujwal Maskey</Author>
  </funcdef>

  <funcdef >
    <FunctionType>Global</FunctionType>
    <funcname >flGLBCloseBrowser</funcname>
    <funcdesc >This function closes CMM app</funcdesc>
    <CreationDate>2:12 PM 11/14/2007</CreationDate>
    <Author>Shanti Swarupa</Author>
  </funcdef>

-
-
-
-
-
-
</functiontitle>

Thanks!
Anu Nistala
anistala@xxxxxxxxx
512 248 4535 (office)
Nodal Integration Test Automation
Electric Reliability Council of Texas, Inc.

Current Thread