Skip to content

Commit

Permalink
Enable check_future_5 to check validity of errorURL
Browse files Browse the repository at this point in the history
See ukf/ukf-meta#164
  • Loading branch information
Alex Stuart committed Jun 29, 2018
1 parent a758e63 commit 0e8f0ac
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mdx/_rules/check_future_5.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:mdui="urn:oasis:names:tc:SAML:metadata:ui"
xmlns:mdxURL="xalan://uk.ac.sdss.xalan.md.URLchecker"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:idpdisc="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol"
xmlns:set="http://exslt.org/sets"
Expand All @@ -23,4 +24,16 @@
-->
<xsl:import href="check_framework.xsl"/>

<xsl:template match="md:IDPSSODescriptor/@errorURL[mdxURL:invalidURL(.)]">
<xsl:call-template name="error">
<xsl:with-param name="m">
<xsl:value-of select='local-name()'/>
<xsl:text> '</xsl:text>
<xsl:value-of select="."/>
<xsl:text>' is not a valid URL: </xsl:text>
<xsl:value-of select="mdxURL:whyInvalid(.)"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>

0 comments on commit 0e8f0ac

Please sign in to comment.