Start building

Transform and map

Nested XSD · scoped filters & repeated records

Three nested repeated XSD levels, three collection filters, AND/OR predicate groups, parent aliases and exact decimal line amounts. Runs using XPath 1.0 with no optional engine.

  • XML → XML
  • Advanced
  • 6 min

Last verified 2026-10-31 at f4ce7d0 — simulation fixtures

Try this template in Studio

Studio activation is a one-time payment of USD 20.

Flow

Drawn at build time from the node positions in the template's process definitions. Numbered markers are the walkthrough stages.

Main processNested XSD · scoped filters & repeated records3 activities

Scroll sideways to see the whole flow.

Flow diagram of Nested XSD · scoped filters & repeated records3 activities and 2 transitions: Validate nested XML, Filter customers, orders and lines, Return validated XML.Validate nested XMLstart1Filter customers,orders and linesdata.mapper2Return validated XMLend
List the 3 activities and 2 transitions

Activities

  1. Validate nested XML start
  2. Filter customers, orders and lines data.mapper
  3. Return validated XML end

Transitions

  • Validate nested XML → Filter customers, orders and lines (on success)
  • Filter customers, orders and lines → Return validated XML (on success)

Walkthrough

  1. Validate nested XMLInspect required, optional, repeated and nillable fields. Open the mapper and focus a branch to edit only that scope.
  2. Filter customers, orders and linesKeep active customers, ready EU/NA orders and positive enabled line items. AND/OR rules remain grouped within their collection.

What you will practise

  • Inspect required, optional, repeated and nillable fields. Open the mapper and focus a branch to edit only that scope.
  • Keep active customers, ready EU/NA orders and positive enabled line items. AND/OR rules remain grouped within their collection.
  • Use /locals/customer (or $locals/customer in XPath) to refer to the outer customer while mapping orders. End validates the full output XSD.

Sample cases

2 cases with 6 assertions, run with python -m server.integration examples --all in simulation.

Ready EU orders, positive enabled lines

Passed

Run the actual deterministic flow with supplied data. External connector effects use fixtures only.

Expected result Validate the exact output and successful execution without external services.

3/3 assertions

  • Successful simulation
  • Expected output
  • No pending receipts

This sample run only; not a production certification.

All customers filtered out

Passed

Run the actual deterministic flow with supplied data. External connector effects use fixtures only.

Expected result Validate the exact output and successful execution without external services.

3/3 assertions

  • Successful simulation
  • Expected output
  • No pending receipts

This sample run only; not a production certification.

Prerequisites

Runtime
Cohuno runtime 1.27.0, the version recorded when these cases last passed.
Starter
Manual start; no listener.
Optional dependencies
None beyond the base runtime.
Simulation fixtures
None: no activity in this template uses a connector.
Verification details

Provenance

What was verified, and when. The content part changes whenever the pack, a process in its closure, the runtime version or a case result changes; the gallery check then fails until the gallery is regenerated and the changed templates are verified again.

Verified content

Pack SHA-256
5c535d9eca1dc37d41a5c91217ea13f342ecff719fb5151c9ddb5262112d25b0
Closure SHA-256
77272e511694c0ab69ce96ff4e81ecf64b45f0a1bfa2c1833ed8249c969ecc39
Runtime
1.27.0
Results
2/2 cases, 6/6 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/nested_xsd_mapping_lab.json
  • server/integration/templates/nested_xsd_mapping_lab.json

Verification event

Commit
f4ce7d08eedc90267b405ed1974344153a8b3a34
Verified at (UTC)
2026-10-31T21:19:21Z

How the Cohuno team reproduces this check

PYTHONPATH=. python -m server.integration examples --example nested_xsd_mapping_lab
PYTHONPATH=. python scripts/export_public_gallery.py --check