- Timestamp:
- 12/10/2013 11:37:38 PM (11 years ago)
- Branches:
- 7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- 112db9d
- Parents:
- f2a5108
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/xsl/titlepage.templates.xsl
rf2a5108 rb1a51ac1 1 <?xml version="1.0" encoding="ASCII"?> 2 <!--This file was created automatically by html2xhtml--> 3 <!--from the HTML stylesheets.--> 4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="exsl"> 1 <?xml version="1.0"?> 2 3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" version="1.0" exclude-result-prefixes="exsl"> 5 4 6 5 <!-- This stylesheet was created by template/titlepage.xsl--> … … 67 66 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revhistory"/> 68 67 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/revhistory"/> 69 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/abstract"/>70 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/abstract"/>71 <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/abstract"/>72 68 </xsl:template> 73 69 … … 199 195 200 196 <xsl:template match="revhistory" mode="article.titlepage.recto.auto.mode"> 201 <div xsl:use-attribute-sets="article.titlepage.recto.style">202 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>203 </div>204 </xsl:template>205 206 <xsl:template match="abstract" mode="article.titlepage.recto.auto.mode">207 197 <div xsl:use-attribute-sets="article.titlepage.recto.style"> 208 198 <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> … … 255 245 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revhistory"/> 256 246 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/revhistory"/> 257 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/abstract"/>258 <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/abstract"/>259 247 </xsl:template> 260 248 … … 386 374 387 375 <xsl:template match="revhistory" mode="set.titlepage.recto.auto.mode"> 388 <div xsl:use-attribute-sets="set.titlepage.recto.style">389 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>390 </div>391 </xsl:template>392 393 <xsl:template match="abstract" mode="set.titlepage.recto.auto.mode">394 376 <div xsl:use-attribute-sets="set.titlepage.recto.style"> 395 377 <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> … … 442 424 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revhistory"/> 443 425 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revhistory"/> 444 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/abstract"/>445 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/abstract"/>446 426 </xsl:template> 447 427 … … 573 553 574 554 <xsl:template match="revhistory" mode="book.titlepage.recto.auto.mode"> 575 <div xsl:use-attribute-sets="book.titlepage.recto.style">576 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>577 </div>578 </xsl:template>579 580 <xsl:template match="abstract" mode="book.titlepage.recto.auto.mode">581 555 <div xsl:use-attribute-sets="book.titlepage.recto.style"> 582 556 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> … … 634 608 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/revhistory"/> 635 609 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/revhistory"/> 636 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/abstract"/>637 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/abstract"/>638 <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/abstract"/>639 610 </xsl:template> 640 611 … … 760 731 761 732 <xsl:template match="revhistory" mode="part.titlepage.recto.auto.mode"> 762 <div xsl:use-attribute-sets="part.titlepage.recto.style">763 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>764 </div>765 </xsl:template>766 767 <xsl:template match="abstract" mode="part.titlepage.recto.auto.mode">768 733 <div xsl:use-attribute-sets="part.titlepage.recto.style"> 769 734 <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> … … 832 797 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revhistory"/> 833 798 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/revhistory"/> 834 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/abstract"/>835 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/abstract"/>836 <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/abstract"/>837 799 </xsl:template> 838 800 … … 964 926 965 927 <xsl:template match="revhistory" mode="partintro.titlepage.recto.auto.mode"> 966 <div xsl:use-attribute-sets="partintro.titlepage.recto.style">967 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>968 </div>969 </xsl:template>970 971 <xsl:template match="abstract" mode="partintro.titlepage.recto.auto.mode">972 928 <div xsl:use-attribute-sets="partintro.titlepage.recto.style"> 973 929 <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> … … 1036 992 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revhistory"/> 1037 993 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/revhistory"/> 1038 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/abstract"/>1039 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/abstract"/>1040 <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/abstract"/>1041 994 </xsl:template> 1042 995 … … 1173 1126 </xsl:template> 1174 1127 1175 <xsl:template match="abstract" mode="reference.titlepage.recto.auto.mode">1176 <div xsl:use-attribute-sets="reference.titlepage.recto.style">1177 <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>1178 </div>1179 </xsl:template>1180 1181 1128 <xsl:template name="refentry.titlepage.recto"> 1182 1129 </xsl:template> … … 1327 1274 <div xsl:use-attribute-sets="dedication.titlepage.recto.style"> 1328 1275 <xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/> 1276 </div> 1277 </xsl:template> 1278 1279 <xsl:template name="acknowledgements.titlepage.recto"> 1280 <div xsl:use-attribute-sets="acknowledgements.titlepage.recto.style"> 1281 <xsl:call-template name="component.title"> 1282 <xsl:with-param name="node" select="ancestor-or-self::acknowledgements[1]"/> 1283 </xsl:call-template></div> 1284 <xsl:choose> 1285 <xsl:when test="acknowledgementsinfo/subtitle"> 1286 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="acknowledgementsinfo/subtitle"/> 1287 </xsl:when> 1288 <xsl:when test="docinfo/subtitle"> 1289 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="docinfo/subtitle"/> 1290 </xsl:when> 1291 <xsl:when test="info/subtitle"> 1292 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="info/subtitle"/> 1293 </xsl:when> 1294 <xsl:when test="subtitle"> 1295 <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="subtitle"/> 1296 </xsl:when> 1297 </xsl:choose> 1298 1299 </xsl:template> 1300 1301 <xsl:template name="acknowledgements.titlepage.verso"> 1302 </xsl:template> 1303 1304 <xsl:template name="acknowledgements.titlepage.separator"> 1305 </xsl:template> 1306 1307 <xsl:template name="acknowledgements.titlepage.before.recto"> 1308 </xsl:template> 1309 1310 <xsl:template name="acknowledgements.titlepage.before.verso"> 1311 </xsl:template> 1312 1313 <xsl:template name="acknowledgements.titlepage"> 1314 <div class="titlepage"> 1315 <xsl:variable name="recto.content"> 1316 <xsl:call-template name="acknowledgements.titlepage.before.recto"/> 1317 <xsl:call-template name="acknowledgements.titlepage.recto"/> 1318 </xsl:variable> 1319 <xsl:variable name="recto.elements.count"> 1320 <xsl:choose> 1321 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> 1322 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> 1323 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> 1324 <xsl:otherwise>1</xsl:otherwise> 1325 </xsl:choose> 1326 </xsl:variable> 1327 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> 1328 <div><xsl:copy-of select="$recto.content"/></div> 1329 </xsl:if> 1330 <xsl:variable name="verso.content"> 1331 <xsl:call-template name="acknowledgements.titlepage.before.verso"/> 1332 <xsl:call-template name="acknowledgements.titlepage.verso"/> 1333 </xsl:variable> 1334 <xsl:variable name="verso.elements.count"> 1335 <xsl:choose> 1336 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> 1337 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> 1338 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> 1339 <xsl:otherwise>1</xsl:otherwise> 1340 </xsl:choose> 1341 </xsl:variable> 1342 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> 1343 <div><xsl:copy-of select="$verso.content"/></div> 1344 </xsl:if> 1345 <xsl:call-template name="acknowledgements.titlepage.separator"/> 1346 </div> 1347 </xsl:template> 1348 1349 <xsl:template match="*" mode="acknowledgements.titlepage.recto.mode"> 1350 <!-- if an element isn't found in this mode, --> 1351 <!-- try the generic titlepage.mode --> 1352 <xsl:apply-templates select="." mode="titlepage.mode"/> 1353 </xsl:template> 1354 1355 <xsl:template match="*" mode="acknowledgements.titlepage.verso.mode"> 1356 <!-- if an element isn't found in this mode, --> 1357 <!-- try the generic titlepage.mode --> 1358 <xsl:apply-templates select="." mode="titlepage.mode"/> 1359 </xsl:template> 1360 1361 <xsl:template match="subtitle" mode="acknowledgements.titlepage.recto.auto.mode"> 1362 <div xsl:use-attribute-sets="acknowledgements.titlepage.recto.style"> 1363 <xsl:apply-templates select="." mode="acknowledgements.titlepage.recto.mode"/> 1329 1364 </div> 1330 1365 </xsl:template> … … 1391 1426 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revhistory"/> 1392 1427 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revhistory"/> 1393 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/abstract"/>1394 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/abstract"/>1395 <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/abstract"/>1396 1428 </xsl:template> 1397 1429 … … 1523 1555 1524 1556 <xsl:template match="revhistory" mode="preface.titlepage.recto.auto.mode"> 1525 <div xsl:use-attribute-sets="preface.titlepage.recto.style">1526 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>1527 </div>1528 </xsl:template>1529 1530 <xsl:template match="abstract" mode="preface.titlepage.recto.auto.mode">1531 1557 <div xsl:use-attribute-sets="preface.titlepage.recto.style"> 1532 1558 <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> … … 1595 1621 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revhistory"/> 1596 1622 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/revhistory"/> 1597 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/abstract"/>1598 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/abstract"/>1599 <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/abstract"/>1600 1623 </xsl:template> 1601 1624 … … 1732 1755 </xsl:template> 1733 1756 1734 <xsl:template match="abstract" mode="chapter.titlepage.recto.auto.mode"> 1735 <div xsl:use-attribute-sets="chapter.titlepage.recto.style"> 1736 <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> 1757 <xsl:template name="topic.titlepage.recto"> 1758 <xsl:choose> 1759 <xsl:when test="topicinfo/title"> 1760 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/title"/> 1761 </xsl:when> 1762 <xsl:when test="info/title"> 1763 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/title"/> 1764 </xsl:when> 1765 <xsl:when test="title"> 1766 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="title"/> 1767 </xsl:when> 1768 </xsl:choose> 1769 1770 <xsl:choose> 1771 <xsl:when test="topicinfo/subtitle"> 1772 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/subtitle"/> 1773 </xsl:when> 1774 <xsl:when test="info/subtitle"> 1775 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/subtitle"/> 1776 </xsl:when> 1777 <xsl:when test="subtitle"> 1778 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="subtitle"/> 1779 </xsl:when> 1780 </xsl:choose> 1781 1782 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/corpauthor"/> 1783 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/corpauthor"/> 1784 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/authorgroup"/> 1785 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/authorgroup"/> 1786 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/author"/> 1787 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/author"/> 1788 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/othercredit"/> 1789 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/othercredit"/> 1790 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/releaseinfo"/> 1791 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/releaseinfo"/> 1792 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/copyright"/> 1793 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/copyright"/> 1794 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/legalnotice"/> 1795 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/legalnotice"/> 1796 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/pubdate"/> 1797 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/pubdate"/> 1798 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/revision"/> 1799 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/revision"/> 1800 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="topicinfo/revhistory"/> 1801 <xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="info/revhistory"/> 1802 </xsl:template> 1803 1804 <xsl:template name="topic.titlepage.verso"> 1805 </xsl:template> 1806 1807 <xsl:template name="topic.titlepage.separator"> 1808 </xsl:template> 1809 1810 <xsl:template name="topic.titlepage.before.recto"> 1811 </xsl:template> 1812 1813 <xsl:template name="topic.titlepage.before.verso"> 1814 </xsl:template> 1815 1816 <xsl:template name="topic.titlepage"> 1817 <div class="titlepage"> 1818 <xsl:variable name="recto.content"> 1819 <xsl:call-template name="topic.titlepage.before.recto"/> 1820 <xsl:call-template name="topic.titlepage.recto"/> 1821 </xsl:variable> 1822 <xsl:variable name="recto.elements.count"> 1823 <xsl:choose> 1824 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> 1825 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> 1826 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> 1827 <xsl:otherwise>1</xsl:otherwise> 1828 </xsl:choose> 1829 </xsl:variable> 1830 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> 1831 <div><xsl:copy-of select="$recto.content"/></div> 1832 </xsl:if> 1833 <xsl:variable name="verso.content"> 1834 <xsl:call-template name="topic.titlepage.before.verso"/> 1835 <xsl:call-template name="topic.titlepage.verso"/> 1836 </xsl:variable> 1837 <xsl:variable name="verso.elements.count"> 1838 <xsl:choose> 1839 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> 1840 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> 1841 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> 1842 <xsl:otherwise>1</xsl:otherwise> 1843 </xsl:choose> 1844 </xsl:variable> 1845 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> 1846 <div><xsl:copy-of select="$verso.content"/></div> 1847 </xsl:if> 1848 <xsl:call-template name="topic.titlepage.separator"/> 1849 </div> 1850 </xsl:template> 1851 1852 <xsl:template match="*" mode="topic.titlepage.recto.mode"> 1853 <!-- if an element isn't found in this mode, --> 1854 <!-- try the generic titlepage.mode --> 1855 <xsl:apply-templates select="." mode="titlepage.mode"/> 1856 </xsl:template> 1857 1858 <xsl:template match="*" mode="topic.titlepage.verso.mode"> 1859 <!-- if an element isn't found in this mode, --> 1860 <!-- try the generic titlepage.mode --> 1861 <xsl:apply-templates select="." mode="titlepage.mode"/> 1862 </xsl:template> 1863 1864 <xsl:template match="title" mode="topic.titlepage.recto.auto.mode"> 1865 <div xsl:use-attribute-sets="topic.titlepage.recto.style"> 1866 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> 1867 </div> 1868 </xsl:template> 1869 1870 <xsl:template match="subtitle" mode="topic.titlepage.recto.auto.mode"> 1871 <div xsl:use-attribute-sets="topic.titlepage.recto.style"> 1872 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> 1873 </div> 1874 </xsl:template> 1875 1876 <xsl:template match="corpauthor" mode="topic.titlepage.recto.auto.mode"> 1877 <div xsl:use-attribute-sets="topic.titlepage.recto.style"> 1878 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> 1879 </div> 1880 </xsl:template> 1881 1882 <xsl:template match="authorgroup" mode="topic.titlepage.recto.auto.mode"> 1883 <div xsl:use-attribute-sets="topic.titlepage.recto.style"> 1884 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> 1885 </div> 1886 </xsl:template> 1887 1888 <xsl:template match="author" mode="topic.titlepage.recto.auto.mode"> 1889 <div xsl:use-attribute-sets="topic.titlepage.recto.style"> 1890 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> 1891 </div> 1892 </xsl:template> 1893 1894 <xsl:template match="othercredit" mode="topic.titlepage.recto.auto.mode"> 1895 <div xsl:use-attribute-sets="topic.titlepage.recto.style"> 1896 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> 1897 </div> 1898 </xsl:template> 1899 1900 <xsl:template match="releaseinfo" mode="topic.titlepage.recto.auto.mode"> 1901 <div xsl:use-attribute-sets="topic.titlepage.recto.style"> 1902 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> 1903 </div> 1904 </xsl:template> 1905 1906 <xsl:template match="copyright" mode="topic.titlepage.recto.auto.mode"> 1907 <div xsl:use-attribute-sets="topic.titlepage.recto.style"> 1908 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> 1909 </div> 1910 </xsl:template> 1911 1912 <xsl:template match="legalnotice" mode="topic.titlepage.recto.auto.mode"> 1913 <div xsl:use-attribute-sets="topic.titlepage.recto.style"> 1914 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> 1915 </div> 1916 </xsl:template> 1917 1918 <xsl:template match="pubdate" mode="topic.titlepage.recto.auto.mode"> 1919 <div xsl:use-attribute-sets="topic.titlepage.recto.style"> 1920 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> 1921 </div> 1922 </xsl:template> 1923 1924 <xsl:template match="revision" mode="topic.titlepage.recto.auto.mode"> 1925 <div xsl:use-attribute-sets="topic.titlepage.recto.style"> 1926 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> 1927 </div> 1928 </xsl:template> 1929 1930 <xsl:template match="revhistory" mode="topic.titlepage.recto.auto.mode"> 1931 <div xsl:use-attribute-sets="topic.titlepage.recto.style"> 1932 <xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/> 1737 1933 </div> 1738 1934 </xsl:template> … … 1799 1995 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revhistory"/> 1800 1996 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/revhistory"/> 1801 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/abstract"/>1802 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/abstract"/>1803 <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/abstract"/>1804 1997 </xsl:template> 1805 1998 … … 1931 2124 1932 2125 <xsl:template match="revhistory" mode="appendix.titlepage.recto.auto.mode"> 1933 <div xsl:use-attribute-sets="appendix.titlepage.recto.style">1934 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>1935 </div>1936 </xsl:template>1937 1938 <xsl:template match="abstract" mode="appendix.titlepage.recto.auto.mode">1939 2126 <div xsl:use-attribute-sets="appendix.titlepage.recto.style"> 1940 2127 <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> … … 1987 2174 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revhistory"/> 1988 2175 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/revhistory"/> 1989 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/abstract"/>1990 <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/abstract"/>1991 2176 </xsl:template> 1992 2177 … … 2118 2303 2119 2304 <xsl:template match="revhistory" mode="section.titlepage.recto.auto.mode"> 2120 <div xsl:use-attribute-sets="section.titlepage.recto.style">2121 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>2122 </div>2123 </xsl:template>2124 2125 <xsl:template match="abstract" mode="section.titlepage.recto.auto.mode">2126 2305 <div xsl:use-attribute-sets="section.titlepage.recto.style"> 2127 2306 <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> … … 2174 2353 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revhistory"/> 2175 2354 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/revhistory"/> 2176 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/abstract"/>2177 <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/abstract"/>2178 2355 </xsl:template> 2179 2356 … … 2305 2482 2306 2483 <xsl:template match="revhistory" mode="sect1.titlepage.recto.auto.mode"> 2307 <div xsl:use-attribute-sets="sect1.titlepage.recto.style">2308 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>2309 </div>2310 </xsl:template>2311 2312 <xsl:template match="abstract" mode="sect1.titlepage.recto.auto.mode">2313 2484 <div xsl:use-attribute-sets="sect1.titlepage.recto.style"> 2314 2485 <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/> … … 2361 2532 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revhistory"/> 2362 2533 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/revhistory"/> 2363 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/abstract"/>2364 <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/abstract"/>2365 2534 </xsl:template> 2366 2535 … … 2492 2661 2493 2662 <xsl:template match="revhistory" mode="sect2.titlepage.recto.auto.mode"> 2494 <div xsl:use-attribute-sets="sect2.titlepage.recto.style">2495 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>2496 </div>2497 </xsl:template>2498 2499 <xsl:template match="abstract" mode="sect2.titlepage.recto.auto.mode">2500 2663 <div xsl:use-attribute-sets="sect2.titlepage.recto.style"> 2501 2664 <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/> … … 2548 2711 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revhistory"/> 2549 2712 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/revhistory"/> 2550 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/abstract"/>2551 <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/abstract"/>2552 2713 </xsl:template> 2553 2714 … … 2679 2840 2680 2841 <xsl:template match="revhistory" mode="sect3.titlepage.recto.auto.mode"> 2681 <div xsl:use-attribute-sets="sect3.titlepage.recto.style">2682 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>2683 </div>2684 </xsl:template>2685 2686 <xsl:template match="abstract" mode="sect3.titlepage.recto.auto.mode">2687 2842 <div xsl:use-attribute-sets="sect3.titlepage.recto.style"> 2688 2843 <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/> … … 2735 2890 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revhistory"/> 2736 2891 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/revhistory"/> 2737 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/abstract"/>2738 <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/abstract"/>2739 2892 </xsl:template> 2740 2893 … … 2866 3019 2867 3020 <xsl:template match="revhistory" mode="sect4.titlepage.recto.auto.mode"> 2868 <div xsl:use-attribute-sets="sect4.titlepage.recto.style">2869 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>2870 </div>2871 </xsl:template>2872 2873 <xsl:template match="abstract" mode="sect4.titlepage.recto.auto.mode">2874 3021 <div xsl:use-attribute-sets="sect4.titlepage.recto.style"> 2875 3022 <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/> … … 2922 3069 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revhistory"/> 2923 3070 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/revhistory"/> 2924 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/abstract"/>2925 <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/abstract"/>2926 3071 </xsl:template> 2927 3072 … … 3053 3198 3054 3199 <xsl:template match="revhistory" mode="sect5.titlepage.recto.auto.mode"> 3055 <div xsl:use-attribute-sets="sect5.titlepage.recto.style">3056 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>3057 </div>3058 </xsl:template>3059 3060 <xsl:template match="abstract" mode="sect5.titlepage.recto.auto.mode">3061 3200 <div xsl:use-attribute-sets="sect5.titlepage.recto.style"> 3062 3201 <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/> … … 3125 3264 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revhistory"/> 3126 3265 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/revhistory"/> 3127 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/abstract"/>3128 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/abstract"/>3129 <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/abstract"/>3130 3266 </xsl:template> 3131 3267 … … 3262 3398 </xsl:template> 3263 3399 3264 <xsl:template match="abstract" mode="simplesect.titlepage.recto.auto.mode">3265 <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">3266 <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>3267 </div>3268 </xsl:template>3269 3270 3400 <xsl:template name="bibliography.titlepage.recto"> 3271 3401 <div xsl:use-attribute-sets="bibliography.titlepage.recto.style"> … … 3620 3750 </xsl:template> 3621 3751 3752 <xsl:template name="sidebar.titlepage.recto"> 3753 <xsl:choose> 3754 <xsl:when test="sidebarinfo/title"> 3755 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="sidebarinfo/title"/> 3756 </xsl:when> 3757 <xsl:when test="docinfo/title"> 3758 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="docinfo/title"/> 3759 </xsl:when> 3760 <xsl:when test="info/title"> 3761 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="info/title"/> 3762 </xsl:when> 3763 <xsl:when test="title"> 3764 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="title"/> 3765 </xsl:when> 3766 </xsl:choose> 3767 3768 <xsl:choose> 3769 <xsl:when test="sidebarinfo/subtitle"> 3770 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="sidebarinfo/subtitle"/> 3771 </xsl:when> 3772 <xsl:when test="docinfo/subtitle"> 3773 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="docinfo/subtitle"/> 3774 </xsl:when> 3775 <xsl:when test="info/subtitle"> 3776 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="info/subtitle"/> 3777 </xsl:when> 3778 <xsl:when test="subtitle"> 3779 <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="subtitle"/> 3780 </xsl:when> 3781 </xsl:choose> 3782 3783 </xsl:template> 3784 3785 <xsl:template name="sidebar.titlepage.verso"> 3786 </xsl:template> 3787 3788 <xsl:template name="sidebar.titlepage.separator"> 3789 </xsl:template> 3790 3791 <xsl:template name="sidebar.titlepage.before.recto"> 3792 </xsl:template> 3793 3794 <xsl:template name="sidebar.titlepage.before.verso"> 3795 </xsl:template> 3796 3797 <xsl:template name="sidebar.titlepage"> 3798 <div class="titlepage"> 3799 <xsl:variable name="recto.content"> 3800 <xsl:call-template name="sidebar.titlepage.before.recto"/> 3801 <xsl:call-template name="sidebar.titlepage.recto"/> 3802 </xsl:variable> 3803 <xsl:variable name="recto.elements.count"> 3804 <xsl:choose> 3805 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> 3806 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> 3807 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when> 3808 <xsl:otherwise>1</xsl:otherwise> 3809 </xsl:choose> 3810 </xsl:variable> 3811 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)"> 3812 <div><xsl:copy-of select="$recto.content"/></div> 3813 </xsl:if> 3814 <xsl:variable name="verso.content"> 3815 <xsl:call-template name="sidebar.titlepage.before.verso"/> 3816 <xsl:call-template name="sidebar.titlepage.verso"/> 3817 </xsl:variable> 3818 <xsl:variable name="verso.elements.count"> 3819 <xsl:choose> 3820 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> 3821 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')"> 3822 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when> 3823 <xsl:otherwise>1</xsl:otherwise> 3824 </xsl:choose> 3825 </xsl:variable> 3826 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)"> 3827 <div><xsl:copy-of select="$verso.content"/></div> 3828 </xsl:if> 3829 <xsl:call-template name="sidebar.titlepage.separator"/> 3830 </div> 3831 </xsl:template> 3832 3833 <xsl:template match="*" mode="sidebar.titlepage.recto.mode"> 3834 <!-- if an element isn't found in this mode, --> 3835 <!-- try the generic titlepage.mode --> 3836 <xsl:apply-templates select="." mode="titlepage.mode"/> 3837 </xsl:template> 3838 3839 <xsl:template match="*" mode="sidebar.titlepage.verso.mode"> 3840 <!-- if an element isn't found in this mode, --> 3841 <!-- try the generic titlepage.mode --> 3842 <xsl:apply-templates select="." mode="titlepage.mode"/> 3843 </xsl:template> 3844 3845 <xsl:template match="title" mode="sidebar.titlepage.recto.auto.mode"> 3846 <div xsl:use-attribute-sets="sidebar.titlepage.recto.style"> 3847 <xsl:call-template name="formal.object.heading"> 3848 <xsl:with-param name="object" select="ancestor-or-self::sidebar[1]"/> 3849 </xsl:call-template> 3850 </div> 3851 </xsl:template> 3852 3853 <xsl:template match="subtitle" mode="sidebar.titlepage.recto.auto.mode"> 3854 <div xsl:use-attribute-sets="sidebar.titlepage.recto.style"> 3855 <xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/> 3856 </div> 3857 </xsl:template> 3858 3622 3859 </xsl:stylesheet> 3860
Note:
See TracChangeset
for help on using the changeset viewer.