<?xml version = "1.0"?>
<xsl:stylesheet version = "1.0" xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">
<xsl:output method = "html" omit-xml-declaration = "no" doctype-system = "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
	doctype-public = "-//W3C//DTD XHTML 1.1//EN"/>

<xsl:template match = "/">

<html xmlns = "http://www.w3.org/1999/xhtml">
<head><title>spaceships</title></head>

<body>

<xsl:for-each select = "/fleet/ship">

<h1> <xsl:value-of select = "class"/> </h1>

<p>
This ship is <xsl:value-of select = "class/@size"/> in size and has a crew of <xsl:value-of select = "crew"/>.

<br />

It boasts the following weapons:
<ul>
<xsl:for-each select = "wl/w">
<li><xsl:value-of select = "text()"/></li>
</xsl:for-each>
</ul>

If I had to describe it, I'd say: <xsl:value-of select = "description"/>
</p>

</xsl:for-each>

</body>
</html>

</xsl:template>
</xsl:stylesheet>


