blob: da1511206fe9f4df1239862c5446dbed1529dbc6 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute"
xmlns:samla="urn:oasis:names:tc:SAML:2.0:assertion"
xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="exsl"
xmlns:mdui="urn:oasis:names:tc:SAML:metadata:ui"
xmlns:shibmd="urn:mace:shibboleth:metadata:1.0">
<xsl:output method="text"/>
<xsl:variable name="eol">
<xsl:text>|</xsl:text><xsl:text>
</xsl:text>
</xsl:variable>
<xsl:template match="/md:EntitiesDescriptor">
<xsl:text>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" href="https://md.fidus.skolverket.se/css/bootstrap.min.css">
<title>Info om SP:er</title>
<style>
/* Customize container */
@media (min-width: 768px) {
.container {
max-width: 1800px;
}
}
</style>
</head>
<body>
<div class="container">
<div class="widecontent">
<h2>Info om SP:er i FIDUS</h2>
<table class="table table-striped table-bordered">
<tr>
<th>EntityID </th>
<th>Contacts</th>
<th>UIInfo</th>
<th>Organization</th>
<th>RequestedAttributes</th>
</tr>
</xsl:text>
<xsl:apply-templates select="md:EntityDescriptor[md:SPSSODescriptor]"/>
<xsl:text></table>
</xsl:text>
</xsl:template>
<xsl:template match="md:EntityDescriptor">
<xsl:text><tr>
<td></xsl:text><xsl:value-of select="@entityID"/>
<xsl:text></td>
<td></xsl:text>
<xsl:apply-templates select="md:ContactPerson[@contactType='support']"/>
<xsl:apply-templates select="md:ContactPerson[@contactType='technical']"/>
<xsl:apply-templates select="md:ContactPerson[@contactType='administrative']"/>
<xsl:apply-templates select="md:ContactPerson[@contactType='other']"/>
<xsl:text></td>
<td></xsl:text><xsl:apply-templates select="md:SPSSODescriptor/md:Extensions/mdui:UIInfo"/>
<xsl:text></td>
<td></xsl:text><xsl:apply-templates select="md:Organization"/>
<xsl:text></td>
<td></xsl:text><xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService[1]"/>
<xsl:text></td>
</tr>
</xsl:text>
</xsl:template>
<xsl:template match="md:AttributeConsumingService">
<xsl:apply-templates select="md:RequestedAttribute"/>
</xsl:template>
<xsl:template match="md:RequestedAttribute">
<xsl:value-of select="@FriendlyName"/><xsl:text> - </xsl:text> <xsl:value-of select="@Name"/> <xsl:text><br></xsl:text>
</xsl:template>
<xsl:template match="mdui:UIInfo">
<xsl:apply-templates select="mdui:DisplayName[1]"/><xsl:text><br></xsl:text>
<xsl:apply-templates select="mdui:Description[1]"/>
<xsl:apply-templates select="mdui:InformationURL[1]"/>
</xsl:template>
<xsl:template match="md:Organization">
<xsl:apply-templates select="md:OrganizationName[1]"/><xsl:text><br></xsl:text>
<xsl:apply-templates select="md:OrganizationDisplayName[1]"/>
<xsl:apply-templates select="md:OrganizationURL[1]"/>
</xsl:template>
<xsl:template match="mdui:InformationURL">
<xsl:text><br><a href="</xsl:text>
<xsl:value-of select="text()"/>
<xsl:text>">InformationURL</a></xsl:text>
</xsl:template>
<xsl:template match="md:OrganizationURL">
<xsl:text><br><a href="</xsl:text>
<xsl:value-of select="text()"/>
<xsl:text>">md:OrganizationURL</a></xsl:text>
</xsl:template>
<xsl:template match="md:ContactPerson">
<xsl:text><a href="mailto:</xsl:text>
<xsl:apply-templates select="md:EmailAddress"/>
<xsl:text>"></xsl:text>
<xsl:value-of select="@contactType"/>
<xsl:text></a><br></xsl:text>
</xsl:template>
<xsl:template match="md:EmailAddress">
<xsl:value-of select="substring-after(text(),'mailto:')"/>
</xsl:template>
</xsl:stylesheet>
|