home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _9766F60A4EB64527ABBDC17DC5F5E472 < prev    next >
Encoding:
Extensible Markup Language  |  2002-08-30  |  122.9 KB  |  2,722 lines

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