grim/purple-objects-docbook
Clone
Summary
Browse
Changes
Graph
moved the connections page to figures
2009-05-03, Gary Kramlich
000ed57fa5d5
moved the connections page to 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\
<
\
<
enumeration
\
>
\
>
</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>