Re: tokenizing and counting with xsl:analyze-string
| Newsgroups | gmane.text.xml.xsl.general.mulberrytech |
|---|---|
| Organization | le-tex publishing services GmbH |
| Message-ID | <[email protected]> |
Caution, this only works in British XSLT! On 17.10.2020 09:52, Michael Kay [email protected] 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/3329386 or by email: [email protected] --~--