Skip to content

[fromxml] Handle multiple value matches in templates #30

@proycon

Description

@proycon

In a configuration like the following:

[[elements.annotationdata]]
set = "https://ns.huc.knaw.nl/textannodata.jsonld"
key = "recipient"
value = """{{ $./tei:teiHeader/tei:profileDesc/tei:correspDesc/tei:correspAction[@type="received"]/tei:rs[@type="person"] }}"""     skip_if_missing = true

The value template matches and returns only the first matching element (by design). We don't have a proper mechanism yet
to deal with multiple matches (in this example: multiple recipients)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions