]> granicus.if.org Git - docbook-dsssl/commitdiff
Output ul list type only if css.decoration is non-zero
authorNorman Walsh <ndw@nwalsh.com>
Fri, 17 Jan 2003 12:11:42 +0000 (12:11 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 17 Jan 2003 12:11:42 +0000 (12:11 +0000)
xsl/html/lists.xsl

index bcfa2ac9b17f067381f654dc1a950b19e94360ae..5fb9ee5c86f5a6751d7a2a83bf68f56febd97654 100644 (file)
 <!-- ==================================================================== -->
 
 <xsl:template match="itemizedlist">
-  <xsl:variable name="itemsymbol">
-    <xsl:call-template name="list.itemsymbol"/>
-  </xsl:variable>
-
   <div class="{name(.)}">
     <xsl:call-template name="anchor"/>
     <xsl:if test="title">
 
     <xsl:apply-templates select="*[not(self::listitem or self::title)]"/>
 
-    <ul type="{$itemsymbol}">
+    <ul>
+      <xsl:if test="$css.decoration != 0">
+        <xsl:attribute name="type">
+          <xsl:call-template name="list.itemsymbol"/>
+        </xsl:attribute>
+      </xsl:if>
+
       <xsl:if test="@spacing='compact'">
         <xsl:attribute name="compact">
           <xsl:value-of select="@spacing"/>