Contents of hotels.xsl
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:saxon="http://icl.com/saxon" extension-element-prefixes="saxon">
<xsl:decimal-format name="numfrmt" decimal-separator="." grouping-separator="," />
<xsl:decimal-format name="altnumfrmt" decimal-separator="," grouping-separator="." />
<xsl:output method="xml"
version="1.0"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/strict.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
omit-xml-declaration="no"
encoding="ISO-8859-1"
indent="yes" />
<xsl:template match="/">
<html>
<head><title>Hotels</title>
<link rel="stylesheet" type="text/css" href="geneva.css"/>
</head>
<body>
<table class="main" cellpadding="0" cellspacing="0">
<tr>
<td class="corner"></td>
<td class="heading">Hotels in Geneva - A Tradition of Fine Hospitality</td>
</tr>
<tr>
<td class="contents">
<div>
<a href="hotels.asp">Hotels</a>
<br /><br /><br />
<!--
<a href="#" onClick="window.open( 'login.asp','Reservations','scrollbars=no,resizable=yes,width=720,height=480')">Reservations</a>
<br /><br /><br />
-->
<a href="about.asp">About This Site</a>
<br /><br /><br />
<a href="displayDirectory.asp">Source Files</a>
<br /><br /><br />
<a href="mailto:landfill@pacbell.net">Email</a>
<br /><br /><br />
<a href="default.asp">Home</a>
<br /><br /><br />
</div>
</td>
<td class="main">
<xsl:for-each select="hotels/hotel">
<xsl:sort select="name" />
<table>
<td>
<xsl:apply-templates select="picture" />
</td>
<td class="address">
<xsl:value-of select="name"/><br />
<xsl:value-of select="addr1"/><br />
<xsl:value-of select="addr2"/><br />
<xsl:value-of select="addr3"/><br />
</td>
</table>
<hr />
</xsl:for-each>
<div><br /></div>
<!-- <div class="hr"><hr /></div> -->
<div><br /></div>
</td>
</tr>
</table>
</body>
</html>
<!-- <xsl:apply-templates /> -->
</xsl:template>
<xsl:template match="hotels/hotel/picture">
<p>
<img>
<xsl:attribute name="src">
<xsl:value-of select="@filename" />
</xsl:attribute>
<xsl:attribute name="width">
<xsl:value-of select="@width"/>
</xsl:attribute>
<xsl:attribute name="height">
<xsl:value-of select="@height"/>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="@alt"/>
</xsl:attribute>
</img>
</p>
</xsl:template>
</xsl:stylesheet>