link check now allows mailto:
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0">
|
xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0">
|
||||||
|
|
||||||
<xsl:template name="checkLinkValidity">
|
<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:call-template name="displayErrorText">
|
||||||
<xsl:with-param name="string">[ Invalid link: use #[id] for internal links or a
|
<xsl:with-param name="string">[ Invalid link: use #[id] for internal links or a
|
||||||
well-formed url for external ones ]</xsl:with-param>
|
well-formed url for external ones ]</xsl:with-param>
|
||||||
|
|||||||
Reference in New Issue
Block a user