blob: 6ae988ca4c37446a4f3ce0c7e6d67617574734f8 [file] [log] [blame]
<?xml version='1.0'?>
<!--
* Copyright 2001-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
Note based on the jbossorg-docbook project.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="http://docbook.sourceforge.net/release/xsl/1.76.1/xhtml/docbook.xsl"/>
<xsl:include href="xhtml-common.xsl"/>
<!--
From: xhtml/titlepage-templates.xsl
Reason: Needed to add JBoss.org and Community Documentation graphics to header
Version: 1.72.0
-->
<xsl:template name="book.titlepage.recto">
<p xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="id">
<xsl:text>title</xsl:text>
</xsl:attribute>
<a>
<xsl:attribute name="href">
<xsl:value-of select="$siteHref" />
</xsl:attribute>
<xsl:attribute name="class">
<xsl:text>site_href</xsl:text>
</xsl:attribute>
<strong>
<xsl:value-of select="$siteLinkText"/>
</strong>
</a>
<a>
<xsl:attribute name="href">
<xsl:value-of select="$docHref" />
</xsl:attribute>
<xsl:attribute name="class">
<xsl:text>doc_href</xsl:text>
</xsl:attribute>
<strong>
<xsl:value-of select="$docLinkText"/>
</strong>
</a>
</p>
<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:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/abstract"/>
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/abstract"/>
</xsl:template>
</xsl:stylesheet>