<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>

<xsl:param name="systemDate" select="'Not Provided'" />
<xsl:param name="serverName" select="'Not Provided'" />

<xsl:template match="/link-list">

	<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
			<title>Link List Output</title>
		</head>
		
		<body>
			<h1>A list of links</h1>
			<br />
			<em>But first a word from our system:</em>
			<div style="padding: 5px; border: 1px solid #cccccc; background-color: #999999">
				<strong>Date:</strong><xsl:text> </xsl:text><xsl:value-of select="$systemDate" /><br />
				<strong>Server Name:</strong><xsl:text> </xsl:text><xsl:value-of select="$serverName" /><br />
			</div>
			
			<xsl:if test="item">			
				<ul>
					<xsl:for-each select="item">
						<li>
							<a>
								<xsl:attribute name="href">
									<xsl:value-of select="url" />
								</xsl:attribute>
								<xsl:value-of select="text" />
							</a>
							<xsl:if test="annotation">
								<xsl:text> - </xsl:text>
								<xsl:value-of select="annotation" />
							</xsl:if>
						</li>
					</xsl:for-each>
				</ul>
			</xsl:if>
			<hr />
			
			<strong>Source Code:</strong>
			<ul>
				<li><a href="link-list.xml">XML</a></li>
				<li><a href="link-list-to-xhtml.xsl">XSLT</a></li>
				<li><a href="middleware.phps">PHP</a></li>
			</ul>
		
		</body>
	</html>

</xsl:template>
</xsl:stylesheet>