From: Robert S. <bob...@us...> - 2005-11-20 02:44:41
|
Update of /cvsroot/docbook/xsl/html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7999 Modified Files: verbatim.xsl Log Message: Fixed bug in startinglinenumber when context is programlistingco. Index: verbatim.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/verbatim.xsl,v retrieving revision 1.13 retrieving revision 1.14 diff -u -U2 -r1.13 -r1.14 --- verbatim.xsl 29 Oct 2004 13:28:33 -0000 1.13 +++ verbatim.xsl 20 Nov 2005 02:44:34 -0000 1.14 @@ -235,11 +235,11 @@ <xsl:variable name="linenumbering.startinglinenumber"> <xsl:choose> - <xsl:when test="@startinglinenumber"> - <xsl:value-of select="@startinglinenumber"/> + <xsl:when test="$pi.context/@startinglinenumber"> + <xsl:value-of select="$pi.context/@startinglinenumber"/> </xsl:when> - <xsl:when test="@continuation='continues'"> + <xsl:when test="$pi.context/@continuation='continues'"> <xsl:variable name="lastLine"> <xsl:choose> - <xsl:when test="self::programlisting"> + <xsl:when test="$pi.context/self::programlisting"> <xsl:call-template name="lastLineNumber"> <xsl:with-param name="listings" @@ -247,5 +247,5 @@ </xsl:call-template> </xsl:when> - <xsl:when test="self::screen"> + <xsl:when test="$pi.context/self::screen"> <xsl:call-template name="lastLineNumber"> <xsl:with-param name="listings" @@ -253,5 +253,5 @@ </xsl:call-template> </xsl:when> - <xsl:when test="self::literallayout"> + <xsl:when test="$pi.context/self::literallayout"> <xsl:call-template name="lastLineNumber"> <xsl:with-param name="listings" @@ -259,5 +259,5 @@ </xsl:call-template> </xsl:when> - <xsl:when test="self::address"> + <xsl:when test="$pi.context/self::address"> <xsl:call-template name="lastLineNumber"> <xsl:with-param name="listings" @@ -265,5 +265,5 @@ </xsl:call-template> </xsl:when> - <xsl:when test="self::synopsis"> + <xsl:when test="$pi.context/self::synopsis"> <xsl:call-template name="lastLineNumber"> <xsl:with-param name="listings" @@ -274,5 +274,5 @@ <xsl:message> <xsl:text>Unexpected verbatim environment: </xsl:text> - <xsl:value-of select="local-name(.)"/> + <xsl:value-of select="local-name($pi.context)"/> </xsl:message> <xsl:value-of select="0"/> |