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

Re: summing, ok

Subject: Re: summing, ok
From: Marcos Hercules dos Santos <mhercules@xxxxxxxxx>
Date: Sun, 13 Feb 2005 14:12:24 -0300
hercules dos
Mukul, thanks very much  

success again.

Till  the next.

Marcos  Hercules dos Santos






On Sun, 13 Feb 2005 03:09:50 -0800 (PST), Mukul Gandhi
<mukul_gandhi@xxxxxxxxx> wrote:
> Hi Joris,
>   Thanks for suggesting a better answer!
> 
> Regards,
> Mukul
> 
> --- Joris Gillis <roac@xxxxxxxxxx> wrote:
> 
> > Tempore 10:41:24, die 02/13/2005 AD, hinc in
> > xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Mukul
> > Gandhi
> > <mukul_gandhi@xxxxxxxxx>:
> >
> > > <xsl:template match="/cars">
> > >   <xsl:variable name="modelcount">
> > >     <xsl:for-each select="car[generate-id(.) =
> > > generate-id(key('by-model',model)[1])]">
> > >       1
> > >     </xsl:for-each>
> > >   </xsl:variable>
> > >
> > >   Total no of models - <xsl:value-of
> > > select="string-length($modelcount) -
> > > string-length(translate($modelcount,'1',''))" />
> > >
> > > </xsl:template>
> >
> > or
> >
> > <xsl:template match="/cars">
> >       Total no of models -
> >       <xsl:value-of select="count(car[generate-id(.) =
> > generate-id(key('by-model',model)[1])])" />
> > </xsl:template>
> >
> > --
> > Joris Gillis
> >
> (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
> > Laudeo W3C et dona ferens
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail

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