<?xml version="1.0" encoding="utf-8" standalone="no"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">

<xsl:template match="/">
<html>
    <head>
    <title>Imaginary Library Collections</title>
    </head>
    <body>
        <h1>Imaginary Library Collections</h1>
        <p>What’s where…</p>
        <xsl:apply-templates select="//collection"/>
    </body>
</html>
</xsl:template>

<xsl:template match="collection">
<h2 class="collection"><xsl:value-of select="name"/></h2>
<p>
<span class="library"><xsl:value-of select="ancestor::library/name"/></span>
    – <xsl:value-of select="size"/> volumes
</p>
<blockquote class="description"><xsl:value-of select="description"/></blockquote>
</xsl:template>

</xsl:stylesheet>
