2023-04-24 14:37:38 -04:00
|
|
|
<html>
|
|
|
|
{
|
|
|
|
let $conspFiles := collection('personTestingOutput')
|
|
|
|
let $ents := $conspFiles//ent
|
2023-04-26 13:37:54 -04:00
|
|
|
let $entTypes := $ents/@type[. = 'PERSON'] ! string() => distinct-values()
|
2023-04-24 14:37:38 -04:00
|
|
|
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
|
2023-04-26 13:37:54 -04:00
|
|
|
(: let $countT := $conspFiles//ent[. ! normalize-space() = $t] => count() :)
|
|
|
|
(: where $countT > 10 :)
|
|
|
|
(: order by $countT descending:)
|
2023-04-24 14:37:38 -04:00
|
|
|
return
|
|
|
|
<tr>
|
|
|
|
<td>{$t}</td>
|
2023-04-26 13:37:54 -04:00
|
|
|
<!-- <td>{$countT}</td> -->
|
2023-04-24 14:37:38 -04:00
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
|
|
|
|
</table>
|
|
|
|
}
|
|
|
|
</html>
|