﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
    <xsl:output method="xml" indent="yes" omit-xml-declaration ="yes"/>
    <xsl:template match="/">
        <div id="divPlanner_GoalList" style="height: 250px;overflow-x: scroll">
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td>
                        <div style="padding-left:10px;">
                            <xsl:choose>
                                <xsl:when test="count(AjaxRequest/ActiveGoals/Items)&gt;0">
                                    <xsl:for-each select ="AjaxRequest/ActiveGoals/Items">
                                        <div id="divPlanner_ProgramList_{ProgramID}" style="display:block;margin-bottom:20px;">
                                            <span class="link">
                                                <xsl:value-of select ="ProgramName"/>
                                            </span>
                                        </div>
                                    </xsl:for-each>
                                </xsl:when>
                            </xsl:choose>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </xsl:template>
</xsl:stylesheet>
