]> granicus.if.org Git - docbook-dsssl/commitdiff
Use global parameter variablelist.as.table
authorNorman Walsh <ndw@nwalsh.com>
Thu, 3 Jan 2002 14:17:39 +0000 (14:17 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 3 Jan 2002 14:17:39 +0000 (14:17 +0000)
xsl/html/lists.xsl
xsl/html/param.ent
xsl/html/param.xweb

index e56eaed174103d02e50850f37ce9ed869380562f..74ccbd985ce83918fed5195892780ae2ad3b7235 100644 (file)
 </xsl:template>
 
 <xsl:template match="variablelist">
-  <xsl:variable name="presentation">
+  <xsl:variable name="pi-presentation">
     <xsl:call-template name="dbhtml-attribute">
       <xsl:with-param name="pis"
                       select="processing-instruction('dbhtml')"/>
     </xsl:call-template>
   </xsl:variable>
 
+  <xsl:variable name="presentation">
+    <xsl:choose>
+      <xsl:when test="$pi-presentation != ''">
+        <xsl:value-of select="$pi-presentation"/>
+      </xsl:when>
+      <xsl:when test="$variablelist.as.table != 0">
+        <xsl:value-of select="'table'"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:value-of select="'list'"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:variable>
+
   <xsl:variable name="list-width">
     <xsl:call-template name="dbhtml-attribute">
       <xsl:with-param name="pis"
index 5fa3d3fecec61728604d336cf7279f56f2e22aa7..f796d874ec5f52e3d8aa4456ecbbb0304a526284 100644 (file)
 <!ENTITY use.extensions SYSTEM "../params/use.extensions.xml">
 <!ENTITY use.id.as.filename SYSTEM "../params/use.id.as.filename.xml">
 <!ENTITY using.chunker SYSTEM "../params/using.chunker.xml">
+<!ENTITY variablelist.as.table SYSTEM "../params/variablelist.as.table.xml">
index 583509b66fe00825333bd2af01c93735a72430c5..5322ae1ede750355035b0aff13846a9aa8804cb0 100644 (file)
@@ -216,6 +216,7 @@ to be incomplete. Don't forget to read the source, too :-)</para>
 &shade.verbatim.style;
 &punct.honorific;
 &segmentedlist.as.table;
+&variablelist.as.table;
 &tex.math.in.alt;
 &tex.math.file;
 </reference>
@@ -409,6 +410,7 @@ around all these parameters.</para>
 <src:fragref linkend="use.extensions.frag"/>
 <src:fragref linkend="use.id.as.filename.frag"/>
 <src:fragref linkend="using.chunker.frag"/>
+<src:fragref linkend="variablelist.as.table.frag"/>
 
 </xsl:stylesheet>
 </src:fragment>