From: <nw...@us...> - 2007-11-27 17:24:09
|
Revision: 7576 http://docbook.svn.sourceforge.net/docbook/?rev=7576&view=rev Author: nwalsh Date: 2007-11-27 09:24:08 -0800 (Tue, 27 Nov 2007) Log Message: ----------- Improve ghost handling Modified Paths: -------------- trunk/xsl2/base/html/verbatim.xsl Modified: trunk/xsl2/base/html/verbatim.xsl =================================================================== --- trunk/xsl2/base/html/verbatim.xsl 2007-11-27 17:23:33 UTC (rev 7575) +++ trunk/xsl2/base/html/verbatim.xsl 2007-11-27 17:24:08 UTC (rev 7576) @@ -22,6 +22,7 @@ <xsl:apply-templates select="$cleanedup/db:programlisting" mode="m:verbatim"/> + <xsl:apply-templates select="db:calloutlist"/> </xsl:template> <xsl:template match="db:programlisting|db:address|db:screen|db:synopsis @@ -77,13 +78,22 @@ </xsl:template> <xsl:template match="ghost:co"> - <a name="{@xml:id}"/> + <xsl:if test="@xml:id"> + <a name="{@xml:id}"/> + </xsl:if> <xsl:call-template name="t:callout-bug"> <xsl:with-param name="conum"> - <xsl:number count="ghost:co" - level="any" - from="db:programlisting|db:screen|db:literallayout|db:synopsis" - format="1"/> + <xsl:choose> + <xsl:when test="@number"> + <xsl:value-of select="@number"/> + </xsl:when> + <xsl:otherwise> + <xsl:number count="ghost:co" + level="any" + from="db:programlisting|db:screen|db:literallayout|db:synopsis" + format="1"/> + </xsl:otherwise> + </xsl:choose> </xsl:with-param> </xsl:call-template> </xsl:template> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |