Limiting number

Task

Source document

<persons>
  <person firstName="Hans" lastName="Mustermann" age="28" />
  <person firstName="Herbert" lastName="Möllemann" age="33" />
  <person firstName="Peter" lastName="Meier" age="37" />
  <person firstName="Ulrike" lastName="Albrecht" age="45" />
</persons>

Challenge

Select the first three person elements.

Desired selection (XML-output)

  • <person firstName="Hans" lastName="Mustermann" age="28" />
  • <person firstName="Herbert" lastName="Möllemann" age="33" />
  • <person firstName="Peter" lastName="Meier" age="37" />

Exercise

Your input

Eine Lösung wäre: Lösung