listmails.xsl

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="xml" omit-xml-declaration="yes"/>
	<xsl:template match="//MailList">
		<TABLE border="0" width="100%" cellpadding="0" cellspacing="0" class="Mtable">
			<TR bgcolor="#93BEE2">
				<TD width="20" align="middle">
					<IMG src="./images/spacer.gif" width="20" height="1"/>
				</TD>
				<TD width="9">
					<IMG src="./images/spacer.gif" width="9" height="1"/>
				</TD>
				<TD width="*">
					<INPUT type="CHECKBOX" name="DELALL" onClick="CA();"/>
				</TD>
				<TD width="30%">
					<FONT class="s" color="#104A7B">
						<b>From </b>
					</FONT>
				</TD>
				<TD width="50%">
					<FONT class="s" color="#104A7B">
						<b>Subject </b>
					</FONT>
				</TD>
				<TD width="8%">
					<FONT class="s" color="#104A7B">
						<b>Date </b>
					</FONT>
				</TD>
				<TD width="6%">
					<FONT class="s" color="#104A7B">
						<b>Size </b>
					</FONT>
				</TD>
			</TR>
			<xsl:for-each select="./*">
				<TR bgcolor="#FFF7E5">
					<TD align="middle">
						<xsl:if test="@Status='R'">
							<IMG src="./images/mailr.GIF" width="15" height="14"/>
						</xsl:if>
						<xsl:if test="@Status='U'">
							<IMG src="./images/mailu.GIF" width="15" height="14"/>
						</xsl:if>
						<xsl:if test="not(@Status) or string(@Status)=''">
							<IMG src="./images/spacer.gif" width="15" height="14"/>
						</xsl:if>
					</TD>					
					<TD>
						<xsl:if test="@pri='h'">
							<IMG src="./images/pri-h.GIF" width="9" height="14"/>
						</xsl:if>
						<xsl:if test="@pri='l'">
							<IMG src="./images/pri-l.GIF" width="9" height="14"/>
						</xsl:if>
						<xsl:if test="not(@pri)">
							<IMG src="./images/spacer.gif" width="9" height="14"/>
						</xsl:if>
					</TD>
					<TD width="*">
						<INPUT type="CHECKBOX" name="DEL">
							<xsl:attribute name="value"><xsl:value-of select="@Id"/></xsl:attribute>
						</INPUT>
					</TD>
					<TD>
						<xsl:value-of select="@From"/>
					</TD>
					<TD>
						<A>
							<xsl:attribute name="href">ReadMail.asp?id=<xsl:value-of select="@Id"/></xsl:attribute>
							<xsl:value-of select="@Subject"/>
							<xsl:if test="string(@Subject)=''">No Subject</xsl:if>
						</A>
					</TD>
					<TD>
						<xsl:value-of select="substring(@Date, 6, 11)"/>
					</TD>
					<TD>
						<xsl:value-of select="@Size"/>
					</TD>
				</TR>
			</xsl:for-each>
		</TABLE>
	</xsl:template>
</xsl:stylesheet>

Click here to go back.