cvs: phpdoc /xsl html-common.xsl

From: Date: Fri, 25 Apr 2003 19:06:11 +0000
Subject: cvs: phpdoc /xsl html-common.xsl
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969352872@lists.php.net to get a copy of this message
goba Fri Apr 25 15:06:11 2003 EDT Modified files: /phpdoc/xsl html-common.xsl Log: Display refentry titles in <h1> as requested, and as implemented by DSSSL Index: phpdoc/xsl/html-common.xsl diff -u phpdoc/xsl/html-common.xsl:1.23 phpdoc/xsl/html-common.xsl:1.24 --- phpdoc/xsl/html-common.xsl:1.23 Fri Apr 25 14:42:38 2003 +++ phpdoc/xsl/html-common.xsl Fri Apr 25 15:06:11 2003 @@ -3,7 +3,7 @@ html-common.xsl: Common HTML customizations - $Id: html-common.xsl,v 1.23 2003/04/25 18:42:38 goba Exp $ + $Id: html-common.xsl,v 1.24 2003/04/25 19:06:11 goba Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -537,7 +537,36 @@ <xsl:apply-templates mode="titlepage.mode"/> </xsl:template> - +<!-- Make REFENTRY titles appear in H1 as in DSSSL sheets --> +<xsl:template match="refnamediv"> + <div class="{name(.)}"> + <xsl:call-template name="anchor"/> + <xsl:choose> + <xsl:when test="$refentry.generate.name != 0"> + <h2> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'RefName'"/> + </xsl:call-template> + </h2> + </xsl:when> + <xsl:when test="$refentry.generate.title != 0"> + <h1> + <xsl:choose> + <xsl:when test="../refmeta/refentrytitle"> + <xsl:apply-templates select="../refmeta/refentrytitle"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="refname[1]"/> + </xsl:otherwise> + </xsl:choose> + </h1> + </xsl:when> + </xsl:choose> + <p> + <xsl:apply-templates/> + </p> + </div> +</xsl:template> <!-- Just to DECREASE FILESIZE (since we have no css-styles) --> <xsl:template name="refentry.titlepage">

« previous php.doc (#969352872) next »