grim/purple-objects-docbook

show flags as flags in the diagram

2013-05-07, Gary Kramlich
2a53897c7904
Parents dc13d83a1d9d
Children c2e8560c79e7
show flags as flags in the diagram
--- a/sheets/enum.xsl Mon May 06 21:55:56 2013 -0500
+++ b/sheets/enum.xsl Tue May 07 00:09:08 2013 -0500
@@ -6,7 +6,7 @@
<xsl:import href="common.xsl"/>
<!-- main template -->
- <xsl:template match="enumeration">
+ <xsl:template match="enumeration|flags">
<!-- start the diagram -->
<xsl:text>digraph {</xsl:text>
<xsl:value-of select="$newline-tab"/>
@@ -18,7 +18,9 @@
<!-- 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>
+ <xsl:text>\n\&lt;\&lt; </xsl:text>
+ <xsl:value-of select="name(.)"/>
+ <xsl:text> \&gt;\&gt;</xsl:text>
<!-- run through all the items -->
<xsl:for-each select="item">