<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:fo="http://www.w3.org/1999/XSL/Format"
        xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim"
        xmlns:xverb="com.nwalsh.xalan.Verbatim"
        xmlns:lxslt="http://xml.apache.org/xslt"
        xmlns:rx="http://www.renderx.com/XSL/Extensions">

  <xsl:import
  	href="docbook.xsl"/>
 
  <xsl:param name="tablecolumns.extension" select="'0'"/>
  <xsl:param name="draft.mode" select="'no'"/>
  <xsl:param name="use.extensions" select="1"/>
  <xsl:param name="xep.extensions" select="1"/>

<!-- language localization -->

  <xsl:param name="l10n.xml"
     select="document('common/my-l10n.xml')"/>
  <xsl:param name="l10n.gentext.default.language" select="'am'"/>
  <xsl:param name="body.font.family" select="'TITUSCyberbitBasic'"/>
  <xsl:param name="dingbat.font.family" select="'TITUSCyberbitBasic'"/>
  <xsl:param name="sans.font.family" select="'TITUSCyberbitBasic'"/>
  <xsl:param name="title.font.family" select="'TITUSCyberbitBasic'"/>

<!-- layout setup --> 
 
  <xsl:param name="line-height" select="'1.72'"/>
  <xsl:param name="body.font.master">12</xsl:param>

  <xsl:attribute-set name="normal.para.spacing">
    <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
    <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
    <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
    <xsl:attribute name="letter-spacing.optimum">0.05em</xsl:attribute>
  </xsl:attribute-set>
<!--
  <xsl:param name="double.sided" select="0"/>
-->
  <xsl:param name="region.after.extent" select="'0.8in'"/>
  <xsl:param name="header.column.widths" select="'0.1 1 0.1'"/>
  <xsl:param name="body.margin.top" select="'0.7in'"/>
  <xsl:param name="title.margin.left">
     <xsl:choose>
       <xsl:when test="$passivetex.extensions != 0">0pt</xsl:when>
       <xsl:otherwise>-4pt</xsl:otherwise>
     </xsl:choose>
  </xsl:param>
  

<!-- autogeneration tweaks -->

  <xsl:param name="chapter.autolabel" select="0"/>
  <xsl:template match="orderedlist/listitem" mode="item-number"/> 
    <!-- no automatic numbers in Armenian -->

<!-- .. -->

<xsl:template name="book.verso.title">
  <fo:block>
    <xsl:apply-templates mode="titlepage.mode"/>

    <xsl:if test="following-sibling::subtitle
                  |following-sibling::info/subtitle
                  |following-sibling::bookinfo/subtitle">
<!--
      <xsl:text>: </xsl:text>
-->

      <xsl:apply-templates select="(following-sibling::subtitle
                                   |following-sibling::info/subtitle
                                   |following-sibling::bookinfo/subtitle)[1]"
                           mode="book.verso.subtitle.mode"/>
    </xsl:if>
  </fo:block>
</xsl:template>
  
</xsl:stylesheet>
