This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
counting the number of tokens in a string?
- From: john liao <jliao2k at yahoo dot com>
- To: XSL-List at lists dot mulberrytech dot com
- Date: Wed, 2 Oct 2002 09:35:44 -0700 (PDT)
- Subject: [xsl] counting the number of tokens in a string?
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
another newbie question. Is there an easy way to count
the number of commas in a string? Like this:
<ITEM cols="col1,col2,col3,col4"/>
I would like to print 4 for the number of columns in
my ITEM. I searched on tokenize() but most of the
references are about the existence of it.
Thanks,
J.L.
=====
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list