Skip to content

Instantly share code, notes, and snippets.

@jessgusclark
Last active December 5, 2016 16:42
Show Gist options
  • Save jessgusclark/cba32da7c79a00f853052db0047c4754 to your computer and use it in GitHub Desktop.
Save jessgusclark/cba32da7c79a00f853052db0047c4754 to your computer and use it in GitHub Desktop.
Template match for anchors to remove .php
<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