grim/purple-objects-docbook

cleaned up the hierarchy template a bit (was kind of messy, more cleaning is possible, but right now it works
made the title for the hierarchy template optional
removed the titles from the object key and the relationship key
cleaned up the graphs page and added xref's to the newly created figures
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"
doctype-public="-//OASIS//DTD DocBook XML V4.1.2//EN"
doctype-system="http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
indent="yes"
/>
<!-- note template -->
<xsl:template name="note">
<xsl:element name="varlistentry">
<xsl:element name="term">
<xsl:attribute name="class">
<xsl:if test="@priority">
<xsl:value-of select="@priority"/>
<xsl:if test="@done">
<xsl:text>,</xsl:text>
</xsl:if>
</xsl:if>
<xsl:if test="@done">
<xsl:text>complete</xsl:text>
</xsl:if>
</xsl:attribute>
<xsl:value-of select="child::text()"/>
</xsl:element>
<xsl:if test="comment">
<xsl:element name="listitem">
<xsl:value-of select="comment"/>
</xsl:element>
</xsl:if>
</xsl:element>
</xsl:template>
<!-- main template -->
<xsl:template match="todo">
<xsl:element name="appendix">
<xsl:attribute name="id">todo</xsl:attribute>
<xsl:element name="title">
<xsl:text>TODO List</xsl:text>
</xsl:element>
<xsl:element name="variablelist">
<xsl:for-each select="note">
<xsl:call-template name="note"/>
</xsl:for-each>
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>