home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _A17F938714234C499BACD453CDD12DCC < prev    next >
Encoding:
Extensible Markup Language  |  2002-09-04  |  147.1 KB  |  3,191 lines

  1. <?xml version="1.0" encoding="utf-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  2.  
  3. <!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. -->
  4.  
  5. <xsl:template name="article.titlepage.recto">
  6.   <xsl:choose>
  7.     <xsl:when test="articleinfo/title">
  8.       <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/title"/>
  9.     </xsl:when>
  10.     <xsl:when test="artheader/title">
  11.       <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/title"/>
  12.     </xsl:when>
  13.     <xsl:when test="title">
  14.       <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="title"/>
  15.     </xsl:when>
  16.   </xsl:choose>
  17.  
  18.   <xsl:choose>
  19.     <xsl:when test="articleinfo/subtitle">
  20.       <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/subtitle"/>
  21.     </xsl:when>
  22.     <xsl:when test="artheader/subtitle">
  23.       <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/subtitle"/>
  24.     </xsl:when>
  25.     <xsl:when test="subtitle">
  26.       <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="subtitle"/>
  27.     </xsl:when>
  28.   </xsl:choose>
  29.  
  30.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/corpauthor"/>
  31.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/corpauthor"/>
  32.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/authorgroup"/>
  33.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/authorgroup"/>
  34.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/author"/>
  35.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/author"/>
  36.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/othercredit"/>
  37.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/othercredit"/>
  38.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/releaseinfo"/>
  39.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/releaseinfo"/>
  40.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/copyright"/>
  41.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/copyright"/>
  42.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/legalnotice"/>
  43.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/legalnotice"/>
  44.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/pubdate"/>
  45.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/pubdate"/>
  46.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revision"/>
  47.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revision"/>
  48.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revhistory"/>
  49.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revhistory"/>
  50.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/abstract"/>
  51.   <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/abstract"/>
  52. </xsl:template>
  53.  
  54. <xsl:template name="article.titlepage.verso">
  55. </xsl:template>
  56.  
  57. <xsl:template name="article.titlepage.separator">
  58. </xsl:template>
  59.  
  60. <xsl:template name="article.titlepage.before.recto">
  61. </xsl:template>
  62.  
  63. <xsl:template name="article.titlepage.before.verso">
  64. </xsl:template>
  65.  
  66. <xsl:template name="article.titlepage">
  67.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  68.     <xsl:call-template name="article.titlepage.before.recto"/>
  69.     <xsl:call-template name="article.titlepage.recto"/>
  70.     <xsl:call-template name="article.titlepage.before.verso"/>
  71.     <xsl:call-template name="article.titlepage.verso"/>
  72.     <xsl:call-template name="article.titlepage.separator"/>
  73.   </fo:block>
  74. </xsl:template>
  75.  
  76. <xsl:template match="*" mode="article.titlepage.recto.mode">
  77.   <!-- if an element isn't found in this mode, -->
  78.   <!-- try the generic titlepage.mode -->
  79.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  80. </xsl:template>
  81.  
  82. <xsl:template match="*" mode="article.titlepage.verso.mode">
  83.   <!-- if an element isn't found in this mode, -->
  84.   <!-- try the generic titlepage.mode -->
  85.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  86. </xsl:template>
  87.  
  88. <xsl:template match="title" mode="article.titlepage.recto.auto.mode">
  89. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="center" keep-with-next="always" font-size="24.8832pt" font-weight="bold" font-family="{$title.font.family}">
  90. <xsl:call-template name="component.title">
  91. <xsl:with-param name="node" select="ancestor-or-self::article[1]"/>
  92. </xsl:call-template>
  93. </fo:block>
  94. </xsl:template>
  95.  
  96. <xsl:template match="subtitle" mode="article.titlepage.recto.auto.mode">
  97. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" font-family="{$title.font.family}" text-align="center">
  98. <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  99. </fo:block>
  100. </xsl:template>
  101.  
  102. <xsl:template match="corpauthor" mode="article.titlepage.recto.auto.mode">
  103. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="center">
  104. <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  105. </fo:block>
  106. </xsl:template>
  107.  
  108. <xsl:template match="authorgroup" mode="article.titlepage.recto.auto.mode">
  109. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="center">
  110. <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  111. </fo:block>
  112. </xsl:template>
  113.  
  114. <xsl:template match="author" mode="article.titlepage.recto.auto.mode">
  115. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="center" font-size="14.4pt" font-weight="bold">
  116. <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  117. </fo:block>
  118. </xsl:template>
  119.  
  120. <xsl:template match="othercredit" mode="article.titlepage.recto.auto.mode">
  121. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="center">
  122. <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  123. </fo:block>
  124. </xsl:template>
  125.  
  126. <xsl:template match="releaseinfo" mode="article.titlepage.recto.auto.mode">
  127. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="center">
  128. <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  129. </fo:block>
  130. </xsl:template>
  131.  
  132. <xsl:template match="copyright" mode="article.titlepage.recto.auto.mode">
  133. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="center">
  134. <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  135. </fo:block>
  136. </xsl:template>
  137.  
  138. <xsl:template match="legalnotice" mode="article.titlepage.recto.auto.mode">
  139. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
  140. <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  141. </fo:block>
  142. </xsl:template>
  143.  
  144. <xsl:template match="pubdate" mode="article.titlepage.recto.auto.mode">
  145. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="center">
  146. <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  147. </fo:block>
  148. </xsl:template>
  149.  
  150. <xsl:template match="revision" mode="article.titlepage.recto.auto.mode">
  151. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style" text-align="center">
  152. <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  153. </fo:block>
  154. </xsl:template>
  155.  
  156. <xsl:template match="revhistory" mode="article.titlepage.recto.auto.mode">
  157. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
  158. <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  159. </fo:block>
  160. </xsl:template>
  161.  
  162. <xsl:template match="abstract" mode="article.titlepage.recto.auto.mode">
  163. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="article.titlepage.recto.style">
  164. <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  165. </fo:block>
  166. </xsl:template>
  167.  
  168. <xsl:template name="set.titlepage.recto">
  169.   <xsl:choose>
  170.     <xsl:when test="setinfo/title">
  171.       <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/title"/>
  172.     </xsl:when>
  173.     <xsl:when test="title">
  174.       <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="title"/>
  175.     </xsl:when>
  176.   </xsl:choose>
  177.  
  178.   <xsl:choose>
  179.     <xsl:when test="setinfo/subtitle">
  180.       <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/subtitle"/>
  181.     </xsl:when>
  182.     <xsl:when test="subtitle">
  183.       <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="subtitle"/>
  184.     </xsl:when>
  185.   </xsl:choose>
  186.  
  187.   <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/corpauthor"/>
  188.   <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/authorgroup"/>
  189.   <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/author"/>
  190.   <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/othercredit"/>
  191.   <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/releaseinfo"/>
  192.   <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/copyright"/>
  193.   <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/legalnotice"/>
  194.   <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/pubdate"/>
  195.   <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revision"/>
  196.   <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revhistory"/>
  197.   <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/abstract"/>
  198. </xsl:template>
  199.  
  200. <xsl:template name="set.titlepage.verso">
  201. </xsl:template>
  202.  
  203. <xsl:template name="set.titlepage.separator">
  204. </xsl:template>
  205.  
  206. <xsl:template name="set.titlepage.before.recto">
  207. </xsl:template>
  208.  
  209. <xsl:template name="set.titlepage.before.verso">
  210. </xsl:template>
  211.  
  212. <xsl:template name="set.titlepage">
  213.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  214.     <xsl:call-template name="set.titlepage.before.recto"/>
  215.     <xsl:call-template name="set.titlepage.recto"/>
  216.     <xsl:call-template name="set.titlepage.before.verso"/>
  217.     <xsl:call-template name="set.titlepage.verso"/>
  218.     <xsl:call-template name="set.titlepage.separator"/>
  219.   </fo:block>
  220. </xsl:template>
  221.  
  222. <xsl:template match="*" mode="set.titlepage.recto.mode">
  223.   <!-- if an element isn't found in this mode, -->
  224.   <!-- try the generic titlepage.mode -->
  225.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  226. </xsl:template>
  227.  
  228. <xsl:template match="*" mode="set.titlepage.verso.mode">
  229.   <!-- if an element isn't found in this mode, -->
  230.   <!-- try the generic titlepage.mode -->
  231.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  232. </xsl:template>
  233.  
  234. <xsl:template match="title" mode="set.titlepage.recto.auto.mode">
  235. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}">
  236. <xsl:call-template name="division.title">
  237. <xsl:with-param name="node" select="ancestor-or-self::set[1]"/>
  238. </xsl:call-template>
  239. </fo:block>
  240. </xsl:template>
  241.  
  242. <xsl:template match="subtitle" mode="set.titlepage.recto.auto.mode">
  243. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style" font-family="{$title.font.family}" text-align="center">
  244. <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  245. </fo:block>
  246. </xsl:template>
  247.  
  248. <xsl:template match="corpauthor" mode="set.titlepage.recto.auto.mode">
  249. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
  250. <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  251. </fo:block>
  252. </xsl:template>
  253.  
  254. <xsl:template match="authorgroup" mode="set.titlepage.recto.auto.mode">
  255. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
  256. <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  257. </fo:block>
  258. </xsl:template>
  259.  
  260. <xsl:template match="author" mode="set.titlepage.recto.auto.mode">
  261. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
  262. <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  263. </fo:block>
  264. </xsl:template>
  265.  
  266. <xsl:template match="othercredit" mode="set.titlepage.recto.auto.mode">
  267. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
  268. <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  269. </fo:block>
  270. </xsl:template>
  271.  
  272. <xsl:template match="releaseinfo" mode="set.titlepage.recto.auto.mode">
  273. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
  274. <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  275. </fo:block>
  276. </xsl:template>
  277.  
  278. <xsl:template match="copyright" mode="set.titlepage.recto.auto.mode">
  279. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
  280. <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  281. </fo:block>
  282. </xsl:template>
  283.  
  284. <xsl:template match="legalnotice" mode="set.titlepage.recto.auto.mode">
  285. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
  286. <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  287. </fo:block>
  288. </xsl:template>
  289.  
  290. <xsl:template match="pubdate" mode="set.titlepage.recto.auto.mode">
  291. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
  292. <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  293. </fo:block>
  294. </xsl:template>
  295.  
  296. <xsl:template match="revision" mode="set.titlepage.recto.auto.mode">
  297. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
  298. <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  299. </fo:block>
  300. </xsl:template>
  301.  
  302. <xsl:template match="revhistory" mode="set.titlepage.recto.auto.mode">
  303. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
  304. <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  305. </fo:block>
  306. </xsl:template>
  307.  
  308. <xsl:template match="abstract" mode="set.titlepage.recto.auto.mode">
  309. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="set.titlepage.recto.style">
  310. <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  311. </fo:block>
  312. </xsl:template>
  313.  
  314. <xsl:template name="book.titlepage.recto">
  315.   <xsl:choose>
  316.     <xsl:when test="bookinfo/title">
  317.       <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title"/>
  318.     </xsl:when>
  319.     <xsl:when test="title">
  320.       <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title"/>
  321.     </xsl:when>
  322.   </xsl:choose>
  323.  
  324.   <xsl:choose>
  325.     <xsl:when test="bookinfo/subtitle">
  326.       <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle"/>
  327.     </xsl:when>
  328.     <xsl:when test="subtitle">
  329.       <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle"/>
  330.     </xsl:when>
  331.   </xsl:choose>
  332.  
  333.   <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor"/>
  334.   <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup"/>
  335.   <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
  336. </xsl:template>
  337.  
  338. <xsl:template name="book.titlepage.verso">
  339.   <xsl:choose>
  340.     <xsl:when test="bookinfo/title">
  341.       <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/title"/>
  342.     </xsl:when>
  343.     <xsl:when test="title">
  344.       <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="title"/>
  345.     </xsl:when>
  346.   </xsl:choose>
  347.  
  348.   <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/corpauthor"/>
  349.   <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/authorgroup"/>
  350.   <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/author"/>
  351.   <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/othercredit"/>
  352.   <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/pubdate"/>
  353.   <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/copyright"/>
  354.   <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/abstract"/>
  355.   <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/legalnotice"/>
  356. </xsl:template>
  357.  
  358. <xsl:template name="book.titlepage.separator"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
  359. </xsl:template>
  360.  
  361. <xsl:template name="book.titlepage.before.recto">
  362. </xsl:template>
  363.  
  364. <xsl:template name="book.titlepage.before.verso"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
  365. </xsl:template>
  366.  
  367. <xsl:template name="book.titlepage">
  368.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  369.     <xsl:call-template name="book.titlepage.before.recto"/>
  370.     <xsl:call-template name="book.titlepage.recto"/>
  371.     <xsl:call-template name="book.titlepage.before.verso"/>
  372.     <xsl:call-template name="book.titlepage.verso"/>
  373.     <xsl:call-template name="book.titlepage.separator"/>
  374.   </fo:block>
  375. </xsl:template>
  376.  
  377. <xsl:template match="*" mode="book.titlepage.recto.mode">
  378.   <!-- if an element isn't found in this mode, -->
  379.   <!-- try the generic titlepage.mode -->
  380.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  381. </xsl:template>
  382.  
  383. <xsl:template match="*" mode="book.titlepage.verso.mode">
  384.   <!-- if an element isn't found in this mode, -->
  385.   <!-- try the generic titlepage.mode -->
  386.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  387. </xsl:template>
  388.  
  389. <xsl:template match="title" mode="book.titlepage.recto.auto.mode">
  390. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}">
  391. <xsl:call-template name="division.title">
  392. <xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
  393. </xsl:call-template>
  394. </fo:block>
  395. </xsl:template>
  396.  
  397. <xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode">
  398. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="20.736pt" space-before="15.552pt" font-family="{$title.font.family}">
  399. <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  400. </fo:block>
  401. </xsl:template>
  402.  
  403. <xsl:template match="corpauthor" mode="book.titlepage.recto.auto.mode">
  404. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" keep-with-next="always" space-before="2in">
  405. <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  406. </fo:block>
  407. </xsl:template>
  408.  
  409. <xsl:template match="authorgroup" mode="book.titlepage.recto.auto.mode">
  410. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" space-before="2in">
  411. <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  412. </fo:block>
  413. </xsl:template>
  414.  
  415. <xsl:template match="author" mode="book.titlepage.recto.auto.mode">
  416. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" space-before="10.8pt" keep-with-next="always">
  417. <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  418. </fo:block>
  419. </xsl:template>
  420.  
  421. <xsl:template match="title" mode="book.titlepage.verso.auto.mode">
  422. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="14.4pt" font-weight="bold" font-family="{$title.font.family}">
  423. <xsl:call-template name="book.verso.title">
  424. </xsl:call-template>
  425. </fo:block>
  426. </xsl:template>
  427.  
  428. <xsl:template match="corpauthor" mode="book.titlepage.verso.auto.mode">
  429. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
  430. <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
  431. </fo:block>
  432. </xsl:template>
  433.  
  434. <xsl:template match="authorgroup" mode="book.titlepage.verso.auto.mode">
  435. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
  436. <xsl:call-template name="verso.authorgroup">
  437. </xsl:call-template>
  438. </fo:block>
  439. </xsl:template>
  440.  
  441. <xsl:template match="author" mode="book.titlepage.verso.auto.mode">
  442. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
  443. <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
  444. </fo:block>
  445. </xsl:template>
  446.  
  447. <xsl:template match="othercredit" mode="book.titlepage.verso.auto.mode">
  448. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
  449. <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
  450. </fo:block>
  451. </xsl:template>
  452.  
  453. <xsl:template match="pubdate" mode="book.titlepage.verso.auto.mode">
  454. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
  455. <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
  456. </fo:block>
  457. </xsl:template>
  458.  
  459. <xsl:template match="copyright" mode="book.titlepage.verso.auto.mode">
  460. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
  461. <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
  462. </fo:block>
  463. </xsl:template>
  464.  
  465. <xsl:template match="abstract" mode="book.titlepage.verso.auto.mode">
  466. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
  467. <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
  468. </fo:block>
  469. </xsl:template>
  470.  
  471. <xsl:template match="legalnotice" mode="book.titlepage.verso.auto.mode">
  472. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="8pt">
  473. <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
  474. </fo:block>
  475. </xsl:template>
  476.  
  477. <xsl:template name="part.titlepage.recto">
  478.   <xsl:choose>
  479.     <xsl:when test="partinfo/title">
  480.       <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/title"/>
  481.     </xsl:when>
  482.     <xsl:when test="docinfo/title">
  483.       <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/title"/>
  484.     </xsl:when>
  485.     <xsl:when test="title">
  486.       <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="title"/>
  487.     </xsl:when>
  488.   </xsl:choose>
  489.  
  490.   <xsl:choose>
  491.     <xsl:when test="partinfo/subtitle">
  492.       <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/subtitle"/>
  493.     </xsl:when>
  494.     <xsl:when test="docinfo/subtitle">
  495.       <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
  496.     </xsl:when>
  497.     <xsl:when test="subtitle">
  498.       <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="subtitle"/>
  499.     </xsl:when>
  500.   </xsl:choose>
  501.  
  502. </xsl:template>
  503.  
  504. <xsl:template name="part.titlepage.verso">
  505. </xsl:template>
  506.  
  507. <xsl:template name="part.titlepage.separator">
  508. </xsl:template>
  509.  
  510. <xsl:template name="part.titlepage.before.recto">
  511. </xsl:template>
  512.  
  513. <xsl:template name="part.titlepage.before.verso">
  514. </xsl:template>
  515.  
  516. <xsl:template name="part.titlepage">
  517.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  518.     <xsl:call-template name="part.titlepage.before.recto"/>
  519.     <xsl:call-template name="part.titlepage.recto"/>
  520.     <xsl:call-template name="part.titlepage.before.verso"/>
  521.     <xsl:call-template name="part.titlepage.verso"/>
  522.     <xsl:call-template name="part.titlepage.separator"/>
  523.   </fo:block>
  524. </xsl:template>
  525.  
  526. <xsl:template match="*" mode="part.titlepage.recto.mode">
  527.   <!-- if an element isn't found in this mode, -->
  528.   <!-- try the generic titlepage.mode -->
  529.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  530. </xsl:template>
  531.  
  532. <xsl:template match="*" mode="part.titlepage.verso.mode">
  533.   <!-- if an element isn't found in this mode, -->
  534.   <!-- try the generic titlepage.mode -->
  535.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  536. </xsl:template>
  537.  
  538. <xsl:template match="title" mode="part.titlepage.recto.auto.mode">
  539. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="part.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}">
  540. <xsl:call-template name="division.title">
  541. <xsl:with-param name="node" select="ancestor-or-self::part[1]"/>
  542. </xsl:call-template>
  543. </fo:block>
  544. </xsl:template>
  545.  
  546. <xsl:template match="subtitle" mode="part.titlepage.recto.auto.mode">
  547. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="part.titlepage.recto.style" text-align="center" font-size="20.736pt" space-before="15.552pt" font-weight="bold" font-style="italic" font-family="{$title.font.family}">
  548. <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
  549. </fo:block>
  550. </xsl:template>
  551.  
  552. <xsl:template name="partintro.titlepage.recto">
  553.   <xsl:choose>
  554.     <xsl:when test="partintroinfo/title">
  555.       <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/title"/>
  556.     </xsl:when>
  557.     <xsl:when test="docinfo/title">
  558.       <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/title"/>
  559.     </xsl:when>
  560.     <xsl:when test="title">
  561.       <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="title"/>
  562.     </xsl:when>
  563.   </xsl:choose>
  564.  
  565.   <xsl:choose>
  566.     <xsl:when test="partintroinfo/subtitle">
  567.       <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/subtitle"/>
  568.     </xsl:when>
  569.     <xsl:when test="docinfo/subtitle">
  570.       <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
  571.     </xsl:when>
  572.     <xsl:when test="subtitle">
  573.       <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="subtitle"/>
  574.     </xsl:when>
  575.   </xsl:choose>
  576.  
  577.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/corpauthor"/>
  578.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
  579.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/authorgroup"/>
  580.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
  581.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/author"/>
  582.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/author"/>
  583.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/othercredit"/>
  584.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
  585.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/releaseinfo"/>
  586.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
  587.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/copyright"/>
  588.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/copyright"/>
  589.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/legalnotice"/>
  590.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
  591.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/pubdate"/>
  592.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
  593.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revision"/>
  594.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revision"/>
  595.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revhistory"/>
  596.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
  597.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/abstract"/>
  598.   <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/abstract"/>
  599. </xsl:template>
  600.  
  601. <xsl:template name="partintro.titlepage.verso">
  602. </xsl:template>
  603.  
  604. <xsl:template name="partintro.titlepage.separator">
  605. </xsl:template>
  606.  
  607. <xsl:template name="partintro.titlepage.before.recto">
  608. </xsl:template>
  609.  
  610. <xsl:template name="partintro.titlepage.before.verso">
  611. </xsl:template>
  612.  
  613. <xsl:template name="partintro.titlepage">
  614.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  615.     <xsl:call-template name="partintro.titlepage.before.recto"/>
  616.     <xsl:call-template name="partintro.titlepage.recto"/>
  617.     <xsl:call-template name="partintro.titlepage.before.verso"/>
  618.     <xsl:call-template name="partintro.titlepage.verso"/>
  619.     <xsl:call-template name="partintro.titlepage.separator"/>
  620.   </fo:block>
  621. </xsl:template>
  622.  
  623. <xsl:template match="*" mode="partintro.titlepage.recto.mode">
  624.   <!-- if an element isn't found in this mode, -->
  625.   <!-- try the generic titlepage.mode -->
  626.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  627. </xsl:template>
  628.  
  629. <xsl:template match="*" mode="partintro.titlepage.verso.mode">
  630.   <!-- if an element isn't found in this mode, -->
  631.   <!-- try the generic titlepage.mode -->
  632.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  633. </xsl:template>
  634.  
  635. <xsl:template match="title" mode="partintro.titlepage.recto.auto.mode">
  636. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style" text-align="center" font-size="24.8832pt" font-weight="bold" space-before="1em" font-family="{$title.font.family}">
  637. <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  638. </fo:block>
  639. </xsl:template>
  640.  
  641. <xsl:template match="subtitle" mode="partintro.titlepage.recto.auto.mode">
  642. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style" text-align="center" font-size="14.4pt" font-weight="bold" font-style="italic" font-family="{$title.font.family}">
  643. <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  644. </fo:block>
  645. </xsl:template>
  646.  
  647. <xsl:template match="corpauthor" mode="partintro.titlepage.recto.auto.mode">
  648. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
  649. <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  650. </fo:block>
  651. </xsl:template>
  652.  
  653. <xsl:template match="authorgroup" mode="partintro.titlepage.recto.auto.mode">
  654. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
  655. <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  656. </fo:block>
  657. </xsl:template>
  658.  
  659. <xsl:template match="author" mode="partintro.titlepage.recto.auto.mode">
  660. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
  661. <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  662. </fo:block>
  663. </xsl:template>
  664.  
  665. <xsl:template match="othercredit" mode="partintro.titlepage.recto.auto.mode">
  666. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
  667. <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  668. </fo:block>
  669. </xsl:template>
  670.  
  671. <xsl:template match="releaseinfo" mode="partintro.titlepage.recto.auto.mode">
  672. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
  673. <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  674. </fo:block>
  675. </xsl:template>
  676.  
  677. <xsl:template match="copyright" mode="partintro.titlepage.recto.auto.mode">
  678. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
  679. <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  680. </fo:block>
  681. </xsl:template>
  682.  
  683. <xsl:template match="legalnotice" mode="partintro.titlepage.recto.auto.mode">
  684. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
  685. <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  686. </fo:block>
  687. </xsl:template>
  688.  
  689. <xsl:template match="pubdate" mode="partintro.titlepage.recto.auto.mode">
  690. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
  691. <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  692. </fo:block>
  693. </xsl:template>
  694.  
  695. <xsl:template match="revision" mode="partintro.titlepage.recto.auto.mode">
  696. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
  697. <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  698. </fo:block>
  699. </xsl:template>
  700.  
  701. <xsl:template match="revhistory" mode="partintro.titlepage.recto.auto.mode">
  702. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
  703. <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  704. </fo:block>
  705. </xsl:template>
  706.  
  707. <xsl:template match="abstract" mode="partintro.titlepage.recto.auto.mode">
  708. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="partintro.titlepage.recto.style">
  709. <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  710. </fo:block>
  711. </xsl:template>
  712.  
  713. <xsl:template name="reference.titlepage.recto">
  714.   <xsl:choose>
  715.     <xsl:when test="referenceinfo/title">
  716.       <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/title"/>
  717.     </xsl:when>
  718.     <xsl:when test="docinfo/title">
  719.       <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/title"/>
  720.     </xsl:when>
  721.     <xsl:when test="title">
  722.       <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="title"/>
  723.     </xsl:when>
  724.   </xsl:choose>
  725.  
  726.   <xsl:choose>
  727.     <xsl:when test="referenceinfo/subtitle">
  728.       <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/subtitle"/>
  729.     </xsl:when>
  730.     <xsl:when test="docinfo/subtitle">
  731.       <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
  732.     </xsl:when>
  733.     <xsl:when test="subtitle">
  734.       <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="subtitle"/>
  735.     </xsl:when>
  736.   </xsl:choose>
  737.  
  738.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/corpauthor"/>
  739.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
  740.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/authorgroup"/>
  741.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
  742.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/author"/>
  743.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/author"/>
  744.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/othercredit"/>
  745.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
  746.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/releaseinfo"/>
  747.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
  748.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/copyright"/>
  749.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/copyright"/>
  750.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/legalnotice"/>
  751.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
  752.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/pubdate"/>
  753.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
  754.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revision"/>
  755.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revision"/>
  756.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revhistory"/>
  757.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
  758.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/abstract"/>
  759.   <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/abstract"/>
  760. </xsl:template>
  761.  
  762. <xsl:template name="reference.titlepage.verso">
  763. </xsl:template>
  764.  
  765. <xsl:template name="reference.titlepage.separator">
  766. </xsl:template>
  767.  
  768. <xsl:template name="reference.titlepage.before.recto">
  769. </xsl:template>
  770.  
  771. <xsl:template name="reference.titlepage.before.verso">
  772. </xsl:template>
  773.  
  774. <xsl:template name="reference.titlepage">
  775.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  776.     <xsl:call-template name="reference.titlepage.before.recto"/>
  777.     <xsl:call-template name="reference.titlepage.recto"/>
  778.     <xsl:call-template name="reference.titlepage.before.verso"/>
  779.     <xsl:call-template name="reference.titlepage.verso"/>
  780.     <xsl:call-template name="reference.titlepage.separator"/>
  781.   </fo:block>
  782. </xsl:template>
  783.  
  784. <xsl:template match="*" mode="reference.titlepage.recto.mode">
  785.   <!-- if an element isn't found in this mode, -->
  786.   <!-- try the generic titlepage.mode -->
  787.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  788. </xsl:template>
  789.  
  790. <xsl:template match="*" mode="reference.titlepage.verso.mode">
  791.   <!-- if an element isn't found in this mode, -->
  792.   <!-- try the generic titlepage.mode -->
  793.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  794. </xsl:template>
  795.  
  796. <xsl:template match="title" mode="reference.titlepage.recto.auto.mode">
  797. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="18.6624pt" font-weight="bold" font-family="{$title.font.family}">
  798. <xsl:call-template name="division.title">
  799. <xsl:with-param name="node" select="ancestor-or-self::reference[1]"/>
  800. </xsl:call-template>
  801. </fo:block>
  802. </xsl:template>
  803.  
  804. <xsl:template match="subtitle" mode="reference.titlepage.recto.auto.mode">
  805. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style" font-family="{$title.font.family}" text-align="center">
  806. <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  807. </fo:block>
  808. </xsl:template>
  809.  
  810. <xsl:template match="corpauthor" mode="reference.titlepage.recto.auto.mode">
  811. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
  812. <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  813. </fo:block>
  814. </xsl:template>
  815.  
  816. <xsl:template match="authorgroup" mode="reference.titlepage.recto.auto.mode">
  817. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
  818. <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  819. </fo:block>
  820. </xsl:template>
  821.  
  822. <xsl:template match="author" mode="reference.titlepage.recto.auto.mode">
  823. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
  824. <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  825. </fo:block>
  826. </xsl:template>
  827.  
  828. <xsl:template match="othercredit" mode="reference.titlepage.recto.auto.mode">
  829. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
  830. <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  831. </fo:block>
  832. </xsl:template>
  833.  
  834. <xsl:template match="releaseinfo" mode="reference.titlepage.recto.auto.mode">
  835. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
  836. <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  837. </fo:block>
  838. </xsl:template>
  839.  
  840. <xsl:template match="copyright" mode="reference.titlepage.recto.auto.mode">
  841. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
  842. <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  843. </fo:block>
  844. </xsl:template>
  845.  
  846. <xsl:template match="legalnotice" mode="reference.titlepage.recto.auto.mode">
  847. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
  848. <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  849. </fo:block>
  850. </xsl:template>
  851.  
  852. <xsl:template match="pubdate" mode="reference.titlepage.recto.auto.mode">
  853. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
  854. <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  855. </fo:block>
  856. </xsl:template>
  857.  
  858. <xsl:template match="revision" mode="reference.titlepage.recto.auto.mode">
  859. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
  860. <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  861. </fo:block>
  862. </xsl:template>
  863.  
  864. <xsl:template match="revhistory" mode="reference.titlepage.recto.auto.mode">
  865. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
  866. <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  867. </fo:block>
  868. </xsl:template>
  869.  
  870. <xsl:template match="abstract" mode="reference.titlepage.recto.auto.mode">
  871. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="reference.titlepage.recto.style">
  872. <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  873. </fo:block>
  874. </xsl:template>
  875.  
  876. <xsl:template name="refsynopsisdiv.titlepage.recto">
  877.   <xsl:choose>
  878.     <xsl:when test="refsynopsisdivinfo/title">
  879.       <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="refsynopsisdivinfo/title"/>
  880.     </xsl:when>
  881.     <xsl:when test="docinfo/title">
  882.       <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="docinfo/title"/>
  883.     </xsl:when>
  884.     <xsl:when test="title">
  885.       <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="title"/>
  886.     </xsl:when>
  887.   </xsl:choose>
  888.  
  889. </xsl:template>
  890.  
  891. <xsl:template name="refsynopsisdiv.titlepage.verso">
  892. </xsl:template>
  893.  
  894. <xsl:template name="refsynopsisdiv.titlepage.separator">
  895. </xsl:template>
  896.  
  897. <xsl:template name="refsynopsisdiv.titlepage.before.recto">
  898. </xsl:template>
  899.  
  900. <xsl:template name="refsynopsisdiv.titlepage.before.verso">
  901. </xsl:template>
  902.  
  903. <xsl:template name="refsynopsisdiv.titlepage">
  904.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  905.     <xsl:call-template name="refsynopsisdiv.titlepage.before.recto"/>
  906.     <xsl:call-template name="refsynopsisdiv.titlepage.recto"/>
  907.     <xsl:call-template name="refsynopsisdiv.titlepage.before.verso"/>
  908.     <xsl:call-template name="refsynopsisdiv.titlepage.verso"/>
  909.     <xsl:call-template name="refsynopsisdiv.titlepage.separator"/>
  910.   </fo:block>
  911. </xsl:template>
  912.  
  913. <xsl:template match="*" mode="refsynopsisdiv.titlepage.recto.mode">
  914.   <!-- if an element isn't found in this mode, -->
  915.   <!-- try the generic titlepage.mode -->
  916.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  917. </xsl:template>
  918.  
  919. <xsl:template match="*" mode="refsynopsisdiv.titlepage.verso.mode">
  920.   <!-- if an element isn't found in this mode, -->
  921.   <!-- try the generic titlepage.mode -->
  922.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  923. </xsl:template>
  924.  
  925. <xsl:template match="title" mode="refsynopsisdiv.titlepage.recto.auto.mode">
  926. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsynopsisdiv.titlepage.recto.style" font-family="{$title.font.family}">
  927. <xsl:apply-templates select="." mode="refsynopsisdiv.titlepage.recto.mode"/>
  928. </fo:block>
  929. </xsl:template>
  930.  
  931. <xsl:template name="refsection.titlepage.recto">
  932.   <xsl:choose>
  933.     <xsl:when test="refsectioninfo/title">
  934.       <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="refsectioninfo/title"/>
  935.     </xsl:when>
  936.     <xsl:when test="docinfo/title">
  937.       <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="docinfo/title"/>
  938.     </xsl:when>
  939.     <xsl:when test="title">
  940.       <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="title"/>
  941.     </xsl:when>
  942.   </xsl:choose>
  943.  
  944. </xsl:template>
  945.  
  946. <xsl:template name="refsection.titlepage.verso">
  947. </xsl:template>
  948.  
  949. <xsl:template name="refsection.titlepage.separator">
  950. </xsl:template>
  951.  
  952. <xsl:template name="refsection.titlepage.before.recto">
  953. </xsl:template>
  954.  
  955. <xsl:template name="refsection.titlepage.before.verso">
  956. </xsl:template>
  957.  
  958. <xsl:template name="refsection.titlepage">
  959.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  960.     <xsl:call-template name="refsection.titlepage.before.recto"/>
  961.     <xsl:call-template name="refsection.titlepage.recto"/>
  962.     <xsl:call-template name="refsection.titlepage.before.verso"/>
  963.     <xsl:call-template name="refsection.titlepage.verso"/>
  964.     <xsl:call-template name="refsection.titlepage.separator"/>
  965.   </fo:block>
  966. </xsl:template>
  967.  
  968. <xsl:template match="*" mode="refsection.titlepage.recto.mode">
  969.   <!-- if an element isn't found in this mode, -->
  970.   <!-- try the generic titlepage.mode -->
  971.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  972. </xsl:template>
  973.  
  974. <xsl:template match="*" mode="refsection.titlepage.verso.mode">
  975.   <!-- if an element isn't found in this mode, -->
  976.   <!-- try the generic titlepage.mode -->
  977.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  978. </xsl:template>
  979.  
  980. <xsl:template match="title" mode="refsection.titlepage.recto.auto.mode">
  981. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsection.titlepage.recto.style" font-family="{$title.font.family}">
  982. <xsl:apply-templates select="." mode="refsection.titlepage.recto.mode"/>
  983. </fo:block>
  984. </xsl:template>
  985.  
  986. <xsl:template name="refsect1.titlepage.recto">
  987.   <xsl:choose>
  988.     <xsl:when test="refsect1info/title">
  989.       <xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="refsect1info/title"/>
  990.     </xsl:when>
  991.     <xsl:when test="docinfo/title">
  992.       <xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="docinfo/title"/>
  993.     </xsl:when>
  994.     <xsl:when test="title">
  995.       <xsl:apply-templates mode="refsect1.titlepage.recto.auto.mode" select="title"/>
  996.     </xsl:when>
  997.   </xsl:choose>
  998.  
  999. </xsl:template>
  1000.  
  1001. <xsl:template name="refsect1.titlepage.verso">
  1002. </xsl:template>
  1003.  
  1004. <xsl:template name="refsect1.titlepage.separator">
  1005. </xsl:template>
  1006.  
  1007. <xsl:template name="refsect1.titlepage.before.recto">
  1008. </xsl:template>
  1009.  
  1010. <xsl:template name="refsect1.titlepage.before.verso">
  1011. </xsl:template>
  1012.  
  1013. <xsl:template name="refsect1.titlepage">
  1014.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  1015.     <xsl:call-template name="refsect1.titlepage.before.recto"/>
  1016.     <xsl:call-template name="refsect1.titlepage.recto"/>
  1017.     <xsl:call-template name="refsect1.titlepage.before.verso"/>
  1018.     <xsl:call-template name="refsect1.titlepage.verso"/>
  1019.     <xsl:call-template name="refsect1.titlepage.separator"/>
  1020.   </fo:block>
  1021. </xsl:template>
  1022.  
  1023. <xsl:template match="*" mode="refsect1.titlepage.recto.mode">
  1024.   <!-- if an element isn't found in this mode, -->
  1025.   <!-- try the generic titlepage.mode -->
  1026.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1027. </xsl:template>
  1028.  
  1029. <xsl:template match="*" mode="refsect1.titlepage.verso.mode">
  1030.   <!-- if an element isn't found in this mode, -->
  1031.   <!-- try the generic titlepage.mode -->
  1032.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1033. </xsl:template>
  1034.  
  1035. <xsl:template match="title" mode="refsect1.titlepage.recto.auto.mode">
  1036. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect1.titlepage.recto.style" font-family="{$title.font.family}">
  1037. <xsl:apply-templates select="." mode="refsect1.titlepage.recto.mode"/>
  1038. </fo:block>
  1039. </xsl:template>
  1040.  
  1041. <xsl:template name="refsect2.titlepage.recto">
  1042.   <xsl:choose>
  1043.     <xsl:when test="refsect2info/title">
  1044.       <xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="refsect2info/title"/>
  1045.     </xsl:when>
  1046.     <xsl:when test="docinfo/title">
  1047.       <xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="docinfo/title"/>
  1048.     </xsl:when>
  1049.     <xsl:when test="title">
  1050.       <xsl:apply-templates mode="refsect2.titlepage.recto.auto.mode" select="title"/>
  1051.     </xsl:when>
  1052.   </xsl:choose>
  1053.  
  1054. </xsl:template>
  1055.  
  1056. <xsl:template name="refsect2.titlepage.verso">
  1057. </xsl:template>
  1058.  
  1059. <xsl:template name="refsect2.titlepage.separator">
  1060. </xsl:template>
  1061.  
  1062. <xsl:template name="refsect2.titlepage.before.recto">
  1063. </xsl:template>
  1064.  
  1065. <xsl:template name="refsect2.titlepage.before.verso">
  1066. </xsl:template>
  1067.  
  1068. <xsl:template name="refsect2.titlepage">
  1069.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  1070.     <xsl:call-template name="refsect2.titlepage.before.recto"/>
  1071.     <xsl:call-template name="refsect2.titlepage.recto"/>
  1072.     <xsl:call-template name="refsect2.titlepage.before.verso"/>
  1073.     <xsl:call-template name="refsect2.titlepage.verso"/>
  1074.     <xsl:call-template name="refsect2.titlepage.separator"/>
  1075.   </fo:block>
  1076. </xsl:template>
  1077.  
  1078. <xsl:template match="*" mode="refsect2.titlepage.recto.mode">
  1079.   <!-- if an element isn't found in this mode, -->
  1080.   <!-- try the generic titlepage.mode -->
  1081.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1082. </xsl:template>
  1083.  
  1084. <xsl:template match="*" mode="refsect2.titlepage.verso.mode">
  1085.   <!-- if an element isn't found in this mode, -->
  1086.   <!-- try the generic titlepage.mode -->
  1087.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1088. </xsl:template>
  1089.  
  1090. <xsl:template match="title" mode="refsect2.titlepage.recto.auto.mode">
  1091. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect2.titlepage.recto.style" font-family="{$title.font.family}">
  1092. <xsl:apply-templates select="." mode="refsect2.titlepage.recto.mode"/>
  1093. </fo:block>
  1094. </xsl:template>
  1095.  
  1096. <xsl:template name="refsect3.titlepage.recto">
  1097.   <xsl:choose>
  1098.     <xsl:when test="refsect3info/title">
  1099.       <xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="refsect3info/title"/>
  1100.     </xsl:when>
  1101.     <xsl:when test="docinfo/title">
  1102.       <xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="docinfo/title"/>
  1103.     </xsl:when>
  1104.     <xsl:when test="title">
  1105.       <xsl:apply-templates mode="refsect3.titlepage.recto.auto.mode" select="title"/>
  1106.     </xsl:when>
  1107.   </xsl:choose>
  1108.  
  1109. </xsl:template>
  1110.  
  1111. <xsl:template name="refsect3.titlepage.verso">
  1112. </xsl:template>
  1113.  
  1114. <xsl:template name="refsect3.titlepage.separator">
  1115. </xsl:template>
  1116.  
  1117. <xsl:template name="refsect3.titlepage.before.recto">
  1118. </xsl:template>
  1119.  
  1120. <xsl:template name="refsect3.titlepage.before.verso">
  1121. </xsl:template>
  1122.  
  1123. <xsl:template name="refsect3.titlepage">
  1124.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  1125.     <xsl:call-template name="refsect3.titlepage.before.recto"/>
  1126.     <xsl:call-template name="refsect3.titlepage.recto"/>
  1127.     <xsl:call-template name="refsect3.titlepage.before.verso"/>
  1128.     <xsl:call-template name="refsect3.titlepage.verso"/>
  1129.     <xsl:call-template name="refsect3.titlepage.separator"/>
  1130.   </fo:block>
  1131. </xsl:template>
  1132.  
  1133. <xsl:template match="*" mode="refsect3.titlepage.recto.mode">
  1134.   <!-- if an element isn't found in this mode, -->
  1135.   <!-- try the generic titlepage.mode -->
  1136.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1137. </xsl:template>
  1138.  
  1139. <xsl:template match="*" mode="refsect3.titlepage.verso.mode">
  1140.   <!-- if an element isn't found in this mode, -->
  1141.   <!-- try the generic titlepage.mode -->
  1142.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1143. </xsl:template>
  1144.  
  1145. <xsl:template match="title" mode="refsect3.titlepage.recto.auto.mode">
  1146. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="refsect3.titlepage.recto.style" font-family="{$title.font.family}">
  1147. <xsl:apply-templates select="." mode="refsect3.titlepage.recto.mode"/>
  1148. </fo:block>
  1149. </xsl:template>
  1150.  
  1151. <xsl:template name="dedication.titlepage.recto">
  1152.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="dedication.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.font.family}" font-weight="bold">
  1153. <xsl:call-template name="component.title">
  1154. <xsl:with-param name="node" select="ancestor-or-self::dedication[1]"/>
  1155. </xsl:call-template></fo:block>
  1156.   <xsl:choose>
  1157.     <xsl:when test="dedicationinfo/subtitle">
  1158.       <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="dedicationinfo/subtitle"/>
  1159.     </xsl:when>
  1160.     <xsl:when test="docinfo/subtitle">
  1161.       <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
  1162.     </xsl:when>
  1163.     <xsl:when test="subtitle">
  1164.       <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="subtitle"/>
  1165.     </xsl:when>
  1166.   </xsl:choose>
  1167.  
  1168. </xsl:template>
  1169.  
  1170. <xsl:template name="dedication.titlepage.verso">
  1171. </xsl:template>
  1172.  
  1173. <xsl:template name="dedication.titlepage.separator">
  1174. </xsl:template>
  1175.  
  1176. <xsl:template name="dedication.titlepage.before.recto">
  1177. </xsl:template>
  1178.  
  1179. <xsl:template name="dedication.titlepage.before.verso">
  1180. </xsl:template>
  1181.  
  1182. <xsl:template name="dedication.titlepage">
  1183.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  1184.     <xsl:call-template name="dedication.titlepage.before.recto"/>
  1185.     <xsl:call-template name="dedication.titlepage.recto"/>
  1186.     <xsl:call-template name="dedication.titlepage.before.verso"/>
  1187.     <xsl:call-template name="dedication.titlepage.verso"/>
  1188.     <xsl:call-template name="dedication.titlepage.separator"/>
  1189.   </fo:block>
  1190. </xsl:template>
  1191.  
  1192. <xsl:template match="*" mode="dedication.titlepage.recto.mode">
  1193.   <!-- if an element isn't found in this mode, -->
  1194.   <!-- try the generic titlepage.mode -->
  1195.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1196. </xsl:template>
  1197.  
  1198. <xsl:template match="*" mode="dedication.titlepage.verso.mode">
  1199.   <!-- if an element isn't found in this mode, -->
  1200.   <!-- try the generic titlepage.mode -->
  1201.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1202. </xsl:template>
  1203.  
  1204. <xsl:template match="subtitle" mode="dedication.titlepage.recto.auto.mode">
  1205. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="dedication.titlepage.recto.style" font-family="{$title.font.family}">
  1206. <xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/>
  1207. </fo:block>
  1208. </xsl:template>
  1209.  
  1210. <xsl:template name="preface.titlepage.recto">
  1211.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.font.family}" font-weight="bold">
  1212. <xsl:call-template name="component.title">
  1213. <xsl:with-param name="node" select="ancestor-or-self::preface[1]"/>
  1214. </xsl:call-template></fo:block>
  1215.   <xsl:choose>
  1216.     <xsl:when test="prefaceinfo/subtitle">
  1217.       <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/subtitle"/>
  1218.     </xsl:when>
  1219.     <xsl:when test="docinfo/subtitle">
  1220.       <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
  1221.     </xsl:when>
  1222.     <xsl:when test="subtitle">
  1223.       <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="subtitle"/>
  1224.     </xsl:when>
  1225.   </xsl:choose>
  1226.  
  1227.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/corpauthor"/>
  1228.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
  1229.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/authorgroup"/>
  1230.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
  1231.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/author"/>
  1232.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/author"/>
  1233.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/othercredit"/>
  1234.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
  1235.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/releaseinfo"/>
  1236.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
  1237.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/copyright"/>
  1238.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/copyright"/>
  1239.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/legalnotice"/>
  1240.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
  1241.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/pubdate"/>
  1242.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
  1243.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revision"/>
  1244.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revision"/>
  1245.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revhistory"/>
  1246.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
  1247.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/abstract"/>
  1248.   <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/abstract"/>
  1249. </xsl:template>
  1250.  
  1251. <xsl:template name="preface.titlepage.verso">
  1252. </xsl:template>
  1253.  
  1254. <xsl:template name="preface.titlepage.separator">
  1255. </xsl:template>
  1256.  
  1257. <xsl:template name="preface.titlepage.before.recto">
  1258. </xsl:template>
  1259.  
  1260. <xsl:template name="preface.titlepage.before.verso">
  1261. </xsl:template>
  1262.  
  1263. <xsl:template name="preface.titlepage">
  1264.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  1265.     <xsl:call-template name="preface.titlepage.before.recto"/>
  1266.     <xsl:call-template name="preface.titlepage.recto"/>
  1267.     <xsl:call-template name="preface.titlepage.before.verso"/>
  1268.     <xsl:call-template name="preface.titlepage.verso"/>
  1269.     <xsl:call-template name="preface.titlepage.separator"/>
  1270.   </fo:block>
  1271. </xsl:template>
  1272.  
  1273. <xsl:template match="*" mode="preface.titlepage.recto.mode">
  1274.   <!-- if an element isn't found in this mode, -->
  1275.   <!-- try the generic titlepage.mode -->
  1276.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1277. </xsl:template>
  1278.  
  1279. <xsl:template match="*" mode="preface.titlepage.verso.mode">
  1280.   <!-- if an element isn't found in this mode, -->
  1281.   <!-- try the generic titlepage.mode -->
  1282.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1283. </xsl:template>
  1284.  
  1285. <xsl:template match="subtitle" mode="preface.titlepage.recto.auto.mode">
  1286. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style" font-family="{$title.font.family}">
  1287. <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  1288. </fo:block>
  1289. </xsl:template>
  1290.  
  1291. <xsl:template match="corpauthor" mode="preface.titlepage.recto.auto.mode">
  1292. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
  1293. <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  1294. </fo:block>
  1295. </xsl:template>
  1296.  
  1297. <xsl:template match="authorgroup" mode="preface.titlepage.recto.auto.mode">
  1298. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
  1299. <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  1300. </fo:block>
  1301. </xsl:template>
  1302.  
  1303. <xsl:template match="author" mode="preface.titlepage.recto.auto.mode">
  1304. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
  1305. <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  1306. </fo:block>
  1307. </xsl:template>
  1308.  
  1309. <xsl:template match="othercredit" mode="preface.titlepage.recto.auto.mode">
  1310. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
  1311. <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  1312. </fo:block>
  1313. </xsl:template>
  1314.  
  1315. <xsl:template match="releaseinfo" mode="preface.titlepage.recto.auto.mode">
  1316. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
  1317. <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  1318. </fo:block>
  1319. </xsl:template>
  1320.  
  1321. <xsl:template match="copyright" mode="preface.titlepage.recto.auto.mode">
  1322. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
  1323. <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  1324. </fo:block>
  1325. </xsl:template>
  1326.  
  1327. <xsl:template match="legalnotice" mode="preface.titlepage.recto.auto.mode">
  1328. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
  1329. <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  1330. </fo:block>
  1331. </xsl:template>
  1332.  
  1333. <xsl:template match="pubdate" mode="preface.titlepage.recto.auto.mode">
  1334. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
  1335. <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  1336. </fo:block>
  1337. </xsl:template>
  1338.  
  1339. <xsl:template match="revision" mode="preface.titlepage.recto.auto.mode">
  1340. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
  1341. <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  1342. </fo:block>
  1343. </xsl:template>
  1344.  
  1345. <xsl:template match="revhistory" mode="preface.titlepage.recto.auto.mode">
  1346. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
  1347. <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  1348. </fo:block>
  1349. </xsl:template>
  1350.  
  1351. <xsl:template match="abstract" mode="preface.titlepage.recto.auto.mode">
  1352. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="preface.titlepage.recto.style">
  1353. <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  1354. </fo:block>
  1355. </xsl:template>
  1356.  
  1357. <xsl:template name="chapter.titlepage.recto">
  1358.   <xsl:choose>
  1359.     <xsl:when test="chapterinfo/title">
  1360.       <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/title"/>
  1361.     </xsl:when>
  1362.     <xsl:when test="docinfo/title">
  1363.       <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/title"/>
  1364.     </xsl:when>
  1365.     <xsl:when test="title">
  1366.       <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="title"/>
  1367.     </xsl:when>
  1368.   </xsl:choose>
  1369.  
  1370.   <xsl:choose>
  1371.     <xsl:when test="chapterinfo/subtitle">
  1372.       <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/subtitle"/>
  1373.     </xsl:when>
  1374.     <xsl:when test="docinfo/subtitle">
  1375.       <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
  1376.     </xsl:when>
  1377.     <xsl:when test="subtitle">
  1378.       <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="subtitle"/>
  1379.     </xsl:when>
  1380.   </xsl:choose>
  1381.  
  1382.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/corpauthor"/>
  1383.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
  1384.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/authorgroup"/>
  1385.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
  1386.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/author"/>
  1387.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/author"/>
  1388.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/othercredit"/>
  1389.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
  1390.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/releaseinfo"/>
  1391.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
  1392.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/copyright"/>
  1393.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/copyright"/>
  1394.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/legalnotice"/>
  1395.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
  1396.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/pubdate"/>
  1397.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
  1398.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revision"/>
  1399.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revision"/>
  1400.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revhistory"/>
  1401.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
  1402.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/abstract"/>
  1403.   <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/abstract"/>
  1404. </xsl:template>
  1405.  
  1406. <xsl:template name="chapter.titlepage.verso">
  1407. </xsl:template>
  1408.  
  1409. <xsl:template name="chapter.titlepage.separator">
  1410. </xsl:template>
  1411.  
  1412. <xsl:template name="chapter.titlepage.before.recto">
  1413. </xsl:template>
  1414.  
  1415. <xsl:template name="chapter.titlepage.before.verso">
  1416. </xsl:template>
  1417.  
  1418. <xsl:template name="chapter.titlepage">
  1419.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  1420.     <xsl:call-template name="chapter.titlepage.before.recto"/>
  1421.     <xsl:call-template name="chapter.titlepage.recto"/>
  1422.     <xsl:call-template name="chapter.titlepage.before.verso"/>
  1423.     <xsl:call-template name="chapter.titlepage.verso"/>
  1424.     <xsl:call-template name="chapter.titlepage.separator"/>
  1425.   </fo:block>
  1426. </xsl:template>
  1427.  
  1428. <xsl:template match="*" mode="chapter.titlepage.recto.mode">
  1429.   <!-- if an element isn't found in this mode, -->
  1430.   <!-- try the generic titlepage.mode -->
  1431.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1432. </xsl:template>
  1433.  
  1434. <xsl:template match="*" mode="chapter.titlepage.verso.mode">
  1435.   <!-- if an element isn't found in this mode, -->
  1436.   <!-- try the generic titlepage.mode -->
  1437.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1438. </xsl:template>
  1439.  
  1440. <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
  1441. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-weight="bold" font-family="{$title.font.family}">
  1442. <xsl:call-template name="component.title">
  1443. <xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/>
  1444. </xsl:call-template>
  1445. </fo:block>
  1446. </xsl:template>
  1447.  
  1448. <xsl:template match="subtitle" mode="chapter.titlepage.recto.auto.mode">
  1449. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style" space-before="0.5em" margin-left="{$title.margin.left}" font-style="italic" font-size="14.4pt" font-weight="bold" font-family="{$title.font.family}">
  1450. <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  1451. </fo:block>
  1452. </xsl:template>
  1453.  
  1454. <xsl:template match="corpauthor" mode="chapter.titlepage.recto.auto.mode">
  1455. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
  1456. <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  1457. </fo:block>
  1458. </xsl:template>
  1459.  
  1460. <xsl:template match="authorgroup" mode="chapter.titlepage.recto.auto.mode">
  1461. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
  1462. <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  1463. </fo:block>
  1464. </xsl:template>
  1465.  
  1466. <xsl:template match="author" mode="chapter.titlepage.recto.auto.mode">
  1467. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
  1468. <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  1469. </fo:block>
  1470. </xsl:template>
  1471.  
  1472. <xsl:template match="othercredit" mode="chapter.titlepage.recto.auto.mode">
  1473. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
  1474. <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  1475. </fo:block>
  1476. </xsl:template>
  1477.  
  1478. <xsl:template match="releaseinfo" mode="chapter.titlepage.recto.auto.mode">
  1479. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
  1480. <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  1481. </fo:block>
  1482. </xsl:template>
  1483.  
  1484. <xsl:template match="copyright" mode="chapter.titlepage.recto.auto.mode">
  1485. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
  1486. <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  1487. </fo:block>
  1488. </xsl:template>
  1489.  
  1490. <xsl:template match="legalnotice" mode="chapter.titlepage.recto.auto.mode">
  1491. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
  1492. <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  1493. </fo:block>
  1494. </xsl:template>
  1495.  
  1496. <xsl:template match="pubdate" mode="chapter.titlepage.recto.auto.mode">
  1497. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
  1498. <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  1499. </fo:block>
  1500. </xsl:template>
  1501.  
  1502. <xsl:template match="revision" mode="chapter.titlepage.recto.auto.mode">
  1503. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
  1504. <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  1505. </fo:block>
  1506. </xsl:template>
  1507.  
  1508. <xsl:template match="revhistory" mode="chapter.titlepage.recto.auto.mode">
  1509. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
  1510. <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  1511. </fo:block>
  1512. </xsl:template>
  1513.  
  1514. <xsl:template match="abstract" mode="chapter.titlepage.recto.auto.mode">
  1515. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style">
  1516. <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  1517. </fo:block>
  1518. </xsl:template>
  1519.  
  1520. <xsl:template name="appendix.titlepage.recto">
  1521.   <xsl:choose>
  1522.     <xsl:when test="appendixinfo/title">
  1523.       <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/title"/>
  1524.     </xsl:when>
  1525.     <xsl:when test="docinfo/title">
  1526.       <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/title"/>
  1527.     </xsl:when>
  1528.     <xsl:when test="title">
  1529.       <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="title"/>
  1530.     </xsl:when>
  1531.   </xsl:choose>
  1532.  
  1533.   <xsl:choose>
  1534.     <xsl:when test="appendixinfo/subtitle">
  1535.       <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/subtitle"/>
  1536.     </xsl:when>
  1537.     <xsl:when test="docinfo/subtitle">
  1538.       <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
  1539.     </xsl:when>
  1540.     <xsl:when test="subtitle">
  1541.       <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="subtitle"/>
  1542.     </xsl:when>
  1543.   </xsl:choose>
  1544.  
  1545.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/corpauthor"/>
  1546.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
  1547.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/authorgroup"/>
  1548.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
  1549.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/author"/>
  1550.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/author"/>
  1551.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/othercredit"/>
  1552.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
  1553.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/releaseinfo"/>
  1554.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
  1555.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/copyright"/>
  1556.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/copyright"/>
  1557.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/legalnotice"/>
  1558.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
  1559.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/pubdate"/>
  1560.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
  1561.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revision"/>
  1562.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revision"/>
  1563.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revhistory"/>
  1564.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
  1565.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/abstract"/>
  1566.   <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/abstract"/>
  1567. </xsl:template>
  1568.  
  1569. <xsl:template name="appendix.titlepage.verso">
  1570. </xsl:template>
  1571.  
  1572. <xsl:template name="appendix.titlepage.separator">
  1573. </xsl:template>
  1574.  
  1575. <xsl:template name="appendix.titlepage.before.recto">
  1576. </xsl:template>
  1577.  
  1578. <xsl:template name="appendix.titlepage.before.verso">
  1579. </xsl:template>
  1580.  
  1581. <xsl:template name="appendix.titlepage">
  1582.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  1583.     <xsl:call-template name="appendix.titlepage.before.recto"/>
  1584.     <xsl:call-template name="appendix.titlepage.recto"/>
  1585.     <xsl:call-template name="appendix.titlepage.before.verso"/>
  1586.     <xsl:call-template name="appendix.titlepage.verso"/>
  1587.     <xsl:call-template name="appendix.titlepage.separator"/>
  1588.   </fo:block>
  1589. </xsl:template>
  1590.  
  1591. <xsl:template match="*" mode="appendix.titlepage.recto.mode">
  1592.   <!-- if an element isn't found in this mode, -->
  1593.   <!-- try the generic titlepage.mode -->
  1594.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1595. </xsl:template>
  1596.  
  1597. <xsl:template match="*" mode="appendix.titlepage.verso.mode">
  1598.   <!-- if an element isn't found in this mode, -->
  1599.   <!-- try the generic titlepage.mode -->
  1600.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1601. </xsl:template>
  1602.  
  1603. <xsl:template match="title" mode="appendix.titlepage.recto.auto.mode">
  1604. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-weight="bold" font-family="{$title.font.family}">
  1605. <xsl:call-template name="component.title">
  1606. <xsl:with-param name="node" select="ancestor-or-self::appendix[1]"/>
  1607. </xsl:call-template>
  1608. </fo:block>
  1609. </xsl:template>
  1610.  
  1611. <xsl:template match="subtitle" mode="appendix.titlepage.recto.auto.mode">
  1612. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style" font-family="{$title.font.family}">
  1613. <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  1614. </fo:block>
  1615. </xsl:template>
  1616.  
  1617. <xsl:template match="corpauthor" mode="appendix.titlepage.recto.auto.mode">
  1618. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
  1619. <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  1620. </fo:block>
  1621. </xsl:template>
  1622.  
  1623. <xsl:template match="authorgroup" mode="appendix.titlepage.recto.auto.mode">
  1624. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
  1625. <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  1626. </fo:block>
  1627. </xsl:template>
  1628.  
  1629. <xsl:template match="author" mode="appendix.titlepage.recto.auto.mode">
  1630. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
  1631. <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  1632. </fo:block>
  1633. </xsl:template>
  1634.  
  1635. <xsl:template match="othercredit" mode="appendix.titlepage.recto.auto.mode">
  1636. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
  1637. <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  1638. </fo:block>
  1639. </xsl:template>
  1640.  
  1641. <xsl:template match="releaseinfo" mode="appendix.titlepage.recto.auto.mode">
  1642. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
  1643. <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  1644. </fo:block>
  1645. </xsl:template>
  1646.  
  1647. <xsl:template match="copyright" mode="appendix.titlepage.recto.auto.mode">
  1648. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
  1649. <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  1650. </fo:block>
  1651. </xsl:template>
  1652.  
  1653. <xsl:template match="legalnotice" mode="appendix.titlepage.recto.auto.mode">
  1654. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
  1655. <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  1656. </fo:block>
  1657. </xsl:template>
  1658.  
  1659. <xsl:template match="pubdate" mode="appendix.titlepage.recto.auto.mode">
  1660. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
  1661. <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  1662. </fo:block>
  1663. </xsl:template>
  1664.  
  1665. <xsl:template match="revision" mode="appendix.titlepage.recto.auto.mode">
  1666. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
  1667. <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  1668. </fo:block>
  1669. </xsl:template>
  1670.  
  1671. <xsl:template match="revhistory" mode="appendix.titlepage.recto.auto.mode">
  1672. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
  1673. <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  1674. </fo:block>
  1675. </xsl:template>
  1676.  
  1677. <xsl:template match="abstract" mode="appendix.titlepage.recto.auto.mode">
  1678. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="appendix.titlepage.recto.style">
  1679. <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  1680. </fo:block>
  1681. </xsl:template>
  1682.  
  1683. <xsl:template name="section.titlepage.recto">
  1684.   <xsl:choose>
  1685.     <xsl:when test="sectioninfo/title">
  1686.       <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/title"/>
  1687.     </xsl:when>
  1688.     <xsl:when test="title">
  1689.       <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="title"/>
  1690.     </xsl:when>
  1691.   </xsl:choose>
  1692.  
  1693.   <xsl:choose>
  1694.     <xsl:when test="sectioninfo/subtitle">
  1695.       <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/subtitle"/>
  1696.     </xsl:when>
  1697.     <xsl:when test="subtitle">
  1698.       <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="subtitle"/>
  1699.     </xsl:when>
  1700.   </xsl:choose>
  1701.  
  1702.   <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/corpauthor"/>
  1703.   <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/authorgroup"/>
  1704.   <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/author"/>
  1705.   <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/othercredit"/>
  1706.   <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/releaseinfo"/>
  1707.   <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/copyright"/>
  1708.   <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/legalnotice"/>
  1709.   <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/pubdate"/>
  1710.   <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revision"/>
  1711.   <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revhistory"/>
  1712.   <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/abstract"/>
  1713. </xsl:template>
  1714.  
  1715. <xsl:template name="section.titlepage.verso">
  1716. </xsl:template>
  1717.  
  1718. <xsl:template name="section.titlepage.separator">
  1719. </xsl:template>
  1720.  
  1721. <xsl:template name="section.titlepage.before.recto">
  1722. </xsl:template>
  1723.  
  1724. <xsl:template name="section.titlepage.before.verso">
  1725. </xsl:template>
  1726.  
  1727. <xsl:template name="section.titlepage">
  1728.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  1729.     <xsl:call-template name="section.titlepage.before.recto"/>
  1730.     <xsl:call-template name="section.titlepage.recto"/>
  1731.     <xsl:call-template name="section.titlepage.before.verso"/>
  1732.     <xsl:call-template name="section.titlepage.verso"/>
  1733.     <xsl:call-template name="section.titlepage.separator"/>
  1734.   </fo:block>
  1735. </xsl:template>
  1736.  
  1737. <xsl:template match="*" mode="section.titlepage.recto.mode">
  1738.   <!-- if an element isn't found in this mode, -->
  1739.   <!-- try the generic titlepage.mode -->
  1740.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1741. </xsl:template>
  1742.  
  1743. <xsl:template match="*" mode="section.titlepage.verso.mode">
  1744.   <!-- if an element isn't found in this mode, -->
  1745.   <!-- try the generic titlepage.mode -->
  1746.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1747. </xsl:template>
  1748.  
  1749. <xsl:template match="title" mode="section.titlepage.recto.auto.mode">
  1750. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}">
  1751. <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  1752. </fo:block>
  1753. </xsl:template>
  1754.  
  1755. <xsl:template match="subtitle" mode="section.titlepage.recto.auto.mode">
  1756. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style" font-family="{$title.font.family}">
  1757. <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  1758. </fo:block>
  1759. </xsl:template>
  1760.  
  1761. <xsl:template match="corpauthor" mode="section.titlepage.recto.auto.mode">
  1762. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
  1763. <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  1764. </fo:block>
  1765. </xsl:template>
  1766.  
  1767. <xsl:template match="authorgroup" mode="section.titlepage.recto.auto.mode">
  1768. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
  1769. <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  1770. </fo:block>
  1771. </xsl:template>
  1772.  
  1773. <xsl:template match="author" mode="section.titlepage.recto.auto.mode">
  1774. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
  1775. <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  1776. </fo:block>
  1777. </xsl:template>
  1778.  
  1779. <xsl:template match="othercredit" mode="section.titlepage.recto.auto.mode">
  1780. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
  1781. <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  1782. </fo:block>
  1783. </xsl:template>
  1784.  
  1785. <xsl:template match="releaseinfo" mode="section.titlepage.recto.auto.mode">
  1786. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
  1787. <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  1788. </fo:block>
  1789. </xsl:template>
  1790.  
  1791. <xsl:template match="copyright" mode="section.titlepage.recto.auto.mode">
  1792. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
  1793. <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  1794. </fo:block>
  1795. </xsl:template>
  1796.  
  1797. <xsl:template match="legalnotice" mode="section.titlepage.recto.auto.mode">
  1798. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
  1799. <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  1800. </fo:block>
  1801. </xsl:template>
  1802.  
  1803. <xsl:template match="pubdate" mode="section.titlepage.recto.auto.mode">
  1804. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
  1805. <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  1806. </fo:block>
  1807. </xsl:template>
  1808.  
  1809. <xsl:template match="revision" mode="section.titlepage.recto.auto.mode">
  1810. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
  1811. <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  1812. </fo:block>
  1813. </xsl:template>
  1814.  
  1815. <xsl:template match="revhistory" mode="section.titlepage.recto.auto.mode">
  1816. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
  1817. <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  1818. </fo:block>
  1819. </xsl:template>
  1820.  
  1821. <xsl:template match="abstract" mode="section.titlepage.recto.auto.mode">
  1822. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="section.titlepage.recto.style">
  1823. <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  1824. </fo:block>
  1825. </xsl:template>
  1826.  
  1827. <xsl:template name="sect1.titlepage.recto">
  1828.   <xsl:choose>
  1829.     <xsl:when test="sect1info/title">
  1830.       <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/title"/>
  1831.     </xsl:when>
  1832.     <xsl:when test="title">
  1833.       <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="title"/>
  1834.     </xsl:when>
  1835.   </xsl:choose>
  1836.  
  1837.   <xsl:choose>
  1838.     <xsl:when test="sect1info/subtitle">
  1839.       <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/subtitle"/>
  1840.     </xsl:when>
  1841.     <xsl:when test="subtitle">
  1842.       <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="subtitle"/>
  1843.     </xsl:when>
  1844.   </xsl:choose>
  1845.  
  1846.   <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/corpauthor"/>
  1847.   <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/authorgroup"/>
  1848.   <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/author"/>
  1849.   <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/othercredit"/>
  1850.   <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/releaseinfo"/>
  1851.   <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/copyright"/>
  1852.   <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/legalnotice"/>
  1853.   <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/pubdate"/>
  1854.   <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revision"/>
  1855.   <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revhistory"/>
  1856.   <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/abstract"/>
  1857. </xsl:template>
  1858.  
  1859. <xsl:template name="sect1.titlepage.verso">
  1860. </xsl:template>
  1861.  
  1862. <xsl:template name="sect1.titlepage.separator">
  1863. </xsl:template>
  1864.  
  1865. <xsl:template name="sect1.titlepage.before.recto">
  1866. </xsl:template>
  1867.  
  1868. <xsl:template name="sect1.titlepage.before.verso">
  1869. </xsl:template>
  1870.  
  1871. <xsl:template name="sect1.titlepage">
  1872.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  1873.     <xsl:call-template name="sect1.titlepage.before.recto"/>
  1874.     <xsl:call-template name="sect1.titlepage.recto"/>
  1875.     <xsl:call-template name="sect1.titlepage.before.verso"/>
  1876.     <xsl:call-template name="sect1.titlepage.verso"/>
  1877.     <xsl:call-template name="sect1.titlepage.separator"/>
  1878.   </fo:block>
  1879. </xsl:template>
  1880.  
  1881. <xsl:template match="*" mode="sect1.titlepage.recto.mode">
  1882.   <!-- if an element isn't found in this mode, -->
  1883.   <!-- try the generic titlepage.mode -->
  1884.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1885. </xsl:template>
  1886.  
  1887. <xsl:template match="*" mode="sect1.titlepage.verso.mode">
  1888.   <!-- if an element isn't found in this mode, -->
  1889.   <!-- try the generic titlepage.mode -->
  1890.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  1891. </xsl:template>
  1892.  
  1893. <xsl:template match="title" mode="sect1.titlepage.recto.auto.mode">
  1894. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}">
  1895. <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  1896. </fo:block>
  1897. </xsl:template>
  1898.  
  1899. <xsl:template match="subtitle" mode="sect1.titlepage.recto.auto.mode">
  1900. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style" font-family="{$title.font.family}">
  1901. <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  1902. </fo:block>
  1903. </xsl:template>
  1904.  
  1905. <xsl:template match="corpauthor" mode="sect1.titlepage.recto.auto.mode">
  1906. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
  1907. <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  1908. </fo:block>
  1909. </xsl:template>
  1910.  
  1911. <xsl:template match="authorgroup" mode="sect1.titlepage.recto.auto.mode">
  1912. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
  1913. <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  1914. </fo:block>
  1915. </xsl:template>
  1916.  
  1917. <xsl:template match="author" mode="sect1.titlepage.recto.auto.mode">
  1918. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
  1919. <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  1920. </fo:block>
  1921. </xsl:template>
  1922.  
  1923. <xsl:template match="othercredit" mode="sect1.titlepage.recto.auto.mode">
  1924. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
  1925. <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  1926. </fo:block>
  1927. </xsl:template>
  1928.  
  1929. <xsl:template match="releaseinfo" mode="sect1.titlepage.recto.auto.mode">
  1930. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
  1931. <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  1932. </fo:block>
  1933. </xsl:template>
  1934.  
  1935. <xsl:template match="copyright" mode="sect1.titlepage.recto.auto.mode">
  1936. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
  1937. <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  1938. </fo:block>
  1939. </xsl:template>
  1940.  
  1941. <xsl:template match="legalnotice" mode="sect1.titlepage.recto.auto.mode">
  1942. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
  1943. <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  1944. </fo:block>
  1945. </xsl:template>
  1946.  
  1947. <xsl:template match="pubdate" mode="sect1.titlepage.recto.auto.mode">
  1948. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
  1949. <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  1950. </fo:block>
  1951. </xsl:template>
  1952.  
  1953. <xsl:template match="revision" mode="sect1.titlepage.recto.auto.mode">
  1954. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
  1955. <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  1956. </fo:block>
  1957. </xsl:template>
  1958.  
  1959. <xsl:template match="revhistory" mode="sect1.titlepage.recto.auto.mode">
  1960. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
  1961. <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  1962. </fo:block>
  1963. </xsl:template>
  1964.  
  1965. <xsl:template match="abstract" mode="sect1.titlepage.recto.auto.mode">
  1966. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect1.titlepage.recto.style">
  1967. <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  1968. </fo:block>
  1969. </xsl:template>
  1970.  
  1971. <xsl:template name="sect2.titlepage.recto">
  1972.   <xsl:choose>
  1973.     <xsl:when test="sect2info/title">
  1974.       <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/title"/>
  1975.     </xsl:when>
  1976.     <xsl:when test="title">
  1977.       <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="title"/>
  1978.     </xsl:when>
  1979.   </xsl:choose>
  1980.  
  1981.   <xsl:choose>
  1982.     <xsl:when test="sect2info/subtitle">
  1983.       <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/subtitle"/>
  1984.     </xsl:when>
  1985.     <xsl:when test="subtitle">
  1986.       <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="subtitle"/>
  1987.     </xsl:when>
  1988.   </xsl:choose>
  1989.  
  1990.   <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/corpauthor"/>
  1991.   <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/authorgroup"/>
  1992.   <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/author"/>
  1993.   <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/othercredit"/>
  1994.   <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/releaseinfo"/>
  1995.   <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/copyright"/>
  1996.   <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/legalnotice"/>
  1997.   <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/pubdate"/>
  1998.   <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revision"/>
  1999.   <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revhistory"/>
  2000.   <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/abstract"/>
  2001. </xsl:template>
  2002.  
  2003. <xsl:template name="sect2.titlepage.verso">
  2004. </xsl:template>
  2005.  
  2006. <xsl:template name="sect2.titlepage.separator">
  2007. </xsl:template>
  2008.  
  2009. <xsl:template name="sect2.titlepage.before.recto">
  2010. </xsl:template>
  2011.  
  2012. <xsl:template name="sect2.titlepage.before.verso">
  2013. </xsl:template>
  2014.  
  2015. <xsl:template name="sect2.titlepage">
  2016.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  2017.     <xsl:call-template name="sect2.titlepage.before.recto"/>
  2018.     <xsl:call-template name="sect2.titlepage.recto"/>
  2019.     <xsl:call-template name="sect2.titlepage.before.verso"/>
  2020.     <xsl:call-template name="sect2.titlepage.verso"/>
  2021.     <xsl:call-template name="sect2.titlepage.separator"/>
  2022.   </fo:block>
  2023. </xsl:template>
  2024.  
  2025. <xsl:template match="*" mode="sect2.titlepage.recto.mode">
  2026.   <!-- if an element isn't found in this mode, -->
  2027.   <!-- try the generic titlepage.mode -->
  2028.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2029. </xsl:template>
  2030.  
  2031. <xsl:template match="*" mode="sect2.titlepage.verso.mode">
  2032.   <!-- if an element isn't found in this mode, -->
  2033.   <!-- try the generic titlepage.mode -->
  2034.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2035. </xsl:template>
  2036.  
  2037. <xsl:template match="title" mode="sect2.titlepage.recto.auto.mode">
  2038. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}">
  2039. <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  2040. </fo:block>
  2041. </xsl:template>
  2042.  
  2043. <xsl:template match="subtitle" mode="sect2.titlepage.recto.auto.mode">
  2044. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style" font-family="{$title.font.family}">
  2045. <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  2046. </fo:block>
  2047. </xsl:template>
  2048.  
  2049. <xsl:template match="corpauthor" mode="sect2.titlepage.recto.auto.mode">
  2050. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
  2051. <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  2052. </fo:block>
  2053. </xsl:template>
  2054.  
  2055. <xsl:template match="authorgroup" mode="sect2.titlepage.recto.auto.mode">
  2056. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
  2057. <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  2058. </fo:block>
  2059. </xsl:template>
  2060.  
  2061. <xsl:template match="author" mode="sect2.titlepage.recto.auto.mode">
  2062. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
  2063. <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  2064. </fo:block>
  2065. </xsl:template>
  2066.  
  2067. <xsl:template match="othercredit" mode="sect2.titlepage.recto.auto.mode">
  2068. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
  2069. <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  2070. </fo:block>
  2071. </xsl:template>
  2072.  
  2073. <xsl:template match="releaseinfo" mode="sect2.titlepage.recto.auto.mode">
  2074. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
  2075. <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  2076. </fo:block>
  2077. </xsl:template>
  2078.  
  2079. <xsl:template match="copyright" mode="sect2.titlepage.recto.auto.mode">
  2080. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
  2081. <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  2082. </fo:block>
  2083. </xsl:template>
  2084.  
  2085. <xsl:template match="legalnotice" mode="sect2.titlepage.recto.auto.mode">
  2086. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
  2087. <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  2088. </fo:block>
  2089. </xsl:template>
  2090.  
  2091. <xsl:template match="pubdate" mode="sect2.titlepage.recto.auto.mode">
  2092. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
  2093. <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  2094. </fo:block>
  2095. </xsl:template>
  2096.  
  2097. <xsl:template match="revision" mode="sect2.titlepage.recto.auto.mode">
  2098. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
  2099. <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  2100. </fo:block>
  2101. </xsl:template>
  2102.  
  2103. <xsl:template match="revhistory" mode="sect2.titlepage.recto.auto.mode">
  2104. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
  2105. <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  2106. </fo:block>
  2107. </xsl:template>
  2108.  
  2109. <xsl:template match="abstract" mode="sect2.titlepage.recto.auto.mode">
  2110. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect2.titlepage.recto.style">
  2111. <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  2112. </fo:block>
  2113. </xsl:template>
  2114.  
  2115. <xsl:template name="sect3.titlepage.recto">
  2116.   <xsl:choose>
  2117.     <xsl:when test="sect3info/title">
  2118.       <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/title"/>
  2119.     </xsl:when>
  2120.     <xsl:when test="title">
  2121.       <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="title"/>
  2122.     </xsl:when>
  2123.   </xsl:choose>
  2124.  
  2125.   <xsl:choose>
  2126.     <xsl:when test="sect3info/subtitle">
  2127.       <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/subtitle"/>
  2128.     </xsl:when>
  2129.     <xsl:when test="subtitle">
  2130.       <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="subtitle"/>
  2131.     </xsl:when>
  2132.   </xsl:choose>
  2133.  
  2134.   <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/corpauthor"/>
  2135.   <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/authorgroup"/>
  2136.   <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/author"/>
  2137.   <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/othercredit"/>
  2138.   <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/releaseinfo"/>
  2139.   <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/copyright"/>
  2140.   <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/legalnotice"/>
  2141.   <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/pubdate"/>
  2142.   <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revision"/>
  2143.   <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revhistory"/>
  2144.   <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/abstract"/>
  2145. </xsl:template>
  2146.  
  2147. <xsl:template name="sect3.titlepage.verso">
  2148. </xsl:template>
  2149.  
  2150. <xsl:template name="sect3.titlepage.separator">
  2151. </xsl:template>
  2152.  
  2153. <xsl:template name="sect3.titlepage.before.recto">
  2154. </xsl:template>
  2155.  
  2156. <xsl:template name="sect3.titlepage.before.verso">
  2157. </xsl:template>
  2158.  
  2159. <xsl:template name="sect3.titlepage">
  2160.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  2161.     <xsl:call-template name="sect3.titlepage.before.recto"/>
  2162.     <xsl:call-template name="sect3.titlepage.recto"/>
  2163.     <xsl:call-template name="sect3.titlepage.before.verso"/>
  2164.     <xsl:call-template name="sect3.titlepage.verso"/>
  2165.     <xsl:call-template name="sect3.titlepage.separator"/>
  2166.   </fo:block>
  2167. </xsl:template>
  2168.  
  2169. <xsl:template match="*" mode="sect3.titlepage.recto.mode">
  2170.   <!-- if an element isn't found in this mode, -->
  2171.   <!-- try the generic titlepage.mode -->
  2172.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2173. </xsl:template>
  2174.  
  2175. <xsl:template match="*" mode="sect3.titlepage.verso.mode">
  2176.   <!-- if an element isn't found in this mode, -->
  2177.   <!-- try the generic titlepage.mode -->
  2178.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2179. </xsl:template>
  2180.  
  2181. <xsl:template match="title" mode="sect3.titlepage.recto.auto.mode">
  2182. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}">
  2183. <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  2184. </fo:block>
  2185. </xsl:template>
  2186.  
  2187. <xsl:template match="subtitle" mode="sect3.titlepage.recto.auto.mode">
  2188. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style" font-family="{$title.font.family}">
  2189. <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  2190. </fo:block>
  2191. </xsl:template>
  2192.  
  2193. <xsl:template match="corpauthor" mode="sect3.titlepage.recto.auto.mode">
  2194. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
  2195. <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  2196. </fo:block>
  2197. </xsl:template>
  2198.  
  2199. <xsl:template match="authorgroup" mode="sect3.titlepage.recto.auto.mode">
  2200. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
  2201. <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  2202. </fo:block>
  2203. </xsl:template>
  2204.  
  2205. <xsl:template match="author" mode="sect3.titlepage.recto.auto.mode">
  2206. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
  2207. <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  2208. </fo:block>
  2209. </xsl:template>
  2210.  
  2211. <xsl:template match="othercredit" mode="sect3.titlepage.recto.auto.mode">
  2212. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
  2213. <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  2214. </fo:block>
  2215. </xsl:template>
  2216.  
  2217. <xsl:template match="releaseinfo" mode="sect3.titlepage.recto.auto.mode">
  2218. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
  2219. <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  2220. </fo:block>
  2221. </xsl:template>
  2222.  
  2223. <xsl:template match="copyright" mode="sect3.titlepage.recto.auto.mode">
  2224. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
  2225. <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  2226. </fo:block>
  2227. </xsl:template>
  2228.  
  2229. <xsl:template match="legalnotice" mode="sect3.titlepage.recto.auto.mode">
  2230. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
  2231. <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  2232. </fo:block>
  2233. </xsl:template>
  2234.  
  2235. <xsl:template match="pubdate" mode="sect3.titlepage.recto.auto.mode">
  2236. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
  2237. <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  2238. </fo:block>
  2239. </xsl:template>
  2240.  
  2241. <xsl:template match="revision" mode="sect3.titlepage.recto.auto.mode">
  2242. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
  2243. <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  2244. </fo:block>
  2245. </xsl:template>
  2246.  
  2247. <xsl:template match="revhistory" mode="sect3.titlepage.recto.auto.mode">
  2248. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
  2249. <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  2250. </fo:block>
  2251. </xsl:template>
  2252.  
  2253. <xsl:template match="abstract" mode="sect3.titlepage.recto.auto.mode">
  2254. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect3.titlepage.recto.style">
  2255. <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  2256. </fo:block>
  2257. </xsl:template>
  2258.  
  2259. <xsl:template name="sect4.titlepage.recto">
  2260.   <xsl:choose>
  2261.     <xsl:when test="sect4info/title">
  2262.       <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/title"/>
  2263.     </xsl:when>
  2264.     <xsl:when test="title">
  2265.       <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="title"/>
  2266.     </xsl:when>
  2267.   </xsl:choose>
  2268.  
  2269.   <xsl:choose>
  2270.     <xsl:when test="sect4info/subtitle">
  2271.       <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/subtitle"/>
  2272.     </xsl:when>
  2273.     <xsl:when test="subtitle">
  2274.       <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="subtitle"/>
  2275.     </xsl:when>
  2276.   </xsl:choose>
  2277.  
  2278.   <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/corpauthor"/>
  2279.   <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/authorgroup"/>
  2280.   <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/author"/>
  2281.   <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/othercredit"/>
  2282.   <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/releaseinfo"/>
  2283.   <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/copyright"/>
  2284.   <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/legalnotice"/>
  2285.   <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/pubdate"/>
  2286.   <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revision"/>
  2287.   <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revhistory"/>
  2288.   <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/abstract"/>
  2289. </xsl:template>
  2290.  
  2291. <xsl:template name="sect4.titlepage.verso">
  2292. </xsl:template>
  2293.  
  2294. <xsl:template name="sect4.titlepage.separator">
  2295. </xsl:template>
  2296.  
  2297. <xsl:template name="sect4.titlepage.before.recto">
  2298. </xsl:template>
  2299.  
  2300. <xsl:template name="sect4.titlepage.before.verso">
  2301. </xsl:template>
  2302.  
  2303. <xsl:template name="sect4.titlepage">
  2304.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  2305.     <xsl:call-template name="sect4.titlepage.before.recto"/>
  2306.     <xsl:call-template name="sect4.titlepage.recto"/>
  2307.     <xsl:call-template name="sect4.titlepage.before.verso"/>
  2308.     <xsl:call-template name="sect4.titlepage.verso"/>
  2309.     <xsl:call-template name="sect4.titlepage.separator"/>
  2310.   </fo:block>
  2311. </xsl:template>
  2312.  
  2313. <xsl:template match="*" mode="sect4.titlepage.recto.mode">
  2314.   <!-- if an element isn't found in this mode, -->
  2315.   <!-- try the generic titlepage.mode -->
  2316.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2317. </xsl:template>
  2318.  
  2319. <xsl:template match="*" mode="sect4.titlepage.verso.mode">
  2320.   <!-- if an element isn't found in this mode, -->
  2321.   <!-- try the generic titlepage.mode -->
  2322.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2323. </xsl:template>
  2324.  
  2325. <xsl:template match="title" mode="sect4.titlepage.recto.auto.mode">
  2326. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}">
  2327. <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  2328. </fo:block>
  2329. </xsl:template>
  2330.  
  2331. <xsl:template match="subtitle" mode="sect4.titlepage.recto.auto.mode">
  2332. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style" font-family="{$title.font.family}">
  2333. <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  2334. </fo:block>
  2335. </xsl:template>
  2336.  
  2337. <xsl:template match="corpauthor" mode="sect4.titlepage.recto.auto.mode">
  2338. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
  2339. <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  2340. </fo:block>
  2341. </xsl:template>
  2342.  
  2343. <xsl:template match="authorgroup" mode="sect4.titlepage.recto.auto.mode">
  2344. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
  2345. <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  2346. </fo:block>
  2347. </xsl:template>
  2348.  
  2349. <xsl:template match="author" mode="sect4.titlepage.recto.auto.mode">
  2350. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
  2351. <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  2352. </fo:block>
  2353. </xsl:template>
  2354.  
  2355. <xsl:template match="othercredit" mode="sect4.titlepage.recto.auto.mode">
  2356. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
  2357. <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  2358. </fo:block>
  2359. </xsl:template>
  2360.  
  2361. <xsl:template match="releaseinfo" mode="sect4.titlepage.recto.auto.mode">
  2362. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
  2363. <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  2364. </fo:block>
  2365. </xsl:template>
  2366.  
  2367. <xsl:template match="copyright" mode="sect4.titlepage.recto.auto.mode">
  2368. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
  2369. <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  2370. </fo:block>
  2371. </xsl:template>
  2372.  
  2373. <xsl:template match="legalnotice" mode="sect4.titlepage.recto.auto.mode">
  2374. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
  2375. <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  2376. </fo:block>
  2377. </xsl:template>
  2378.  
  2379. <xsl:template match="pubdate" mode="sect4.titlepage.recto.auto.mode">
  2380. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
  2381. <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  2382. </fo:block>
  2383. </xsl:template>
  2384.  
  2385. <xsl:template match="revision" mode="sect4.titlepage.recto.auto.mode">
  2386. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
  2387. <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  2388. </fo:block>
  2389. </xsl:template>
  2390.  
  2391. <xsl:template match="revhistory" mode="sect4.titlepage.recto.auto.mode">
  2392. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
  2393. <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  2394. </fo:block>
  2395. </xsl:template>
  2396.  
  2397. <xsl:template match="abstract" mode="sect4.titlepage.recto.auto.mode">
  2398. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect4.titlepage.recto.style">
  2399. <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  2400. </fo:block>
  2401. </xsl:template>
  2402.  
  2403. <xsl:template name="sect5.titlepage.recto">
  2404.   <xsl:choose>
  2405.     <xsl:when test="sect5info/title">
  2406.       <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/title"/>
  2407.     </xsl:when>
  2408.     <xsl:when test="title">
  2409.       <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="title"/>
  2410.     </xsl:when>
  2411.   </xsl:choose>
  2412.  
  2413.   <xsl:choose>
  2414.     <xsl:when test="sect5info/subtitle">
  2415.       <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/subtitle"/>
  2416.     </xsl:when>
  2417.     <xsl:when test="subtitle">
  2418.       <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="subtitle"/>
  2419.     </xsl:when>
  2420.   </xsl:choose>
  2421.  
  2422.   <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/corpauthor"/>
  2423.   <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/authorgroup"/>
  2424.   <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/author"/>
  2425.   <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/othercredit"/>
  2426.   <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/releaseinfo"/>
  2427.   <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/copyright"/>
  2428.   <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/legalnotice"/>
  2429.   <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/pubdate"/>
  2430.   <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revision"/>
  2431.   <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revhistory"/>
  2432.   <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/abstract"/>
  2433. </xsl:template>
  2434.  
  2435. <xsl:template name="sect5.titlepage.verso">
  2436. </xsl:template>
  2437.  
  2438. <xsl:template name="sect5.titlepage.separator">
  2439. </xsl:template>
  2440.  
  2441. <xsl:template name="sect5.titlepage.before.recto">
  2442. </xsl:template>
  2443.  
  2444. <xsl:template name="sect5.titlepage.before.verso">
  2445. </xsl:template>
  2446.  
  2447. <xsl:template name="sect5.titlepage">
  2448.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  2449.     <xsl:call-template name="sect5.titlepage.before.recto"/>
  2450.     <xsl:call-template name="sect5.titlepage.recto"/>
  2451.     <xsl:call-template name="sect5.titlepage.before.verso"/>
  2452.     <xsl:call-template name="sect5.titlepage.verso"/>
  2453.     <xsl:call-template name="sect5.titlepage.separator"/>
  2454.   </fo:block>
  2455. </xsl:template>
  2456.  
  2457. <xsl:template match="*" mode="sect5.titlepage.recto.mode">
  2458.   <!-- if an element isn't found in this mode, -->
  2459.   <!-- try the generic titlepage.mode -->
  2460.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2461. </xsl:template>
  2462.  
  2463. <xsl:template match="*" mode="sect5.titlepage.verso.mode">
  2464.   <!-- if an element isn't found in this mode, -->
  2465.   <!-- try the generic titlepage.mode -->
  2466.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2467. </xsl:template>
  2468.  
  2469. <xsl:template match="title" mode="sect5.titlepage.recto.auto.mode">
  2470. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}">
  2471. <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  2472. </fo:block>
  2473. </xsl:template>
  2474.  
  2475. <xsl:template match="subtitle" mode="sect5.titlepage.recto.auto.mode">
  2476. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style" font-family="{$title.font.family}">
  2477. <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  2478. </fo:block>
  2479. </xsl:template>
  2480.  
  2481. <xsl:template match="corpauthor" mode="sect5.titlepage.recto.auto.mode">
  2482. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
  2483. <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  2484. </fo:block>
  2485. </xsl:template>
  2486.  
  2487. <xsl:template match="authorgroup" mode="sect5.titlepage.recto.auto.mode">
  2488. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
  2489. <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  2490. </fo:block>
  2491. </xsl:template>
  2492.  
  2493. <xsl:template match="author" mode="sect5.titlepage.recto.auto.mode">
  2494. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
  2495. <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  2496. </fo:block>
  2497. </xsl:template>
  2498.  
  2499. <xsl:template match="othercredit" mode="sect5.titlepage.recto.auto.mode">
  2500. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
  2501. <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  2502. </fo:block>
  2503. </xsl:template>
  2504.  
  2505. <xsl:template match="releaseinfo" mode="sect5.titlepage.recto.auto.mode">
  2506. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
  2507. <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  2508. </fo:block>
  2509. </xsl:template>
  2510.  
  2511. <xsl:template match="copyright" mode="sect5.titlepage.recto.auto.mode">
  2512. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
  2513. <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  2514. </fo:block>
  2515. </xsl:template>
  2516.  
  2517. <xsl:template match="legalnotice" mode="sect5.titlepage.recto.auto.mode">
  2518. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
  2519. <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  2520. </fo:block>
  2521. </xsl:template>
  2522.  
  2523. <xsl:template match="pubdate" mode="sect5.titlepage.recto.auto.mode">
  2524. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
  2525. <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  2526. </fo:block>
  2527. </xsl:template>
  2528.  
  2529. <xsl:template match="revision" mode="sect5.titlepage.recto.auto.mode">
  2530. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
  2531. <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  2532. </fo:block>
  2533. </xsl:template>
  2534.  
  2535. <xsl:template match="revhistory" mode="sect5.titlepage.recto.auto.mode">
  2536. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
  2537. <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  2538. </fo:block>
  2539. </xsl:template>
  2540.  
  2541. <xsl:template match="abstract" mode="sect5.titlepage.recto.auto.mode">
  2542. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="sect5.titlepage.recto.style">
  2543. <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  2544. </fo:block>
  2545. </xsl:template>
  2546.  
  2547. <xsl:template name="simplesect.titlepage.recto">
  2548.   <xsl:choose>
  2549.     <xsl:when test="simplesectinfo/title">
  2550.       <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/title"/>
  2551.     </xsl:when>
  2552.     <xsl:when test="docinfo/title">
  2553.       <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/title"/>
  2554.     </xsl:when>
  2555.     <xsl:when test="title">
  2556.       <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="title"/>
  2557.     </xsl:when>
  2558.   </xsl:choose>
  2559.  
  2560.   <xsl:choose>
  2561.     <xsl:when test="simplesectinfo/subtitle">
  2562.       <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/subtitle"/>
  2563.     </xsl:when>
  2564.     <xsl:when test="docinfo/subtitle">
  2565.       <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
  2566.     </xsl:when>
  2567.     <xsl:when test="subtitle">
  2568.       <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="subtitle"/>
  2569.     </xsl:when>
  2570.   </xsl:choose>
  2571.  
  2572.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/corpauthor"/>
  2573.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
  2574.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/authorgroup"/>
  2575.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
  2576.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/author"/>
  2577.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/author"/>
  2578.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/othercredit"/>
  2579.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
  2580.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/releaseinfo"/>
  2581.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
  2582.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/copyright"/>
  2583.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/copyright"/>
  2584.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/legalnotice"/>
  2585.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
  2586.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/pubdate"/>
  2587.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
  2588.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revision"/>
  2589.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revision"/>
  2590.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revhistory"/>
  2591.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
  2592.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/abstract"/>
  2593.   <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/abstract"/>
  2594. </xsl:template>
  2595.  
  2596. <xsl:template name="simplesect.titlepage.verso">
  2597. </xsl:template>
  2598.  
  2599. <xsl:template name="simplesect.titlepage.separator">
  2600. </xsl:template>
  2601.  
  2602. <xsl:template name="simplesect.titlepage.before.recto">
  2603. </xsl:template>
  2604.  
  2605. <xsl:template name="simplesect.titlepage.before.verso">
  2606. </xsl:template>
  2607.  
  2608. <xsl:template name="simplesect.titlepage">
  2609.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  2610.     <xsl:call-template name="simplesect.titlepage.before.recto"/>
  2611.     <xsl:call-template name="simplesect.titlepage.recto"/>
  2612.     <xsl:call-template name="simplesect.titlepage.before.verso"/>
  2613.     <xsl:call-template name="simplesect.titlepage.verso"/>
  2614.     <xsl:call-template name="simplesect.titlepage.separator"/>
  2615.   </fo:block>
  2616. </xsl:template>
  2617.  
  2618. <xsl:template match="*" mode="simplesect.titlepage.recto.mode">
  2619.   <!-- if an element isn't found in this mode, -->
  2620.   <!-- try the generic titlepage.mode -->
  2621.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2622. </xsl:template>
  2623.  
  2624. <xsl:template match="*" mode="simplesect.titlepage.verso.mode">
  2625.   <!-- if an element isn't found in this mode, -->
  2626.   <!-- try the generic titlepage.mode -->
  2627.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2628. </xsl:template>
  2629.  
  2630. <xsl:template match="title" mode="simplesect.titlepage.recto.auto.mode">
  2631. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style" margin-left="{$title.margin.left}" font-family="{$title.font.family}">
  2632. <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  2633. </fo:block>
  2634. </xsl:template>
  2635.  
  2636. <xsl:template match="subtitle" mode="simplesect.titlepage.recto.auto.mode">
  2637. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style" font-family="{$title.font.family}">
  2638. <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  2639. </fo:block>
  2640. </xsl:template>
  2641.  
  2642. <xsl:template match="corpauthor" mode="simplesect.titlepage.recto.auto.mode">
  2643. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  2644. <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  2645. </fo:block>
  2646. </xsl:template>
  2647.  
  2648. <xsl:template match="authorgroup" mode="simplesect.titlepage.recto.auto.mode">
  2649. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  2650. <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  2651. </fo:block>
  2652. </xsl:template>
  2653.  
  2654. <xsl:template match="author" mode="simplesect.titlepage.recto.auto.mode">
  2655. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  2656. <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  2657. </fo:block>
  2658. </xsl:template>
  2659.  
  2660. <xsl:template match="othercredit" mode="simplesect.titlepage.recto.auto.mode">
  2661. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  2662. <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  2663. </fo:block>
  2664. </xsl:template>
  2665.  
  2666. <xsl:template match="releaseinfo" mode="simplesect.titlepage.recto.auto.mode">
  2667. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  2668. <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  2669. </fo:block>
  2670. </xsl:template>
  2671.  
  2672. <xsl:template match="copyright" mode="simplesect.titlepage.recto.auto.mode">
  2673. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  2674. <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  2675. </fo:block>
  2676. </xsl:template>
  2677.  
  2678. <xsl:template match="legalnotice" mode="simplesect.titlepage.recto.auto.mode">
  2679. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  2680. <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  2681. </fo:block>
  2682. </xsl:template>
  2683.  
  2684. <xsl:template match="pubdate" mode="simplesect.titlepage.recto.auto.mode">
  2685. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  2686. <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  2687. </fo:block>
  2688. </xsl:template>
  2689.  
  2690. <xsl:template match="revision" mode="simplesect.titlepage.recto.auto.mode">
  2691. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  2692. <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  2693. </fo:block>
  2694. </xsl:template>
  2695.  
  2696. <xsl:template match="revhistory" mode="simplesect.titlepage.recto.auto.mode">
  2697. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  2698. <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  2699. </fo:block>
  2700. </xsl:template>
  2701.  
  2702. <xsl:template match="abstract" mode="simplesect.titlepage.recto.auto.mode">
  2703. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  2704. <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  2705. </fo:block>
  2706. </xsl:template>
  2707.  
  2708. <xsl:template name="bibliography.titlepage.recto">
  2709.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliography.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.font.family}" font-weight="bold">
  2710. <xsl:call-template name="component.title">
  2711. <xsl:with-param name="node" select="ancestor-or-self::bibliography[1]"/>
  2712. </xsl:call-template></fo:block>
  2713.   <xsl:choose>
  2714.     <xsl:when test="bibliographyinfo/subtitle">
  2715.       <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="bibliographyinfo/subtitle"/>
  2716.     </xsl:when>
  2717.     <xsl:when test="docinfo/subtitle">
  2718.       <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
  2719.     </xsl:when>
  2720.     <xsl:when test="subtitle">
  2721.       <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="subtitle"/>
  2722.     </xsl:when>
  2723.   </xsl:choose>
  2724.  
  2725. </xsl:template>
  2726.  
  2727. <xsl:template name="bibliography.titlepage.verso">
  2728. </xsl:template>
  2729.  
  2730. <xsl:template name="bibliography.titlepage.separator">
  2731. </xsl:template>
  2732.  
  2733. <xsl:template name="bibliography.titlepage.before.recto">
  2734. </xsl:template>
  2735.  
  2736. <xsl:template name="bibliography.titlepage.before.verso">
  2737. </xsl:template>
  2738.  
  2739. <xsl:template name="bibliography.titlepage">
  2740.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  2741.     <xsl:call-template name="bibliography.titlepage.before.recto"/>
  2742.     <xsl:call-template name="bibliography.titlepage.recto"/>
  2743.     <xsl:call-template name="bibliography.titlepage.before.verso"/>
  2744.     <xsl:call-template name="bibliography.titlepage.verso"/>
  2745.     <xsl:call-template name="bibliography.titlepage.separator"/>
  2746.   </fo:block>
  2747. </xsl:template>
  2748.  
  2749. <xsl:template match="*" mode="bibliography.titlepage.recto.mode">
  2750.   <!-- if an element isn't found in this mode, -->
  2751.   <!-- try the generic titlepage.mode -->
  2752.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2753. </xsl:template>
  2754.  
  2755. <xsl:template match="*" mode="bibliography.titlepage.verso.mode">
  2756.   <!-- if an element isn't found in this mode, -->
  2757.   <!-- try the generic titlepage.mode -->
  2758.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2759. </xsl:template>
  2760.  
  2761. <xsl:template match="subtitle" mode="bibliography.titlepage.recto.auto.mode">
  2762. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="bibliography.titlepage.recto.style" font-family="{$title.font.family}">
  2763. <xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/>
  2764. </fo:block>
  2765. </xsl:template>
  2766.  
  2767. <xsl:template name="glossary.titlepage.recto">
  2768.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossary.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.font.family}" font-weight="bold">
  2769. <xsl:call-template name="component.title">
  2770. <xsl:with-param name="node" select="ancestor-or-self::glossary[1]"/>
  2771. </xsl:call-template></fo:block>
  2772.   <xsl:choose>
  2773.     <xsl:when test="glossaryinfo/subtitle">
  2774.       <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="glossaryinfo/subtitle"/>
  2775.     </xsl:when>
  2776.     <xsl:when test="docinfo/subtitle">
  2777.       <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
  2778.     </xsl:when>
  2779.     <xsl:when test="subtitle">
  2780.       <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="subtitle"/>
  2781.     </xsl:when>
  2782.   </xsl:choose>
  2783.  
  2784. </xsl:template>
  2785.  
  2786. <xsl:template name="glossary.titlepage.verso">
  2787. </xsl:template>
  2788.  
  2789. <xsl:template name="glossary.titlepage.separator">
  2790. </xsl:template>
  2791.  
  2792. <xsl:template name="glossary.titlepage.before.recto">
  2793. </xsl:template>
  2794.  
  2795. <xsl:template name="glossary.titlepage.before.verso">
  2796. </xsl:template>
  2797.  
  2798. <xsl:template name="glossary.titlepage">
  2799.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  2800.     <xsl:call-template name="glossary.titlepage.before.recto"/>
  2801.     <xsl:call-template name="glossary.titlepage.recto"/>
  2802.     <xsl:call-template name="glossary.titlepage.before.verso"/>
  2803.     <xsl:call-template name="glossary.titlepage.verso"/>
  2804.     <xsl:call-template name="glossary.titlepage.separator"/>
  2805.   </fo:block>
  2806. </xsl:template>
  2807.  
  2808. <xsl:template match="*" mode="glossary.titlepage.recto.mode">
  2809.   <!-- if an element isn't found in this mode, -->
  2810.   <!-- try the generic titlepage.mode -->
  2811.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2812. </xsl:template>
  2813.  
  2814. <xsl:template match="*" mode="glossary.titlepage.verso.mode">
  2815.   <!-- if an element isn't found in this mode, -->
  2816.   <!-- try the generic titlepage.mode -->
  2817.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2818. </xsl:template>
  2819.  
  2820. <xsl:template match="subtitle" mode="glossary.titlepage.recto.auto.mode">
  2821. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="glossary.titlepage.recto.style" font-family="{$title.font.family}">
  2822. <xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/>
  2823. </fo:block>
  2824. </xsl:template>
  2825.  
  2826. <xsl:template name="index.titlepage.recto">
  2827.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="index.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.font.family}" font-weight="bold">
  2828. <xsl:call-template name="component.title">
  2829. <xsl:with-param name="node" select="ancestor-or-self::index[1]"/>
  2830. <xsl:with-param name="pagewide" select="1"/>
  2831. </xsl:call-template></fo:block>
  2832.   <xsl:choose>
  2833.     <xsl:when test="indexinfo/subtitle">
  2834.       <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="indexinfo/subtitle"/>
  2835.     </xsl:when>
  2836.     <xsl:when test="docinfo/subtitle">
  2837.       <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
  2838.     </xsl:when>
  2839.     <xsl:when test="subtitle">
  2840.       <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="subtitle"/>
  2841.     </xsl:when>
  2842.   </xsl:choose>
  2843.  
  2844. </xsl:template>
  2845.  
  2846. <xsl:template name="index.titlepage.verso">
  2847. </xsl:template>
  2848.  
  2849. <xsl:template name="index.titlepage.separator">
  2850. </xsl:template>
  2851.  
  2852. <xsl:template name="index.titlepage.before.recto">
  2853. </xsl:template>
  2854.  
  2855. <xsl:template name="index.titlepage.before.verso">
  2856. </xsl:template>
  2857.  
  2858. <xsl:template name="index.titlepage">
  2859.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  2860.     <xsl:call-template name="index.titlepage.before.recto"/>
  2861.     <xsl:call-template name="index.titlepage.recto"/>
  2862.     <xsl:call-template name="index.titlepage.before.verso"/>
  2863.     <xsl:call-template name="index.titlepage.verso"/>
  2864.     <xsl:call-template name="index.titlepage.separator"/>
  2865.   </fo:block>
  2866. </xsl:template>
  2867.  
  2868. <xsl:template match="*" mode="index.titlepage.recto.mode">
  2869.   <!-- if an element isn't found in this mode, -->
  2870.   <!-- try the generic titlepage.mode -->
  2871.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2872. </xsl:template>
  2873.  
  2874. <xsl:template match="*" mode="index.titlepage.verso.mode">
  2875.   <!-- if an element isn't found in this mode, -->
  2876.   <!-- try the generic titlepage.mode -->
  2877.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2878. </xsl:template>
  2879.  
  2880. <xsl:template match="subtitle" mode="index.titlepage.recto.auto.mode">
  2881. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="index.titlepage.recto.style" font-family="{$title.font.family}">
  2882. <xsl:apply-templates select="." mode="index.titlepage.recto.mode"/>
  2883. </fo:block>
  2884. </xsl:template>
  2885.  
  2886. <xsl:template name="colophon.titlepage.recto">
  2887.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="colophon.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="24.8832pt" font-family="{$title.font.family}" font-weight="bold">
  2888. <xsl:call-template name="component.title">
  2889. <xsl:with-param name="node" select="ancestor-or-self::colophon[1]"/>
  2890. </xsl:call-template></fo:block>
  2891.   <xsl:choose>
  2892.     <xsl:when test="colophoninfo/subtitle">
  2893.       <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="colophoninfo/subtitle"/>
  2894.     </xsl:when>
  2895.     <xsl:when test="docinfo/subtitle">
  2896.       <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
  2897.     </xsl:when>
  2898.     <xsl:when test="subtitle">
  2899.       <xsl:apply-templates mode="colophon.titlepage.recto.auto.mode" select="subtitle"/>
  2900.     </xsl:when>
  2901.   </xsl:choose>
  2902.  
  2903. </xsl:template>
  2904.  
  2905. <xsl:template name="colophon.titlepage.verso">
  2906. </xsl:template>
  2907.  
  2908. <xsl:template name="colophon.titlepage.separator">
  2909. </xsl:template>
  2910.  
  2911. <xsl:template name="colophon.titlepage.before.recto">
  2912. </xsl:template>
  2913.  
  2914. <xsl:template name="colophon.titlepage.before.verso">
  2915. </xsl:template>
  2916.  
  2917. <xsl:template name="colophon.titlepage">
  2918.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  2919.     <xsl:call-template name="colophon.titlepage.before.recto"/>
  2920.     <xsl:call-template name="colophon.titlepage.recto"/>
  2921.     <xsl:call-template name="colophon.titlepage.before.verso"/>
  2922.     <xsl:call-template name="colophon.titlepage.verso"/>
  2923.     <xsl:call-template name="colophon.titlepage.separator"/>
  2924.   </fo:block>
  2925. </xsl:template>
  2926.  
  2927. <xsl:template match="*" mode="colophon.titlepage.recto.mode">
  2928.   <!-- if an element isn't found in this mode, -->
  2929.   <!-- try the generic titlepage.mode -->
  2930.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2931. </xsl:template>
  2932.  
  2933. <xsl:template match="*" mode="colophon.titlepage.verso.mode">
  2934.   <!-- if an element isn't found in this mode, -->
  2935.   <!-- try the generic titlepage.mode -->
  2936.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2937. </xsl:template>
  2938.  
  2939. <xsl:template match="subtitle" mode="colophon.titlepage.recto.auto.mode">
  2940. <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="colophon.titlepage.recto.style" font-family="{$title.font.family}">
  2941. <xsl:apply-templates select="." mode="colophon.titlepage.recto.mode"/>
  2942. </fo:block>
  2943. </xsl:template>
  2944.  
  2945. <xsl:template name="table.of.contents.titlepage.recto">
  2946.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="table.of.contents.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
  2947. <xsl:call-template name="gentext">
  2948. <xsl:with-param name="key" select="'TableofContents'"/>
  2949. </xsl:call-template></fo:block>
  2950. </xsl:template>
  2951.  
  2952. <xsl:template name="table.of.contents.titlepage.verso">
  2953. </xsl:template>
  2954.  
  2955. <xsl:template name="table.of.contents.titlepage.separator">
  2956. </xsl:template>
  2957.  
  2958. <xsl:template name="table.of.contents.titlepage.before.recto">
  2959. </xsl:template>
  2960.  
  2961. <xsl:template name="table.of.contents.titlepage.before.verso">
  2962. </xsl:template>
  2963.  
  2964. <xsl:template name="table.of.contents.titlepage">
  2965.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  2966.     <xsl:call-template name="table.of.contents.titlepage.before.recto"/>
  2967.     <xsl:call-template name="table.of.contents.titlepage.recto"/>
  2968.     <xsl:call-template name="table.of.contents.titlepage.before.verso"/>
  2969.     <xsl:call-template name="table.of.contents.titlepage.verso"/>
  2970.     <xsl:call-template name="table.of.contents.titlepage.separator"/>
  2971.   </fo:block>
  2972. </xsl:template>
  2973.  
  2974. <xsl:template match="*" mode="table.of.contents.titlepage.recto.mode">
  2975.   <!-- if an element isn't found in this mode, -->
  2976.   <!-- try the generic titlepage.mode -->
  2977.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2978. </xsl:template>
  2979.  
  2980. <xsl:template match="*" mode="table.of.contents.titlepage.verso.mode">
  2981.   <!-- if an element isn't found in this mode, -->
  2982.   <!-- try the generic titlepage.mode -->
  2983.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  2984. </xsl:template>
  2985.  
  2986. <xsl:template name="list.of.tables.titlepage.recto">
  2987.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.tables.titlepage.recto.style" space-after="1em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
  2988. <xsl:call-template name="gentext">
  2989. <xsl:with-param name="key" select="'ListofTables'"/>
  2990. </xsl:call-template></fo:block>
  2991. </xsl:template>
  2992.  
  2993. <xsl:template name="list.of.tables.titlepage.verso">
  2994. </xsl:template>
  2995.  
  2996. <xsl:template name="list.of.tables.titlepage.separator">
  2997. </xsl:template>
  2998.  
  2999. <xsl:template name="list.of.tables.titlepage.before.recto">
  3000. </xsl:template>
  3001.  
  3002. <xsl:template name="list.of.tables.titlepage.before.verso">
  3003. </xsl:template>
  3004.  
  3005. <xsl:template name="list.of.tables.titlepage">
  3006.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3007.     <xsl:call-template name="list.of.tables.titlepage.before.recto"/>
  3008.     <xsl:call-template name="list.of.tables.titlepage.recto"/>
  3009.     <xsl:call-template name="list.of.tables.titlepage.before.verso"/>
  3010.     <xsl:call-template name="list.of.tables.titlepage.verso"/>
  3011.     <xsl:call-template name="list.of.tables.titlepage.separator"/>
  3012.   </fo:block>
  3013. </xsl:template>
  3014.  
  3015. <xsl:template match="*" mode="list.of.tables.titlepage.recto.mode">
  3016.   <!-- if an element isn't found in this mode, -->
  3017.   <!-- try the generic titlepage.mode -->
  3018.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  3019. </xsl:template>
  3020.  
  3021. <xsl:template match="*" mode="list.of.tables.titlepage.verso.mode">
  3022.   <!-- if an element isn't found in this mode, -->
  3023.   <!-- try the generic titlepage.mode -->
  3024.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  3025. </xsl:template>
  3026.  
  3027. <xsl:template name="list.of.figures.titlepage.recto">
  3028.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.figures.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
  3029. <xsl:call-template name="gentext">
  3030. <xsl:with-param name="key" select="'ListofFigures'"/>
  3031. </xsl:call-template></fo:block>
  3032. </xsl:template>
  3033.  
  3034. <xsl:template name="list.of.figures.titlepage.verso">
  3035. </xsl:template>
  3036.  
  3037. <xsl:template name="list.of.figures.titlepage.separator">
  3038. </xsl:template>
  3039.  
  3040. <xsl:template name="list.of.figures.titlepage.before.recto">
  3041. </xsl:template>
  3042.  
  3043. <xsl:template name="list.of.figures.titlepage.before.verso">
  3044. </xsl:template>
  3045.  
  3046. <xsl:template name="list.of.figures.titlepage">
  3047.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3048.     <xsl:call-template name="list.of.figures.titlepage.before.recto"/>
  3049.     <xsl:call-template name="list.of.figures.titlepage.recto"/>
  3050.     <xsl:call-template name="list.of.figures.titlepage.before.verso"/>
  3051.     <xsl:call-template name="list.of.figures.titlepage.verso"/>
  3052.     <xsl:call-template name="list.of.figures.titlepage.separator"/>
  3053.   </fo:block>
  3054. </xsl:template>
  3055.  
  3056. <xsl:template match="*" mode="list.of.figures.titlepage.recto.mode">
  3057.   <!-- if an element isn't found in this mode, -->
  3058.   <!-- try the generic titlepage.mode -->
  3059.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  3060. </xsl:template>
  3061.  
  3062. <xsl:template match="*" mode="list.of.figures.titlepage.verso.mode">
  3063.   <!-- if an element isn't found in this mode, -->
  3064.   <!-- try the generic titlepage.mode -->
  3065.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  3066. </xsl:template>
  3067.  
  3068. <xsl:template name="list.of.examples.titlepage.recto">
  3069.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.examples.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
  3070. <xsl:call-template name="gentext">
  3071. <xsl:with-param name="key" select="'ListofExamples'"/>
  3072. </xsl:call-template></fo:block>
  3073. </xsl:template>
  3074.  
  3075. <xsl:template name="list.of.examples.titlepage.verso">
  3076. </xsl:template>
  3077.  
  3078. <xsl:template name="list.of.examples.titlepage.separator">
  3079. </xsl:template>
  3080.  
  3081. <xsl:template name="list.of.examples.titlepage.before.recto">
  3082. </xsl:template>
  3083.  
  3084. <xsl:template name="list.of.examples.titlepage.before.verso">
  3085. </xsl:template>
  3086.  
  3087. <xsl:template name="list.of.examples.titlepage">
  3088.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3089.     <xsl:call-template name="list.of.examples.titlepage.before.recto"/>
  3090.     <xsl:call-template name="list.of.examples.titlepage.recto"/>
  3091.     <xsl:call-template name="list.of.examples.titlepage.before.verso"/>
  3092.     <xsl:call-template name="list.of.examples.titlepage.verso"/>
  3093.     <xsl:call-template name="list.of.examples.titlepage.separator"/>
  3094.   </fo:block>
  3095. </xsl:template>
  3096.  
  3097. <xsl:template match="*" mode="list.of.examples.titlepage.recto.mode">
  3098.   <!-- if an element isn't found in this mode, -->
  3099.   <!-- try the generic titlepage.mode -->
  3100.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  3101. </xsl:template>
  3102.  
  3103. <xsl:template match="*" mode="list.of.examples.titlepage.verso.mode">
  3104.   <!-- if an element isn't found in this mode, -->
  3105.   <!-- try the generic titlepage.mode -->
  3106.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  3107. </xsl:template>
  3108.  
  3109. <xsl:template name="list.of.equations.titlepage.recto">
  3110.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.equations.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
  3111. <xsl:call-template name="gentext">
  3112. <xsl:with-param name="key" select="'ListofEquations'"/>
  3113. </xsl:call-template></fo:block>
  3114. </xsl:template>
  3115.  
  3116. <xsl:template name="list.of.equations.titlepage.verso">
  3117. </xsl:template>
  3118.  
  3119. <xsl:template name="list.of.equations.titlepage.separator">
  3120. </xsl:template>
  3121.  
  3122. <xsl:template name="list.of.equations.titlepage.before.recto">
  3123. </xsl:template>
  3124.  
  3125. <xsl:template name="list.of.equations.titlepage.before.verso">
  3126. </xsl:template>
  3127.  
  3128. <xsl:template name="list.of.equations.titlepage">
  3129.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3130.     <xsl:call-template name="list.of.equations.titlepage.before.recto"/>
  3131.     <xsl:call-template name="list.of.equations.titlepage.recto"/>
  3132.     <xsl:call-template name="list.of.equations.titlepage.before.verso"/>
  3133.     <xsl:call-template name="list.of.equations.titlepage.verso"/>
  3134.     <xsl:call-template name="list.of.equations.titlepage.separator"/>
  3135.   </fo:block>
  3136. </xsl:template>
  3137.  
  3138. <xsl:template match="*" mode="list.of.equations.titlepage.recto.mode">
  3139.   <!-- if an element isn't found in this mode, -->
  3140.   <!-- try the generic titlepage.mode -->
  3141.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  3142. </xsl:template>
  3143.  
  3144. <xsl:template match="*" mode="list.of.equations.titlepage.verso.mode">
  3145.   <!-- if an element isn't found in this mode, -->
  3146.   <!-- try the generic titlepage.mode -->
  3147.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  3148. </xsl:template>
  3149.  
  3150. <xsl:template name="list.of.unknowns.titlepage.recto">
  3151.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="list.of.unknowns.titlepage.recto.style" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em" space-after="0.5em" margin-left="{$title.margin.left}" font-size="17.28pt" font-weight="bold" font-family="{$title.font.family}">
  3152. <xsl:call-template name="gentext">
  3153. <xsl:with-param name="key" select="'ListofUnknown'"/>
  3154. </xsl:call-template></fo:block>
  3155. </xsl:template>
  3156.  
  3157. <xsl:template name="list.of.unknowns.titlepage.verso">
  3158. </xsl:template>
  3159.  
  3160. <xsl:template name="list.of.unknowns.titlepage.separator">
  3161. </xsl:template>
  3162.  
  3163. <xsl:template name="list.of.unknowns.titlepage.before.recto">
  3164. </xsl:template>
  3165.  
  3166. <xsl:template name="list.of.unknowns.titlepage.before.verso">
  3167. </xsl:template>
  3168.  
  3169. <xsl:template name="list.of.unknowns.titlepage">
  3170.   <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3171.     <xsl:call-template name="list.of.unknowns.titlepage.before.recto"/>
  3172.     <xsl:call-template name="list.of.unknowns.titlepage.recto"/>
  3173.     <xsl:call-template name="list.of.unknowns.titlepage.before.verso"/>
  3174.     <xsl:call-template name="list.of.unknowns.titlepage.verso"/>
  3175.     <xsl:call-template name="list.of.unknowns.titlepage.separator"/>
  3176.   </fo:block>
  3177. </xsl:template>
  3178.  
  3179. <xsl:template match="*" mode="list.of.unknowns.titlepage.recto.mode">
  3180.   <!-- if an element isn't found in this mode, -->
  3181.   <!-- try the generic titlepage.mode -->
  3182.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  3183. </xsl:template>
  3184.  
  3185. <xsl:template match="*" mode="list.of.unknowns.titlepage.verso.mode">
  3186.   <!-- if an element isn't found in this mode, -->
  3187.   <!-- try the generic titlepage.mode -->
  3188.   <xsl:apply-templates select="." mode="titlepage.mode"/>
  3189. </xsl:template>
  3190.  
  3191. </xsl:stylesheet>