[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Use 'count' or xsl:variable?


Subject: [xsl] Use 'count' or xsl:variable?
From: ssd xcxc <marina777uk@xxxxxxxxx>
Date: Sun, 23 Dec 2001 00:30:52 -0800 (PST)

Hello,

I have an xml document of books like this...

<library>
   <book>
     <first_name>....</first_name>
     <last_name>.....</last_name>
     <title>.....</title>
     <ibn>.....</ibn>
     <cost>....</cost>
   </book>

etc etc
</library>

and need to count how many titles there are for every
instance of last_names. Is it better to initialize a
variable and increment it every time or just use the
'count' part of select?

Thank you

Marina

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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



Current Thread
Keywords
xml