From: Norman W. <nw...@us...> - 2002-01-03 14:17:25
|
Update of /cvsroot/docbook/xsl/html In directory usw-pr-cvs1:/tmp/cvs-serv8406 Modified Files: lists.xsl Log Message: Use global parameter variablelist.as.table Index: lists.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/lists.xsl,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** lists.xsl 2002/01/01 14:36:55 1.16 --- lists.xsl 2002/01/03 14:17:23 1.17 *************** *** 209,213 **** <xsl:template match="variablelist"> ! <xsl:variable name="presentation"> <xsl:call-template name="dbhtml-attribute"> <xsl:with-param name="pis" --- 209,213 ---- <xsl:template match="variablelist"> ! <xsl:variable name="pi-presentation"> <xsl:call-template name="dbhtml-attribute"> <xsl:with-param name="pis" *************** *** 215,218 **** --- 215,232 ---- <xsl:with-param name="attribute" select="'list-presentation'"/> </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> |