mirror of
https://github.com/nhammer514/textfiles-politics.git
synced 2024-10-01 01:15:38 -04:00
10 lines
469 B
Plaintext
10 lines
469 B
Plaintext
|
xquery version "3.1";
|
||
|
let $letStringJoin := string-join(
|
||
|
let $conspiracyList := collection('../src-xml')//xml
|
||
|
for $c in $conspiracyList
|
||
|
let $names := $c//ent[@type='person']/text() => distinct-values()
|
||
|
let $file := $c ! base-uri() ! tokenize(. , "/")[last()]
|
||
|
for $n in $names
|
||
|
return concat($n, "	", "person", "	", $file, "	", "file")," "
|
||
|
)
|
||
|
return $letStringJoin
|