diff options
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl')
4 files changed, 0 insertions, 5563 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/titlepage.templates.xml b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/titlepage.templates.xml deleted file mode 100644 index c24642938..000000000 --- a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/titlepage.templates.xml +++ /dev/null @@ -1,738 +0,0 @@ -<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0" - xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - -<!-- ==================================================================== --> - -<t:titlepage t:element="article" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - <hr/> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="set" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - <hr/> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="book" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - <hr/> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="part" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="division.title" - param:node="ancestor-or-self::part[1]"/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="partintro" t:wrapper="div"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="reference" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - <hr/> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="refentry" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> -<!-- uncomment this if you want refentry titlepages - <title t:force="1" - t:named-template="refentry.title" - param:node="ancestor-or-self::refentry[1]"/> ---> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator/> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - - <t:titlepage t:element="dedication" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::dedication[1]"/> - <subtitle/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="acknowledgements" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::acknowledgements[1]"/> - <subtitle/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="preface" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="chapter" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="topic" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="appendix" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="section" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - <xsl:if test="count(parent::*)='0'"><hr/></xsl:if> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect1" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - <xsl:if test="count(parent::*)='0'"><hr/></xsl:if> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect2" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - <xsl:if test="count(parent::*)='0'"><hr/></xsl:if> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect3" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - <xsl:if test="count(parent::*)='0'"><hr/></xsl:if> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect4" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - <xsl:if test="count(parent::*)='0'"><hr/></xsl:if> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="sect5" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - <xsl:if test="count(parent::*)='0'"><hr/></xsl:if> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<t:titlepage t:element="simplesect" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title/> - <subtitle/> - <corpauthor/> - <authorgroup/> - <author/> - <othercredit/> - <releaseinfo/> - <copyright/> - <legalnotice/> - <pubdate/> - <revision/> - <revhistory/> - - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - <xsl:if test="count(parent::*)='0'"><hr/></xsl:if> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="bibliography" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::bibliography[1]"/> - <subtitle/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="glossary" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::glossary[1]"/> - <subtitle/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="index" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::index[1]"/> - <subtitle/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -<t:titlepage t:element="setindex" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title - t:force="1" - t:named-template="component.title" - param:node="ancestor-or-self::setindex[1]"/> - <subtitle/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> -<t:titlepage t:element="sidebar" t:wrapper="div" class="titlepage"> - <t:titlepage-content t:side="recto"> - <title - t:named-template="formal.object.heading" - param:object="ancestor-or-self::sidebar[1]"/> - <subtitle/> - </t:titlepage-content> - - <t:titlepage-content t:side="verso"> - </t:titlepage-content> - - <t:titlepage-separator> - </t:titlepage-separator> - - <t:titlepage-before t:side="recto"> - </t:titlepage-before> - - <t:titlepage-before t:side="verso"> - </t:titlepage-before> -</t:titlepage> - -<!-- ==================================================================== --> - -</t:templates> diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/titlepage.templates.xsl b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/titlepage.templates.xsl deleted file mode 100644 index 65309efea..000000000 --- a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/titlepage.templates.xsl +++ /dev/null @@ -1,3860 +0,0 @@ -<?xml version="1.0"?> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" version="1.0" exclude-result-prefixes="exsl"> - -<!-- This stylesheet was created by template/titlepage.xsl--> - -<xsl:template name="article.titlepage.recto"> - <xsl:choose> - <xsl:when test="articleinfo/title"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/title"/> - </xsl:when> - <xsl:when test="artheader/title"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="articleinfo/subtitle"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/subtitle"/> - </xsl:when> - <xsl:when test="artheader/subtitle"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/corpauthor"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/corpauthor"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/authorgroup"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/authorgroup"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/author"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/author"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/othercredit"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/othercredit"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/releaseinfo"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/releaseinfo"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/copyright"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/copyright"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/legalnotice"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/legalnotice"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/pubdate"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/pubdate"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revision"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revision"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revhistory"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revhistory"/> - <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="article.titlepage.verso"> -</xsl:template> - -<xsl:template name="article.titlepage.separator"><hr/> -</xsl:template> - -<xsl:template name="article.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="article.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="article.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="article.titlepage.before.recto"/> - <xsl:call-template name="article.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="article.titlepage.before.verso"/> - <xsl:call-template name="article.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="article.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="article.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="article.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="article.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="article.titlepage.recto.style"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="article.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="article.titlepage.recto.style"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="article.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="article.titlepage.recto.style"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="article.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="article.titlepage.recto.style"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="article.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="article.titlepage.recto.style"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="article.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="article.titlepage.recto.style"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="article.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="article.titlepage.recto.style"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="article.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="article.titlepage.recto.style"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="article.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="article.titlepage.recto.style"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="article.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="article.titlepage.recto.style"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="article.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="article.titlepage.recto.style"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="article.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="article.titlepage.recto.style"> -<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="set.titlepage.recto"> - <xsl:choose> - <xsl:when test="setinfo/title"> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="setinfo/subtitle"> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/corpauthor"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/authorgroup"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/author"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/othercredit"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/releaseinfo"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/copyright"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/legalnotice"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/pubdate"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revision"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revhistory"/> - <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="set.titlepage.verso"> -</xsl:template> - -<xsl:template name="set.titlepage.separator"><hr/> -</xsl:template> - -<xsl:template name="set.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="set.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="set.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="set.titlepage.before.recto"/> - <xsl:call-template name="set.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="set.titlepage.before.verso"/> - <xsl:call-template name="set.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="set.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="set.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="set.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="set.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="set.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="set.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="set.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="set.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="set.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="set.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="set.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="set.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="set.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="set.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="set.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="set.titlepage.recto.style"> -<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="book.titlepage.recto"> - <xsl:choose> - <xsl:when test="bookinfo/title"> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="bookinfo/subtitle"> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/othercredit"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/releaseinfo"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/copyright"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/legalnotice"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/pubdate"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revision"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revhistory"/> - <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="book.titlepage.verso"> -</xsl:template> - -<xsl:template name="book.titlepage.separator"><hr/> -</xsl:template> - -<xsl:template name="book.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="book.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="book.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="book.titlepage.before.recto"/> - <xsl:call-template name="book.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="book.titlepage.before.verso"/> - <xsl:call-template name="book.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="book.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="book.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="book.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="book.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="book.titlepage.recto.style"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="book.titlepage.recto.style"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="book.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="book.titlepage.recto.style"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="book.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="book.titlepage.recto.style"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="book.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="book.titlepage.recto.style"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="book.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="book.titlepage.recto.style"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="book.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="book.titlepage.recto.style"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="book.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="book.titlepage.recto.style"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="book.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="book.titlepage.recto.style"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="book.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="book.titlepage.recto.style"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="book.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="book.titlepage.recto.style"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="book.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="book.titlepage.recto.style"> -<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="part.titlepage.recto"> - <div xsl:use-attribute-sets="part.titlepage.recto.style"> -<xsl:call-template name="division.title"> -<xsl:with-param name="node" select="ancestor-or-self::part[1]"/> -</xsl:call-template></div> - <xsl:choose> - <xsl:when test="partinfo/subtitle"> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/corpauthor"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/authorgroup"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/author"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/author"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/othercredit"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/othercredit"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/releaseinfo"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/copyright"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/copyright"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/legalnotice"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/legalnotice"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/pubdate"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/pubdate"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/revision"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/revision"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/revhistory"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/revhistory"/> - <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="part.titlepage.verso"> -</xsl:template> - -<xsl:template name="part.titlepage.separator"> -</xsl:template> - -<xsl:template name="part.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="part.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="part.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="part.titlepage.before.recto"/> - <xsl:call-template name="part.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="part.titlepage.before.verso"/> - <xsl:call-template name="part.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="part.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="part.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="part.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="part.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="part.titlepage.recto.style"> -<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="part.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="part.titlepage.recto.style"> -<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="part.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="part.titlepage.recto.style"> -<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="part.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="part.titlepage.recto.style"> -<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="part.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="part.titlepage.recto.style"> -<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="part.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="part.titlepage.recto.style"> -<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="part.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="part.titlepage.recto.style"> -<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="part.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="part.titlepage.recto.style"> -<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="part.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="part.titlepage.recto.style"> -<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="part.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="part.titlepage.recto.style"> -<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="part.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="part.titlepage.recto.style"> -<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="partintro.titlepage.recto"> - <xsl:choose> - <xsl:when test="partintroinfo/title"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="partintroinfo/subtitle"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/corpauthor"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/authorgroup"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/author"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/author"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/othercredit"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/othercredit"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/releaseinfo"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/copyright"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/copyright"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/legalnotice"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/legalnotice"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/pubdate"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/pubdate"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revision"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revision"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revhistory"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revhistory"/> - <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="partintro.titlepage.verso"> -</xsl:template> - -<xsl:template name="partintro.titlepage.separator"> -</xsl:template> - -<xsl:template name="partintro.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="partintro.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="partintro.titlepage"> - <div> - <xsl:variable name="recto.content"> - <xsl:call-template name="partintro.titlepage.before.recto"/> - <xsl:call-template name="partintro.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="partintro.titlepage.before.verso"/> - <xsl:call-template name="partintro.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="partintro.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="partintro.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="partintro.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="partintro.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="partintro.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="partintro.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="partintro.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="partintro.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="partintro.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="partintro.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="partintro.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="partintro.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="partintro.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="partintro.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="partintro.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="partintro.titlepage.recto.style"> -<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="reference.titlepage.recto"> - <xsl:choose> - <xsl:when test="referenceinfo/title"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="referenceinfo/subtitle"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/corpauthor"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/authorgroup"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/author"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/author"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/othercredit"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/othercredit"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/releaseinfo"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/copyright"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/copyright"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/legalnotice"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/legalnotice"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/pubdate"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/pubdate"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revision"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revision"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revhistory"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revhistory"/> - <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="reference.titlepage.verso"> -</xsl:template> - -<xsl:template name="reference.titlepage.separator"><hr/> -</xsl:template> - -<xsl:template name="reference.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="reference.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="reference.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="reference.titlepage.before.recto"/> - <xsl:call-template name="reference.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="reference.titlepage.before.verso"/> - <xsl:call-template name="reference.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="reference.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="reference.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="reference.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="reference.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="reference.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="reference.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="reference.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="reference.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="reference.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="reference.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="reference.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="reference.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="reference.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="reference.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="reference.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="reference.titlepage.recto.style"> -<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="refentry.titlepage.recto"> -</xsl:template> - -<xsl:template name="refentry.titlepage.verso"> -</xsl:template> - -<xsl:template name="refentry.titlepage.separator"> -</xsl:template> - -<xsl:template name="refentry.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="refentry.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="refentry.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="refentry.titlepage.before.recto"/> - <xsl:call-template name="refentry.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="refentry.titlepage.before.verso"/> - <xsl:call-template name="refentry.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="refentry.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="refentry.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="refentry.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template name="dedication.titlepage.recto"> - <div xsl:use-attribute-sets="dedication.titlepage.recto.style"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::dedication[1]"/> -</xsl:call-template></div> - <xsl:choose> - <xsl:when test="dedicationinfo/subtitle"> - <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="dedicationinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="dedication.titlepage.verso"> -</xsl:template> - -<xsl:template name="dedication.titlepage.separator"> -</xsl:template> - -<xsl:template name="dedication.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="dedication.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="dedication.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="dedication.titlepage.before.recto"/> - <xsl:call-template name="dedication.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="dedication.titlepage.before.verso"/> - <xsl:call-template name="dedication.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="dedication.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="dedication.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="dedication.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="dedication.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="dedication.titlepage.recto.style"> -<xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="acknowledgements.titlepage.recto"> - <div xsl:use-attribute-sets="acknowledgements.titlepage.recto.style"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::acknowledgements[1]"/> -</xsl:call-template></div> - <xsl:choose> - <xsl:when test="acknowledgementsinfo/subtitle"> - <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="acknowledgementsinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="acknowledgements.titlepage.verso"> -</xsl:template> - -<xsl:template name="acknowledgements.titlepage.separator"> -</xsl:template> - -<xsl:template name="acknowledgements.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="acknowledgements.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="acknowledgements.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="acknowledgements.titlepage.before.recto"/> - <xsl:call-template name="acknowledgements.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="acknowledgements.titlepage.before.verso"/> - <xsl:call-template name="acknowledgements.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="acknowledgements.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="acknowledgements.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="acknowledgements.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="acknowledgements.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="acknowledgements.titlepage.recto.style"> -<xsl:apply-templates select="." mode="acknowledgements.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="preface.titlepage.recto"> - <xsl:choose> - <xsl:when test="prefaceinfo/title"> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="prefaceinfo/subtitle"> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/corpauthor"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/authorgroup"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/author"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/author"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/othercredit"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/othercredit"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/releaseinfo"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/copyright"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/copyright"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/legalnotice"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/legalnotice"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/pubdate"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/pubdate"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revision"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revision"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revhistory"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revhistory"/> - <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="preface.titlepage.verso"> -</xsl:template> - -<xsl:template name="preface.titlepage.separator"> -</xsl:template> - -<xsl:template name="preface.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="preface.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="preface.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="preface.titlepage.before.recto"/> - <xsl:call-template name="preface.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="preface.titlepage.before.verso"/> - <xsl:call-template name="preface.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="preface.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="preface.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="preface.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="preface.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="preface.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="preface.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="preface.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="preface.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="preface.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="preface.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="preface.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="preface.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="preface.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="preface.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="preface.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="preface.titlepage.recto.style"> -<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="chapter.titlepage.recto"> - <xsl:choose> - <xsl:when test="chapterinfo/title"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="chapterinfo/subtitle"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/corpauthor"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/authorgroup"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/author"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/author"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/othercredit"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/othercredit"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/releaseinfo"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/copyright"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/copyright"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/legalnotice"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/legalnotice"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/pubdate"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/pubdate"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revision"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revision"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revhistory"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revhistory"/> - <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="chapter.titlepage.verso"> -</xsl:template> - -<xsl:template name="chapter.titlepage.separator"> -</xsl:template> - -<xsl:template name="chapter.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="chapter.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="chapter.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="chapter.titlepage.before.recto"/> - <xsl:call-template name="chapter.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="chapter.titlepage.before.verso"/> - <xsl:call-template name="chapter.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="chapter.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="chapter.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="chapter.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="chapter.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="chapter.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="chapter.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="chapter.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="chapter.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="chapter.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="chapter.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="chapter.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="chapter.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="chapter.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="chapter.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="chapter.titlepage.recto.style"> -<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="topic.titlepage.recto"> - <xsl:choose> - <xsl:when test="topicinfo/title"> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="topicinfo/subtitle"> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/corpauthor"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/authorgroup"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/author"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/othercredit"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/releaseinfo"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/copyright"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/legalnotice"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/pubdate"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/revision"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/revhistory"/> - <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="topic.titlepage.verso"> -</xsl:template> - -<xsl:template name="topic.titlepage.separator"> -</xsl:template> - -<xsl:template name="topic.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="topic.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="topic.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="topic.titlepage.before.recto"/> - <xsl:call-template name="topic.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="topic.titlepage.before.verso"/> - <xsl:call-template name="topic.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="topic.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="topic.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="topic.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="topic.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="topic.titlepage.recto.style"> -<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="topic.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="topic.titlepage.recto.style"> -<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="topic.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="topic.titlepage.recto.style"> -<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="topic.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="topic.titlepage.recto.style"> -<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="topic.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="topic.titlepage.recto.style"> -<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="topic.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="topic.titlepage.recto.style"> -<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="topic.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="topic.titlepage.recto.style"> -<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="topic.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="topic.titlepage.recto.style"> -<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="topic.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="topic.titlepage.recto.style"> -<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="topic.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="topic.titlepage.recto.style"> -<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="topic.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="topic.titlepage.recto.style"> -<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="topic.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="topic.titlepage.recto.style"> -<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="appendix.titlepage.recto"> - <xsl:choose> - <xsl:when test="appendixinfo/title"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="appendixinfo/subtitle"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/corpauthor"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/authorgroup"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/author"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/author"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/othercredit"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/othercredit"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/releaseinfo"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/copyright"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/copyright"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/legalnotice"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/legalnotice"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/pubdate"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/pubdate"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revision"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revision"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revhistory"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revhistory"/> - <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="appendix.titlepage.verso"> -</xsl:template> - -<xsl:template name="appendix.titlepage.separator"> -</xsl:template> - -<xsl:template name="appendix.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="appendix.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="appendix.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="appendix.titlepage.before.recto"/> - <xsl:call-template name="appendix.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="appendix.titlepage.before.verso"/> - <xsl:call-template name="appendix.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="appendix.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="appendix.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="appendix.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="appendix.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="appendix.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="appendix.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="appendix.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="appendix.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="appendix.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="appendix.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="appendix.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="appendix.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="appendix.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="appendix.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="appendix.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="appendix.titlepage.recto.style"> -<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="section.titlepage.recto"> - <xsl:choose> - <xsl:when test="sectioninfo/title"> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="sectioninfo/subtitle"> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/corpauthor"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/authorgroup"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/author"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/othercredit"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/releaseinfo"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/copyright"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/legalnotice"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/pubdate"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revision"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revhistory"/> - <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="section.titlepage.verso"> -</xsl:template> - -<xsl:template name="section.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if> -</xsl:template> - -<xsl:template name="section.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="section.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="section.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="section.titlepage.before.recto"/> - <xsl:call-template name="section.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="section.titlepage.before.verso"/> - <xsl:call-template name="section.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="section.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="section.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="section.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="section.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="section.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="section.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="section.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="section.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="section.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="section.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="section.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="section.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="section.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="section.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="section.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="section.titlepage.recto.style"> -<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="sect1.titlepage.recto"> - <xsl:choose> - <xsl:when test="sect1info/title"> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="sect1info/subtitle"> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/corpauthor"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/authorgroup"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/author"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/othercredit"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/releaseinfo"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/copyright"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/legalnotice"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/pubdate"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revision"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revhistory"/> - <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="sect1.titlepage.verso"> -</xsl:template> - -<xsl:template name="sect1.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if> -</xsl:template> - -<xsl:template name="sect1.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="sect1.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="sect1.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="sect1.titlepage.before.recto"/> - <xsl:call-template name="sect1.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="sect1.titlepage.before.verso"/> - <xsl:call-template name="sect1.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="sect1.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="sect1.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="sect1.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="sect1.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="sect1.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="sect1.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="sect1.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="sect1.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="sect1.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="sect1.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="sect1.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="sect1.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="sect1.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="sect1.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="sect1.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect1.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="sect2.titlepage.recto"> - <xsl:choose> - <xsl:when test="sect2info/title"> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="sect2info/subtitle"> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/corpauthor"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/authorgroup"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/author"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/othercredit"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/releaseinfo"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/copyright"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/legalnotice"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/pubdate"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revision"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revhistory"/> - <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="sect2.titlepage.verso"> -</xsl:template> - -<xsl:template name="sect2.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if> -</xsl:template> - -<xsl:template name="sect2.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="sect2.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="sect2.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="sect2.titlepage.before.recto"/> - <xsl:call-template name="sect2.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="sect2.titlepage.before.verso"/> - <xsl:call-template name="sect2.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="sect2.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="sect2.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="sect2.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="sect2.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="sect2.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="sect2.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="sect2.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="sect2.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="sect2.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="sect2.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="sect2.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="sect2.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="sect2.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="sect2.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="sect2.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect2.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="sect3.titlepage.recto"> - <xsl:choose> - <xsl:when test="sect3info/title"> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="sect3info/subtitle"> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/corpauthor"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/authorgroup"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/author"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/othercredit"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/releaseinfo"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/copyright"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/legalnotice"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/pubdate"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revision"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revhistory"/> - <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="sect3.titlepage.verso"> -</xsl:template> - -<xsl:template name="sect3.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if> -</xsl:template> - -<xsl:template name="sect3.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="sect3.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="sect3.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="sect3.titlepage.before.recto"/> - <xsl:call-template name="sect3.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="sect3.titlepage.before.verso"/> - <xsl:call-template name="sect3.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="sect3.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="sect3.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="sect3.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="sect3.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="sect3.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="sect3.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="sect3.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="sect3.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="sect3.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="sect3.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="sect3.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="sect3.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="sect3.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="sect3.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="sect3.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect3.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="sect4.titlepage.recto"> - <xsl:choose> - <xsl:when test="sect4info/title"> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="sect4info/subtitle"> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/corpauthor"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/authorgroup"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/author"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/othercredit"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/releaseinfo"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/copyright"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/legalnotice"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/pubdate"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revision"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revhistory"/> - <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="sect4.titlepage.verso"> -</xsl:template> - -<xsl:template name="sect4.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if> -</xsl:template> - -<xsl:template name="sect4.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="sect4.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="sect4.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="sect4.titlepage.before.recto"/> - <xsl:call-template name="sect4.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="sect4.titlepage.before.verso"/> - <xsl:call-template name="sect4.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="sect4.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="sect4.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="sect4.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="sect4.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="sect4.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="sect4.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="sect4.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="sect4.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="sect4.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="sect4.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="sect4.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="sect4.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="sect4.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="sect4.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="sect4.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect4.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="sect5.titlepage.recto"> - <xsl:choose> - <xsl:when test="sect5info/title"> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="sect5info/subtitle"> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/corpauthor"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/authorgroup"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/author"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/othercredit"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/releaseinfo"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/copyright"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/legalnotice"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/pubdate"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revision"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revhistory"/> - <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="sect5.titlepage.verso"> -</xsl:template> - -<xsl:template name="sect5.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if> -</xsl:template> - -<xsl:template name="sect5.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="sect5.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="sect5.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="sect5.titlepage.before.recto"/> - <xsl:call-template name="sect5.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="sect5.titlepage.before.verso"/> - <xsl:call-template name="sect5.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="sect5.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="sect5.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="sect5.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="sect5.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="sect5.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="sect5.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="sect5.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="sect5.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="sect5.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="sect5.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="sect5.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="sect5.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="sect5.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="sect5.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="sect5.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sect5.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="simplesect.titlepage.recto"> - <xsl:choose> - <xsl:when test="simplesectinfo/title"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="simplesectinfo/subtitle"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/corpauthor"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/corpauthor"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/corpauthor"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/authorgroup"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/authorgroup"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/authorgroup"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/author"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/author"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/author"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/othercredit"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/othercredit"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/othercredit"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/releaseinfo"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/releaseinfo"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/copyright"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/copyright"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/copyright"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/legalnotice"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/legalnotice"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/legalnotice"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/pubdate"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/pubdate"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/pubdate"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revision"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revision"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/revision"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revhistory"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revhistory"/> - <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/revhistory"/> -</xsl:template> - -<xsl:template name="simplesect.titlepage.verso"> -</xsl:template> - -<xsl:template name="simplesect.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if> -</xsl:template> - -<xsl:template name="simplesect.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="simplesect.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="simplesect.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="simplesect.titlepage.before.recto"/> - <xsl:call-template name="simplesect.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="simplesect.titlepage.before.verso"/> - <xsl:call-template name="simplesect.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="simplesect.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="simplesect.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="simplesect.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="simplesect.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="simplesect.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="corpauthor" mode="simplesect.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="authorgroup" mode="simplesect.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="author" mode="simplesect.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="othercredit" mode="simplesect.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="releaseinfo" mode="simplesect.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="copyright" mode="simplesect.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="legalnotice" mode="simplesect.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="pubdate" mode="simplesect.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revision" mode="simplesect.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template match="revhistory" mode="simplesect.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="simplesect.titlepage.recto.style"> -<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="bibliography.titlepage.recto"> - <div xsl:use-attribute-sets="bibliography.titlepage.recto.style"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::bibliography[1]"/> -</xsl:call-template></div> - <xsl:choose> - <xsl:when test="bibliographyinfo/subtitle"> - <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="bibliographyinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="bibliography.titlepage.verso"> -</xsl:template> - -<xsl:template name="bibliography.titlepage.separator"> -</xsl:template> - -<xsl:template name="bibliography.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="bibliography.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="bibliography.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="bibliography.titlepage.before.recto"/> - <xsl:call-template name="bibliography.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="bibliography.titlepage.before.verso"/> - <xsl:call-template name="bibliography.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="bibliography.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="bibliography.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="bibliography.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="bibliography.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="bibliography.titlepage.recto.style"> -<xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="glossary.titlepage.recto"> - <div xsl:use-attribute-sets="glossary.titlepage.recto.style"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::glossary[1]"/> -</xsl:call-template></div> - <xsl:choose> - <xsl:when test="glossaryinfo/subtitle"> - <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="glossaryinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="glossary.titlepage.verso"> -</xsl:template> - -<xsl:template name="glossary.titlepage.separator"> -</xsl:template> - -<xsl:template name="glossary.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="glossary.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="glossary.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="glossary.titlepage.before.recto"/> - <xsl:call-template name="glossary.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="glossary.titlepage.before.verso"/> - <xsl:call-template name="glossary.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="glossary.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="glossary.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="glossary.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="glossary.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="glossary.titlepage.recto.style"> -<xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="index.titlepage.recto"> - <div xsl:use-attribute-sets="index.titlepage.recto.style"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::index[1]"/> -</xsl:call-template></div> - <xsl:choose> - <xsl:when test="indexinfo/subtitle"> - <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="indexinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="index.titlepage.verso"> -</xsl:template> - -<xsl:template name="index.titlepage.separator"> -</xsl:template> - -<xsl:template name="index.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="index.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="index.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="index.titlepage.before.recto"/> - <xsl:call-template name="index.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="index.titlepage.before.verso"/> - <xsl:call-template name="index.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="index.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="index.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="index.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="index.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="index.titlepage.recto.style"> -<xsl:apply-templates select="." mode="index.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="setindex.titlepage.recto"> - <div xsl:use-attribute-sets="setindex.titlepage.recto.style"> -<xsl:call-template name="component.title"> -<xsl:with-param name="node" select="ancestor-or-self::setindex[1]"/> -</xsl:call-template></div> - <xsl:choose> - <xsl:when test="setindexinfo/subtitle"> - <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="setindexinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="setindex.titlepage.verso"> -</xsl:template> - -<xsl:template name="setindex.titlepage.separator"> -</xsl:template> - -<xsl:template name="setindex.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="setindex.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="setindex.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="setindex.titlepage.before.recto"/> - <xsl:call-template name="setindex.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="setindex.titlepage.before.verso"/> - <xsl:call-template name="setindex.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="setindex.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="setindex.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="setindex.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="subtitle" mode="setindex.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="setindex.titlepage.recto.style"> -<xsl:apply-templates select="." mode="setindex.titlepage.recto.mode"/> -</div> -</xsl:template> - -<xsl:template name="sidebar.titlepage.recto"> - <xsl:choose> - <xsl:when test="sidebarinfo/title"> - <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="sidebarinfo/title"/> - </xsl:when> - <xsl:when test="docinfo/title"> - <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="docinfo/title"/> - </xsl:when> - <xsl:when test="info/title"> - <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="info/title"/> - </xsl:when> - <xsl:when test="title"> - <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="title"/> - </xsl:when> - </xsl:choose> - - <xsl:choose> - <xsl:when test="sidebarinfo/subtitle"> - <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="sidebarinfo/subtitle"/> - </xsl:when> - <xsl:when test="docinfo/subtitle"> - <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="docinfo/subtitle"/> - </xsl:when> - <xsl:when test="info/subtitle"> - <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="info/subtitle"/> - </xsl:when> - <xsl:when test="subtitle"> - <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="subtitle"/> - </xsl:when> - </xsl:choose> - -</xsl:template> - -<xsl:template name="sidebar.titlepage.verso"> -</xsl:template> - -<xsl:template name="sidebar.titlepage.separator"> -</xsl:template> - -<xsl:template name="sidebar.titlepage.before.recto"> -</xsl:template> - -<xsl:template name="sidebar.titlepage.before.verso"> -</xsl:template> - -<xsl:template name="sidebar.titlepage"> - <div class="titlepage"> - <xsl:variable name="recto.content"> - <xsl:call-template name="sidebar.titlepage.before.recto"/> - <xsl:call-template name="sidebar.titlepage.recto"/> - </xsl:variable> - <xsl:variable name="recto.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> - <div><xsl:copy-of select="$recto.content"/></div> - </xsl:if> - <xsl:variable name="verso.content"> - <xsl:call-template name="sidebar.titlepage.before.verso"/> - <xsl:call-template name="sidebar.titlepage.verso"/> - </xsl:variable> - <xsl:variable name="verso.elements.count"> - <xsl:choose> - <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> - <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> - <div><xsl:copy-of select="$verso.content"/></div> - </xsl:if> - <xsl:call-template name="sidebar.titlepage.separator"/> - </div> -</xsl:template> - -<xsl:template match="*" mode="sidebar.titlepage.recto.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="*" mode="sidebar.titlepage.verso.mode"> - <!-- if an element isn't found in this mode, --> - <!-- try the generic titlepage.mode --> - <xsl:apply-templates select="." mode="titlepage.mode"/> -</xsl:template> - -<xsl:template match="title" mode="sidebar.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sidebar.titlepage.recto.style"> -<xsl:call-template name="formal.object.heading"> -<xsl:with-param name="object" select="ancestor-or-self::sidebar[1]"/> -</xsl:call-template> -</div> -</xsl:template> - -<xsl:template match="subtitle" mode="sidebar.titlepage.recto.auto.mode"> -<div xsl:use-attribute-sets="sidebar.titlepage.recto.style"> -<xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/> -</div> -</xsl:template> - -</xsl:stylesheet> - diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/webhelp-common.xsl b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/webhelp-common.xsl deleted file mode 100644 index 651e63822..000000000 --- a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/webhelp-common.xsl +++ /dev/null @@ -1,943 +0,0 @@ -<xsl:stylesheet - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:exsl="http://exslt.org/common" - xmlns:ng="http://docbook.org/docbook-ng" - xmlns:db="http://docbook.org/ns/docbook" - version="1.0" xmlns="http://www.w3.org/1999/xhtml" - exclude-result-prefixes="exsl ng db"> - - <!-- ******************************************************************** - $Id$ - ******************************************************************** - - This file is part customization layer on top of the XSL DocBook - Stylesheet distribution that generates webhelp output. - - ******************************************************************** --> - - <xsl:param name="chunker.output.method"> - <xsl:choose> - <xsl:when test="contains(system-property('xsl:vendor'), 'SAXON 6')">saxon:xhtml</xsl:when> - <xsl:otherwise>html</xsl:otherwise> - </xsl:choose> - </xsl:param> - - <xsl:param name="doc.title"> - <xsl:call-template name="get.doc.title"/> - </xsl:param> - - <!-- Set some reasonable defaults for webhelp output --> - <xsl:param name="webhelp.common.dir">common/</xsl:param> - <xsl:param name="chunker.output.indent">yes</xsl:param> - <xsl:param name="navig.showtitles">0</xsl:param> - <xsl:param name="manifest.in.base.dir" select="0"/> - <xsl:param name="base.dir" select="concat($webhelp.base.dir,'/')"/> - <xsl:param name="suppress.navigation">0</xsl:param> - <!-- Generate the end-of-the-book index --> - <xsl:param name="generate.index" select="1"/> - <xsl:param name="inherit.keywords" select="'0'"/> - <xsl:param name="para.propagates.style" select="1"/> - <xsl:param name="phrase.propagates.style" select="1"/> - <xsl:param name="chunk.first.sections" select="1"/> - <xsl:param name="chunk.section.depth" select="3"/> - <xsl:param name="use.id.as.filename" select="1"/> - <xsl:param name="branding">not set</xsl:param> - <xsl:param name="brandname"> </xsl:param> - - <xsl:param name="section.autolabel" select="0"/> - <xsl:param name="chapter.autolabel" select="0"/> - <xsl:param name="appendix.autolabel" select="0"/> - <xsl:param name="qandadiv.autolabel" select="0"/> - <xsl:param name="reference.autolabel" select="0"/> - <xsl:param name="part.autolabel" select="0"/> - <xsl:param name="section.label.includes.component.label" select="1"/> - - <xsl:param name="generate.section.toc.level" select="5"/> - <xsl:param name="component.label.includes.part.label" select="1"/> - <xsl:param name="suppress.footer.navigation">0</xsl:param> - <xsl:param name="callout.graphics.path"><xsl:value-of select="$webhelp.common.dir"/>images/callouts/</xsl:param> - <xsl:param name="callouts.extension">1</xsl:param> - <xsl:param name="admon.graphics.path"><xsl:value-of select="$webhelp.common.dir"/>images/admon/</xsl:param> - <xsl:param name="admon.graphics" select="0"/> - <!--xsl:param name="generate.toc">book toc</xsl:param--> - -<xsl:param name="generate.toc"> -appendix toc,title -article/appendix nop -article toc,title -book title,figure,table,example,equation -chapter toc,title -part toc,title -preface toc,title -qandadiv toc -qandaset toc -reference toc,title -sect1 toc -sect2 toc -sect3 toc -sect4 toc -sect5 toc -section toc -set toc,title -</xsl:param> - - <!-- Localizations of webhelp specific words. Your contributions for other languages are appreciated. - Currently, only around 10 translations needed. --> - <!-- Moved to files under 'gentext/locale/', search for WebHelp --> - - <xsl:template name="user.head.title"> - <xsl:param name="node" select="."/> - <xsl:param name="title"> - <xsl:apply-templates select="$node" mode="object.title.markup.textonly"/> - </xsl:param> - <xsl:param name="document-title"> - <xsl:apply-templates select="/*" mode="object.title.markup.textonly"/> - </xsl:param> - - <title> - <xsl:copy-of select="$title"/> - <xsl:if test="parent::*"> - <xsl:copy-of select="$document-title"/></xsl:if> - </title> - - </xsl:template> - - <xsl:template name="system.head.content"> - <xsl:param name="node" select="."/> -<xsl:text> -</xsl:text> - <!-- -The meta tag tells the IE rendering engine that it should use the latest, or edge, version of the IE rendering environment;It prevents IE from entring compatibility mode. - --> - <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <xsl:text> -</xsl:text> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> - <xsl:text> -</xsl:text> - </xsl:template> - - <!-- HTML <head> section customizations --> - <xsl:template name="user.head.content"> - <xsl:param name="title"> - <xsl:apply-templates select="." mode="object.title.markup.textonly"/> - </xsl:param> - <meta name="Section-title" content="{$title}"/> - - <!-- <xsl:message> - webhelp.tree.cookie.id = <xsl:value-of select="$webhelp.tree.cookie.id"/> +++ <xsl:value-of select="count(//node())"/> - $webhelp.indexer.language = <xsl:value-of select="$webhelp.indexer.language"/> +++ <xsl:value-of select="count(//node())"/> - </xsl:message>--> - <script type="text/javascript"> - //The id for tree cookie - var treeCookieId = "<xsl:value-of select="$webhelp.tree.cookie.id"/>"; - var language = "<xsl:value-of select="$webhelp.indexer.language"/>"; - var w = new Object(); - //Localization - txt_filesfound = '<xsl:call-template name="gentext.template"> - <xsl:with-param name="name" select="'txt_filesfound'"/> - <xsl:with-param name="context" select="'webhelp'"/> - </xsl:call-template>'; - txt_enter_at_least_1_char = "<xsl:call-template name="gentext.template"> - <xsl:with-param name="name" select="'txt_enter_at_least_1_char'"/> - <xsl:with-param name="context" select="'webhelp'"/> - </xsl:call-template>"; - txt_browser_not_supported = "<xsl:call-template name="gentext.template"> - <xsl:with-param name="name" select="'txt_browser_not_supported'"/> - <xsl:with-param name="context" select="'webhelp'"/> - </xsl:call-template>"; - txt_please_wait = "<xsl:call-template name="gentext.template"> - <xsl:with-param name="name" select="'txt_please_wait'"/> - <xsl:with-param name="context" select="'webhelp'"/> - </xsl:call-template>"; - txt_results_for = "<xsl:call-template name="gentext.template"> - <xsl:with-param name="name" select="'txt_results_for'"/> - <xsl:with-param name="context" select="'webhelp'"/> - </xsl:call-template>"; - </script> - -<!-- kasunbg: Order is important between the in-html-file css and the linked css files. Some css declarations in jquery-ui-1.8.2.custom.css are over-ridden. - If that's a concern, just remove the additional css contents inside these default jquery css files. I thought of keeping them intact for easier maintenance! --> - <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/> - <link rel="stylesheet" type="text/css" href="{$webhelp.common.dir}css/positioning.css"/> - <link rel="stylesheet" type="text/css" href="{$webhelp.common.dir}jquery/theme-redmond/jquery-ui-1.8.2.custom.css"/> - <link rel="stylesheet" type="text/css" href="{$webhelp.common.dir}jquery/treeview/jquery.treeview.css"/> - - <style type="text/css"> - -#noscript{ - font-weight:bold; - background-color: #55AA55; - font-weight: bold; - height: 25spx; - z-index: 3000; - top:0px; - width:100%; - position: relative; - border-bottom: solid 5px black; - text-align:center; - color: white; -} - -input { - margin-bottom: 5px; - margin-top: 2px; -} -.folder { - display: block; - height: 22px; - padding-left: 20px; - background: transparent url(<xsl:value-of select="$webhelp.common.dir"/>jquery/treeview/images/folder.gif) 0 0px no-repeat; -} -span.contentsTab { - padding-left: 20px; - background: url(<xsl:value-of select="$webhelp.common.dir"/>images/toc-icon.png) no-repeat 0 center; -} -span.searchTab { - padding-left: 20px; - background: url(<xsl:value-of select="$webhelp.common.dir"/>images/search-icon.png) no-repeat 0 center; -} - -/* Overide jquery treeview's defaults for ul. */ -.treeview ul { - background-color: transparent; - margin-top: 4px; -} -#webhelp-currentid { - background-color: #D8D8D8 !important; -} -.treeview .hover { color: black; } -.filetree li span a { text-decoration: none; font-size: 12px; color: #517291; } - -/* Override jquery-ui's default css customizations. These are supposed to take precedence over those.*/ -.ui-widget-content { - border: 0px; - background: none; - color: none; -} -.ui-widget-header { - color: #e9e8e9; - border-left: 1px solid #e5e5e5; - border-right: 1px solid #e5e5e5; - border-bottom: 1px solid #bbc4c5; - border-top: 4px solid #e5e5e5; - border: medium none; - background: #F4F4F4; /* old browsers */ - background: -moz-linear-gradient(top, #F4F4F4 0%, #E6E4E5 100%); /* firefox */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#F4F4F4), color-stop(100%,#E6E4E5)); /* webkit */ - font-weight: none; -} -.ui-widget-header a { color: none; } -.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { -border: none; background: none; font-weight: none; color: none; } -.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: black; text-decoration: none; } -.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: none; background: none; font-weight: none; color: none; } - -.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: none; background: none; font-weight: none; color: none; } -.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { - color: black; text-decoration: none; - background: #C6C6C6; /* old browsers */ - background: -moz-linear-gradient(top, #C6C6C6 0%, #D8D8D8 100%); /* firefox */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#C6C6C6), color-stop(100%,#D8D8D8)); /* webkit */ - -webkit-border-radius:15px; -moz-border-radius:10px; - border: 1px solid #f1f1f1; -} -.ui-corner-all { border-radius: 0 0 0 0; } - -.ui-tabs { padding: .2em;} -.ui-tabs .ui-tabs-nav li { top: 0px; margin: -2px 0 1px; text-transform: uppercase; font-size: 10.5px;} -.ui-tabs .ui-tabs-nav li a { padding: .25em 2em .25em 1em; margin: .5em; text-shadow: 0 1px 0 rgba(255,255,255,.5); } - /** - * Basic Layout Theme - * - * This theme uses the default layout class-names for all classes - * Add any 'custom class-names', from options: paneClass, resizerClass, togglerClass - */ - - .ui-layout-pane { /* all 'panes' */ - background: #FFF; - border: 1px solid #BBB; - padding: 05x; - overflow: auto; - } - - .ui-layout-resizer { /* all 'resizer-bars' */ - background: #DDD; - top:100px - } - - .ui-layout-toggler { /* all 'toggler-buttons' */ - background: #AAA; - } - - </style> - <xsl:comment><xsl:text>[if IE]> - <link rel="stylesheet" type="text/css" href="../common/css/ie.css"/> - <![endif]</xsl:text></xsl:comment> - - <!-- - browserDetect is an Oxygen addition to warn the user if they're using chrome from the file system. - This breaks the Oxygen search highlighting. - --> - <script type="text/javascript" src="{$webhelp.common.dir}browserDetect.js"> - <xsl:comment> </xsl:comment> - </script> - <script type="text/javascript" src="{$webhelp.common.dir}jquery/jquery-1.7.2.min.js"> - <xsl:comment> </xsl:comment> - </script> - <script type="text/javascript" src="{$webhelp.common.dir}jquery/jquery.ui.all.js"> - <xsl:comment> </xsl:comment> - </script> - <script type="text/javascript" src="{$webhelp.common.dir}jquery/jquery.cookie.js"> - <xsl:comment> </xsl:comment> - </script> - <script type="text/javascript" src="{$webhelp.common.dir}jquery/treeview/jquery.treeview.min.js"> - <xsl:comment> </xsl:comment> - </script> - <script type="text/javascript" src="{$webhelp.common.dir}jquery/layout/jquery.layout.js"> - <xsl:comment> </xsl:comment> - </script> - <xsl:if test="$webhelp.include.search.tab != '0'"> - <!--Scripts/css stylesheets for Search--> - <!-- TODO: Why THREE files? There's absolutely no need for having separate files. - These should have been identified at the optimization phase! --> - <script type="text/javascript" src="search/l10n.js"> - <xsl:comment/> - </script> - <script type="text/javascript" src="search/htmlFileInfoList.js"> - <xsl:comment> </xsl:comment> - </script> - <script type="text/javascript" src="search/nwSearchFnt.js"> - <xsl:comment> </xsl:comment> - </script> - - <!-- - NOTE: Stemmer javascript files should be in format <language>_stemmer.js. - For example, for English(en), source should be: "search/stemmers/en_stemmer.js" - For country codes, see: http://www.uspto.gov/patft/help/helpctry.htm - --> - <!--<xsl:message><xsl:value-of select="concat('search/stemmers/',$webhelp.indexer.language,'_stemmer.js')"/></xsl:message>--> - <script type="text/javascript" src="{concat('search/stemmers/',$webhelp.indexer.language,'_stemmer.js')}"> - <xsl:comment>//make this scalable to other languages as well.</xsl:comment> - </script> - - <!--Index Files: - Index is broken in to three equal sized(number of index items) files. This is to help parallel downloading - of files to make it faster. - TODO: Generate webhelp index for largest docbook document that can be find, and analyze the file sizes. - IF the file size is still around ~50KB for a given file, we should consider merging these files together. again. - --> - <script type="text/javascript" src="search/index-1.js"> - <xsl:comment> </xsl:comment> - </script> - <script type="text/javascript" src="search/index-2.js"> - <xsl:comment> </xsl:comment> - </script> - <script type="text/javascript" src="search/index-3.js"> - <xsl:comment> </xsl:comment> - </script> - <!--End of index files --> - </xsl:if> - <xsl:call-template name="user.webhelp.head.content"/> - </xsl:template> - - <!-- This is for the USERS. Users who want to customize webhelp may over-ride this template to add content to <head>. --> - <xsl:template name="user.webhelp.head.content"/> - - <xsl:template name="user.header.navigation"> - <xsl:param name="prev"/> - <xsl:param name="next"/> - <xsl:param name="nav.context"/> - <xsl:call-template name="webhelpheader"> - <xsl:with-param name="prev" select="$prev"/> - <xsl:with-param name="next" select="$next"/> - <xsl:with-param name="nav.context" select="$nav.context"/> - </xsl:call-template> - <!--xsl:call-template name="webhelptoc"/--> - - <!--testing toc in the content page> - <xsl:call-template name="webhelptoctoc"/> - <xsl:if test="$webhelp.include.search.tab != '0'"> - <xsl:call-template name="search"/> - </xsl:if--> - </xsl:template> - - <xsl:template name="user.header.content"> - <xsl:comment> <!-- KEEP this code. --> </xsl:comment> - </xsl:template> - - <xsl:template name="user.footer.navigation"> - <xsl:call-template name="webhelptoc"> - <xsl:with-param name="currentid" select="generate-id(.)"/> - </xsl:call-template> - </xsl:template> - - <xsl:template match="/"> - <xsl:message>language: <xsl:value-of select="$webhelp.indexer.language"/> </xsl:message> - <!-- * Get a title for current doc so that we let the user --> - <!-- * know what document we are processing at this point. --> - <xsl:choose> - <!-- Hack! If someone hands us a DocBook V5.x or DocBook NG document, - toss the namespace and continue. Use the docbook5 namespaced - stylesheets for DocBook5 if you don't want to use this feature.--> - <!-- include extra test for Xalan quirk --> - <xsl:when test="$exsl.node.set.available != 0 and (*/self::ng:* or */self::db:*)"> - <xsl:call-template name="log.message"> - <xsl:with-param name="level">Note</xsl:with-param> - <xsl:with-param name="source" select="$doc.title"/> - <xsl:with-param name="context-desc"> - <xsl:text>namesp. cut</xsl:text> - </xsl:with-param> - <xsl:with-param name="message"> - <xsl:text>stripped namespace before processing</xsl:text> - </xsl:with-param> - </xsl:call-template> - <xsl:variable name="nons"> - <xsl:apply-templates mode="stripNS"/> - </xsl:variable> - <!-- - <xsl:message>Saving stripped document.</xsl:message> - <xsl:call-template name="write.chunk"> - <xsl:with-param name="filename" select="'/tmp/stripped.xml'"/> - <xsl:with-param name="method" select="'xml'"/> - <xsl:with-param name="content"> - <xsl:copy-of select="exsl:node-set($nons)"/> - </xsl:with-param> - </xsl:call-template> - --> - <xsl:call-template name="log.message"> - <xsl:with-param name="level">Note</xsl:with-param> - <xsl:with-param name="source" select="$doc.title"/> - <xsl:with-param name="context-desc"> - <xsl:text>namesp. cut</xsl:text> - </xsl:with-param> - <xsl:with-param name="message"> - <xsl:text>processing stripped document</xsl:text> - </xsl:with-param> - </xsl:call-template> - <xsl:apply-templates select="exsl:node-set($nons)"/> - </xsl:when> - <!-- Can't process unless namespace removed --> - <xsl:when test="*/self::ng:* or */self::db:*"> - <xsl:message terminate="yes"> - <xsl:text>Unable to strip the namespace from DB5 document,</xsl:text> - <xsl:text> cannot proceed.</xsl:text> - </xsl:message> - </xsl:when> - <xsl:otherwise> - <xsl:choose> - <xsl:when test="$rootid != ''"> - <xsl:choose> - <xsl:when test="count(key('id',$rootid)) = 0"> - <xsl:message terminate="yes"> - <xsl:text>ID '</xsl:text> - <xsl:value-of select="$rootid"/> - <xsl:text>' not found in document.</xsl:text> - </xsl:message> - </xsl:when> - <xsl:otherwise> - <xsl:if test="$collect.xref.targets = 'yes' or $collect.xref.targets = 'only'"> - <xsl:apply-templates select="key('id', $rootid)" mode="collect.targets"/> - </xsl:if> - <xsl:if test="$collect.xref.targets != 'only'"> - <xsl:apply-templates select="key('id',$rootid)" mode="process.root"/> - <xsl:if test="$tex.math.in.alt != ''"> - <xsl:apply-templates select="key('id',$rootid)" mode="collect.tex.math"/> - </xsl:if> - </xsl:if> - </xsl:otherwise> - </xsl:choose> - </xsl:when> - <xsl:otherwise> - <xsl:if test="$collect.xref.targets = 'yes' or $collect.xref.targets = 'only'"> - <xsl:apply-templates select="/" mode="collect.targets"/> - </xsl:if> - <xsl:if test="$collect.xref.targets != 'only'"> - <xsl:apply-templates select="/" mode="process.root"/> - <xsl:if test="$tex.math.in.alt != ''"> - <xsl:apply-templates select="/" mode="collect.tex.math"/> - </xsl:if> - </xsl:if> - </xsl:otherwise> - </xsl:choose> - </xsl:otherwise> - </xsl:choose> - - - <xsl:call-template name="l10n.js"/> - </xsl:template> - - - <!-- The WebHelp output structure. similar to main() method. - basic format: - <html> - <head> calls-appropriate-template </head> - <body> - some-generic-content - <div id="content"> - All your docbook document content goes here - .... - </div> - some-other-generic-content-at-footer - </body> - </html> - --> - <xsl:template name="chunk-element-content"> - <xsl:param name="prev"/> - <xsl:param name="next"/> - <xsl:param name="nav.context"/> - <xsl:param name="content"> - <xsl:apply-imports/> - </xsl:param> - - <xsl:call-template name="user.preroot"/> - - <html> - <xsl:call-template name="html.head"> - <xsl:with-param name="prev" select="$prev"/> - <xsl:with-param name="next" select="$next"/> - </xsl:call-template> - - <body> - <noscript> - <div id="noscript"> - - <xsl:call-template name="gentext.template"> - <xsl:with-param name="name" select="'txt_browser_not_supported'"/> - <xsl:with-param name="context" select="'webhelp'"/> - </xsl:call-template> - - </div> - </noscript> - - <xsl:call-template name="body.attributes"/> - - <xsl:call-template name="user.header.navigation"> - <xsl:with-param name="prev" select="$prev"/> - <xsl:with-param name="next" select="$next"/> - <xsl:with-param name="nav.context" select="$nav.context"/> - </xsl:call-template> - - <div id="content"> - - <xsl:call-template name="user.header.content"/> - - <xsl:copy-of select="$content"/> - - <xsl:call-template name="user.footer.content"/> - - <!-- Redundant since the upper navigation bar always visible --> - <xsl:call-template name="footer.navigation"> - <xsl:with-param name="prev" select="$prev"/> - <xsl:with-param name="next" select="$next"/> - <xsl:with-param name="nav.context" select="$nav.context"/> - </xsl:call-template> - - <xsl:call-template name="user.webhelp.content.footer"/> - </div> - - <xsl:call-template name="user.footer.navigation"/> - </body> - </html> - <xsl:value-of select="$chunk.append"/> - </xsl:template> - - <!-- This is for the USERS. Users who want to customize webhelp may over-ride this template to add content to the footer of the content DIV. - i.e. within <div id="content"> ... </div> --> - <xsl:template name="user.webhelp.content.footer"/> - - <!-- The Header with the company logo --> - <xsl:template name="webhelpheader"> - <xsl:param name="prev"/> - <xsl:param name="next"/> - <xsl:param name="nav.context"/> - - <xsl:variable name="home" select="/*[1]"/> - <xsl:variable name="up" select="parent::*"/> - - <div id="header"> - <xsl:call-template name="webhelpheader.logo"/> - <!-- Display the page title and the main heading(parent) of it--> - <h1> - <xsl:apply-templates select="/*[1]" mode="title.markup"/> - <br/> - <xsl:choose> - <xsl:when - test="count($up) > 0 and generate-id($up) != generate-id($home)"> - <xsl:apply-templates select="$up" mode="object.title.markup"/> - </xsl:when> - <xsl:when test="not(generate-id(.) = generate-id(/*))"> - <xsl:apply-templates select="." mode="object.title.markup"/> - </xsl:when> - <xsl:otherwise> </xsl:otherwise> - </xsl:choose> - </h1> - <!-- Prev and Next links generation--> - <div id="navheader"> - <xsl:call-template name="user.webhelp.navheader.content"/> - <xsl:comment> - <!-- KEEP this code. In case of neither prev nor next links are available, this will help to - keep the integrity of the DOM tree--> - </xsl:comment> - <!--xsl:with-param name="prev" select="$prev"/> - <xsl:with-param name="next" select="$next"/> - <xsl:with-param name="nav.context" select="$nav.context"/--> - <table class="navLinks"> - <tr> - <td> - <a id="showHideButton" href="#" onclick="myLayout.toggle('west')" - class="pointLeft" tabindex="5" title="Hide TOC tree">Sidebar - </a> - </td> - <xsl:if test="count($prev) > 0 - or (count($up) > 0 - and generate-id($up) != generate-id($home) - and $navig.showtitles != 0) - or count($next) > 0"> - <td> - <xsl:if test="count($prev)>0"> - <a accesskey="p" class="navLinkPrevious" tabindex="5"> - <xsl:attribute name="href"> - <xsl:call-template name="href.target"> - <xsl:with-param name="object" select="$prev"/> - </xsl:call-template> - </xsl:attribute> - <xsl:call-template name="navig.content"> - <xsl:with-param name="direction" select="'prev'"/> - </xsl:call-template> - </a> - </xsl:if> - - <!-- "Up" link--> - <xsl:choose> - <xsl:when test="count($up)>0 - and generate-id($up) != generate-id($home)"> - | - <a accesskey="u" class="navLinkUp" tabindex="5"> - <xsl:attribute name="href"> - <xsl:call-template name="href.target"> - <xsl:with-param name="object" select="$up"/> - </xsl:call-template> - </xsl:attribute> - <xsl:call-template name="navig.content"> - <xsl:with-param name="direction" select="'up'"/> - </xsl:call-template> - </a> - </xsl:when> - <xsl:otherwise> </xsl:otherwise> - </xsl:choose> - - <xsl:if test="count($next)>0"> - | - <a accesskey="n" class="navLinkNext" tabindex="5"> - <xsl:attribute name="href"> - <xsl:call-template name="href.target"> - <xsl:with-param name="object" select="$next"/> - </xsl:call-template> - </xsl:attribute> - <xsl:call-template name="navig.content"> - <xsl:with-param name="direction" select="'next'"/> - </xsl:call-template> - </a> - </xsl:if> - </td> - </xsl:if> - </tr> - </table> - </div> - </div> - </xsl:template> - - <xsl:template name="webhelpheader.logo"> - <a href="index.html"> - <img style='margin-right: 2px; height: 59px; padding-right: 25px; padding-top: 8px' align="right" - src='{$webhelp.common.dir}images/logo.png' alt="{$brandname} Documentation"/> - </a> - </xsl:template> - - <xsl:template name="user.webhelp.navheader.content"/> - - <xsl:template name="webhelptoc"> - <xsl:param name="currentid"/> - <xsl:choose> - <xsl:when test="$rootid != ''"> - <xsl:variable name="title"> - <xsl:if test="$webhelp.autolabel=1"> - <xsl:variable name="label.markup"> - <xsl:apply-templates select="key('id',$rootid)" mode="label.markup"/> - </xsl:variable> - <xsl:if test="normalize-space($label.markup)"> - <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/> - </xsl:if> - </xsl:if> - <xsl:apply-templates select="key('id',$rootid)" mode="titleabbrev.markup"/> - </xsl:variable> - <xsl:variable name="href"> - <xsl:choose> - <xsl:when test="$manifest.in.base.dir != 0"> - <xsl:call-template name="href.target"> - <xsl:with-param name="object" select="key('id',$rootid)"/> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:call-template name="href.target.with.base.dir"> - <xsl:with-param name="object" select="key('id',$rootid)"/> - </xsl:call-template> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - </xsl:when> - - <xsl:otherwise> - <xsl:variable name="title"> - <xsl:if test="$webhelp.autolabel=1"> - <xsl:variable name="label.markup"> - <xsl:apply-templates select="/*" mode="label.markup"/> - </xsl:variable> - <xsl:if test="normalize-space($label.markup)"> - <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/> - </xsl:if> - </xsl:if> - <xsl:apply-templates select="/*" mode="titleabbrev.markup"/> - </xsl:variable> - <xsl:variable name="href"> - <xsl:choose> - <xsl:when test="$manifest.in.base.dir != 0"> - <xsl:call-template name="href.target"> - <xsl:with-param name="object" select="/"/> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:call-template name="href.target.with.base.dir"> - <xsl:with-param name="object" select="/"/> - </xsl:call-template> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <div id="sidebar"> <!--#sidebar id is used for showing and hiding the side bar --> - <div id="leftnavigation" style="padding-top:3px;"> - <div id="tabs"> - <ul> - <li> - <a href="#treeDiv" style="outline:0;" tabindex="1"> - <span class="contentsTab"> - <xsl:call-template name="gentext.template"> - <xsl:with-param name="name" select="'TableofContents'"/> - <xsl:with-param name="context" select="'webhelp'"/> - </xsl:call-template> - </span> - </a> - </li> - <xsl:if test="$webhelp.include.search.tab != '0'"> - <li> - <a href="#searchDiv" style="outline:0;" tabindex="1" onclick="doSearch()"> - <span class="searchTab"> - <xsl:call-template name="gentext.template"> - <xsl:with-param name="name" select="'Search'"/> - <xsl:with-param name="context" select="'webhelp'"/> - </xsl:call-template> - </span> - </a> - </li> - </xsl:if> - <xsl:call-template name="user.webhelp.tabs.title"/> - </ul> - <div id="treeDiv"> - <img src="{$webhelp.common.dir}images/loading.gif" alt="loading table of contents..." - id="tocLoading" style="display:block;"/> - <div id="ulTreeDiv" style="display:none"> - <ul id="tree" class="filetree"> - <xsl:apply-templates select="/*/*" mode="webhelptoc"> - <xsl:with-param name="currentid" select="$currentid"/> - </xsl:apply-templates> - </ul> - </div> - - </div> - <xsl:if test="$webhelp.include.search.tab != '0'"> - <div id="searchDiv"> - <div id="search"> - <form onsubmit="Verifie(searchForm);return false" - name="searchForm" class="searchForm"> - <div> - -<!-- <xsl:call-template name="gentext.template"> - <xsl:with-param name="name" select="'Search'"/> - <xsl:with-param name="context" select="'webhelp'"/> - </xsl:call-template>--> - - - <input id="textToSearch" name="textToSearch" type="search" placeholder="Search" - class="searchText" tabindex="1"/> - <xsl:text disable-output-escaping="yes"> <![CDATA[ ]]> </xsl:text> - <input onclick="Verifie(searchForm)" type="button" - class="searchButton" - value="Go" id="doSearch" tabindex="1"/> - - </div> - </form> - </div> - <div id="searchResults"> - <center> </center> - </div> - <p class="searchHighlight"><a href="#" onclick="toggleHighlight()">Search Highlighter (On/Off)</a></p> - </div> - </xsl:if> - <xsl:call-template name="user.webhelp.tabs.content"/> - </div> - </div> - </div> - </xsl:otherwise> - </xsl:choose> - </xsl:template> - - <!-- Hooks for adding customs tabs --> - <xsl:template name="user.webhelp.tabs.title"/> - <xsl:template name="user.webhelp.tabs.content"/> - - <!-- Generates the webhelp table-of-contents (TOC). --> - <xsl:template - match="book|part|reference|preface|chapter|bibliography|appendix|article|topic|glossary|section|simplesect|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv|index|setindex" - mode="webhelptoc"> - <xsl:param name="currentid"/> - <xsl:variable name="title"> - <xsl:if test="$webhelp.autolabel=1"> - <xsl:variable name="label.markup"> - <xsl:apply-templates select="." mode="label.markup"/> - </xsl:variable> - <xsl:if test="normalize-space($label.markup)"> - <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/> - </xsl:if> - </xsl:if> - <xsl:apply-templates select="." mode="titleabbrev.markup"/> - </xsl:variable> - - <xsl:variable name="href"> - <xsl:choose> - <xsl:when test="$manifest.in.base.dir != 0"> - <xsl:call-template name="href.target"/> - </xsl:when> - <xsl:otherwise> - <xsl:call-template name="href.target.with.base.dir"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <xsl:variable name="id" select="generate-id(.)"/> - - <xsl:if test="not(self::index) or (self::index and not($generate.index = 0))"> - <!--li style="white-space: pre; line-height: 0em;"--> - <li> - <xsl:if test="$id = $currentid"> - <xsl:attribute name="id">webhelp-currentid</xsl:attribute> - </xsl:if> - <span class="file"> - <a href="{substring-after($href, $base.dir)}" tabindex="1"> - <xsl:value-of select="$title"/> - </a> - </span> - <xsl:if test="part|reference|preface|chapter|bibliography|appendix|article|topic|glossary|section|simplesect|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv"> - <ul> - <xsl:apply-templates - select="part|reference|preface|chapter|bibliography|appendix|article|topic|glossary|section|simplesect|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv" - mode="webhelptoc"> - <xsl:with-param name="currentid" select="$currentid"/> - </xsl:apply-templates> - </ul> - </xsl:if> - </li> - </xsl:if> - </xsl:template> - - <xsl:template match="text()" mode="webhelptoc"/> - - <xsl:template name="user.footer.content"> - <script type="text/javascript" src="{$webhelp.common.dir}main.js"> - <xsl:comment> </xsl:comment> - </script> - <script type="text/javascript" src="{$webhelp.common.dir}splitterInit.js"> - <xsl:comment> </xsl:comment> - </script> - </xsl:template> - - <!-- Generates index.html file at docs/. This is simply a redirection to content/$default.topic --> - <xsl:template name="index.html"> - <xsl:variable name="default.topic"> - <xsl:choose> - <xsl:when test="$webhelp.default.topic != ''"> - <xsl:value-of select="$webhelp.default.topic"/> - </xsl:when> - <xsl:when test="$htmlhelp.default.topic != ''"> - <xsl:value-of select="$htmlhelp.default.topic"/> - </xsl:when> - <xsl:otherwise> - <xsl:call-template name="make-relative-filename"> - <xsl:with-param name="base.dir"/> - <xsl:with-param name="base.name"> - <xsl:choose> - <xsl:when test="$rootid != ''"> - <xsl:apply-templates select="key('id',$rootid)" mode="chunk-filename"/> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates - select="*/*[self::preface|self::chapter|self::appendix|self::part][1]" - mode="chunk-filename"/> - </xsl:otherwise> - </xsl:choose> - </xsl:with-param> - </xsl:call-template> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:call-template name="write.chunk"> - <xsl:with-param name="filename"> - <!-- <xsl:if test="$manifest.in.base.dir != 0"> --> - <!-- <xsl:value-of select="$base.dir"/> --> - <!-- </xsl:if> --> - <xsl:choose> - <xsl:when test="$webhelp.start.filename"> - <xsl:value-of select="concat($webhelp.base.dir,'/',$webhelp.start.filename)"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="'index.html'"/> - </xsl:otherwise> - </xsl:choose> - </xsl:with-param> - <xsl:with-param name="method" select="'xml'"/> - <xsl:with-param name="encoding" select="'utf-8'"/> - <xsl:with-param name="indent" select="'yes'"/> - <xsl:with-param name="content"> - <html> - <head> - <link rel="shortcut icon" href="favicon.ico"/> - <meta http-equiv="Refresh" content="1; URL=content/{$default.topic}"/> - <title><xsl:value-of select="//title[1]"/> </title> - </head> - <body> - If not automatically redirected, click <a href="content/{$default.topic}">content/<xsl:value-of select="$default.topic"/></a> - </body> - </html> - </xsl:with-param> - </xsl:call-template> - </xsl:template> - - <xsl:template name="l10n.js"> - <xsl:call-template name="write.chunk"> - <xsl:with-param name="filename"> - <xsl:value-of select="concat($base.dir,'search/l10n.js')"/> - </xsl:with-param> - <xsl:with-param name="method" select="'text'"/> - <xsl:with-param name="encoding" select="'utf-8'"/> - <xsl:with-param name="indent" select="'no'"/> - <xsl:with-param name="content"> - //Resource strings for localization - var localeresource = new Object; - localeresource["search_no_results"]="<xsl:call-template name="gentext.template"> - <xsl:with-param name="name" select="'Your_search_returned_no_results'"/> - <xsl:with-param name="context" select="'webhelp'"/> - </xsl:call-template>"; - </xsl:with-param> - </xsl:call-template> - </xsl:template> - -</xsl:stylesheet> - diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/webhelp.xsl b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/webhelp.xsl deleted file mode 100644 index 6627f53d4..000000000 --- a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/webhelp.xsl +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0"?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" - xmlns:exsl="http://exslt.org/common" - xmlns:set="http://exslt.org/sets" - version="1.0" - exclude-result-prefixes="doc exsl set"> - -<!-- ******************************************************************** - $Id$ - ******************************************************************** - - This file is part customization layer on top of the XSL DocBook - Stylesheet distribution that generates webhelp output. - - ******************************************************************** --> - -<xsl:import href="../../xhtml/chunk.xsl"/> -<xsl:include href="webhelp-common.xsl"/> -<xsl:include href="titlepage.templates.xsl"/> - -</xsl:stylesheet> |