Skip to content

InsertRegisterOperation: how to display attribute values #7

@Martin-de-la-Iglesia

Description

@Martin-de-la-Iglesia

In my register document I have stored birth and death years as attribute values, e.g.

<person xml:id="xyz">
   <forename>Max</forename>
   <surname>Mustermann</surname>
   <birth when-iso="0990"/>
   <death when-iso="1044"/>
</person>

Now I would like to display those dates next to the names in the selection list in an InsertRegisterOperation. Currently my 'expression' parameter looks like this:

//*[local-name()="surname"] + ", " + //*[local-name()="forename"]+ " (" + //*[local-name()="birth"]/@when-iso + "-" + //*[local-name()="death"]/@when-iso + ")"

However, that only shows the names in the list, not the years (Mustermann, Max (-)). The only attribute value I am able to display in the list is the @xml:id of the <person> element by simply writing + @xml:id in the 'expression' field. How do I access the other attributes?

Metadata

Metadata

Assignees

No one assigned

    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