S
shaun roe
I should like to count the frequency of strings embedded in a longer
string, space separated. Specifically, I have:
<phiModule>
5 5 5 5 6 6 6 6 7 7 7
7 8 8 8 8 8 5 5 5 6 6
6 7 7 7 7 7 7 7 7 8 8
8 8 8 8 8 8 8 9 9 9 9
6 7 7 7 8 8 8 8 9 9 9
9 9 9 9 9 10 10 10 10 10 10
11 11 11 11 11 9 9 9 9 9 9
9 10 10 10 10 10 10 11 11 11 11
11 11 11 11 11 11 11 12 12 13 13
13 13 13 13 13 13
</phiModule>
And I should like to count the number of each phi value, eventually
outputting a text like:
Phi module 6 was hit 4 times.
(and so on for all the other phi values)
THe phi values are limited to a range 0-51, but I dont know what phi
values will appear in a given file.
Has anyone tackled something like this? I have to use xslt 1.0, so
tokenize, grouping etc becomes a bit tedious...
cheers
shaun
string, space separated. Specifically, I have:
<phiModule>
5 5 5 5 6 6 6 6 7 7 7
7 8 8 8 8 8 5 5 5 6 6
6 7 7 7 7 7 7 7 7 8 8
8 8 8 8 8 8 8 9 9 9 9
6 7 7 7 8 8 8 8 9 9 9
9 9 9 9 9 10 10 10 10 10 10
11 11 11 11 11 9 9 9 9 9 9
9 10 10 10 10 10 10 11 11 11 11
11 11 11 11 11 11 11 12 12 13 13
13 13 13 13 13 13
</phiModule>
And I should like to count the number of each phi value, eventually
outputting a text like:
Phi module 6 was hit 4 times.
(and so on for all the other phi values)
THe phi values are limited to a range 0-51, but I dont know what phi
values will appear in a given file.
Has anyone tackled something like this? I have to use xslt 1.0, so
tokenize, grouping etc becomes a bit tedious...
cheers
shaun