grim/purple-objects-docbook

Parents 8f85af15e278
Children c9efc026ae93
added a label attribute to the objects when using the hierarchy sheet.
--- a/graphs/relationships.key Wed Apr 22 22:39:55 2009 -0500
+++ b/graphs/relationships.key Wed Apr 22 22:55:58 2009 -0500
@@ -8,7 +8,7 @@
<object name="Implementor" type="concrete"/>
<object name="Class" type="concrete"/>
- <object name="HasA" type="concrete"/>
+ <object name="HasA" label="Has-A" type="concrete"/>
</objects>
<relations>
--- a/sheets/hierarchy.xsl Wed Apr 22 22:39:55 2009 -0500
+++ b/sheets/hierarchy.xsl Wed Apr 22 22:55:58 2009 -0500
@@ -16,8 +16,20 @@
<xsl:template name="object">
<xsl:value-of select="@name"/>
+ <xsl:text>[</xsl:text>
+
+ <xsl:if test="@label">
+ <xsl:text>label="</xsl:text>
+ <xsl:value-of select="@label"/>
+ <xsl:text>"</xsl:text>
+
+ <xsl:if test="@type">
+ <xsl:text>, </xsl:text>
+ </xsl:if>
+ </xsl:if>
+
<xsl:if test="@type">
- <xsl:text>[fillcolor="</xsl:text>
+ <xsl:text>fillcolor="</xsl:text>
<xsl:choose>
<xsl:when test="@type = 'abstract'">
@@ -37,10 +49,10 @@
</xsl:otherwise>
</xsl:choose>
- <xsl:text>"]</xsl:text>
+ <xsl:text>"</xsl:text>
</xsl:if>
- <xsl:text>;</xsl:text>
+ <xsl:text>];</xsl:text>
<xsl:value-of select="$newline-tab"/>
</xsl:template>