<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rs='urn:schemas-microsoft-com:rowset' xmlns:z='#RowsetSchema'
version="1.0">

<xsl:output method="html" indent="yes" omit-xml-declaration="yes"/>

<xsl:template match="/data">
	<table border="0" width="100%" id="table73">
		<xsl:apply-templates select="row"/>
	</table>	
</xsl:template>

<xsl:template match="row">
	<xsl:variable name="ImageUrl" select="substring-before(substring-after(PublishingRollupImage,'src=&quot;'),'&quot;')"/>
		<xsl:choose>
			<xsl:when test="$ImageUrl!=''">
				<tr>
					<td colspan="2" style=" text-align:left;margin:0px;padding:0px; padding-left:0px;">
						<a style="color: #851010;font-family:CAlibri,arial;font-size:28px; text-align:left; font-weight:bold; ">
							<xsl:attribute name="href"><xsl:value-of select="FileRef"/></xsl:attribute>
							<xsl:value-of select="Title" />
						</a>
					</td>
				</tr>

				<tr>
					<td  valign="top" width="100%"  rowspan="1" style="padding-top:5px; text-align:justify;">
						<img style=" float:left; margin-right:5px;">
							<xsl:attribute name="src"><xsl:value-of select="$ImageUrl"/></xsl:attribute>
						</img>
						<a style=" text-align:justify; vertical-align:middle; background-position:right top;font-family:Verdana,arial; font-style:normal;color:#666666; text-decoration:none;  font-size:110%; font-weight:normal;">
					<xsl:value-of select="Comments" disable-output-escaping="yes"/>
						</a>
					</td>
				</tr>
				<tr>
					<td style="border-bottom-style:dotted; border-bottom-width: 1px; border-bottom-color:#666666; padding:0px; " colspan="1">&#160;</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td colspan="2" style=" text-align:left;margin:0px;padding:0px; padding-left:0px;">
						<a style="color:#851010;font-family:CAlibri,arial;font-size:28px; text-align:left; font-weight:bold; ">
							<xsl:attribute name="href"><xsl:value-of select="FileRef"/></xsl:attribute>
							<xsl:value-of select="Title" />
						</a>
					</td>
				</tr>

				<tr>
					<td  valign="top" width="100%"  rowspan="1" style="padding-top:5px; text-align:justify;">
						<img style="width:100px; float:left; margin-right:5px;">
							<xsl:attribute name="src"><xsl:value-of select="$ImageUrl"/></xsl:attribute>
						</img>
						<a style=" text-align:justify;vertical-align:middle; background-position:right top;font-family:Verdana,arial; font-style:normal;color:#666666; text-decoration:none;  font-size:110%; font-weight:normal;">
					<xsl:value-of select="Comments" disable-output-escaping="yes"/>
						</a>
					</td>
				</tr>
				<tr>
					<td style="border-bottom-style:dotted; border-bottom-width: 1px;border-bottom-color:#666666; padding:0px; " colspan="1">&#160;</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
</xsl:template>
</xsl:stylesheet>
