Render a sequence with cem:for-each

Each selected item gets a local variable from as and a one-based $position. Records, payload data, and resource slices use the same loop syntax. Toggle the checkbox cases on and off to see rows added and removed without losing the table headers.

CEM-ML templates are inert text, so loops can appear inside a table without the browser moving them out during HTML parsing.

See also

Discover and sort XML, CSV, YAML and JSON rows

Events that change loop visibility

JSON and XML response data