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

RE: [Bu posta banka dışından gelmekte olup gerektiğin

Subject: RE: [Bu posta banka dışından gelmekte olup gerektiğinde teyit alınmalıdır.] - find the sum over distinct nodes - Sender blacklisted
From: Osman Çınar Eren <Cinar.Eren@xxxxxxxxxxxxx>
Date: Thu, 18 Nov 2004 11:26:33 +0200
banka
i tried to use the following:

<xsl:key name="dkey" match="value" use="v1"/>
<xsl:for-each select="$ZZZ[generate-id(.)]/B[generate-id(.) =
generate-id(key('dkey',v1)[1])]">

but this returns nothing, that is this does not return a nodeset...
i have a problem with the grouping.
any ideas?

regards..

-----Original Message-----
From: Osman G}nar Eren [mailto:Cinar.Eren@xxxxxxxxxxxxx]
Sent: Thursday, November 18, 2004 10:43 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [Bu posta banka d}~}ndan gelmekte olup gerektipinde teyit
al}nmal}d}r.] -  find the sum over distinct nodes - Sender
blacklisted



Hi,

I have such an XML nodeset:

<A>
        <B>
            <key>aa</key>
            <value>
                <v1>aa</v1>
                <v2>110</v2>
            </value>
        </B>
        <B>
            <key>bb</key>
            <value>
                <v1>bb</v1>
                <v2>10</v2>
            </value>
        </B>
        <B>
            <key>cc</key>
            <value>
                <v1>cc</v1>
                <v2>60</v2>
            </value>
        </B>
</A>

<A>
       <B>
            <key>bb</key>
            <value>
                <v1>bb</v1>
                <v2>40</v2>
            </value>
        </B>
        <B>
            <key>cc</key>
            <value>
                <v1>cc</v1>
                <v2>200</v2>
            </value>
        </B>
</A>

<A>
        <B>
            <key>dd</key>
            <value>
                <v1>dd</v1>
                <v2>60</v2>
            </value>
        </B>
</A>

what i try to do is to have the sum values over 'v2' values for distinct B
nodes.(distinct means for different key values.)
i would like to have such an XSL part:

<xsl:for-each select="$ZZZ[generate-id(.)]/???">
  <xsl:variable name="miktar" select="sum(v2)"/>
  <fo:table-row>
   <fo:table-cell>
      <fo:block text-align="left" font-size="8pt" >
           <xsl:value-of select='format-number($miktar, "###,###.00")'/>
      </fo:block>
   </fo:table-cell>
  </fo:table-row>

where $ZZZ is the nodeset which contrains the elements given above.

thanks in advance.
best regards..

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