Created
October 29, 2012 21:05
-
-
Save spdustin/3976539 to your computer and use it in GitHub Desktop.
XSL with character replacement
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:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<!-- This XSL Stylesheet created by SharePoint Experts, Inc. --> | |
<!-- http://sharepointexperience.com --> | |
<xsl:output method="html" indent="yes"/> | |
<!-- This template is the "wrapper" or "container" for the custom view. --> | |
<xsl:template match="/"> | |
<!-- This is the actual wrapper element that will be emitted --> | |
<div> | |
<!-- This will tell the data view to look for the actual content | |
and come back when it's done. --> | |
<xsl:apply-templates/> | |
</div> | |
<!-- end wrapper --> | |
Legend: <br/><br/> | |
<span class="Not">Not Started</span> | |
<span class="Progress">In Progress</span> | |
<span class="Completed">Completed</span> | |
</xsl:template> | |
<xsl:template match="/dsQueryResponse/Rows/Row"> | |
<!-- This markup is used for each item in the list --> | |
<h3 class="{translate(@Status,'ABCDEFGHIJKLMNOPQRSTUVWXYZ ','abcdefghijklmnopqrstuvwxyz')}"><xsl:value-of select="@Title"/></h3> | |
<ul> | |
<li>Priority: <xsl:value-of select="@Priority" /></li> | |
<li>Percent Complete: <xsl:value-of select="@PercentComplete" /></li> | |
</ul> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment