summaryrefslogtreecommitdiff
path: root/mdx.fd
diff options
context:
space:
mode:
Diffstat (limited to 'mdx.fd')
-rw-r--r--mdx.fd35
1 files changed, 35 insertions, 0 deletions
diff --git a/mdx.fd b/mdx.fd
new file mode 100644
index 00000000..84bf3a81
--- /dev/null
+++ b/mdx.fd
@@ -0,0 +1,35 @@
+- 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 via normalize as swamid-externals
+ #- http://md.registry.swamid.se/role/sp.xml via normalize as swamid-registered-peer
+ - fork:
+ - select as /md/swamid-2.0.xml
+ - swamid-registered-ops
+ - swamid-externals
+ - swamid-registered-peer
+ - 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