Last active
December 5, 2016 16:42
-
-
Save jessgusclark/cba32da7c79a00f853052db0047c4754 to your computer and use it in GitHub Desktop.
Template match for anchors to remove .php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:template match="a[contains(@href, '.php')]"> | |
<a href="{replace(@href, '.php', '')}"> | |
<xsl:value-of select="node()" /> | |
</a> | |
</xsl:template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment