- when normalize: - xslt: stylesheet: tidy.xsl - break - when update: - load: - /opt/swamid-metadata/swamid-2.0 as swamid-registered-ops - /opt/swamid-metadata/externals.xrd #- http://md.registry.swamid.se/role/sp.xml via normalize as swamid-registered-peer - fork: - select as /md/swamid-2.0.xml - fork: - select as /md/swamid-registered-2.0.xml: - "!//md:EntityDescriptor[md:Extensions[mdrpi:RegistrationInfo[@registrationAuthority='http://www.swamid.se/']]]" - break - when request: - select - pipe: - when accept application/xml: - xslt: stylesheet: tidy.xsl - first - finalize: cacheDuration: PT5H validUntil: P10D - sign: key: default.key cert: default.crt - emit application/xml - break - when accept application/json: - xslt: stylesheet: discojson.xsl - emit application/json: - break