﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <xsl:variable name ="HostName" select ="Survey/HostName"></xsl:variable>
    <div id="div_Surveys" style="margin-left:220px;margin-right:10px;">
      <xsl:for-each select="Survey/Item">
        <div id ="div_{normalize-space(SurveyID)}_Survey" align="left" style="padding: 10px;">
          <a href="http://{normalize-space($HostName)}/Survey.aspx?ID={normalize-space(SurveyID)}">
            <span class="labelBold">
              <xsl:value-of select ="Title"/>
            </span>
          </a>
        </div>
      </xsl:for-each>
    </div>
  </xsl:template>
</xsl:stylesheet>
