The list of names for a given lemma in the person index is currently created from the plain text nodes in tei:persName:
let $name := $person/tei:persName
let $inhalt := concat($name/text(), ' ',$aufbereitung)
I suggest changing this to let $inhalt := concat(string-join($name//text()), ' ',$aufbereitung) in order to support indices with further modeling beyond persName, such as in the Fontenay index:
The list of names for a given lemma in the person index is currently created from the plain text nodes in
tei:persName
:I suggest changing this to
let $inhalt := concat(string-join($name//text()), ' ',$aufbereitung)
in order to support indices with further modeling beyond persName, such as in the Fontenay index: