{% extends "base.xml" %}
{% from "macros.xml" import request_xml %}

{% block content %}
<requests>
  <total-payouts>{{ total_payouts.currency() }}</total-payouts>
  {% for srp_request in requests %}
    {{ request_xml(srp_request) }}
  {% endfor %}
</requests>
{% if prev is defined %}
<prev>{{ prev }}</prev>
{% endif %}
{% if next is defined %}
<next>{{ next }}</next>
{% endif %}
{% endblock content %}

{% extends "base.xml" %}
{% from "macros.xml" import request_xml %}

{% block content %}
<requests count="{{ requests|count }}" total-payouts="{{ total_payouts.currency() }}">
  {% for srp_request in requests %}
    {{ request_xml(srp_request) }}
  {% endfor %}
</requests>
{% if prev is defined %}
<prev>{{ prev }}</prev>
{% endif %}
{% if next is defined %}
<next>{{ next }}</next>
{% endif %}
{% endblock content %}

Move total payouts to an attribute of the request listing
XML: Move total payouts to an attribute of the request listing