xsl-list
[Top] [All Lists]

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

2007-11-20 08:06:02
<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(_at_)ercot(_dot_)com] 
Sent: Tuesday, November 20, 2007 8:52 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_at_)ercot(_dot_)com
512 248 4535 (office)
Nodal Integration Test Automation
Electric Reliability Council of Texas, Inc.

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