<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
				xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xsl:import href="/opt/local/share/xsl/docbook-xsl/fo/docbook.xsl" />

<xsl:param name="marker.section.level">4</xsl:param>

<xsl:param name="draft.mode">no</xsl:param>
<xsl:param name="fop1.extensions" select="1"></xsl:param>
<xsl:param name="use.extensions" select="1"></xsl:param>
<xsl:param name="tablecolumns.extension" select="0"></xsl:param>
<xsl:param name="double.sided" select="1"></xsl:param>
<xsl:param name="admon.graphics.extension">.svg</xsl:param>
<xsl:param name="admon.graphics.path">images/</xsl:param>
<xsl:param name="admon.graphics" select="1"/>
<xsl:param name="callouts.extension" select="1"></xsl:param>
<xsl:param name="callout.graphics.extension">.svg</xsl:param>
<xsl:param name="callout.graphics" select="1"/>
<xsl:param name="callout.defaultcolumn">20</xsl:param>
<xsl:param name="callout.graphics.path">/opt/local/share/xsl/docbook-xsl/images/callouts/</xsl:param>
<xsl:param name="author.othername.in.middle" select="0"/>
<xsl:param name="body.font.family">Geneva,Helvetica,sans-serif</xsl:param>
<xsl:param name="body.font.size">10pt</xsl:param>
<xsl:param name="ulink.show" select="0"/>
<xsl:param name="hyphenate.verbatim" select="0"/>
<xsl:param name="profile.role">fo</xsl:param>
<xsl:param name="shade.verbatim" select="1"/>
<xsl:param name="formal.procedures" select="0"></xsl:param>

<xsl:attribute-set name="procedure.properties" use-attribute-sets="informal.object.properties">
  <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
</xsl:attribute-set>

<xsl:param name="generate.toc">
/appendix toc,title
article/appendix  nop
/article  toc,title
book      toc,title,refentry
/chapter  toc,title
part      toc,title
/preface  toc,title
reference toc,title
/sect1    toc
/sect2    toc
/sect3    toc
/sect4    toc
/sect5    toc
/section  toc
set       toc,title
</xsl:param>




<xsl:attribute-set name="informaltable.properties">
	<xsl:attribute name="font-size">.8em</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="table.properties">
	<xsl:attribute name="font-size">.8em</xsl:attribute>
</xsl:attribute-set>


<xsl:template name="table.row.properties">
	<xsl:variable name="bgcolor">
	  <xsl:call-template name="dbfo-attribute">
		<xsl:with-param name="pis"  
			 select="ancestor-or-self::entry/processing-instruction('dbfo')"/>
		<xsl:with-param name="attribute" select="'bgcolor'"/>
	  </xsl:call-template>
	</xsl:variable>
<xsl:choose>
  <xsl:when test="ancestor::thead">
  	<xsl:attribute name="background-color">#000000</xsl:attribute>
  	<xsl:attribute name="color">#ffffff</xsl:attribute>
    <xsl:attribute name="font-weight">bold</xsl:attribute>
  </xsl:when>
  <xsl:when test="@style='subhead'">
    <xsl:attribute name="background-color">#e0e0e0</xsl:attribute>
    <xsl:attribute name="font-weight">bold</xsl:attribute>
  </xsl:when>
  </xsl:choose>
</xsl:template>


<xsl:param name="refentry.generate.name" select="0"/>
<xsl:param name="refentry.generate.title" select="1"/>
<xsl:param name="refentry.pagebreak" select="1"/>

<xsl:param name="variablelist.as.blocks" select="0" />

<xsl:attribute-set name="monospace.verbatim.properties">
  <xsl:attribute name="text-align">start</xsl:attribute>
  <xsl:attribute name="wrap-option">wrap</xsl:attribute>
  <xsl:attribute name="page-break-inside">auto</xsl:attribute>
 <xsl:attribute name="hyphenation-character">&#187;</xsl:attribute>
</xsl:attribute-set>
<xsl:template match="guimenu|guimenuitem">
  <xsl:call-template name="inline.boldseq"/>
</xsl:template>

<xsl:template match="refname">
  <xsl:call-template name="inline.monoseq"/>
</xsl:template>
<xsl:template match="varname">
  <xsl:call-template name="inline.italicseq"/>
</xsl:template>

<xsl:template match="varlistentry/term">
  <xsl:call-template name="inline.boldseq"/>
</xsl:template>

<xsl:attribute-set name="xref.properties">
	<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>


<xsl:attribute-set name="shade.verbatim.style">
	<xsl:attribute name="margin-left">0</xsl:attribute>
	<xsl:attribute name="padding-left">12pt</xsl:attribute>
	<xsl:attribute name="padding-left">12pt</xsl:attribute>
	<xsl:attribute name="padding-top">6pt</xsl:attribute>
	<xsl:attribute name="padding-bottom">6pt</xsl:attribute>
</xsl:attribute-set>


<xsl:template match="comment|remark">
      <xsl:call-template name="inline.charseq"/>
</xsl:template>


<xsl:template match="markup">
  <xsl:call-template name="inline.monoseq"/>
</xsl:template>


<xsl:attribute-set name="header.content.properties">
	<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="footer.content.properties">
	<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>

<xsl:template name="header.content">
  <xsl:param name="pageclass" select="''"/>
  <xsl:param name="sequence" select="''"/>
  <xsl:param name="position" select="''"/>
  <xsl:param name="gentext-key" select="''"/>
	<xsl:choose>
		<xsl:when test="$double.sided = 1">
			<xsl:choose>
				<xsl:when test="$position='left' and $sequence='even'">
							<xsl:apply-templates select="." mode="object.title.markup"/>
				</xsl:when>
				<xsl:when test="$position='right' and $sequence='even'">
					stripShow User Guide
				</xsl:when>

				<xsl:when test="$position='left' and $sequence='odd'">
					stripShow User Guide
				</xsl:when>
				<xsl:when test="$position='right' and $sequence='odd'">
					<xsl:apply-templates select="." mode="object.title.markup"/>
				</xsl:when>
				<xsl:when test="$position='center' and $sequence='first'">
					stripShow User Guide
				</xsl:when>
				<xsl:otherwise></xsl:otherwise>

			</xsl:choose>
		</xsl:when>
		<xsl:otherwise>
			<xsl:choose>
				<xsl:when test="$position='right'">
					<xsl:choose>
						<xsl:when test="$pageclass != 'titlepage' and $pageclass !='lot'">
							<xsl:apply-templates select="." mode="object.title.markup"/>
						</xsl:when>
					</xsl:choose>
				</xsl:when>
				<xsl:when test="$position='left'">
					<xsl:choose>
						<xsl:when test="$pageclass != 'titlepage'">
							stripShow User Guide
						</xsl:when>
					</xsl:choose>
				</xsl:when>
			</xsl:choose>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>
<xsl:template match="symbol[@role = 'symbolfont']">
  <fo:inline font-family="Symbol">
    <xsl:call-template name="inline.charseq"/>
  </fo:inline>
</xsl:template>

    <xsl:attribute-set name="nohyph.prop">
        <xsl:attribute
name="keep-together.within-line">always</xsl:attribute>
        <xsl:attribute name="hyphenate">false</xsl:attribute>
    </xsl:attribute-set>

    <xsl:template match="filename">
        <fo:inline xsl:use-attribute-sets="nohyph.prop" font-family="Courier,monospaced">
  			<xsl:apply-templates/>
        </fo:inline>
    </xsl:template>

</xsl:stylesheet>

