Skip to content

Projekt-Register mit mehreren Dateien #24

@jjarosch

Description

@jjarosch

Ist die Funktion für Projekt-Register in Version 4.0.2 schon mal erfolgreich zum Indizieren von mehreren Dateien verwendet worden?

Ich hatte folgende Registerkonfiguration in Version 3.2.4.444 in Verwendung:
grafik

Die Fehlermeldung bei Aufruf der Schnittstelle ist:

<exception>
<path>/db/projects/sbw/oxygen/ediarum.xql</path>
<message>err:XPTY0004 checking function parameter 1 in call util:eval-inline($col, ".//" $data-node): XPTY0004:
The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature:
util:eval-inline($inline-context as item()?, $expression as item()) item()*.
Expected cardinality: zero or one, got 3090.
[at line 916, column 37, source: /db/apps/ediarum/modules/config.xqm]
In function: config:get-project-index(xs:string, xs:string) [30:5:/db/apps/ediarum/modules/config.xqm]
ediarum:get-project-index(xs:string, xs:string)
[43:13:/usr/local/lib/exist-6.0.1/data/expathrepo/ediarum-4.0.2/content/ediarum.xql]</message>
</exception>

Die Fehlerquelle ist diese Zeile:

let $items := util:eval-inline($col ,'.//'||$data-node)

“Expected cardinality: zero or one, got 3090” müsste heißen, dass in meinem Fall 3090 TEI-Ressourcen in der Collection sind und in dieser Zeile schon als Knotenmenge evaluiert werden.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions