<?xml version="1.0"?>

<xsl:stylesheet version="1.0"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:import href="main.xsl"/>

<xsl:template match="details[@id='sections']">
	<dl class="links" id="{@id}">
		<xsl:apply-templates/>
	</dl>
</xsl:template>

<xsl:template match="validation-links">
	<xsl:apply-templates select="/page/related/section[@id='validation']/list"/>
</xsl:template>

<xsl:template match="section[title/anchor[@name='author']]">
	<dl class="thumb image">
		<dt>
			<img alt="Scott Martin">
				<xsl:attribute name="src">
					<xsl:call-template name="target-handler">
						<xsl:with-param name="target">/about/author.jpg</xsl:with-param>
					</xsl:call-template>
				</xsl:attribute>
			</img>
		</dt>
		<dd>The author</dd>		
	</dl>
	<xsl:apply-imports/>
</xsl:template>

<xsl:template match="content/section/title">
	<h4>
		<xsl:apply-templates/>
	</h4>
</xsl:template>

</xsl:stylesheet>
