<xsl:template match="*" mode="titlepage.mode"><!-- if an element isn't found in this mode, try the default mode --><xsl:apply-templates select="."/></xsl:template>
<xsl:template match="d:title" mode="titlepage.mode"><xsl:variable name="id"><xsl:choose><!-- if title is in an *info wrapper, get the grandparent --><xsl:when test="contains(local-name(..), 'info')"><xsl:call-template name="object.id"><xsl:with-param name="object" select="../.."/></xsl:call-template></xsl:when><xsl:otherwise><xsl:call-template name="object.id"><xsl:with-param name="object" select=".."/></xsl:call-template></xsl:otherwise></xsl:choose></xsl:variable><h1><xsl:apply-templates select="." mode="common.html.attributes"/><xsl:if test="$generate.id.attributes = 0"><a id="{$id}"/></xsl:if><xsl:choose><xsl:when test="$show.revisionflag != 0 and @revisionflag"><span class="{@revisionflag}"><xsl:apply-templates mode="titlepage.mode"/></span></xsl:when><xsl:otherwise><xsl:apply-templates mode="titlepage.mode"/></xsl:otherwise></xsl:choose></h1></xsl:template>
Template
d:titleabbrevtitlepage.mode
Namespace
No namespace
Match
d:titleabbrev
Mode
titlepage.mode
Import precedence
0
Source
<xsl:template match="d:titleabbrev" mode="titlepage.mode"><!-- nop; title abbreviations don't belong on the title page! --></xsl:template>
<xsl:template name="ln.or.rh.filename"><xsl:param name="node" select="."/><xsl:param name="is.ln" select="true()"/><xsl:variable name="dbhtml-filename"><xsl:call-template name="pi.dbhtml_filename"><xsl:with-param name="node" select="$node"/></xsl:call-template></xsl:variable><xsl:choose><!-- 1. If there is a dbhtml_filename PI, use that --><xsl:when test="$dbhtml-filename != ''"><xsl:value-of select="$dbhtml-filename"/></xsl:when><xsl:when test="($node/@id or $node/@xml:id) and not($use.id.as.filename = 0)"><!-- * 2. If this legalnotice/revhistory has an ID, then go ahead and use --><!-- * just the value of that ID as the basename for the file --><!-- * (that is, without prepending an "ln-" or "rh-" to it) --><xsl:value-of select="($node/@id|$node/@xml:id)[1]"/><xsl:value-of select="$html.ext"/></xsl:when><xsl:when test="not ($node/@id or $node/@xml:id) or $use.id.as.filename = 0"><!-- * 3. Otherwise, if this legalnotice/revhistory does not have an ID, or --><!-- * if $use.id.as.filename = 0 --><!-- * then we generate an ID... --><xsl:variable name="id"><xsl:value-of select="generate-id($node)"/></xsl:variable><!-- * ...and then we take that generated ID, prepend a --><!-- * prefix to it, and use that as the basename for the file --><xsl:choose><xsl:when test="$is.ln"><xsl:value-of select="concat('ln-',$id,$html.ext)"/></xsl:when><xsl:otherwise><xsl:value-of select="concat('rh-',$id,$html.ext)"/></xsl:otherwise></xsl:choose></xsl:when></xsl:choose></xsl:template>
Attribute set
book.titlepage.recto.style
Documentation
Description
********************************************************************
$Id$
********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
See ../README or http://docbook.sf.net/release/xsl/current/ for
copyright and other information.
********************************************************************