[Soot-list] soot_options.xsl fixes

Archie Cobbs archie at dellroad.org
Mon Nov 22 09:18:19 EST 2004


Hi,

The HTML output of soot_options.xsl seemed a bit lacking to me.
The bullets were not lined up with the items and there were no
descriptions of the different phases and options. The patch below
fixes these things.

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

--- soot_options.xsl.old	Thu Jul 15 17:14:18 2004
+++ soot_options.xsl	Sat Nov 20 10:17:31 2004
@@ -53,7 +53,7 @@
 <h1>Phases and phase options</h1>
 <ul>
 <xsl:for-each select="options/section/phaseopt/phase|options/section/phaseopt/radio_phase">
-<li/><xsl:value-of select="alias|alias"/>
+<li><b><xsl:value-of select="alias|alias"/></b>: <xsl:value-of select="long_desc"/></li>
 <ul>
 <ul>
 <xsl:apply-templates mode="opt" select="boolopt|multiopt|intopt|flopt|stropt|section/boolopt|section/multiopt|section/intopt|section/flopt|section/stropt"/>
@@ -61,7 +61,8 @@
 </ul>
 <ul>
 <xsl:for-each select="sub_phase">
-<li/><xsl:value-of select="alias|alias"/>
+<li><b><xsl:value-of select="alias|alias"/></b>: <xsl:value-of select="long_desc
+"/></li>
 <ul>
 <xsl:apply-templates mode="opt" select="boolopt|multiopt|intopt|flopt|stropt|section/boolopt|section/multiopt|section/intopt|section/flopt|section/stropt"/>
 </ul>
@@ -73,7 +74,7 @@
 </xsl:template>
 
 <xsl:template mode="opt" match="boolopt|multiopt|intopt|flopt|stropt|section/boolopt|section/multiopt|section/intopt|section/flopt|section/stropt">
-<li/>
+<li>
 <tt><xsl:value-of select="alias"/>
 <xsl:choose>
 <xsl:when test="default">
@@ -87,6 +88,7 @@
 </xsl:otherwise>
 </xsl:choose>
 </tt>
+</li>
 </xsl:template>
 
 <xsl:template match="use_arg_label">


More information about the Soot-list mailing list