<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS xmlns:xrds="xri://$xrds" xmlns="xri://$xrd*($v*2.0)">
  <XRD>
    <Service>
{%- for t in types %}
      <Type>{{ t }}</Type>
{%- endfor %}
{%- if uri %}
      <URI>{{ uri }}</URI>
{%- endif %}
{%- if localid %}
      <LocalID>{{ localid }}</LocalID>
{%- endif %}
    </Service>
  </XRD>
</xrds:XRDS>
