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

Subject: Re: [xsl] tokenizing and counting with xsl:analyze-string
From: "Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 17 Oct 2020 08:13:10 -0000
Caution, this only works in British XSLT!

On 17.10.2020 09:52, Michael Kay mike@xxxxxxxxxxxx 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

Current Thread