[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Selecting node contents from several xml-files

Subject: Selecting node contents from several xml-files
From: Jarkko.Moilanen@xxxxxx
Date: Fri, 28 Jun 2002 10:30:40 +0300 (EEST)
select node contents
Hi!

Is there some possibility to select node values (numbers) from 
several xml -files and then count them all together? 

I did try to use 

<xsl:for-each select="$P1//P1Kurssi/P1Arvosanat">
//variable declared below
<xsl:for-each select="$P2//P2Kurssi/P2Arvosanat">
<xsl:value-of select="count(arvosana)"/>

<xsl:variable name="P1" select="document('P1.xml')"/>
<xsl:variable name="P2" select="document('P2.xml')"/>

example of xml -file:

<?xml version="1.0"  encoding="ISO-8859-1" standalone="yes"?>
<Document title="Keskiarvot kurssien arvosanoista">

<P1Kurssi koodi="P1" name=" P1 Johdatus vuorovaikutteiseen mediaan" 
link="http://hypst09.uta.fi:6969/cgi-bin/html?P1">
        <Opiskelijoita>23</Opiskelijoita>
    	<P1Arvosanat>
		<arvosana>3</arvosana>
		<arvosana>2.25</arvosana>
		<arvosana>1.75</arvosana>
		<arvosana>1.25</arvosana>
		<arvosana>2.75</arvosana>
	</P1Arvosanat>
</P1Kurssi>
</Document>

******************************************************************
Jarkko Moilanen         *You are wise, witty, and wonderful,     *
Researcher/ ITCM        *but you spend too much time             *
jm60697@xxxxxx          *reading this sort of trash.             *
www.uta.fi/~jm60697     *                                        *
GSM: +358 50 3766 927   *                                        *
******************************************************************
* ITCM | Information Technology and Crisis Management            *
* http://www.itcm.org                                            *
******************************************************************

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


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-2007 All Rights Reserved.