- when clean:
    - xslt:
       stylesheet: tidy.xsl
    - check_xml_namespaces
    - break
- when update:
    - load:
        - /opt/metadata/swamid-edugain cleanup clean
        - /opt/metadata/swamid-2.0 cleanup clean
        - /opt/metadata/swamid-interfederations-2.0 cleanup clean
    - break
- when request:
    - select
    - pipe:
        - when accept application/samlmetadata+xml application/xml:
             - xslt:
                 stylesheet: tidy.xsl
             - pubinfo:
                 publisher: https://mdx.qa.swamid.se/
             - first
             - finalize:
                 baseURL: https://mdx.qa.swamid.se/
                 cacheDuration: PT5H
                 validUntil: P10D
             - sign:
                 key: /opt/metadata/swamid-interfederations-2.0/cert/swamid-qa.key
                 cert: /opt/metadata/swamid-interfederations-2.0/cert/swamid-qa.crt
             - emit application/xml
             - break