From: Norman W. <nw...@us...> - 2001-07-21 14:32:34
|
Update of /cvsroot/docbook/xsl/html In directory usw-pr-cvs1:/tmp/cvs-serv5134 Modified Files: param.xsl block.xsl Log Message: Fix title-end punctuation problems on formalparas Index: param.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/param.xsl,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -r1.18 -r1.19 *** param.xsl 2001/07/16 21:27:43 1.18 --- param.xsl 2001/07/21 14:32:31 1.19 *************** *** 1189,1191 **** --- 1189,1213 ---- </doc:param> + <!-- ==================================================================== --> + <xsl:param name="runinhead.title.end.punct" select="'.!?:'" doc:type='string'/> + + <doc:param name="runinhead.title.end.punct" xmlns=""> + <refpurpose>Characters that count as punctuation on a run-in-head</refpurpose> + <refdescription> + <para>FIXME: + </para> + </refdescription> + </doc:param> + + <!-- ==================================================================== --> + <xsl:param name="runinhead.default.title.end.punct" select="'.'" doc:type='string'/> + + <doc:param name="runinhead.default.title.end.punct" xmlns=""> + <refpurpose>Default punctuation character on a run-in-head</refpurpose> + <refdescription> + <para>FIXME: + </para> + </refdescription> + </doc:param> + </xsl:stylesheet> Index: block.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/block.xsl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** block.xsl 2001/07/05 19:26:44 1.3 --- block.xsl 2001/07/21 14:32:31 1.4 *************** *** 67,72 **** <xsl:template match="formalpara/title"> ! <b><xsl:apply-templates/></b> ! <xsl:call-template name="gentext.space"/> </xsl:template> --- 67,85 ---- <xsl:template match="formalpara/title"> ! <xsl:variable name="titleStr" select="."/> ! <xsl:variable name="lastChar"> ! <xsl:if test="$titleStr != ''"> ! <xsl:value-of select="substring($titleStr,string-length($titleStr),1)"/> ! </xsl:if> ! </xsl:variable> ! ! <b> ! <xsl:apply-templates/> ! <xsl:if test="$lastChar != '' ! and not(contains($runinhead.title.end.punct, $lastChar))"> ! <xsl:value-of select="$runinhead.default.title.end.punct"/> ! </xsl:if> ! <xsl:text> </xsl:text> ! </b> </xsl:template> |