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:import href="common.xsl"/>
<!-- main template -->
<xsl:template match="enumeration">
<!-- start the diagram -->
<xsl:text>digraph {</xsl:text>
<xsl:value-of select="$newline-tab"/>
<!-- set our node settings -->
<xsl:text>node[fontname="sans", fontsize="9", shape="record", style="filled", fillcolor="lightyellow"];</xsl:text>
<xsl:value-of select="$newline-tab"/>
<!-- handle the beginning of the enum node -->
<xsl:text>enum[label="{</xsl:text>
<xsl:value-of select="@name"/>
<xsl:text>\n\&lt;\&lt; enumeration \&gt;\&gt;</xsl:text>
<!-- run through all the items -->
<xsl:for-each select="item">
<xsl:text>|</xsl:text>
<xsl:value-of select="@name"/>
<!-- check if we have a value and output it -->
<xsl:if test="@value">
<xsl:text> : </xsl:text>
<xsl:value-of select="@value"/>
</xsl:if>
<!-- left align the item -->
<xsl:text>\l</xsl:text>
</xsl:for-each>
<!-- finish off the enum node -->
<xsl:text>}"];</xsl:text>
<!-- finish up -->
<xsl:value-of select="$newline"/>
<xsl:text>}</xsl:text>
<xsl:value-of select="$newline"/>
</xsl:template>
</xsl:stylesheet>