grim/purple-objects-docbook

added silc everywhere i missed it

2009-04-29, Gary Kramlich
90d5ded3e4d8
added silc everywhere i missed it
<?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>