This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Adding together XML files with identical trees


Hello All:

I have Web site performance data in XML files, that I want to put them
together into one HTML table.  The Tree structure is
the following:

<ROOT>
	<FUNCTION>
		<LOGINFO>
			<PERFORMANCE>32ms</PERFORMANCE>
		</LOGINFO>
	</FUNCTION>
	<FUNCTION>
		<LOGINFO>
			<PERFORMANCE>45ms</PERFORMANCE>
		</LOGINFO>
	</FUNCTION>
	......
</ROOT>


The final product of three files should look something like this:

<ROOT>
	<FUNCTION>
		<LOGINFO>
			<PERFORMANCE1>32ms</PERFORMANCE1>
			<PERFORMANCE2>45ms</PERFORMANCE2>
			<PERFORMANCE3>45ms</PERFORMANCE3>
		</LOGINFO>
	</FUNCTION>
	<FUNCTION>
		<LOGINFO>
			<PERFORMANCE1>15ms</PERFORMANCE1>
			<PERFORMANCE2>23ms</PERFORMANCE2>
			<PERFORMANCE3>18ms</PERFORMANCE3>
		</LOGINFO>
	</FUNCTION>
	......
</ROOT>

Is this possible in XSLT?  I am ready to use Java and DOM with hash tables,
but put a lot of time
looking for a solution with XSLT using XT for Windows.

Thanks,

Mike A. Kukuchka 
Software Engineer 
US Interactive, Inc 
Phone: 310.889.3152 - Fax: 310.440.3388 
mkukuchka@usinteractive.com 
<mailto:mkukuchka@usinteractive.com> 

http://www.usinteractive.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]