Skip to content

Instantly share code, notes, and snippets.

@greystate
Last active August 29, 2015 14:03
Show Gist options
  • Save greystate/c832ed20d00fc2aa76b6 to your computer and use it in GitHub Desktop.
Save greystate/c832ed20d00fc2aa76b6 to your computer and use it in GitHub Desktop.
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:template match="xsl:template[@match]">
<xsl:text>@* Sorry, can't do that in Razor :( *@</xsl:text>
</xsl:template>
<xsl:template match="xsl:value-of[starts-with(@select, '$currentPage/')]">
<xsl:value-of select="concat('@CurrentPage.', substring-after(@select, '$currentPage/'))" />
</xsl:template>
</xsl:stylesheet>
@bewildergeist
Copy link

Suggested improvement on line 6: <xsl:template match="*"> ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment