xsl-list
[Top] [All Lists]

Re: [xsl] tokenizing and counting with xsl:analyze-string

2020-10-17 03:13:17
Caution, this only works in British XSLT!

On 17.10.2020 09:52, Michael Kay mike(_at_)saxonica(_dot_)com wrote:
With xsl:analyse-string you would still need a variable, but it could be a simpler variable: for example it might just contain a "1" for a match, and a "0" for a non-match; at the end you then need to count the ones and zeros which you can do with string-length(translate(...)).

Michael Kay
Saxonica

--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>