link check now allows mailto:

This commit is contained in:
skyanth
2019-06-07 13:01:24 +02:00
parent 6d5cb9a58b
commit a0772c3dad

View File

@@ -3,7 +3,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0">
<xsl:template name="checkLinkValidity">
<xsl:if test="not(starts-with(@href, '#')) and not(contains(@href, '://'))">
<xsl:if test="not(starts-with(@href, '#')) and not(contains(@href, '://') and not(contains(@href, 'mailto:'))">
<xsl:call-template name="displayErrorText">
<xsl:with-param name="string">[ Invalid link: use #[id] for internal links or a
well-formed url for external ones ]</xsl:with-param>