summaryrefslogtreecommitdiff
path: root/mdx.fd
blob: 84bf3a81faea4a3cb27d3438eba8dcb671fefe22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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