From: <jbo...@li...> - 2005-09-08 08:35:14
|
Author: mla...@jb... Date: 2005-09-08 04:34:58 -0400 (Thu, 08 Sep 2005) New Revision: 1056 Modified: trunk/labs/jbossweb/xdocs/style.css trunk/labs/jbossweb/xdocs/style.xsl Log: Add figure element for embedded documentation images Modified: trunk/labs/jbossweb/xdocs/style.css =================================================================== --- trunk/labs/jbossweb/xdocs/style.css 2005-09-08 03:58:49 UTC (rev 1055) +++ trunk/labs/jbossweb/xdocs/style.css 2005-09-08 08:34:58 UTC (rev 1056) @@ -199,3 +199,13 @@ background-color: #000000; text-align: left; } + +td.figure { + background-color: #ffffff; + color: #000000; + font-family: Andale Mono, Courier New, Courier, monospace; + font-weight: normal; + font-style: italic; + font-size: 0.8em; + text-align: justify; +} Modified: trunk/labs/jbossweb/xdocs/style.xsl =================================================================== --- trunk/labs/jbossweb/xdocs/style.xsl 2005-09-08 03:58:49 UTC (rev 1055) +++ trunk/labs/jbossweb/xdocs/style.xsl 2005-09-08 08:34:58 UTC (rev 1056) @@ -170,6 +170,19 @@ <li><a href="{$href}"><xsl:value-of select="@name"/></a></li> </xsl:template> + <!-- Process a figure --> + <xsl:template match="figure"> + <xsl:variable name="src"> + <xsl:value-of select="$relative-path"/><xsl:value-of select="@src"/> + </xsl:variable> + <xsl:variable name="name"> + <xsl:value-of select="@name"/> + </xsl:variable> + <table border="0" cellspacing="0" cellpadding="0"> + <tr><td><img src="{$src}" alt="{$name}" border="0"/></td></tr> + <tr><td class="figure"><xsl:value-of select="@name"/>. <xsl:value-of select="@text"/></td></tr> + </table> + </xsl:template> <!-- Process a documentation section --> <xsl:template match="section"> |