<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
doctype-public="-//W3C//DTD XHTML 1.1//EN"/>

<!-- Generate a table of contents from links.xml -->

<xsl:template match="links">
	<xsl:apply-templates select="list" />
</xsl:template>

<xsl:template match="list">
	<ul>
		<li><a><xsl:attribute name="href">links.html#<xsl:value-of select="@id" /></xsl:attribute><xsl:value-of select="title" /></a></li>
	<xsl:apply-templates select="list" />
	</ul>
</xsl:template>
</xsl:stylesheet>
