From: Norman W. <nw...@us...> - 2003-08-27 14:37:19
|
Update of /cvsroot/docbook/xsl/common In directory sc8-pr-cvs1:/tmp/cvs-serv23081 Modified Files: titles.xsl Log Message: Support HTML tables Index: titles.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/common/titles.xsl,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -r1.23 -r1.24 *** titles.xsl 8 May 2003 13:26:34 -0000 1.23 --- titles.xsl 27 Aug 2003 14:37:16 -0000 1.24 *************** *** 63,66 **** --- 63,80 ---- </xsl:template> + <!-- only occurs in HTML Tables! --> + <xsl:template match="caption" mode="title.markup"> + <xsl:param name="allow-anchors" select="0"/> + + <xsl:choose> + <xsl:when test="$allow-anchors != 0"> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates mode="no.anchor.mode"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + <xsl:template match="set" mode="title.markup"> <xsl:param name="allow-anchors" select="0"/> *************** *** 323,329 **** </xsl:template> ! <xsl:template match="figure|table|example|equation" mode="title.markup"> <xsl:param name="allow-anchors" select="0"/> <xsl:apply-templates select="title" mode="title.markup"> <xsl:with-param name="allow-anchors" select="$allow-anchors"/> </xsl:apply-templates> --- 337,350 ---- </xsl:template> ! <xsl:template match="figure|example|equation" mode="title.markup"> <xsl:param name="allow-anchors" select="0"/> <xsl:apply-templates select="title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:template> + + <xsl:template match="table" mode="title.markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:apply-templates select="title|caption" mode="title.markup"> <xsl:with-param name="allow-anchors" select="$allow-anchors"/> </xsl:apply-templates> |