Created
April 18, 2016 19:43
-
-
Save jessgusclark/02950ff643dd5569255b5c9bb63365e0 to your computer and use it in GitHub Desktop.
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
<!-- 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