mirror of
https://github.com/nhammer514/textfiles-politics.git
synced 2025-01-27 14:57:03 -05:00
25 lines
572 B
Plaintext
25 lines
572 B
Plaintext
|
<html>
|
||
|
{
|
||
|
let $conspFiles := collection('personTestingOutput')
|
||
|
let $ents := $conspFiles//ent
|
||
|
let $entTypes := $ents/@type[. = 'PERSON'] ! string() => distinct-values()
|
||
|
for $e in $entTypes
|
||
|
return
|
||
|
<table id="{$e}">
|
||
|
{
|
||
|
let $namesE := $conspFiles//ent[@type=$e]
|
||
|
let $distNamesE := $namesE ! normalize-space() => distinct-values() => sort()
|
||
|
for $t in $distNamesE
|
||
|
(: let $countT := $conspFiles//ent[. ! normalize-space() = $t] => count() :)
|
||
|
(: where $countT > 10 :)
|
||
|
(: order by $countT descending:)
|
||
|
return
|
||
|
<tr>
|
||
|
<td>{$t}</td>
|
||
|
<!-- <td>{$countT}</td> -->
|
||
|
</tr>
|
||
|
}
|
||
|
|
||
|
</table>
|
||
|
}
|
||
|
</html>
|