craigmcc 01/06/11 20:18:10 Modified: doc/stylesheets Tag: STRUTS_1_0_BRANCH struts.xsl userGuide.xsl Log: Clean up two problems in the stylesheets used for creating documentation: * Generated dummy <project> tags from the project.xml file. * Generated incorrect colors for the hyperlinks in the navigation bar. Submitted by: Roland Huss <[EMAIL PROTECTED]> Revision Changes Path No revision No revision 1.1.2.2 +7 -2 jakarta-struts/doc/stylesheets/struts.xsl Index: struts.xsl =================================================================== RCS file: /home/cvs/jakarta-struts/doc/stylesheets/struts.xsl,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- struts.xsl 2001/05/31 18:31:52 1.1.2.1 +++ struts.xsl 2001/06/12 03:18:10 1.1.2.2 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Content Stylesheet for Struts Documentation --> -<!-- $Id: struts.xsl,v 1.1.2.1 2001/05/31 18:31:52 craigmcc Exp $ --> +<!-- $Id: struts.xsl,v 1.1.2.2 2001/06/12 03:18:10 craigmcc Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> @@ -80,12 +80,17 @@ </xsl:template> + <!-- Process the project element for the navigation bar --> + <xsl:template match="project"> + <xsl:apply-templates/> + </xsl:template> + <!-- Process a menu for the navigation bar --> <xsl:template match="menu"> <table border="0" cellspacing="5"> <tr> <th colspan="2" align="left"> - <font color="{body-link}"><strong> + <font color="{$body-link}"><strong> <xsl:value-of select="@name"/> </strong></font> </th> 1.1.2.1 +9 -3 jakarta-struts/doc/stylesheets/userGuide.xsl Index: userGuide.xsl =================================================================== RCS file: /home/cvs/jakarta-struts/doc/stylesheets/userGuide.xsl,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -u -r1.1 -r1.1.2.1 --- userGuide.xsl 2001/03/18 17:48:59 1.1 +++ userGuide.xsl 2001/06/12 03:18:10 1.1.2.1 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Content Stylesheet for Struts User's Guide --> -<!-- $Id: userGuide.xsl,v 1.1 2001/03/18 17:48:59 vmassol Exp $ --> +<!-- $Id: userGuide.xsl,v 1.1.2.1 2001/06/12 03:18:10 craigmcc Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> @@ -83,6 +83,12 @@ </xsl:template> + <!-- Process the project element for the navigation bar --> + <xsl:template match="project"> + <xsl:apply-templates/> + </xsl:template> + + <!-- Process an entire chapter (assumes one chapter per page) --> <xsl:template match="chapter"> <xsl:element name="a"> @@ -106,7 +112,7 @@ <table border="0" cellspacing="5"> <tr> <th colspan="2" align="left"> - <font color="{body-link}"><strong> + <font color="{$body-link}"><strong> <xsl:value-of select="@name"/> </strong></font> </th> @@ -165,4 +171,4 @@ </xsl:template> -</xsl:stylesheet> \ No newline at end of file +</xsl:stylesheet>