From: Norman W. <nw...@us...> - 2003-07-11 12:04:04
|
Update of /cvsroot/docbook/slides/xsl/html In directory sc8-pr-cvs1:/tmp/cvs-serv2696 Modified Files: slides-common.xsl Log Message: Added links to first and last in navigation; support foilgroup.toc; fixed css.stylesheet bug (calls css-file now, correctly) Index: slides-common.xsl =================================================================== RCS file: /cvsroot/docbook/slides/xsl/html/slides-common.xsl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** slides-common.xsl 25 Jan 2003 18:07:02 -0000 1.4 --- slides-common.xsl 11 Jul 2003 12:04:01 -0000 1.5 *************** *** 299,302 **** --- 299,311 ---- </xsl:attribute> </link> + + <link rel="first"> + <xsl:attribute name="href"> + <xsl:apply-templates select="$home" mode="filename"/> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:value-of select="($home/title|$home/slidesinfo/title)[1]"/> + </xsl:attribute> + </link> </xsl:if> *************** *** 332,335 **** --- 341,356 ---- </xsl:attribute> </link> + + <xsl:variable name="last" select="$next/following::foil[last()]"/> + <xsl:if test="$last"> + <link rel="last"> + <xsl:attribute name="href"> + <xsl:apply-templates select="$last" mode="filename"/> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:value-of select="$last/title"/> + </xsl:attribute> + </link> + </xsl:if> </xsl:if> *************** *** 1021,1024 **** --- 1042,1051 ---- <xsl:with-param name="prev" select="$prev"/> </xsl:call-template> + + <xsl:if test="$foilgroup.toc != 0"> + <dl> + <xsl:apply-templates select="foil" mode="toc"/> + </dl> + </xsl:if> </div> *************** *** 1123,1127 **** <link type="text/css" rel="stylesheet"> <xsl:attribute name="href"> ! <xsl:call-template name="css.stylesheet"> <xsl:with-param name="css" select="$href"/> </xsl:call-template> --- 1150,1154 ---- <link type="text/css" rel="stylesheet"> <xsl:attribute name="href"> ! <xsl:call-template name="css-file"> <xsl:with-param name="css" select="$href"/> </xsl:call-template> |