Subject: Re: [xsl] summing, ok From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Sun, 13 Feb 2005 11:09:12 +0100 |
<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>
-- Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) Laudeo W3C et dona ferens
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] summing, ok, Mukul Gandhi | Thread | Re: [xsl] summing, ok, Mukul Gandhi |
Re: Fwd: Re: [xsl] WordML to XML, Joris Gillis | Date | Re: [xsl] Understanding Identity Tr, Dimitre Novatchev |
Month |