Skip to content

Instantly share code, notes, and snippets.

@jessgusclark
Created April 18, 2016 19:43
Show Gist options
  • Save jessgusclark/02950ff643dd5569255b5c9bb63365e0 to your computer and use it in GitHub Desktop.
Save jessgusclark/02950ff643dd5569255b5c9bb63365e0 to your computer and use it in GitHub Desktop.
<!-- Template to display and format an Individual Tag -->
<xsl:template name="DisplayTag">
<xsl:param name="tag" />
<!-- Remove the `library-database-` from the tag name -->
<xsl:variable name="tag-name" select="replace($tag/name, 'library-database-', '')" />
<!-- Link the label to the page. This server uses aspx -->
<a href="{$tag-name}.aspx">
<span class="label label-success">
<!-- Replace Underscores with Spaces -->
<xsl:value-of select="replace($tag-name, '_', ' ')" />
</span>
</a>
</xsl:template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment