diff options
author | Fredrik Domeij <fredrik.domeij@umu.se> | 2019-11-13 09:58:26 +0100 |
---|---|---|
committer | Fredrik Domeij <fredrik.domeij@umu.se> | 2019-11-13 09:58:26 +0100 |
commit | 4606fc192429900bb4419832f0bc7d013bb83f53 (patch) | |
tree | a7a2ab3a5b0af5adfd8814f7159aec48be605a39 /xslt/sp-summary.xslt | |
parent | a89731fe7485cb48357c54a642356ec3b95d0ba1 (diff) |
registration authority added
displayname/displaydescription combined in sp-summary.xslt
contactperson combined in sp-summary.xslt
assurance-certification added to sp-summary.xslt
Diffstat (limited to 'xslt/sp-summary.xslt')
-rw-r--r-- | xslt/sp-summary.xslt | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/xslt/sp-summary.xslt b/xslt/sp-summary.xslt index d54141c2..a580c83e 100644 --- a/xslt/sp-summary.xslt +++ b/xslt/sp-summary.xslt @@ -9,6 +9,7 @@ xmlns:samla="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl" + xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> <xsl:output method="text"/> @@ -28,31 +29,38 @@ </xsl:template> <xsl:template match="/md:EntitiesDescriptor"> - <xsl:text>||EntityID||Service Name||Service Description||Organization||Technical Contact||Administrative Contact||Entity Categories|| + <xsl:text>||EntityID||Service Name||Organization||Contacts||Entity Categories||Assurance Certification||Registration Authority|| </xsl:text> <xsl:apply-templates select="md:EntityDescriptor[md:SPSSODescriptor]"/> </xsl:template> <xsl:template match="md:EntityDescriptor"> <xsl:text> | </xsl:text><xsl:value-of select="@entityID"/> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService/md:ServiceName"/> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService/md:ServiceDescription"/> + <xsl:text> | </xsl:text> + <xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService/md:ServiceName"/><xsl:text> \\ </xsl:text> + <xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService/md:ServiceDescription"/> <xsl:text> | </xsl:text><xsl:apply-templates select="md:Organization"/> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='technical']"/> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='administrative']"/> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='http://macedir.org/entity-category']/samla:AttributeValue"/><xsl:text> | + <xsl:text> | </xsl:text> + <xsl:apply-templates select="md:ContactPerson[@contactType='technical']"/> + <xsl:apply-templates select="md:ContactPerson[@contactType='administrative']"/> + <xsl:apply-templates select="md:ContactPerson[@contactType='support']"/> + <xsl:apply-templates select="md:ContactPerson[@contactType='other']"/> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='http://macedir.org/entity-category']/samla:AttributeValue"/> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='urn:oasis:names:tc:SAML:attribute:assurance-certification']/samla:AttributeValue"/><xsl:text> </xsl:text> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdrpi:RegistrationInfo"/> + <xsl:text> | </xsl:text> </xsl:template> - <xsl:template match="md:AttributeConsumingService"> - <xsl:apply-templates/> + <xsl:template match="mdrpi:RegistrationInfo"> + <xsl:value-of select="@registrationAuthority"/><xsl:text> </xsl:text> </xsl:template> - <xsl:template match="md:ServiceDescription"> - <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text> + <xsl:template match="md:AttributeConsumingService"> + <xsl:apply-templates/> </xsl:template> - <xsl:template match="md:ServiceName"> + <xsl:template match="md:ServiceName|md:ServiceDescription"> <xsl:call-template name="string-replace-all"> <xsl:with-param name="text" select="text()" /> <xsl:with-param name="replace" select="'|'" /> @@ -64,13 +72,13 @@ <xsl:call-template name="string-replace-all"> <xsl:with-param name="text" select="substring-after(text(),'/category/')" /> <xsl:with-param name="replace" select="'-'" /> - <xsl:with-param name="by" select="'&#x2011;'" /> + <xsl:with-param name="by" select="'-'" /> </xsl:call-template> <xsl:text> \\</xsl:text> </xsl:template> <xsl:template match="md:ContactPerson"> - <xsl:apply-templates select="md:EmailAddress"/> + <xsl:value-of select="@contactType"/><xsl:text>: </xsl:text><xsl:apply-templates select="md:EmailAddress"/> </xsl:template> <xsl:template match="md:Organization"> @@ -84,7 +92,7 @@ </xsl:template> <xsl:template match="md:EmailAddress"> - <xsl:value-of select="text()"/><xsl:text> \\</xsl:text> + <xsl:text>[</xsl:text><xsl:value-of select="text()"/><xsl:text>] \\</xsl:text> </xsl:template> <xsl:template match="md:OrganizationDisplayName"> |