grim/purple-objects-docbook
Clone
Summary
Browse
Changes
Graph
Added a lot of description to the graphs page including and example class as well as an example enum.
2009-04-30, Gary Kramlich
d9ef76bd80df
Added a lot of description to the graphs page including and example class as well as an example enum.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
version=
"1.0"
>
<xsl:output
method=
"text"
/>
<xsl:strip-space
elements=
"*"
/>
<!-- variables -->
<xsl:variable
name=
"newline"
select=
"' '"
/>
<xsl:variable
name=
"tab"
select=
"'	'"
/>
<xsl:variable
name=
"newline-tab"
>
<xsl:value-of
select=
"$newline"
/>
<xsl:value-of
select=
"$tab"
/>
</xsl:variable>
<!-- scope template -->
<xsl:template
name=
"scope"
>
<xsl:choose
>
<xsl:when
test=
"@scope = 'private'"
>
<xsl:text
>
-
</xsl:text>
</xsl:when>
<xsl:when
test=
"@scope = 'public'"
>
<xsl:text
>
+
</xsl:text>
</xsl:when>
<xsl:when
test=
"@scope = 'protected'"
>
<xsl:text
>
#
</xsl:text>
</xsl:when>
<xsl:otherwise
>
<xsl:text
>
</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>