RE: RE: [xsl] a question

Subject: RE: RE: [xsl] a question
From: cknell@xxxxxxxxxx
Date: Thu, 04 Nov 2004 12:00:09 -0500
Are you saying that you wish to sum all the values of "elementlist/value/a" where "elementlist/value/c" = "010"? Do you want to sum across all "elementlist" elements or only the ones where "elementlist/key" has a specific value?
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Osman Ginar Eren <Cinar.Eren@xxxxxxxxxxxxx>
Sent:     Thu, 4 Nov 2004 18:52:14 +0200
To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  RE: [xsl] a question

thanks for your answers (david and cknell)
i would like to learn if i can make some operations on the values of one field.i.e. take the total of some elements'(<value> in my XML) X values(<a> in my XML file) and write these totals. Also some elements are chose according to the value of some field.(<c> in my XML file) That is; take the total of all elements whose some value is SAME. Then write this into the XSL.

thanks in advance.
also i will greatly appreciate any help if you can guide me a nice tutorial on thse subjects.

best regards.


-----Original Message-----
From: cknell@xxxxxxxxxx [mailto:cknell@xxxxxxxxxx]
Sent: Thursday, November 04, 2004 6:46 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] a question


The precise form of the XPath depends on the document context from which you invoke it.  Let's assume that your document's root element is <lists></lists> and that all the <elementlist></elementlist> are its direct descendants. In this case, 
<xsl:value of select="/lists/elementlist[key='aktif']/value[1]/e" /> will return "KASA".
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Osman Ginar Eren <Cinar.Eren@xxxxxxxxxxxxx>
Sent:     Thu, 4 Nov 2004 18:27:29 +0200
To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  [xsl] a question

hi,

i am a newbie on this list. i work with FOP and i must prepare an XSL file for my XML file. My XML file contains two elements with different keys, i.e.:

 <elementlist xsi:type="java:org.exolab.castor.mapping.MapItem">
  <key xsi:type="java:java.lang.String">aktif</key> 
 <value xsi:type="java:com.oreilly.hh.QueryTestXML$XMLDovizElement">
  <a>17100</a> 
  <b>746.00</b> 
  <c>010</c> 
  <d>17130900000.00</d> 
  <e>KASA</e> 
  <f>74854930157246.00</f> 
  <g>1</g> 
  <h>1</h> 
  </value>
     <value>
    .
    .
    .
    </value>

Current Thread