in some cases xpath build in MCRXPathBuilder is not unique

Description

We use subselect in xed:repeat combined with xpath as parameter. See resulting XML:

MCRXPathBuilder.buildPositionPredicate() only adds position bracket if it is second element or third ....

This leads to problems if xpath parameter means first occurance of mods:name instead of all occurances of mods:name. So in the above described case we need mods:name[1] as xpath instead of mods:name.

Environment

None

Assignee

Frank L├╝tzenkirchen

Reporter

Kathleen Neumann

Labels

None

URL

None

External issue ID

None

Components

Fix versions

Affects versions

Priority

Medium
Configure