docbook_xsl_wrapper 0.1.2 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/CHANGELOG +41 -0
- data/README.md +9 -17
- data/bin/docbook_xsl_wrapper +9 -14
- data/docbook_xsl_wrapper.gemspec +8 -7
- data/lib/docbook_xsl_wrapper.rb +24 -1
- data/lib/docbook_xsl_wrapper/epub.rb +124 -122
- data/lib/docbook_xsl_wrapper/options.rb +1 -1
- data/lib/docbook_xsl_wrapper/validate.rb +22 -0
- data/lib/docbook_xsl_wrapper/version.rb +1 -1
- data/schema/docbookxi.rng +18654 -0
- data/spec/docbook_xsl_wrapper/validate_spec.rb +64 -0
- data/xsl/AUTHORS +4 -0
- data/xsl/COPYING +48 -0
- data/xsl/REVISION +1 -0
- data/xsl/VERSION.xsl +115 -0
- data/xsl/common/addns.xsl +124 -0
- data/xsl/common/af.xml +1272 -0
- data/xsl/common/am.xml +1272 -0
- data/xsl/common/ar.xml +1272 -0
- data/xsl/common/as.xml +703 -0
- data/xsl/common/ast.xml +703 -0
- data/xsl/common/autoidx-kimber.xsl +45 -0
- data/xsl/common/autoidx-kosek.xsl +155 -0
- data/xsl/common/az.xml +715 -0
- data/xsl/common/bg.xml +767 -0
- data/xsl/common/bn.xml +1272 -0
- data/xsl/common/bn_in.xml +703 -0
- data/xsl/common/bs.xml +705 -0
- data/xsl/common/ca.xml +703 -0
- data/xsl/common/charmap.xsl +222 -0
- data/xsl/common/common.xsl +2129 -0
- data/xsl/common/cs.xml +743 -0
- data/xsl/common/cy.xml +1288 -0
- data/xsl/common/da.xml +707 -0
- data/xsl/common/de.xml +709 -0
- data/xsl/common/el.xml +772 -0
- data/xsl/common/en.xml +1272 -0
- data/xsl/common/entities.ent +67 -0
- data/xsl/common/eo.xml +1272 -0
- data/xsl/common/es.xml +719 -0
- data/xsl/common/et.xml +1272 -0
- data/xsl/common/eu.xml +1272 -0
- data/xsl/common/fa.xml +703 -0
- data/xsl/common/fi.xml +713 -0
- data/xsl/common/fr.xml +733 -0
- data/xsl/common/ga.xml +1272 -0
- data/xsl/common/gentext.xsl +855 -0
- data/xsl/common/gl.xml +1272 -0
- data/xsl/common/gu.xml +703 -0
- data/xsl/common/he.xml +1272 -0
- data/xsl/common/hi.xml +703 -0
- data/xsl/common/hr.xml +705 -0
- data/xsl/common/hu.xml +721 -0
- data/xsl/common/id.xml +1272 -0
- data/xsl/common/insertfile.xsl +113 -0
- data/xsl/common/is.xml +715 -0
- data/xsl/common/it.xml +1272 -0
- data/xsl/common/ja.xml +703 -0
- data/xsl/common/ka.xml +743 -0
- data/xsl/common/kn.xml +1272 -0
- data/xsl/common/ko.xml +1272 -0
- data/xsl/common/ky.xml +775 -0
- data/xsl/common/l10n.dtd +64 -0
- data/xsl/common/l10n.xml +78 -0
- data/xsl/common/l10n.xsl +598 -0
- data/xsl/common/la.xml +1272 -0
- data/xsl/common/labels.xsl +933 -0
- data/xsl/common/lt.xml +721 -0
- data/xsl/common/lv.xml +1272 -0
- data/xsl/common/ml.xml +703 -0
- data/xsl/common/mn.xml +773 -0
- data/xsl/common/mr.xml +703 -0
- data/xsl/common/nb.xml +1272 -0
- data/xsl/common/nds.xml +709 -0
- data/xsl/common/nl.xml +703 -0
- data/xsl/common/nn.xml +1272 -0
- data/xsl/common/olink.xsl +1284 -0
- data/xsl/common/or.xml +1272 -0
- data/xsl/common/pa.xml +703 -0
- data/xsl/common/pi.xml +168 -0
- data/xsl/common/pi.xsl +347 -0
- data/xsl/common/pl.xml +721 -0
- data/xsl/common/pt.xml +1272 -0
- data/xsl/common/pt_br.xml +1272 -0
- data/xsl/common/refentry.xsl +1353 -0
- data/xsl/common/ro.xml +1272 -0
- data/xsl/common/ru.xml +769 -0
- data/xsl/common/sk.xml +1272 -0
- data/xsl/common/sl.xml +1272 -0
- data/xsl/common/sq.xml +1272 -0
- data/xsl/common/sr.xml +763 -0
- data/xsl/common/sr_Latn.xml +722 -0
- data/xsl/common/subtitles.xsl +181 -0
- data/xsl/common/sv.xml +707 -0
- data/xsl/common/ta.xml +703 -0
- data/xsl/common/table.xsl +515 -0
- data/xsl/common/targetdatabase.dtd +49 -0
- data/xsl/common/targets.xsl +338 -0
- data/xsl/common/te.xml +703 -0
- data/xsl/common/th.xml +1272 -0
- data/xsl/common/titles.xsl +850 -0
- data/xsl/common/tl.xml +1272 -0
- data/xsl/common/tr.xml +709 -0
- data/xsl/common/uk.xml +769 -0
- data/xsl/common/ur.xml +705 -0
- data/xsl/common/utility.xsl +291 -0
- data/xsl/common/vi.xml +1272 -0
- data/xsl/common/xh.xml +1272 -0
- data/xsl/common/zh.xml +703 -0
- data/xsl/common/zh_cn.xml +703 -0
- data/xsl/common/zh_tw.xml +703 -0
- data/xsl/epub/docbook.xsl +1769 -0
- data/xsl/epub3/chunk.xsl +30 -0
- data/xsl/epub3/docbook-epub.css.xml +142 -0
- data/xsl/epub3/docbook.xsl +20 -0
- data/xsl/epub3/epub3-chunk-mods.xsl +52 -0
- data/xsl/epub3/epub3-element-mods.xsl +2533 -0
- data/xsl/epub3/titlepage.templates.xml +712 -0
- data/xsl/epub3/titlepage.templates.xsl +3842 -0
- data/xsl/lib/lib.xsl +533 -0
- data/xsl/xhtml/admon.xsl +142 -0
- data/xsl/xhtml/annotations.xsl +160 -0
- data/xsl/xhtml/autoidx.xsl +831 -0
- data/xsl/xhtml/autotoc.xsl +706 -0
- data/xsl/xhtml/biblio-iso690.xsl +1302 -0
- data/xsl/xhtml/biblio.xsl +1371 -0
- data/xsl/xhtml/block.xsl +584 -0
- data/xsl/xhtml/callout.xsl +210 -0
- data/xsl/xhtml/chunk-code.xsl +675 -0
- data/xsl/xhtml/chunk-common.xsl +1627 -0
- data/xsl/xhtml/chunker.xsl +317 -0
- data/xsl/xhtml/component.xsl +440 -0
- data/xsl/xhtml/division.xsl +214 -0
- data/xsl/xhtml/ebnf.xsl +331 -0
- data/xsl/xhtml/footnote.xsl +346 -0
- data/xsl/xhtml/formal.xsl +496 -0
- data/xsl/xhtml/glossary.xsl +602 -0
- data/xsl/xhtml/graphics.xsl +1537 -0
- data/xsl/xhtml/html-rtf.xsl +321 -0
- data/xsl/xhtml/html.xsl +690 -0
- data/xsl/xhtml/htmltbl.xsl +102 -0
- data/xsl/xhtml/index.xsl +264 -0
- data/xsl/xhtml/info.xsl +48 -0
- data/xsl/xhtml/inline.xsl +1508 -0
- data/xsl/xhtml/its.xsl +109 -0
- data/xsl/xhtml/keywords.xsl +38 -0
- data/xsl/xhtml/lists.xsl +1227 -0
- data/xsl/xhtml/math.xsl +286 -0
- data/xsl/xhtml/param.xsl +449 -0
- data/xsl/xhtml/pi.xsl +1237 -0
- data/xsl/xhtml/qandaset.xsl +440 -0
- data/xsl/xhtml/refentry.xsl +307 -0
- data/xsl/xhtml/sections.xsl +564 -0
- data/xsl/xhtml/synop.xsl +1623 -0
- data/xsl/xhtml/table.xsl +1179 -0
- data/xsl/xhtml/task.xsl +76 -0
- data/xsl/xhtml/titlepage.templates.xsl +4005 -0
- data/xsl/xhtml/titlepage.xsl +1108 -0
- data/xsl/xhtml/toc.xsl +334 -0
- data/xsl/xhtml/verbatim.xsl +389 -0
- data/xsl/xhtml/xref.xsl +1268 -0
- data/xsl/xhtml5/docbook.xsl +22 -0
- data/xsl/xhtml5/html5-chunk-mods.xsl +112 -0
- data/xsl/xhtml5/html5-element-mods.xsl +791 -0
- data/xsl/xhtml5/xhtml-docbook.xsl +531 -0
- metadata +207 -27
- data/.rvmrc +0 -48
- data/xslt/obfuscate.xsl +0 -12
data/xsl/xhtml/task.xsl
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="ASCII"?>
|
|
2
|
+
<!--This file was created automatically by html2xhtml-->
|
|
3
|
+
<!--from the HTML stylesheets.-->
|
|
4
|
+
<xsl:stylesheet exclude-result-prefixes="d"
|
|
5
|
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook"
|
|
6
|
+
xmlns="http://www.w3.org/1999/xhtml" version="1.0">
|
|
7
|
+
|
|
8
|
+
<!-- ********************************************************************
|
|
9
|
+
$Id: task.xsl 9363 2012-05-12 23:42:32Z bobstayton $
|
|
10
|
+
********************************************************************
|
|
11
|
+
|
|
12
|
+
This file is part of the XSL DocBook Stylesheet distribution.
|
|
13
|
+
See ../README or http://docbook.sf.net/release/xsl/current/ for
|
|
14
|
+
copyright and other information.
|
|
15
|
+
|
|
16
|
+
******************************************************************** -->
|
|
17
|
+
|
|
18
|
+
<!-- ==================================================================== -->
|
|
19
|
+
|
|
20
|
+
<xsl:template match="d:task">
|
|
21
|
+
<xsl:variable name="param.placement" select="substring-after(normalize-space($formal.title.placement), concat(local-name(.), ' '))"/>
|
|
22
|
+
|
|
23
|
+
<xsl:variable name="placement">
|
|
24
|
+
<xsl:choose>
|
|
25
|
+
<xsl:when test="contains($param.placement, ' ')">
|
|
26
|
+
<xsl:value-of select="substring-before($param.placement, ' ')"/>
|
|
27
|
+
</xsl:when>
|
|
28
|
+
<xsl:when test="$param.placement = ''">before</xsl:when>
|
|
29
|
+
<xsl:otherwise>
|
|
30
|
+
<xsl:value-of select="$param.placement"/>
|
|
31
|
+
</xsl:otherwise>
|
|
32
|
+
</xsl:choose>
|
|
33
|
+
</xsl:variable>
|
|
34
|
+
|
|
35
|
+
<xsl:variable name="preamble" select="*[not(self::d:title or self::d:titleabbrev)]"/>
|
|
36
|
+
|
|
37
|
+
<div>
|
|
38
|
+
<xsl:apply-templates select="." mode="common.html.attributes"/>
|
|
39
|
+
<xsl:call-template name="id.attribute"/>
|
|
40
|
+
<xsl:call-template name="anchor"/>
|
|
41
|
+
|
|
42
|
+
<xsl:if test="(d:title or d:info/d:title) and $placement = 'before'">
|
|
43
|
+
<xsl:call-template name="formal.object.heading"/>
|
|
44
|
+
</xsl:if>
|
|
45
|
+
|
|
46
|
+
<xsl:apply-templates select="$preamble"/>
|
|
47
|
+
|
|
48
|
+
<xsl:if test="(d:title or d:info/d:title) and $placement != 'before'">
|
|
49
|
+
<xsl:call-template name="formal.object.heading"/>
|
|
50
|
+
</xsl:if>
|
|
51
|
+
</div>
|
|
52
|
+
</xsl:template>
|
|
53
|
+
|
|
54
|
+
<xsl:template match="d:task/d:title">
|
|
55
|
+
<!-- nop -->
|
|
56
|
+
</xsl:template>
|
|
57
|
+
|
|
58
|
+
<xsl:template match="d:tasksummary">
|
|
59
|
+
<xsl:call-template name="semiformal.object"/>
|
|
60
|
+
</xsl:template>
|
|
61
|
+
|
|
62
|
+
<xsl:template match="d:tasksummary/d:title"/>
|
|
63
|
+
|
|
64
|
+
<xsl:template match="d:taskprerequisites">
|
|
65
|
+
<xsl:call-template name="semiformal.object"/>
|
|
66
|
+
</xsl:template>
|
|
67
|
+
|
|
68
|
+
<xsl:template match="d:taskprerequisites/d:title"/>
|
|
69
|
+
|
|
70
|
+
<xsl:template match="d:taskrelated">
|
|
71
|
+
<xsl:call-template name="semiformal.object"/>
|
|
72
|
+
</xsl:template>
|
|
73
|
+
|
|
74
|
+
<xsl:template match="d:taskrelated/d:title"/>
|
|
75
|
+
|
|
76
|
+
</xsl:stylesheet>
|
|
@@ -0,0 +1,4005 @@
|
|
|
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:d="http://docbook.org/ns/docbook"
|
|
5
|
+
xmlns:exsl="http://exslt.org/common" xmlns="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="exsl d">
|
|
6
|
+
|
|
7
|
+
<!-- This stylesheet was created by template/titlepage.xsl-->
|
|
8
|
+
|
|
9
|
+
<xsl:template name="article.titlepage.recto">
|
|
10
|
+
<xsl:choose>
|
|
11
|
+
<xsl:when test="d:articleinfo/d:title">
|
|
12
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:title"/>
|
|
13
|
+
</xsl:when>
|
|
14
|
+
<xsl:when test="d:artheader/d:title">
|
|
15
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:title"/>
|
|
16
|
+
</xsl:when>
|
|
17
|
+
<xsl:when test="d:info/d:title">
|
|
18
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
19
|
+
</xsl:when>
|
|
20
|
+
<xsl:when test="d:title">
|
|
21
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:title"/>
|
|
22
|
+
</xsl:when>
|
|
23
|
+
</xsl:choose>
|
|
24
|
+
|
|
25
|
+
<xsl:choose>
|
|
26
|
+
<xsl:when test="d:articleinfo/d:subtitle">
|
|
27
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:subtitle"/>
|
|
28
|
+
</xsl:when>
|
|
29
|
+
<xsl:when test="d:artheader/d:subtitle">
|
|
30
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:subtitle"/>
|
|
31
|
+
</xsl:when>
|
|
32
|
+
<xsl:when test="d:info/d:subtitle">
|
|
33
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
34
|
+
</xsl:when>
|
|
35
|
+
<xsl:when test="d:subtitle">
|
|
36
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
37
|
+
</xsl:when>
|
|
38
|
+
</xsl:choose>
|
|
39
|
+
|
|
40
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:corpauthor"/>
|
|
41
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:corpauthor"/>
|
|
42
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
43
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:authorgroup"/>
|
|
44
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:authorgroup"/>
|
|
45
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
46
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:author"/>
|
|
47
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:author"/>
|
|
48
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
49
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:othercredit"/>
|
|
50
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:othercredit"/>
|
|
51
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
52
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:releaseinfo"/>
|
|
53
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:releaseinfo"/>
|
|
54
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
55
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:copyright"/>
|
|
56
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:copyright"/>
|
|
57
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
58
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:legalnotice"/>
|
|
59
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:legalnotice"/>
|
|
60
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
61
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:pubdate"/>
|
|
62
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:pubdate"/>
|
|
63
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
64
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:revision"/>
|
|
65
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:revision"/>
|
|
66
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
67
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:revhistory"/>
|
|
68
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:revhistory"/>
|
|
69
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
70
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:abstract"/>
|
|
71
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:abstract"/>
|
|
72
|
+
<xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
73
|
+
</xsl:template>
|
|
74
|
+
|
|
75
|
+
<xsl:template name="article.titlepage.verso">
|
|
76
|
+
</xsl:template>
|
|
77
|
+
|
|
78
|
+
<xsl:template name="article.titlepage.separator"><hr/>
|
|
79
|
+
</xsl:template>
|
|
80
|
+
|
|
81
|
+
<xsl:template name="article.titlepage.before.recto">
|
|
82
|
+
</xsl:template>
|
|
83
|
+
|
|
84
|
+
<xsl:template name="article.titlepage.before.verso">
|
|
85
|
+
</xsl:template>
|
|
86
|
+
|
|
87
|
+
<xsl:template name="article.titlepage">
|
|
88
|
+
<div class="titlepage">
|
|
89
|
+
<xsl:variable name="recto.content">
|
|
90
|
+
<xsl:call-template name="article.titlepage.before.recto"/>
|
|
91
|
+
<xsl:call-template name="article.titlepage.recto"/>
|
|
92
|
+
</xsl:variable>
|
|
93
|
+
<xsl:variable name="recto.elements.count">
|
|
94
|
+
<xsl:choose>
|
|
95
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
96
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
97
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
98
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
99
|
+
</xsl:choose>
|
|
100
|
+
</xsl:variable>
|
|
101
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
102
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
103
|
+
</xsl:if>
|
|
104
|
+
<xsl:variable name="verso.content">
|
|
105
|
+
<xsl:call-template name="article.titlepage.before.verso"/>
|
|
106
|
+
<xsl:call-template name="article.titlepage.verso"/>
|
|
107
|
+
</xsl:variable>
|
|
108
|
+
<xsl:variable name="verso.elements.count">
|
|
109
|
+
<xsl:choose>
|
|
110
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
111
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
112
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
113
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
114
|
+
</xsl:choose>
|
|
115
|
+
</xsl:variable>
|
|
116
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
117
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
118
|
+
</xsl:if>
|
|
119
|
+
<xsl:call-template name="article.titlepage.separator"/>
|
|
120
|
+
</div>
|
|
121
|
+
</xsl:template>
|
|
122
|
+
|
|
123
|
+
<xsl:template match="*" mode="article.titlepage.recto.mode">
|
|
124
|
+
<!-- if an element isn't found in this mode, -->
|
|
125
|
+
<!-- try the generic titlepage.mode -->
|
|
126
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
127
|
+
</xsl:template>
|
|
128
|
+
|
|
129
|
+
<xsl:template match="*" mode="article.titlepage.verso.mode">
|
|
130
|
+
<!-- if an element isn't found in this mode, -->
|
|
131
|
+
<!-- try the generic titlepage.mode -->
|
|
132
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
133
|
+
</xsl:template>
|
|
134
|
+
|
|
135
|
+
<xsl:template match="d:title" mode="article.titlepage.recto.auto.mode">
|
|
136
|
+
<div xsl:use-attribute-sets="article.titlepage.recto.style">
|
|
137
|
+
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
|
138
|
+
</div>
|
|
139
|
+
</xsl:template>
|
|
140
|
+
|
|
141
|
+
<xsl:template match="d:subtitle" mode="article.titlepage.recto.auto.mode">
|
|
142
|
+
<div xsl:use-attribute-sets="article.titlepage.recto.style">
|
|
143
|
+
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
|
144
|
+
</div>
|
|
145
|
+
</xsl:template>
|
|
146
|
+
|
|
147
|
+
<xsl:template match="d:corpauthor" mode="article.titlepage.recto.auto.mode">
|
|
148
|
+
<div xsl:use-attribute-sets="article.titlepage.recto.style">
|
|
149
|
+
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
|
150
|
+
</div>
|
|
151
|
+
</xsl:template>
|
|
152
|
+
|
|
153
|
+
<xsl:template match="d:authorgroup" mode="article.titlepage.recto.auto.mode">
|
|
154
|
+
<div xsl:use-attribute-sets="article.titlepage.recto.style">
|
|
155
|
+
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
|
156
|
+
</div>
|
|
157
|
+
</xsl:template>
|
|
158
|
+
|
|
159
|
+
<xsl:template match="d:author" mode="article.titlepage.recto.auto.mode">
|
|
160
|
+
<div xsl:use-attribute-sets="article.titlepage.recto.style">
|
|
161
|
+
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
|
162
|
+
</div>
|
|
163
|
+
</xsl:template>
|
|
164
|
+
|
|
165
|
+
<xsl:template match="d:othercredit" mode="article.titlepage.recto.auto.mode">
|
|
166
|
+
<div xsl:use-attribute-sets="article.titlepage.recto.style">
|
|
167
|
+
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
|
168
|
+
</div>
|
|
169
|
+
</xsl:template>
|
|
170
|
+
|
|
171
|
+
<xsl:template match="d:releaseinfo" mode="article.titlepage.recto.auto.mode">
|
|
172
|
+
<div xsl:use-attribute-sets="article.titlepage.recto.style">
|
|
173
|
+
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
|
174
|
+
</div>
|
|
175
|
+
</xsl:template>
|
|
176
|
+
|
|
177
|
+
<xsl:template match="d:copyright" mode="article.titlepage.recto.auto.mode">
|
|
178
|
+
<div xsl:use-attribute-sets="article.titlepage.recto.style">
|
|
179
|
+
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
|
180
|
+
</div>
|
|
181
|
+
</xsl:template>
|
|
182
|
+
|
|
183
|
+
<xsl:template match="d:legalnotice" mode="article.titlepage.recto.auto.mode">
|
|
184
|
+
<div xsl:use-attribute-sets="article.titlepage.recto.style">
|
|
185
|
+
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
|
186
|
+
</div>
|
|
187
|
+
</xsl:template>
|
|
188
|
+
|
|
189
|
+
<xsl:template match="d:pubdate" mode="article.titlepage.recto.auto.mode">
|
|
190
|
+
<div xsl:use-attribute-sets="article.titlepage.recto.style">
|
|
191
|
+
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
|
192
|
+
</div>
|
|
193
|
+
</xsl:template>
|
|
194
|
+
|
|
195
|
+
<xsl:template match="d:revision" mode="article.titlepage.recto.auto.mode">
|
|
196
|
+
<div xsl:use-attribute-sets="article.titlepage.recto.style">
|
|
197
|
+
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
|
198
|
+
</div>
|
|
199
|
+
</xsl:template>
|
|
200
|
+
|
|
201
|
+
<xsl:template match="d:revhistory" mode="article.titlepage.recto.auto.mode">
|
|
202
|
+
<div xsl:use-attribute-sets="article.titlepage.recto.style">
|
|
203
|
+
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
|
204
|
+
</div>
|
|
205
|
+
</xsl:template>
|
|
206
|
+
|
|
207
|
+
<xsl:template match="d:abstract" mode="article.titlepage.recto.auto.mode">
|
|
208
|
+
<div xsl:use-attribute-sets="article.titlepage.recto.style">
|
|
209
|
+
<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
|
210
|
+
</div>
|
|
211
|
+
</xsl:template>
|
|
212
|
+
|
|
213
|
+
<xsl:template name="set.titlepage.recto">
|
|
214
|
+
<xsl:choose>
|
|
215
|
+
<xsl:when test="d:setinfo/d:title">
|
|
216
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:title"/>
|
|
217
|
+
</xsl:when>
|
|
218
|
+
<xsl:when test="d:info/d:title">
|
|
219
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
220
|
+
</xsl:when>
|
|
221
|
+
<xsl:when test="d:title">
|
|
222
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:title"/>
|
|
223
|
+
</xsl:when>
|
|
224
|
+
</xsl:choose>
|
|
225
|
+
|
|
226
|
+
<xsl:choose>
|
|
227
|
+
<xsl:when test="d:setinfo/d:subtitle">
|
|
228
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:subtitle"/>
|
|
229
|
+
</xsl:when>
|
|
230
|
+
<xsl:when test="d:info/d:subtitle">
|
|
231
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
232
|
+
</xsl:when>
|
|
233
|
+
<xsl:when test="d:subtitle">
|
|
234
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
235
|
+
</xsl:when>
|
|
236
|
+
</xsl:choose>
|
|
237
|
+
|
|
238
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:corpauthor"/>
|
|
239
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
240
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:authorgroup"/>
|
|
241
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
242
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:author"/>
|
|
243
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
244
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:othercredit"/>
|
|
245
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
246
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:releaseinfo"/>
|
|
247
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
248
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:copyright"/>
|
|
249
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
250
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:legalnotice"/>
|
|
251
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
252
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:pubdate"/>
|
|
253
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
254
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:revision"/>
|
|
255
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
256
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:revhistory"/>
|
|
257
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
258
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:abstract"/>
|
|
259
|
+
<xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
260
|
+
</xsl:template>
|
|
261
|
+
|
|
262
|
+
<xsl:template name="set.titlepage.verso">
|
|
263
|
+
</xsl:template>
|
|
264
|
+
|
|
265
|
+
<xsl:template name="set.titlepage.separator"><hr/>
|
|
266
|
+
</xsl:template>
|
|
267
|
+
|
|
268
|
+
<xsl:template name="set.titlepage.before.recto">
|
|
269
|
+
</xsl:template>
|
|
270
|
+
|
|
271
|
+
<xsl:template name="set.titlepage.before.verso">
|
|
272
|
+
</xsl:template>
|
|
273
|
+
|
|
274
|
+
<xsl:template name="set.titlepage">
|
|
275
|
+
<div class="titlepage">
|
|
276
|
+
<xsl:variable name="recto.content">
|
|
277
|
+
<xsl:call-template name="set.titlepage.before.recto"/>
|
|
278
|
+
<xsl:call-template name="set.titlepage.recto"/>
|
|
279
|
+
</xsl:variable>
|
|
280
|
+
<xsl:variable name="recto.elements.count">
|
|
281
|
+
<xsl:choose>
|
|
282
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
283
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
284
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
285
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
286
|
+
</xsl:choose>
|
|
287
|
+
</xsl:variable>
|
|
288
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
289
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
290
|
+
</xsl:if>
|
|
291
|
+
<xsl:variable name="verso.content">
|
|
292
|
+
<xsl:call-template name="set.titlepage.before.verso"/>
|
|
293
|
+
<xsl:call-template name="set.titlepage.verso"/>
|
|
294
|
+
</xsl:variable>
|
|
295
|
+
<xsl:variable name="verso.elements.count">
|
|
296
|
+
<xsl:choose>
|
|
297
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
298
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
299
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
300
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
301
|
+
</xsl:choose>
|
|
302
|
+
</xsl:variable>
|
|
303
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
304
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
305
|
+
</xsl:if>
|
|
306
|
+
<xsl:call-template name="set.titlepage.separator"/>
|
|
307
|
+
</div>
|
|
308
|
+
</xsl:template>
|
|
309
|
+
|
|
310
|
+
<xsl:template match="*" mode="set.titlepage.recto.mode">
|
|
311
|
+
<!-- if an element isn't found in this mode, -->
|
|
312
|
+
<!-- try the generic titlepage.mode -->
|
|
313
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
314
|
+
</xsl:template>
|
|
315
|
+
|
|
316
|
+
<xsl:template match="*" mode="set.titlepage.verso.mode">
|
|
317
|
+
<!-- if an element isn't found in this mode, -->
|
|
318
|
+
<!-- try the generic titlepage.mode -->
|
|
319
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
320
|
+
</xsl:template>
|
|
321
|
+
|
|
322
|
+
<xsl:template match="d:title" mode="set.titlepage.recto.auto.mode">
|
|
323
|
+
<div xsl:use-attribute-sets="set.titlepage.recto.style">
|
|
324
|
+
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
|
325
|
+
</div>
|
|
326
|
+
</xsl:template>
|
|
327
|
+
|
|
328
|
+
<xsl:template match="d:subtitle" mode="set.titlepage.recto.auto.mode">
|
|
329
|
+
<div xsl:use-attribute-sets="set.titlepage.recto.style">
|
|
330
|
+
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
|
331
|
+
</div>
|
|
332
|
+
</xsl:template>
|
|
333
|
+
|
|
334
|
+
<xsl:template match="d:corpauthor" mode="set.titlepage.recto.auto.mode">
|
|
335
|
+
<div xsl:use-attribute-sets="set.titlepage.recto.style">
|
|
336
|
+
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
|
337
|
+
</div>
|
|
338
|
+
</xsl:template>
|
|
339
|
+
|
|
340
|
+
<xsl:template match="d:authorgroup" mode="set.titlepage.recto.auto.mode">
|
|
341
|
+
<div xsl:use-attribute-sets="set.titlepage.recto.style">
|
|
342
|
+
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
|
343
|
+
</div>
|
|
344
|
+
</xsl:template>
|
|
345
|
+
|
|
346
|
+
<xsl:template match="d:author" mode="set.titlepage.recto.auto.mode">
|
|
347
|
+
<div xsl:use-attribute-sets="set.titlepage.recto.style">
|
|
348
|
+
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
|
349
|
+
</div>
|
|
350
|
+
</xsl:template>
|
|
351
|
+
|
|
352
|
+
<xsl:template match="d:othercredit" mode="set.titlepage.recto.auto.mode">
|
|
353
|
+
<div xsl:use-attribute-sets="set.titlepage.recto.style">
|
|
354
|
+
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
|
355
|
+
</div>
|
|
356
|
+
</xsl:template>
|
|
357
|
+
|
|
358
|
+
<xsl:template match="d:releaseinfo" mode="set.titlepage.recto.auto.mode">
|
|
359
|
+
<div xsl:use-attribute-sets="set.titlepage.recto.style">
|
|
360
|
+
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
|
361
|
+
</div>
|
|
362
|
+
</xsl:template>
|
|
363
|
+
|
|
364
|
+
<xsl:template match="d:copyright" mode="set.titlepage.recto.auto.mode">
|
|
365
|
+
<div xsl:use-attribute-sets="set.titlepage.recto.style">
|
|
366
|
+
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
|
367
|
+
</div>
|
|
368
|
+
</xsl:template>
|
|
369
|
+
|
|
370
|
+
<xsl:template match="d:legalnotice" mode="set.titlepage.recto.auto.mode">
|
|
371
|
+
<div xsl:use-attribute-sets="set.titlepage.recto.style">
|
|
372
|
+
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
|
373
|
+
</div>
|
|
374
|
+
</xsl:template>
|
|
375
|
+
|
|
376
|
+
<xsl:template match="d:pubdate" mode="set.titlepage.recto.auto.mode">
|
|
377
|
+
<div xsl:use-attribute-sets="set.titlepage.recto.style">
|
|
378
|
+
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
|
379
|
+
</div>
|
|
380
|
+
</xsl:template>
|
|
381
|
+
|
|
382
|
+
<xsl:template match="d:revision" mode="set.titlepage.recto.auto.mode">
|
|
383
|
+
<div xsl:use-attribute-sets="set.titlepage.recto.style">
|
|
384
|
+
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
|
385
|
+
</div>
|
|
386
|
+
</xsl:template>
|
|
387
|
+
|
|
388
|
+
<xsl:template match="d:revhistory" mode="set.titlepage.recto.auto.mode">
|
|
389
|
+
<div xsl:use-attribute-sets="set.titlepage.recto.style">
|
|
390
|
+
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
|
391
|
+
</div>
|
|
392
|
+
</xsl:template>
|
|
393
|
+
|
|
394
|
+
<xsl:template match="d:abstract" mode="set.titlepage.recto.auto.mode">
|
|
395
|
+
<div xsl:use-attribute-sets="set.titlepage.recto.style">
|
|
396
|
+
<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
|
397
|
+
</div>
|
|
398
|
+
</xsl:template>
|
|
399
|
+
|
|
400
|
+
<xsl:template name="book.titlepage.recto">
|
|
401
|
+
<xsl:choose>
|
|
402
|
+
<xsl:when test="d:bookinfo/d:title">
|
|
403
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:title"/>
|
|
404
|
+
</xsl:when>
|
|
405
|
+
<xsl:when test="d:info/d:title">
|
|
406
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
407
|
+
</xsl:when>
|
|
408
|
+
<xsl:when test="d:title">
|
|
409
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:title"/>
|
|
410
|
+
</xsl:when>
|
|
411
|
+
</xsl:choose>
|
|
412
|
+
|
|
413
|
+
<xsl:choose>
|
|
414
|
+
<xsl:when test="d:bookinfo/d:subtitle">
|
|
415
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:subtitle"/>
|
|
416
|
+
</xsl:when>
|
|
417
|
+
<xsl:when test="d:info/d:subtitle">
|
|
418
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
419
|
+
</xsl:when>
|
|
420
|
+
<xsl:when test="d:subtitle">
|
|
421
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
422
|
+
</xsl:when>
|
|
423
|
+
</xsl:choose>
|
|
424
|
+
|
|
425
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:corpauthor"/>
|
|
426
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
427
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:authorgroup"/>
|
|
428
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
429
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:author"/>
|
|
430
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
431
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:othercredit"/>
|
|
432
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
433
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:releaseinfo"/>
|
|
434
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
435
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:copyright"/>
|
|
436
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
437
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:legalnotice"/>
|
|
438
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
439
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:pubdate"/>
|
|
440
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
441
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:revision"/>
|
|
442
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
443
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:revhistory"/>
|
|
444
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
445
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:abstract"/>
|
|
446
|
+
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
447
|
+
</xsl:template>
|
|
448
|
+
|
|
449
|
+
<xsl:template name="book.titlepage.verso">
|
|
450
|
+
</xsl:template>
|
|
451
|
+
|
|
452
|
+
<xsl:template name="book.titlepage.separator"><hr/>
|
|
453
|
+
</xsl:template>
|
|
454
|
+
|
|
455
|
+
<xsl:template name="book.titlepage.before.recto">
|
|
456
|
+
</xsl:template>
|
|
457
|
+
|
|
458
|
+
<xsl:template name="book.titlepage.before.verso">
|
|
459
|
+
</xsl:template>
|
|
460
|
+
|
|
461
|
+
<xsl:template name="book.titlepage">
|
|
462
|
+
<div class="titlepage">
|
|
463
|
+
<xsl:variable name="recto.content">
|
|
464
|
+
<xsl:call-template name="book.titlepage.before.recto"/>
|
|
465
|
+
<xsl:call-template name="book.titlepage.recto"/>
|
|
466
|
+
</xsl:variable>
|
|
467
|
+
<xsl:variable name="recto.elements.count">
|
|
468
|
+
<xsl:choose>
|
|
469
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
470
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
471
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
472
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
473
|
+
</xsl:choose>
|
|
474
|
+
</xsl:variable>
|
|
475
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
476
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
477
|
+
</xsl:if>
|
|
478
|
+
<xsl:variable name="verso.content">
|
|
479
|
+
<xsl:call-template name="book.titlepage.before.verso"/>
|
|
480
|
+
<xsl:call-template name="book.titlepage.verso"/>
|
|
481
|
+
</xsl:variable>
|
|
482
|
+
<xsl:variable name="verso.elements.count">
|
|
483
|
+
<xsl:choose>
|
|
484
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
485
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
486
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
487
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
488
|
+
</xsl:choose>
|
|
489
|
+
</xsl:variable>
|
|
490
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
491
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
492
|
+
</xsl:if>
|
|
493
|
+
<xsl:call-template name="book.titlepage.separator"/>
|
|
494
|
+
</div>
|
|
495
|
+
</xsl:template>
|
|
496
|
+
|
|
497
|
+
<xsl:template match="*" mode="book.titlepage.recto.mode">
|
|
498
|
+
<!-- if an element isn't found in this mode, -->
|
|
499
|
+
<!-- try the generic titlepage.mode -->
|
|
500
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
501
|
+
</xsl:template>
|
|
502
|
+
|
|
503
|
+
<xsl:template match="*" mode="book.titlepage.verso.mode">
|
|
504
|
+
<!-- if an element isn't found in this mode, -->
|
|
505
|
+
<!-- try the generic titlepage.mode -->
|
|
506
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
507
|
+
</xsl:template>
|
|
508
|
+
|
|
509
|
+
<xsl:template match="d:title" mode="book.titlepage.recto.auto.mode">
|
|
510
|
+
<div xsl:use-attribute-sets="book.titlepage.recto.style">
|
|
511
|
+
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
512
|
+
</div>
|
|
513
|
+
</xsl:template>
|
|
514
|
+
|
|
515
|
+
<xsl:template match="d:subtitle" mode="book.titlepage.recto.auto.mode">
|
|
516
|
+
<div xsl:use-attribute-sets="book.titlepage.recto.style">
|
|
517
|
+
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
518
|
+
</div>
|
|
519
|
+
</xsl:template>
|
|
520
|
+
|
|
521
|
+
<xsl:template match="d:corpauthor" mode="book.titlepage.recto.auto.mode">
|
|
522
|
+
<div xsl:use-attribute-sets="book.titlepage.recto.style">
|
|
523
|
+
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
524
|
+
</div>
|
|
525
|
+
</xsl:template>
|
|
526
|
+
|
|
527
|
+
<xsl:template match="d:authorgroup" mode="book.titlepage.recto.auto.mode">
|
|
528
|
+
<div xsl:use-attribute-sets="book.titlepage.recto.style">
|
|
529
|
+
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
530
|
+
</div>
|
|
531
|
+
</xsl:template>
|
|
532
|
+
|
|
533
|
+
<xsl:template match="d:author" mode="book.titlepage.recto.auto.mode">
|
|
534
|
+
<div xsl:use-attribute-sets="book.titlepage.recto.style">
|
|
535
|
+
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
536
|
+
</div>
|
|
537
|
+
</xsl:template>
|
|
538
|
+
|
|
539
|
+
<xsl:template match="d:othercredit" mode="book.titlepage.recto.auto.mode">
|
|
540
|
+
<div xsl:use-attribute-sets="book.titlepage.recto.style">
|
|
541
|
+
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
542
|
+
</div>
|
|
543
|
+
</xsl:template>
|
|
544
|
+
|
|
545
|
+
<xsl:template match="d:releaseinfo" mode="book.titlepage.recto.auto.mode">
|
|
546
|
+
<div xsl:use-attribute-sets="book.titlepage.recto.style">
|
|
547
|
+
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
548
|
+
</div>
|
|
549
|
+
</xsl:template>
|
|
550
|
+
|
|
551
|
+
<xsl:template match="d:copyright" mode="book.titlepage.recto.auto.mode">
|
|
552
|
+
<div xsl:use-attribute-sets="book.titlepage.recto.style">
|
|
553
|
+
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
554
|
+
</div>
|
|
555
|
+
</xsl:template>
|
|
556
|
+
|
|
557
|
+
<xsl:template match="d:legalnotice" mode="book.titlepage.recto.auto.mode">
|
|
558
|
+
<div xsl:use-attribute-sets="book.titlepage.recto.style">
|
|
559
|
+
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
560
|
+
</div>
|
|
561
|
+
</xsl:template>
|
|
562
|
+
|
|
563
|
+
<xsl:template match="d:pubdate" mode="book.titlepage.recto.auto.mode">
|
|
564
|
+
<div xsl:use-attribute-sets="book.titlepage.recto.style">
|
|
565
|
+
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
566
|
+
</div>
|
|
567
|
+
</xsl:template>
|
|
568
|
+
|
|
569
|
+
<xsl:template match="d:revision" mode="book.titlepage.recto.auto.mode">
|
|
570
|
+
<div xsl:use-attribute-sets="book.titlepage.recto.style">
|
|
571
|
+
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
572
|
+
</div>
|
|
573
|
+
</xsl:template>
|
|
574
|
+
|
|
575
|
+
<xsl:template match="d:revhistory" mode="book.titlepage.recto.auto.mode">
|
|
576
|
+
<div xsl:use-attribute-sets="book.titlepage.recto.style">
|
|
577
|
+
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
578
|
+
</div>
|
|
579
|
+
</xsl:template>
|
|
580
|
+
|
|
581
|
+
<xsl:template match="d:abstract" mode="book.titlepage.recto.auto.mode">
|
|
582
|
+
<div xsl:use-attribute-sets="book.titlepage.recto.style">
|
|
583
|
+
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
|
584
|
+
</div>
|
|
585
|
+
</xsl:template>
|
|
586
|
+
|
|
587
|
+
<xsl:template name="part.titlepage.recto">
|
|
588
|
+
<div xsl:use-attribute-sets="part.titlepage.recto.style">
|
|
589
|
+
<xsl:call-template name="division.title">
|
|
590
|
+
<xsl:with-param name="node" select="ancestor-or-self::d:part[1]"/>
|
|
591
|
+
</xsl:call-template></div>
|
|
592
|
+
<xsl:choose>
|
|
593
|
+
<xsl:when test="d:partinfo/d:subtitle">
|
|
594
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:subtitle"/>
|
|
595
|
+
</xsl:when>
|
|
596
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
597
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
598
|
+
</xsl:when>
|
|
599
|
+
<xsl:when test="d:info/d:subtitle">
|
|
600
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
601
|
+
</xsl:when>
|
|
602
|
+
<xsl:when test="d:subtitle">
|
|
603
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
604
|
+
</xsl:when>
|
|
605
|
+
</xsl:choose>
|
|
606
|
+
|
|
607
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:corpauthor"/>
|
|
608
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
|
|
609
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
610
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:authorgroup"/>
|
|
611
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
|
|
612
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
613
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:author"/>
|
|
614
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
|
|
615
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
616
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:othercredit"/>
|
|
617
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
|
|
618
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
619
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:releaseinfo"/>
|
|
620
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
|
|
621
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
622
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:copyright"/>
|
|
623
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
|
|
624
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
625
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:legalnotice"/>
|
|
626
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
|
|
627
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
628
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:pubdate"/>
|
|
629
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
|
|
630
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
631
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:revision"/>
|
|
632
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
|
|
633
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
634
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:revhistory"/>
|
|
635
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
|
|
636
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
637
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:abstract"/>
|
|
638
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
|
|
639
|
+
<xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
640
|
+
</xsl:template>
|
|
641
|
+
|
|
642
|
+
<xsl:template name="part.titlepage.verso">
|
|
643
|
+
</xsl:template>
|
|
644
|
+
|
|
645
|
+
<xsl:template name="part.titlepage.separator">
|
|
646
|
+
</xsl:template>
|
|
647
|
+
|
|
648
|
+
<xsl:template name="part.titlepage.before.recto">
|
|
649
|
+
</xsl:template>
|
|
650
|
+
|
|
651
|
+
<xsl:template name="part.titlepage.before.verso">
|
|
652
|
+
</xsl:template>
|
|
653
|
+
|
|
654
|
+
<xsl:template name="part.titlepage">
|
|
655
|
+
<div class="titlepage">
|
|
656
|
+
<xsl:variable name="recto.content">
|
|
657
|
+
<xsl:call-template name="part.titlepage.before.recto"/>
|
|
658
|
+
<xsl:call-template name="part.titlepage.recto"/>
|
|
659
|
+
</xsl:variable>
|
|
660
|
+
<xsl:variable name="recto.elements.count">
|
|
661
|
+
<xsl:choose>
|
|
662
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
663
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
664
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
665
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
666
|
+
</xsl:choose>
|
|
667
|
+
</xsl:variable>
|
|
668
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
669
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
670
|
+
</xsl:if>
|
|
671
|
+
<xsl:variable name="verso.content">
|
|
672
|
+
<xsl:call-template name="part.titlepage.before.verso"/>
|
|
673
|
+
<xsl:call-template name="part.titlepage.verso"/>
|
|
674
|
+
</xsl:variable>
|
|
675
|
+
<xsl:variable name="verso.elements.count">
|
|
676
|
+
<xsl:choose>
|
|
677
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
678
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
679
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
680
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
681
|
+
</xsl:choose>
|
|
682
|
+
</xsl:variable>
|
|
683
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
684
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
685
|
+
</xsl:if>
|
|
686
|
+
<xsl:call-template name="part.titlepage.separator"/>
|
|
687
|
+
</div>
|
|
688
|
+
</xsl:template>
|
|
689
|
+
|
|
690
|
+
<xsl:template match="*" mode="part.titlepage.recto.mode">
|
|
691
|
+
<!-- if an element isn't found in this mode, -->
|
|
692
|
+
<!-- try the generic titlepage.mode -->
|
|
693
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
694
|
+
</xsl:template>
|
|
695
|
+
|
|
696
|
+
<xsl:template match="*" mode="part.titlepage.verso.mode">
|
|
697
|
+
<!-- if an element isn't found in this mode, -->
|
|
698
|
+
<!-- try the generic titlepage.mode -->
|
|
699
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
700
|
+
</xsl:template>
|
|
701
|
+
|
|
702
|
+
<xsl:template match="d:subtitle" mode="part.titlepage.recto.auto.mode">
|
|
703
|
+
<div xsl:use-attribute-sets="part.titlepage.recto.style">
|
|
704
|
+
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
|
705
|
+
</div>
|
|
706
|
+
</xsl:template>
|
|
707
|
+
|
|
708
|
+
<xsl:template match="d:corpauthor" mode="part.titlepage.recto.auto.mode">
|
|
709
|
+
<div xsl:use-attribute-sets="part.titlepage.recto.style">
|
|
710
|
+
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
|
711
|
+
</div>
|
|
712
|
+
</xsl:template>
|
|
713
|
+
|
|
714
|
+
<xsl:template match="d:authorgroup" mode="part.titlepage.recto.auto.mode">
|
|
715
|
+
<div xsl:use-attribute-sets="part.titlepage.recto.style">
|
|
716
|
+
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
|
717
|
+
</div>
|
|
718
|
+
</xsl:template>
|
|
719
|
+
|
|
720
|
+
<xsl:template match="d:author" mode="part.titlepage.recto.auto.mode">
|
|
721
|
+
<div xsl:use-attribute-sets="part.titlepage.recto.style">
|
|
722
|
+
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
|
723
|
+
</div>
|
|
724
|
+
</xsl:template>
|
|
725
|
+
|
|
726
|
+
<xsl:template match="d:othercredit" mode="part.titlepage.recto.auto.mode">
|
|
727
|
+
<div xsl:use-attribute-sets="part.titlepage.recto.style">
|
|
728
|
+
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
|
729
|
+
</div>
|
|
730
|
+
</xsl:template>
|
|
731
|
+
|
|
732
|
+
<xsl:template match="d:releaseinfo" mode="part.titlepage.recto.auto.mode">
|
|
733
|
+
<div xsl:use-attribute-sets="part.titlepage.recto.style">
|
|
734
|
+
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
|
735
|
+
</div>
|
|
736
|
+
</xsl:template>
|
|
737
|
+
|
|
738
|
+
<xsl:template match="d:copyright" mode="part.titlepage.recto.auto.mode">
|
|
739
|
+
<div xsl:use-attribute-sets="part.titlepage.recto.style">
|
|
740
|
+
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
|
741
|
+
</div>
|
|
742
|
+
</xsl:template>
|
|
743
|
+
|
|
744
|
+
<xsl:template match="d:legalnotice" mode="part.titlepage.recto.auto.mode">
|
|
745
|
+
<div xsl:use-attribute-sets="part.titlepage.recto.style">
|
|
746
|
+
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
|
747
|
+
</div>
|
|
748
|
+
</xsl:template>
|
|
749
|
+
|
|
750
|
+
<xsl:template match="d:pubdate" mode="part.titlepage.recto.auto.mode">
|
|
751
|
+
<div xsl:use-attribute-sets="part.titlepage.recto.style">
|
|
752
|
+
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
|
753
|
+
</div>
|
|
754
|
+
</xsl:template>
|
|
755
|
+
|
|
756
|
+
<xsl:template match="d:revision" mode="part.titlepage.recto.auto.mode">
|
|
757
|
+
<div xsl:use-attribute-sets="part.titlepage.recto.style">
|
|
758
|
+
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
|
759
|
+
</div>
|
|
760
|
+
</xsl:template>
|
|
761
|
+
|
|
762
|
+
<xsl:template match="d:revhistory" mode="part.titlepage.recto.auto.mode">
|
|
763
|
+
<div xsl:use-attribute-sets="part.titlepage.recto.style">
|
|
764
|
+
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
|
765
|
+
</div>
|
|
766
|
+
</xsl:template>
|
|
767
|
+
|
|
768
|
+
<xsl:template match="d:abstract" mode="part.titlepage.recto.auto.mode">
|
|
769
|
+
<div xsl:use-attribute-sets="part.titlepage.recto.style">
|
|
770
|
+
<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
|
771
|
+
</div>
|
|
772
|
+
</xsl:template>
|
|
773
|
+
|
|
774
|
+
<xsl:template name="partintro.titlepage.recto">
|
|
775
|
+
<xsl:choose>
|
|
776
|
+
<xsl:when test="d:partintroinfo/d:title">
|
|
777
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:title"/>
|
|
778
|
+
</xsl:when>
|
|
779
|
+
<xsl:when test="d:docinfo/d:title">
|
|
780
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
|
|
781
|
+
</xsl:when>
|
|
782
|
+
<xsl:when test="d:info/d:title">
|
|
783
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
784
|
+
</xsl:when>
|
|
785
|
+
<xsl:when test="d:title">
|
|
786
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:title"/>
|
|
787
|
+
</xsl:when>
|
|
788
|
+
</xsl:choose>
|
|
789
|
+
|
|
790
|
+
<xsl:choose>
|
|
791
|
+
<xsl:when test="d:partintroinfo/d:subtitle">
|
|
792
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:subtitle"/>
|
|
793
|
+
</xsl:when>
|
|
794
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
795
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
796
|
+
</xsl:when>
|
|
797
|
+
<xsl:when test="d:info/d:subtitle">
|
|
798
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
799
|
+
</xsl:when>
|
|
800
|
+
<xsl:when test="d:subtitle">
|
|
801
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
802
|
+
</xsl:when>
|
|
803
|
+
</xsl:choose>
|
|
804
|
+
|
|
805
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:corpauthor"/>
|
|
806
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
|
|
807
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
808
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:authorgroup"/>
|
|
809
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
|
|
810
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
811
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:author"/>
|
|
812
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
|
|
813
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
814
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:othercredit"/>
|
|
815
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
|
|
816
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
817
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:releaseinfo"/>
|
|
818
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
|
|
819
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
820
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:copyright"/>
|
|
821
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
|
|
822
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
823
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:legalnotice"/>
|
|
824
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
|
|
825
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
826
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:pubdate"/>
|
|
827
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
|
|
828
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
829
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:revision"/>
|
|
830
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
|
|
831
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
832
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:revhistory"/>
|
|
833
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
|
|
834
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
835
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:abstract"/>
|
|
836
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
|
|
837
|
+
<xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
838
|
+
</xsl:template>
|
|
839
|
+
|
|
840
|
+
<xsl:template name="partintro.titlepage.verso">
|
|
841
|
+
</xsl:template>
|
|
842
|
+
|
|
843
|
+
<xsl:template name="partintro.titlepage.separator">
|
|
844
|
+
</xsl:template>
|
|
845
|
+
|
|
846
|
+
<xsl:template name="partintro.titlepage.before.recto">
|
|
847
|
+
</xsl:template>
|
|
848
|
+
|
|
849
|
+
<xsl:template name="partintro.titlepage.before.verso">
|
|
850
|
+
</xsl:template>
|
|
851
|
+
|
|
852
|
+
<xsl:template name="partintro.titlepage">
|
|
853
|
+
<div>
|
|
854
|
+
<xsl:variable name="recto.content">
|
|
855
|
+
<xsl:call-template name="partintro.titlepage.before.recto"/>
|
|
856
|
+
<xsl:call-template name="partintro.titlepage.recto"/>
|
|
857
|
+
</xsl:variable>
|
|
858
|
+
<xsl:variable name="recto.elements.count">
|
|
859
|
+
<xsl:choose>
|
|
860
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
861
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
862
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
863
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
864
|
+
</xsl:choose>
|
|
865
|
+
</xsl:variable>
|
|
866
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
867
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
868
|
+
</xsl:if>
|
|
869
|
+
<xsl:variable name="verso.content">
|
|
870
|
+
<xsl:call-template name="partintro.titlepage.before.verso"/>
|
|
871
|
+
<xsl:call-template name="partintro.titlepage.verso"/>
|
|
872
|
+
</xsl:variable>
|
|
873
|
+
<xsl:variable name="verso.elements.count">
|
|
874
|
+
<xsl:choose>
|
|
875
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
876
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
877
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
878
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
879
|
+
</xsl:choose>
|
|
880
|
+
</xsl:variable>
|
|
881
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
882
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
883
|
+
</xsl:if>
|
|
884
|
+
<xsl:call-template name="partintro.titlepage.separator"/>
|
|
885
|
+
</div>
|
|
886
|
+
</xsl:template>
|
|
887
|
+
|
|
888
|
+
<xsl:template match="*" mode="partintro.titlepage.recto.mode">
|
|
889
|
+
<!-- if an element isn't found in this mode, -->
|
|
890
|
+
<!-- try the generic titlepage.mode -->
|
|
891
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
892
|
+
</xsl:template>
|
|
893
|
+
|
|
894
|
+
<xsl:template match="*" mode="partintro.titlepage.verso.mode">
|
|
895
|
+
<!-- if an element isn't found in this mode, -->
|
|
896
|
+
<!-- try the generic titlepage.mode -->
|
|
897
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
898
|
+
</xsl:template>
|
|
899
|
+
|
|
900
|
+
<xsl:template match="d:title" mode="partintro.titlepage.recto.auto.mode">
|
|
901
|
+
<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
|
902
|
+
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
|
903
|
+
</div>
|
|
904
|
+
</xsl:template>
|
|
905
|
+
|
|
906
|
+
<xsl:template match="d:subtitle" mode="partintro.titlepage.recto.auto.mode">
|
|
907
|
+
<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
|
908
|
+
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
|
909
|
+
</div>
|
|
910
|
+
</xsl:template>
|
|
911
|
+
|
|
912
|
+
<xsl:template match="d:corpauthor" mode="partintro.titlepage.recto.auto.mode">
|
|
913
|
+
<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
|
914
|
+
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
|
915
|
+
</div>
|
|
916
|
+
</xsl:template>
|
|
917
|
+
|
|
918
|
+
<xsl:template match="d:authorgroup" mode="partintro.titlepage.recto.auto.mode">
|
|
919
|
+
<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
|
920
|
+
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
|
921
|
+
</div>
|
|
922
|
+
</xsl:template>
|
|
923
|
+
|
|
924
|
+
<xsl:template match="d:author" mode="partintro.titlepage.recto.auto.mode">
|
|
925
|
+
<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
|
926
|
+
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
|
927
|
+
</div>
|
|
928
|
+
</xsl:template>
|
|
929
|
+
|
|
930
|
+
<xsl:template match="d:othercredit" mode="partintro.titlepage.recto.auto.mode">
|
|
931
|
+
<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
|
932
|
+
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
|
933
|
+
</div>
|
|
934
|
+
</xsl:template>
|
|
935
|
+
|
|
936
|
+
<xsl:template match="d:releaseinfo" mode="partintro.titlepage.recto.auto.mode">
|
|
937
|
+
<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
|
938
|
+
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
|
939
|
+
</div>
|
|
940
|
+
</xsl:template>
|
|
941
|
+
|
|
942
|
+
<xsl:template match="d:copyright" mode="partintro.titlepage.recto.auto.mode">
|
|
943
|
+
<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
|
944
|
+
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
|
945
|
+
</div>
|
|
946
|
+
</xsl:template>
|
|
947
|
+
|
|
948
|
+
<xsl:template match="d:legalnotice" mode="partintro.titlepage.recto.auto.mode">
|
|
949
|
+
<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
|
950
|
+
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
|
951
|
+
</div>
|
|
952
|
+
</xsl:template>
|
|
953
|
+
|
|
954
|
+
<xsl:template match="d:pubdate" mode="partintro.titlepage.recto.auto.mode">
|
|
955
|
+
<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
|
956
|
+
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
|
957
|
+
</div>
|
|
958
|
+
</xsl:template>
|
|
959
|
+
|
|
960
|
+
<xsl:template match="d:revision" mode="partintro.titlepage.recto.auto.mode">
|
|
961
|
+
<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
|
962
|
+
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
|
963
|
+
</div>
|
|
964
|
+
</xsl:template>
|
|
965
|
+
|
|
966
|
+
<xsl:template match="d:revhistory" mode="partintro.titlepage.recto.auto.mode">
|
|
967
|
+
<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
|
968
|
+
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
|
969
|
+
</div>
|
|
970
|
+
</xsl:template>
|
|
971
|
+
|
|
972
|
+
<xsl:template match="d:abstract" mode="partintro.titlepage.recto.auto.mode">
|
|
973
|
+
<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
|
974
|
+
<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
|
975
|
+
</div>
|
|
976
|
+
</xsl:template>
|
|
977
|
+
|
|
978
|
+
<xsl:template name="reference.titlepage.recto">
|
|
979
|
+
<xsl:choose>
|
|
980
|
+
<xsl:when test="d:referenceinfo/d:title">
|
|
981
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:title"/>
|
|
982
|
+
</xsl:when>
|
|
983
|
+
<xsl:when test="d:docinfo/d:title">
|
|
984
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
|
|
985
|
+
</xsl:when>
|
|
986
|
+
<xsl:when test="d:info/d:title">
|
|
987
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
988
|
+
</xsl:when>
|
|
989
|
+
<xsl:when test="d:title">
|
|
990
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:title"/>
|
|
991
|
+
</xsl:when>
|
|
992
|
+
</xsl:choose>
|
|
993
|
+
|
|
994
|
+
<xsl:choose>
|
|
995
|
+
<xsl:when test="d:referenceinfo/d:subtitle">
|
|
996
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:subtitle"/>
|
|
997
|
+
</xsl:when>
|
|
998
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
999
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
1000
|
+
</xsl:when>
|
|
1001
|
+
<xsl:when test="d:info/d:subtitle">
|
|
1002
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
1003
|
+
</xsl:when>
|
|
1004
|
+
<xsl:when test="d:subtitle">
|
|
1005
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
1006
|
+
</xsl:when>
|
|
1007
|
+
</xsl:choose>
|
|
1008
|
+
|
|
1009
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:corpauthor"/>
|
|
1010
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
|
|
1011
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
1012
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:authorgroup"/>
|
|
1013
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
|
|
1014
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
1015
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:author"/>
|
|
1016
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
|
|
1017
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
1018
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:othercredit"/>
|
|
1019
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
|
|
1020
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
1021
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:releaseinfo"/>
|
|
1022
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
|
|
1023
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
1024
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:copyright"/>
|
|
1025
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
|
|
1026
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
1027
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:legalnotice"/>
|
|
1028
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
|
|
1029
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
1030
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:pubdate"/>
|
|
1031
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
|
|
1032
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
1033
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:revision"/>
|
|
1034
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
|
|
1035
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
1036
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:revhistory"/>
|
|
1037
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
|
|
1038
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
1039
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:abstract"/>
|
|
1040
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
|
|
1041
|
+
<xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
1042
|
+
</xsl:template>
|
|
1043
|
+
|
|
1044
|
+
<xsl:template name="reference.titlepage.verso">
|
|
1045
|
+
</xsl:template>
|
|
1046
|
+
|
|
1047
|
+
<xsl:template name="reference.titlepage.separator"><hr/>
|
|
1048
|
+
</xsl:template>
|
|
1049
|
+
|
|
1050
|
+
<xsl:template name="reference.titlepage.before.recto">
|
|
1051
|
+
</xsl:template>
|
|
1052
|
+
|
|
1053
|
+
<xsl:template name="reference.titlepage.before.verso">
|
|
1054
|
+
</xsl:template>
|
|
1055
|
+
|
|
1056
|
+
<xsl:template name="reference.titlepage">
|
|
1057
|
+
<div class="titlepage">
|
|
1058
|
+
<xsl:variable name="recto.content">
|
|
1059
|
+
<xsl:call-template name="reference.titlepage.before.recto"/>
|
|
1060
|
+
<xsl:call-template name="reference.titlepage.recto"/>
|
|
1061
|
+
</xsl:variable>
|
|
1062
|
+
<xsl:variable name="recto.elements.count">
|
|
1063
|
+
<xsl:choose>
|
|
1064
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1065
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1066
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1067
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1068
|
+
</xsl:choose>
|
|
1069
|
+
</xsl:variable>
|
|
1070
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
1071
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
1072
|
+
</xsl:if>
|
|
1073
|
+
<xsl:variable name="verso.content">
|
|
1074
|
+
<xsl:call-template name="reference.titlepage.before.verso"/>
|
|
1075
|
+
<xsl:call-template name="reference.titlepage.verso"/>
|
|
1076
|
+
</xsl:variable>
|
|
1077
|
+
<xsl:variable name="verso.elements.count">
|
|
1078
|
+
<xsl:choose>
|
|
1079
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1080
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1081
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1082
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1083
|
+
</xsl:choose>
|
|
1084
|
+
</xsl:variable>
|
|
1085
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
1086
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
1087
|
+
</xsl:if>
|
|
1088
|
+
<xsl:call-template name="reference.titlepage.separator"/>
|
|
1089
|
+
</div>
|
|
1090
|
+
</xsl:template>
|
|
1091
|
+
|
|
1092
|
+
<xsl:template match="*" mode="reference.titlepage.recto.mode">
|
|
1093
|
+
<!-- if an element isn't found in this mode, -->
|
|
1094
|
+
<!-- try the generic titlepage.mode -->
|
|
1095
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1096
|
+
</xsl:template>
|
|
1097
|
+
|
|
1098
|
+
<xsl:template match="*" mode="reference.titlepage.verso.mode">
|
|
1099
|
+
<!-- if an element isn't found in this mode, -->
|
|
1100
|
+
<!-- try the generic titlepage.mode -->
|
|
1101
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1102
|
+
</xsl:template>
|
|
1103
|
+
|
|
1104
|
+
<xsl:template match="d:title" mode="reference.titlepage.recto.auto.mode">
|
|
1105
|
+
<div xsl:use-attribute-sets="reference.titlepage.recto.style">
|
|
1106
|
+
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
|
1107
|
+
</div>
|
|
1108
|
+
</xsl:template>
|
|
1109
|
+
|
|
1110
|
+
<xsl:template match="d:subtitle" mode="reference.titlepage.recto.auto.mode">
|
|
1111
|
+
<div xsl:use-attribute-sets="reference.titlepage.recto.style">
|
|
1112
|
+
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
|
1113
|
+
</div>
|
|
1114
|
+
</xsl:template>
|
|
1115
|
+
|
|
1116
|
+
<xsl:template match="d:corpauthor" mode="reference.titlepage.recto.auto.mode">
|
|
1117
|
+
<div xsl:use-attribute-sets="reference.titlepage.recto.style">
|
|
1118
|
+
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
|
1119
|
+
</div>
|
|
1120
|
+
</xsl:template>
|
|
1121
|
+
|
|
1122
|
+
<xsl:template match="d:authorgroup" mode="reference.titlepage.recto.auto.mode">
|
|
1123
|
+
<div xsl:use-attribute-sets="reference.titlepage.recto.style">
|
|
1124
|
+
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
|
1125
|
+
</div>
|
|
1126
|
+
</xsl:template>
|
|
1127
|
+
|
|
1128
|
+
<xsl:template match="d:author" mode="reference.titlepage.recto.auto.mode">
|
|
1129
|
+
<div xsl:use-attribute-sets="reference.titlepage.recto.style">
|
|
1130
|
+
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
|
1131
|
+
</div>
|
|
1132
|
+
</xsl:template>
|
|
1133
|
+
|
|
1134
|
+
<xsl:template match="d:othercredit" mode="reference.titlepage.recto.auto.mode">
|
|
1135
|
+
<div xsl:use-attribute-sets="reference.titlepage.recto.style">
|
|
1136
|
+
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
|
1137
|
+
</div>
|
|
1138
|
+
</xsl:template>
|
|
1139
|
+
|
|
1140
|
+
<xsl:template match="d:releaseinfo" mode="reference.titlepage.recto.auto.mode">
|
|
1141
|
+
<div xsl:use-attribute-sets="reference.titlepage.recto.style">
|
|
1142
|
+
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
|
1143
|
+
</div>
|
|
1144
|
+
</xsl:template>
|
|
1145
|
+
|
|
1146
|
+
<xsl:template match="d:copyright" mode="reference.titlepage.recto.auto.mode">
|
|
1147
|
+
<div xsl:use-attribute-sets="reference.titlepage.recto.style">
|
|
1148
|
+
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
|
1149
|
+
</div>
|
|
1150
|
+
</xsl:template>
|
|
1151
|
+
|
|
1152
|
+
<xsl:template match="d:legalnotice" mode="reference.titlepage.recto.auto.mode">
|
|
1153
|
+
<div xsl:use-attribute-sets="reference.titlepage.recto.style">
|
|
1154
|
+
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
|
1155
|
+
</div>
|
|
1156
|
+
</xsl:template>
|
|
1157
|
+
|
|
1158
|
+
<xsl:template match="d:pubdate" mode="reference.titlepage.recto.auto.mode">
|
|
1159
|
+
<div xsl:use-attribute-sets="reference.titlepage.recto.style">
|
|
1160
|
+
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
|
1161
|
+
</div>
|
|
1162
|
+
</xsl:template>
|
|
1163
|
+
|
|
1164
|
+
<xsl:template match="d:revision" mode="reference.titlepage.recto.auto.mode">
|
|
1165
|
+
<div xsl:use-attribute-sets="reference.titlepage.recto.style">
|
|
1166
|
+
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
|
1167
|
+
</div>
|
|
1168
|
+
</xsl:template>
|
|
1169
|
+
|
|
1170
|
+
<xsl:template match="d:revhistory" mode="reference.titlepage.recto.auto.mode">
|
|
1171
|
+
<div xsl:use-attribute-sets="reference.titlepage.recto.style">
|
|
1172
|
+
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
|
1173
|
+
</div>
|
|
1174
|
+
</xsl:template>
|
|
1175
|
+
|
|
1176
|
+
<xsl:template match="d:abstract" mode="reference.titlepage.recto.auto.mode">
|
|
1177
|
+
<div xsl:use-attribute-sets="reference.titlepage.recto.style">
|
|
1178
|
+
<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
|
1179
|
+
</div>
|
|
1180
|
+
</xsl:template>
|
|
1181
|
+
|
|
1182
|
+
<xsl:template name="refentry.titlepage.recto">
|
|
1183
|
+
</xsl:template>
|
|
1184
|
+
|
|
1185
|
+
<xsl:template name="refentry.titlepage.verso">
|
|
1186
|
+
</xsl:template>
|
|
1187
|
+
|
|
1188
|
+
<xsl:template name="refentry.titlepage.separator">
|
|
1189
|
+
</xsl:template>
|
|
1190
|
+
|
|
1191
|
+
<xsl:template name="refentry.titlepage.before.recto">
|
|
1192
|
+
</xsl:template>
|
|
1193
|
+
|
|
1194
|
+
<xsl:template name="refentry.titlepage.before.verso">
|
|
1195
|
+
</xsl:template>
|
|
1196
|
+
|
|
1197
|
+
<xsl:template name="refentry.titlepage">
|
|
1198
|
+
<div class="titlepage">
|
|
1199
|
+
<xsl:variable name="recto.content">
|
|
1200
|
+
<xsl:call-template name="refentry.titlepage.before.recto"/>
|
|
1201
|
+
<xsl:call-template name="refentry.titlepage.recto"/>
|
|
1202
|
+
</xsl:variable>
|
|
1203
|
+
<xsl:variable name="recto.elements.count">
|
|
1204
|
+
<xsl:choose>
|
|
1205
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1206
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1207
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1208
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1209
|
+
</xsl:choose>
|
|
1210
|
+
</xsl:variable>
|
|
1211
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
1212
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
1213
|
+
</xsl:if>
|
|
1214
|
+
<xsl:variable name="verso.content">
|
|
1215
|
+
<xsl:call-template name="refentry.titlepage.before.verso"/>
|
|
1216
|
+
<xsl:call-template name="refentry.titlepage.verso"/>
|
|
1217
|
+
</xsl:variable>
|
|
1218
|
+
<xsl:variable name="verso.elements.count">
|
|
1219
|
+
<xsl:choose>
|
|
1220
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1221
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1222
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1223
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1224
|
+
</xsl:choose>
|
|
1225
|
+
</xsl:variable>
|
|
1226
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
1227
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
1228
|
+
</xsl:if>
|
|
1229
|
+
<xsl:call-template name="refentry.titlepage.separator"/>
|
|
1230
|
+
</div>
|
|
1231
|
+
</xsl:template>
|
|
1232
|
+
|
|
1233
|
+
<xsl:template match="*" mode="refentry.titlepage.recto.mode">
|
|
1234
|
+
<!-- if an element isn't found in this mode, -->
|
|
1235
|
+
<!-- try the generic titlepage.mode -->
|
|
1236
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1237
|
+
</xsl:template>
|
|
1238
|
+
|
|
1239
|
+
<xsl:template match="*" mode="refentry.titlepage.verso.mode">
|
|
1240
|
+
<!-- if an element isn't found in this mode, -->
|
|
1241
|
+
<!-- try the generic titlepage.mode -->
|
|
1242
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1243
|
+
</xsl:template>
|
|
1244
|
+
|
|
1245
|
+
<xsl:template name="dedication.titlepage.recto">
|
|
1246
|
+
<div xsl:use-attribute-sets="dedication.titlepage.recto.style">
|
|
1247
|
+
<xsl:call-template name="component.title">
|
|
1248
|
+
<xsl:with-param name="node" select="ancestor-or-self::d:dedication[1]"/>
|
|
1249
|
+
</xsl:call-template></div>
|
|
1250
|
+
<xsl:choose>
|
|
1251
|
+
<xsl:when test="d:dedicationinfo/d:subtitle">
|
|
1252
|
+
<xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:dedicationinfo/d:subtitle"/>
|
|
1253
|
+
</xsl:when>
|
|
1254
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
1255
|
+
<xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
1256
|
+
</xsl:when>
|
|
1257
|
+
<xsl:when test="d:info/d:subtitle">
|
|
1258
|
+
<xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
1259
|
+
</xsl:when>
|
|
1260
|
+
<xsl:when test="d:subtitle">
|
|
1261
|
+
<xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
1262
|
+
</xsl:when>
|
|
1263
|
+
</xsl:choose>
|
|
1264
|
+
|
|
1265
|
+
</xsl:template>
|
|
1266
|
+
|
|
1267
|
+
<xsl:template name="dedication.titlepage.verso">
|
|
1268
|
+
</xsl:template>
|
|
1269
|
+
|
|
1270
|
+
<xsl:template name="dedication.titlepage.separator">
|
|
1271
|
+
</xsl:template>
|
|
1272
|
+
|
|
1273
|
+
<xsl:template name="dedication.titlepage.before.recto">
|
|
1274
|
+
</xsl:template>
|
|
1275
|
+
|
|
1276
|
+
<xsl:template name="dedication.titlepage.before.verso">
|
|
1277
|
+
</xsl:template>
|
|
1278
|
+
|
|
1279
|
+
<xsl:template name="dedication.titlepage">
|
|
1280
|
+
<div class="titlepage">
|
|
1281
|
+
<xsl:variable name="recto.content">
|
|
1282
|
+
<xsl:call-template name="dedication.titlepage.before.recto"/>
|
|
1283
|
+
<xsl:call-template name="dedication.titlepage.recto"/>
|
|
1284
|
+
</xsl:variable>
|
|
1285
|
+
<xsl:variable name="recto.elements.count">
|
|
1286
|
+
<xsl:choose>
|
|
1287
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1288
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1289
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1290
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1291
|
+
</xsl:choose>
|
|
1292
|
+
</xsl:variable>
|
|
1293
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
1294
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
1295
|
+
</xsl:if>
|
|
1296
|
+
<xsl:variable name="verso.content">
|
|
1297
|
+
<xsl:call-template name="dedication.titlepage.before.verso"/>
|
|
1298
|
+
<xsl:call-template name="dedication.titlepage.verso"/>
|
|
1299
|
+
</xsl:variable>
|
|
1300
|
+
<xsl:variable name="verso.elements.count">
|
|
1301
|
+
<xsl:choose>
|
|
1302
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1303
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1304
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1305
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1306
|
+
</xsl:choose>
|
|
1307
|
+
</xsl:variable>
|
|
1308
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
1309
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
1310
|
+
</xsl:if>
|
|
1311
|
+
<xsl:call-template name="dedication.titlepage.separator"/>
|
|
1312
|
+
</div>
|
|
1313
|
+
</xsl:template>
|
|
1314
|
+
|
|
1315
|
+
<xsl:template match="*" mode="dedication.titlepage.recto.mode">
|
|
1316
|
+
<!-- if an element isn't found in this mode, -->
|
|
1317
|
+
<!-- try the generic titlepage.mode -->
|
|
1318
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1319
|
+
</xsl:template>
|
|
1320
|
+
|
|
1321
|
+
<xsl:template match="*" mode="dedication.titlepage.verso.mode">
|
|
1322
|
+
<!-- if an element isn't found in this mode, -->
|
|
1323
|
+
<!-- try the generic titlepage.mode -->
|
|
1324
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1325
|
+
</xsl:template>
|
|
1326
|
+
|
|
1327
|
+
<xsl:template match="d:subtitle" mode="dedication.titlepage.recto.auto.mode">
|
|
1328
|
+
<div xsl:use-attribute-sets="dedication.titlepage.recto.style">
|
|
1329
|
+
<xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/>
|
|
1330
|
+
</div>
|
|
1331
|
+
</xsl:template>
|
|
1332
|
+
|
|
1333
|
+
<xsl:template name="acknowledgements.titlepage.recto">
|
|
1334
|
+
<div xsl:use-attribute-sets="acknowledgements.titlepage.recto.style">
|
|
1335
|
+
<xsl:call-template name="component.title">
|
|
1336
|
+
<xsl:with-param name="node" select="ancestor-or-self::d:acknowledgements[1]"/>
|
|
1337
|
+
</xsl:call-template></div>
|
|
1338
|
+
<xsl:choose>
|
|
1339
|
+
<xsl:when test="d:acknowledgementsinfo/d:subtitle">
|
|
1340
|
+
<xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:acknowledgementsinfo/d:subtitle"/>
|
|
1341
|
+
</xsl:when>
|
|
1342
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
1343
|
+
<xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
1344
|
+
</xsl:when>
|
|
1345
|
+
<xsl:when test="d:info/d:subtitle">
|
|
1346
|
+
<xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
1347
|
+
</xsl:when>
|
|
1348
|
+
<xsl:when test="d:subtitle">
|
|
1349
|
+
<xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
1350
|
+
</xsl:when>
|
|
1351
|
+
</xsl:choose>
|
|
1352
|
+
|
|
1353
|
+
</xsl:template>
|
|
1354
|
+
|
|
1355
|
+
<xsl:template name="acknowledgements.titlepage.verso">
|
|
1356
|
+
</xsl:template>
|
|
1357
|
+
|
|
1358
|
+
<xsl:template name="acknowledgements.titlepage.separator">
|
|
1359
|
+
</xsl:template>
|
|
1360
|
+
|
|
1361
|
+
<xsl:template name="acknowledgements.titlepage.before.recto">
|
|
1362
|
+
</xsl:template>
|
|
1363
|
+
|
|
1364
|
+
<xsl:template name="acknowledgements.titlepage.before.verso">
|
|
1365
|
+
</xsl:template>
|
|
1366
|
+
|
|
1367
|
+
<xsl:template name="acknowledgements.titlepage">
|
|
1368
|
+
<div class="titlepage">
|
|
1369
|
+
<xsl:variable name="recto.content">
|
|
1370
|
+
<xsl:call-template name="acknowledgements.titlepage.before.recto"/>
|
|
1371
|
+
<xsl:call-template name="acknowledgements.titlepage.recto"/>
|
|
1372
|
+
</xsl:variable>
|
|
1373
|
+
<xsl:variable name="recto.elements.count">
|
|
1374
|
+
<xsl:choose>
|
|
1375
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1376
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1377
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1378
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1379
|
+
</xsl:choose>
|
|
1380
|
+
</xsl:variable>
|
|
1381
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
1382
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
1383
|
+
</xsl:if>
|
|
1384
|
+
<xsl:variable name="verso.content">
|
|
1385
|
+
<xsl:call-template name="acknowledgements.titlepage.before.verso"/>
|
|
1386
|
+
<xsl:call-template name="acknowledgements.titlepage.verso"/>
|
|
1387
|
+
</xsl:variable>
|
|
1388
|
+
<xsl:variable name="verso.elements.count">
|
|
1389
|
+
<xsl:choose>
|
|
1390
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1391
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1392
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1393
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1394
|
+
</xsl:choose>
|
|
1395
|
+
</xsl:variable>
|
|
1396
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
1397
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
1398
|
+
</xsl:if>
|
|
1399
|
+
<xsl:call-template name="acknowledgements.titlepage.separator"/>
|
|
1400
|
+
</div>
|
|
1401
|
+
</xsl:template>
|
|
1402
|
+
|
|
1403
|
+
<xsl:template match="*" mode="acknowledgements.titlepage.recto.mode">
|
|
1404
|
+
<!-- if an element isn't found in this mode, -->
|
|
1405
|
+
<!-- try the generic titlepage.mode -->
|
|
1406
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1407
|
+
</xsl:template>
|
|
1408
|
+
|
|
1409
|
+
<xsl:template match="*" mode="acknowledgements.titlepage.verso.mode">
|
|
1410
|
+
<!-- if an element isn't found in this mode, -->
|
|
1411
|
+
<!-- try the generic titlepage.mode -->
|
|
1412
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1413
|
+
</xsl:template>
|
|
1414
|
+
|
|
1415
|
+
<xsl:template match="d:subtitle" mode="acknowledgements.titlepage.recto.auto.mode">
|
|
1416
|
+
<div xsl:use-attribute-sets="acknowledgements.titlepage.recto.style">
|
|
1417
|
+
<xsl:apply-templates select="." mode="acknowledgements.titlepage.recto.mode"/>
|
|
1418
|
+
</div>
|
|
1419
|
+
</xsl:template>
|
|
1420
|
+
|
|
1421
|
+
<xsl:template name="preface.titlepage.recto">
|
|
1422
|
+
<xsl:choose>
|
|
1423
|
+
<xsl:when test="d:prefaceinfo/d:title">
|
|
1424
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:title"/>
|
|
1425
|
+
</xsl:when>
|
|
1426
|
+
<xsl:when test="d:docinfo/d:title">
|
|
1427
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
|
|
1428
|
+
</xsl:when>
|
|
1429
|
+
<xsl:when test="d:info/d:title">
|
|
1430
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
1431
|
+
</xsl:when>
|
|
1432
|
+
<xsl:when test="d:title">
|
|
1433
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:title"/>
|
|
1434
|
+
</xsl:when>
|
|
1435
|
+
</xsl:choose>
|
|
1436
|
+
|
|
1437
|
+
<xsl:choose>
|
|
1438
|
+
<xsl:when test="d:prefaceinfo/d:subtitle">
|
|
1439
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:subtitle"/>
|
|
1440
|
+
</xsl:when>
|
|
1441
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
1442
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
1443
|
+
</xsl:when>
|
|
1444
|
+
<xsl:when test="d:info/d:subtitle">
|
|
1445
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
1446
|
+
</xsl:when>
|
|
1447
|
+
<xsl:when test="d:subtitle">
|
|
1448
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
1449
|
+
</xsl:when>
|
|
1450
|
+
</xsl:choose>
|
|
1451
|
+
|
|
1452
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:corpauthor"/>
|
|
1453
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
|
|
1454
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
1455
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:authorgroup"/>
|
|
1456
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
|
|
1457
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
1458
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:author"/>
|
|
1459
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
|
|
1460
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
1461
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:othercredit"/>
|
|
1462
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
|
|
1463
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
1464
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:releaseinfo"/>
|
|
1465
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
|
|
1466
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
1467
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:copyright"/>
|
|
1468
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
|
|
1469
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
1470
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:legalnotice"/>
|
|
1471
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
|
|
1472
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
1473
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:pubdate"/>
|
|
1474
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
|
|
1475
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
1476
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:revision"/>
|
|
1477
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
|
|
1478
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
1479
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:revhistory"/>
|
|
1480
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
|
|
1481
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
1482
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:abstract"/>
|
|
1483
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
|
|
1484
|
+
<xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
1485
|
+
</xsl:template>
|
|
1486
|
+
|
|
1487
|
+
<xsl:template name="preface.titlepage.verso">
|
|
1488
|
+
</xsl:template>
|
|
1489
|
+
|
|
1490
|
+
<xsl:template name="preface.titlepage.separator">
|
|
1491
|
+
</xsl:template>
|
|
1492
|
+
|
|
1493
|
+
<xsl:template name="preface.titlepage.before.recto">
|
|
1494
|
+
</xsl:template>
|
|
1495
|
+
|
|
1496
|
+
<xsl:template name="preface.titlepage.before.verso">
|
|
1497
|
+
</xsl:template>
|
|
1498
|
+
|
|
1499
|
+
<xsl:template name="preface.titlepage">
|
|
1500
|
+
<div class="titlepage">
|
|
1501
|
+
<xsl:variable name="recto.content">
|
|
1502
|
+
<xsl:call-template name="preface.titlepage.before.recto"/>
|
|
1503
|
+
<xsl:call-template name="preface.titlepage.recto"/>
|
|
1504
|
+
</xsl:variable>
|
|
1505
|
+
<xsl:variable name="recto.elements.count">
|
|
1506
|
+
<xsl:choose>
|
|
1507
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1508
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1509
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1510
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1511
|
+
</xsl:choose>
|
|
1512
|
+
</xsl:variable>
|
|
1513
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
1514
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
1515
|
+
</xsl:if>
|
|
1516
|
+
<xsl:variable name="verso.content">
|
|
1517
|
+
<xsl:call-template name="preface.titlepage.before.verso"/>
|
|
1518
|
+
<xsl:call-template name="preface.titlepage.verso"/>
|
|
1519
|
+
</xsl:variable>
|
|
1520
|
+
<xsl:variable name="verso.elements.count">
|
|
1521
|
+
<xsl:choose>
|
|
1522
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1523
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1524
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1525
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1526
|
+
</xsl:choose>
|
|
1527
|
+
</xsl:variable>
|
|
1528
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
1529
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
1530
|
+
</xsl:if>
|
|
1531
|
+
<xsl:call-template name="preface.titlepage.separator"/>
|
|
1532
|
+
</div>
|
|
1533
|
+
</xsl:template>
|
|
1534
|
+
|
|
1535
|
+
<xsl:template match="*" mode="preface.titlepage.recto.mode">
|
|
1536
|
+
<!-- if an element isn't found in this mode, -->
|
|
1537
|
+
<!-- try the generic titlepage.mode -->
|
|
1538
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1539
|
+
</xsl:template>
|
|
1540
|
+
|
|
1541
|
+
<xsl:template match="*" mode="preface.titlepage.verso.mode">
|
|
1542
|
+
<!-- if an element isn't found in this mode, -->
|
|
1543
|
+
<!-- try the generic titlepage.mode -->
|
|
1544
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1545
|
+
</xsl:template>
|
|
1546
|
+
|
|
1547
|
+
<xsl:template match="d:title" mode="preface.titlepage.recto.auto.mode">
|
|
1548
|
+
<div xsl:use-attribute-sets="preface.titlepage.recto.style">
|
|
1549
|
+
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
|
1550
|
+
</div>
|
|
1551
|
+
</xsl:template>
|
|
1552
|
+
|
|
1553
|
+
<xsl:template match="d:subtitle" mode="preface.titlepage.recto.auto.mode">
|
|
1554
|
+
<div xsl:use-attribute-sets="preface.titlepage.recto.style">
|
|
1555
|
+
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
|
1556
|
+
</div>
|
|
1557
|
+
</xsl:template>
|
|
1558
|
+
|
|
1559
|
+
<xsl:template match="d:corpauthor" mode="preface.titlepage.recto.auto.mode">
|
|
1560
|
+
<div xsl:use-attribute-sets="preface.titlepage.recto.style">
|
|
1561
|
+
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
|
1562
|
+
</div>
|
|
1563
|
+
</xsl:template>
|
|
1564
|
+
|
|
1565
|
+
<xsl:template match="d:authorgroup" mode="preface.titlepage.recto.auto.mode">
|
|
1566
|
+
<div xsl:use-attribute-sets="preface.titlepage.recto.style">
|
|
1567
|
+
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
|
1568
|
+
</div>
|
|
1569
|
+
</xsl:template>
|
|
1570
|
+
|
|
1571
|
+
<xsl:template match="d:author" mode="preface.titlepage.recto.auto.mode">
|
|
1572
|
+
<div xsl:use-attribute-sets="preface.titlepage.recto.style">
|
|
1573
|
+
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
|
1574
|
+
</div>
|
|
1575
|
+
</xsl:template>
|
|
1576
|
+
|
|
1577
|
+
<xsl:template match="d:othercredit" mode="preface.titlepage.recto.auto.mode">
|
|
1578
|
+
<div xsl:use-attribute-sets="preface.titlepage.recto.style">
|
|
1579
|
+
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
|
1580
|
+
</div>
|
|
1581
|
+
</xsl:template>
|
|
1582
|
+
|
|
1583
|
+
<xsl:template match="d:releaseinfo" mode="preface.titlepage.recto.auto.mode">
|
|
1584
|
+
<div xsl:use-attribute-sets="preface.titlepage.recto.style">
|
|
1585
|
+
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
|
1586
|
+
</div>
|
|
1587
|
+
</xsl:template>
|
|
1588
|
+
|
|
1589
|
+
<xsl:template match="d:copyright" mode="preface.titlepage.recto.auto.mode">
|
|
1590
|
+
<div xsl:use-attribute-sets="preface.titlepage.recto.style">
|
|
1591
|
+
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
|
1592
|
+
</div>
|
|
1593
|
+
</xsl:template>
|
|
1594
|
+
|
|
1595
|
+
<xsl:template match="d:legalnotice" mode="preface.titlepage.recto.auto.mode">
|
|
1596
|
+
<div xsl:use-attribute-sets="preface.titlepage.recto.style">
|
|
1597
|
+
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
|
1598
|
+
</div>
|
|
1599
|
+
</xsl:template>
|
|
1600
|
+
|
|
1601
|
+
<xsl:template match="d:pubdate" mode="preface.titlepage.recto.auto.mode">
|
|
1602
|
+
<div xsl:use-attribute-sets="preface.titlepage.recto.style">
|
|
1603
|
+
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
|
1604
|
+
</div>
|
|
1605
|
+
</xsl:template>
|
|
1606
|
+
|
|
1607
|
+
<xsl:template match="d:revision" mode="preface.titlepage.recto.auto.mode">
|
|
1608
|
+
<div xsl:use-attribute-sets="preface.titlepage.recto.style">
|
|
1609
|
+
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
|
1610
|
+
</div>
|
|
1611
|
+
</xsl:template>
|
|
1612
|
+
|
|
1613
|
+
<xsl:template match="d:revhistory" mode="preface.titlepage.recto.auto.mode">
|
|
1614
|
+
<div xsl:use-attribute-sets="preface.titlepage.recto.style">
|
|
1615
|
+
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
|
1616
|
+
</div>
|
|
1617
|
+
</xsl:template>
|
|
1618
|
+
|
|
1619
|
+
<xsl:template match="d:abstract" mode="preface.titlepage.recto.auto.mode">
|
|
1620
|
+
<div xsl:use-attribute-sets="preface.titlepage.recto.style">
|
|
1621
|
+
<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
|
1622
|
+
</div>
|
|
1623
|
+
</xsl:template>
|
|
1624
|
+
|
|
1625
|
+
<xsl:template name="chapter.titlepage.recto">
|
|
1626
|
+
<xsl:choose>
|
|
1627
|
+
<xsl:when test="d:chapterinfo/d:title">
|
|
1628
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:title"/>
|
|
1629
|
+
</xsl:when>
|
|
1630
|
+
<xsl:when test="d:docinfo/d:title">
|
|
1631
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
|
|
1632
|
+
</xsl:when>
|
|
1633
|
+
<xsl:when test="d:info/d:title">
|
|
1634
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
1635
|
+
</xsl:when>
|
|
1636
|
+
<xsl:when test="d:title">
|
|
1637
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:title"/>
|
|
1638
|
+
</xsl:when>
|
|
1639
|
+
</xsl:choose>
|
|
1640
|
+
|
|
1641
|
+
<xsl:choose>
|
|
1642
|
+
<xsl:when test="d:chapterinfo/d:subtitle">
|
|
1643
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:subtitle"/>
|
|
1644
|
+
</xsl:when>
|
|
1645
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
1646
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
1647
|
+
</xsl:when>
|
|
1648
|
+
<xsl:when test="d:info/d:subtitle">
|
|
1649
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
1650
|
+
</xsl:when>
|
|
1651
|
+
<xsl:when test="d:subtitle">
|
|
1652
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
1653
|
+
</xsl:when>
|
|
1654
|
+
</xsl:choose>
|
|
1655
|
+
|
|
1656
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:corpauthor"/>
|
|
1657
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
|
|
1658
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
1659
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:authorgroup"/>
|
|
1660
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
|
|
1661
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
1662
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:author"/>
|
|
1663
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
|
|
1664
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
1665
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:othercredit"/>
|
|
1666
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
|
|
1667
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
1668
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:releaseinfo"/>
|
|
1669
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
|
|
1670
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
1671
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:copyright"/>
|
|
1672
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
|
|
1673
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
1674
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:legalnotice"/>
|
|
1675
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
|
|
1676
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
1677
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:pubdate"/>
|
|
1678
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
|
|
1679
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
1680
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:revision"/>
|
|
1681
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
|
|
1682
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
1683
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:revhistory"/>
|
|
1684
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
|
|
1685
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
1686
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:abstract"/>
|
|
1687
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
|
|
1688
|
+
<xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
1689
|
+
</xsl:template>
|
|
1690
|
+
|
|
1691
|
+
<xsl:template name="chapter.titlepage.verso">
|
|
1692
|
+
</xsl:template>
|
|
1693
|
+
|
|
1694
|
+
<xsl:template name="chapter.titlepage.separator">
|
|
1695
|
+
</xsl:template>
|
|
1696
|
+
|
|
1697
|
+
<xsl:template name="chapter.titlepage.before.recto">
|
|
1698
|
+
</xsl:template>
|
|
1699
|
+
|
|
1700
|
+
<xsl:template name="chapter.titlepage.before.verso">
|
|
1701
|
+
</xsl:template>
|
|
1702
|
+
|
|
1703
|
+
<xsl:template name="chapter.titlepage">
|
|
1704
|
+
<div class="titlepage">
|
|
1705
|
+
<xsl:variable name="recto.content">
|
|
1706
|
+
<xsl:call-template name="chapter.titlepage.before.recto"/>
|
|
1707
|
+
<xsl:call-template name="chapter.titlepage.recto"/>
|
|
1708
|
+
</xsl:variable>
|
|
1709
|
+
<xsl:variable name="recto.elements.count">
|
|
1710
|
+
<xsl:choose>
|
|
1711
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1712
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1713
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1714
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1715
|
+
</xsl:choose>
|
|
1716
|
+
</xsl:variable>
|
|
1717
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
1718
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
1719
|
+
</xsl:if>
|
|
1720
|
+
<xsl:variable name="verso.content">
|
|
1721
|
+
<xsl:call-template name="chapter.titlepage.before.verso"/>
|
|
1722
|
+
<xsl:call-template name="chapter.titlepage.verso"/>
|
|
1723
|
+
</xsl:variable>
|
|
1724
|
+
<xsl:variable name="verso.elements.count">
|
|
1725
|
+
<xsl:choose>
|
|
1726
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1727
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1728
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1729
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1730
|
+
</xsl:choose>
|
|
1731
|
+
</xsl:variable>
|
|
1732
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
1733
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
1734
|
+
</xsl:if>
|
|
1735
|
+
<xsl:call-template name="chapter.titlepage.separator"/>
|
|
1736
|
+
</div>
|
|
1737
|
+
</xsl:template>
|
|
1738
|
+
|
|
1739
|
+
<xsl:template match="*" mode="chapter.titlepage.recto.mode">
|
|
1740
|
+
<!-- if an element isn't found in this mode, -->
|
|
1741
|
+
<!-- try the generic titlepage.mode -->
|
|
1742
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1743
|
+
</xsl:template>
|
|
1744
|
+
|
|
1745
|
+
<xsl:template match="*" mode="chapter.titlepage.verso.mode">
|
|
1746
|
+
<!-- if an element isn't found in this mode, -->
|
|
1747
|
+
<!-- try the generic titlepage.mode -->
|
|
1748
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1749
|
+
</xsl:template>
|
|
1750
|
+
|
|
1751
|
+
<xsl:template match="d:title" mode="chapter.titlepage.recto.auto.mode">
|
|
1752
|
+
<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
1753
|
+
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
|
1754
|
+
</div>
|
|
1755
|
+
</xsl:template>
|
|
1756
|
+
|
|
1757
|
+
<xsl:template match="d:subtitle" mode="chapter.titlepage.recto.auto.mode">
|
|
1758
|
+
<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
1759
|
+
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
|
1760
|
+
</div>
|
|
1761
|
+
</xsl:template>
|
|
1762
|
+
|
|
1763
|
+
<xsl:template match="d:corpauthor" mode="chapter.titlepage.recto.auto.mode">
|
|
1764
|
+
<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
1765
|
+
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
|
1766
|
+
</div>
|
|
1767
|
+
</xsl:template>
|
|
1768
|
+
|
|
1769
|
+
<xsl:template match="d:authorgroup" mode="chapter.titlepage.recto.auto.mode">
|
|
1770
|
+
<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
1771
|
+
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
|
1772
|
+
</div>
|
|
1773
|
+
</xsl:template>
|
|
1774
|
+
|
|
1775
|
+
<xsl:template match="d:author" mode="chapter.titlepage.recto.auto.mode">
|
|
1776
|
+
<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
1777
|
+
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
|
1778
|
+
</div>
|
|
1779
|
+
</xsl:template>
|
|
1780
|
+
|
|
1781
|
+
<xsl:template match="d:othercredit" mode="chapter.titlepage.recto.auto.mode">
|
|
1782
|
+
<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
1783
|
+
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
|
1784
|
+
</div>
|
|
1785
|
+
</xsl:template>
|
|
1786
|
+
|
|
1787
|
+
<xsl:template match="d:releaseinfo" mode="chapter.titlepage.recto.auto.mode">
|
|
1788
|
+
<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
1789
|
+
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
|
1790
|
+
</div>
|
|
1791
|
+
</xsl:template>
|
|
1792
|
+
|
|
1793
|
+
<xsl:template match="d:copyright" mode="chapter.titlepage.recto.auto.mode">
|
|
1794
|
+
<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
1795
|
+
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
|
1796
|
+
</div>
|
|
1797
|
+
</xsl:template>
|
|
1798
|
+
|
|
1799
|
+
<xsl:template match="d:legalnotice" mode="chapter.titlepage.recto.auto.mode">
|
|
1800
|
+
<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
1801
|
+
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
|
1802
|
+
</div>
|
|
1803
|
+
</xsl:template>
|
|
1804
|
+
|
|
1805
|
+
<xsl:template match="d:pubdate" mode="chapter.titlepage.recto.auto.mode">
|
|
1806
|
+
<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
1807
|
+
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
|
1808
|
+
</div>
|
|
1809
|
+
</xsl:template>
|
|
1810
|
+
|
|
1811
|
+
<xsl:template match="d:revision" mode="chapter.titlepage.recto.auto.mode">
|
|
1812
|
+
<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
1813
|
+
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
|
1814
|
+
</div>
|
|
1815
|
+
</xsl:template>
|
|
1816
|
+
|
|
1817
|
+
<xsl:template match="d:revhistory" mode="chapter.titlepage.recto.auto.mode">
|
|
1818
|
+
<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
1819
|
+
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
|
1820
|
+
</div>
|
|
1821
|
+
</xsl:template>
|
|
1822
|
+
|
|
1823
|
+
<xsl:template match="d:abstract" mode="chapter.titlepage.recto.auto.mode">
|
|
1824
|
+
<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
|
1825
|
+
<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
|
1826
|
+
</div>
|
|
1827
|
+
</xsl:template>
|
|
1828
|
+
|
|
1829
|
+
<xsl:template name="topic.titlepage.recto">
|
|
1830
|
+
<xsl:choose>
|
|
1831
|
+
<xsl:when test="d:topicinfo/d:title">
|
|
1832
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:title"/>
|
|
1833
|
+
</xsl:when>
|
|
1834
|
+
<xsl:when test="d:info/d:title">
|
|
1835
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
1836
|
+
</xsl:when>
|
|
1837
|
+
<xsl:when test="d:title">
|
|
1838
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:title"/>
|
|
1839
|
+
</xsl:when>
|
|
1840
|
+
</xsl:choose>
|
|
1841
|
+
|
|
1842
|
+
<xsl:choose>
|
|
1843
|
+
<xsl:when test="d:topicinfo/d:subtitle">
|
|
1844
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:subtitle"/>
|
|
1845
|
+
</xsl:when>
|
|
1846
|
+
<xsl:when test="d:info/d:subtitle">
|
|
1847
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
1848
|
+
</xsl:when>
|
|
1849
|
+
<xsl:when test="d:subtitle">
|
|
1850
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
1851
|
+
</xsl:when>
|
|
1852
|
+
</xsl:choose>
|
|
1853
|
+
|
|
1854
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:corpauthor"/>
|
|
1855
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
1856
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:authorgroup"/>
|
|
1857
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
1858
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:author"/>
|
|
1859
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
1860
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:othercredit"/>
|
|
1861
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
1862
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:releaseinfo"/>
|
|
1863
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
1864
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:copyright"/>
|
|
1865
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
1866
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:legalnotice"/>
|
|
1867
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
1868
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:pubdate"/>
|
|
1869
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
1870
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:revision"/>
|
|
1871
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
1872
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:revhistory"/>
|
|
1873
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
1874
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:topicinfo/d:abstract"/>
|
|
1875
|
+
<xsl:apply-templates mode="topic.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
1876
|
+
</xsl:template>
|
|
1877
|
+
|
|
1878
|
+
<xsl:template name="topic.titlepage.verso">
|
|
1879
|
+
</xsl:template>
|
|
1880
|
+
|
|
1881
|
+
<xsl:template name="topic.titlepage.separator">
|
|
1882
|
+
</xsl:template>
|
|
1883
|
+
|
|
1884
|
+
<xsl:template name="topic.titlepage.before.recto">
|
|
1885
|
+
</xsl:template>
|
|
1886
|
+
|
|
1887
|
+
<xsl:template name="topic.titlepage.before.verso">
|
|
1888
|
+
</xsl:template>
|
|
1889
|
+
|
|
1890
|
+
<xsl:template name="topic.titlepage">
|
|
1891
|
+
<div class="titlepage">
|
|
1892
|
+
<xsl:variable name="recto.content">
|
|
1893
|
+
<xsl:call-template name="topic.titlepage.before.recto"/>
|
|
1894
|
+
<xsl:call-template name="topic.titlepage.recto"/>
|
|
1895
|
+
</xsl:variable>
|
|
1896
|
+
<xsl:variable name="recto.elements.count">
|
|
1897
|
+
<xsl:choose>
|
|
1898
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1899
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1900
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
1901
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1902
|
+
</xsl:choose>
|
|
1903
|
+
</xsl:variable>
|
|
1904
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
1905
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
1906
|
+
</xsl:if>
|
|
1907
|
+
<xsl:variable name="verso.content">
|
|
1908
|
+
<xsl:call-template name="topic.titlepage.before.verso"/>
|
|
1909
|
+
<xsl:call-template name="topic.titlepage.verso"/>
|
|
1910
|
+
</xsl:variable>
|
|
1911
|
+
<xsl:variable name="verso.elements.count">
|
|
1912
|
+
<xsl:choose>
|
|
1913
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1914
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
1915
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
1916
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
1917
|
+
</xsl:choose>
|
|
1918
|
+
</xsl:variable>
|
|
1919
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
1920
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
1921
|
+
</xsl:if>
|
|
1922
|
+
<xsl:call-template name="topic.titlepage.separator"/>
|
|
1923
|
+
</div>
|
|
1924
|
+
</xsl:template>
|
|
1925
|
+
|
|
1926
|
+
<xsl:template match="*" mode="topic.titlepage.recto.mode">
|
|
1927
|
+
<!-- if an element isn't found in this mode, -->
|
|
1928
|
+
<!-- try the generic titlepage.mode -->
|
|
1929
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1930
|
+
</xsl:template>
|
|
1931
|
+
|
|
1932
|
+
<xsl:template match="*" mode="topic.titlepage.verso.mode">
|
|
1933
|
+
<!-- if an element isn't found in this mode, -->
|
|
1934
|
+
<!-- try the generic titlepage.mode -->
|
|
1935
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
1936
|
+
</xsl:template>
|
|
1937
|
+
|
|
1938
|
+
<xsl:template match="d:title" mode="topic.titlepage.recto.auto.mode">
|
|
1939
|
+
<div xsl:use-attribute-sets="topic.titlepage.recto.style">
|
|
1940
|
+
<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
|
|
1941
|
+
</div>
|
|
1942
|
+
</xsl:template>
|
|
1943
|
+
|
|
1944
|
+
<xsl:template match="d:subtitle" mode="topic.titlepage.recto.auto.mode">
|
|
1945
|
+
<div xsl:use-attribute-sets="topic.titlepage.recto.style">
|
|
1946
|
+
<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
|
|
1947
|
+
</div>
|
|
1948
|
+
</xsl:template>
|
|
1949
|
+
|
|
1950
|
+
<xsl:template match="d:corpauthor" mode="topic.titlepage.recto.auto.mode">
|
|
1951
|
+
<div xsl:use-attribute-sets="topic.titlepage.recto.style">
|
|
1952
|
+
<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
|
|
1953
|
+
</div>
|
|
1954
|
+
</xsl:template>
|
|
1955
|
+
|
|
1956
|
+
<xsl:template match="d:authorgroup" mode="topic.titlepage.recto.auto.mode">
|
|
1957
|
+
<div xsl:use-attribute-sets="topic.titlepage.recto.style">
|
|
1958
|
+
<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
|
|
1959
|
+
</div>
|
|
1960
|
+
</xsl:template>
|
|
1961
|
+
|
|
1962
|
+
<xsl:template match="d:author" mode="topic.titlepage.recto.auto.mode">
|
|
1963
|
+
<div xsl:use-attribute-sets="topic.titlepage.recto.style">
|
|
1964
|
+
<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
|
|
1965
|
+
</div>
|
|
1966
|
+
</xsl:template>
|
|
1967
|
+
|
|
1968
|
+
<xsl:template match="d:othercredit" mode="topic.titlepage.recto.auto.mode">
|
|
1969
|
+
<div xsl:use-attribute-sets="topic.titlepage.recto.style">
|
|
1970
|
+
<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
|
|
1971
|
+
</div>
|
|
1972
|
+
</xsl:template>
|
|
1973
|
+
|
|
1974
|
+
<xsl:template match="d:releaseinfo" mode="topic.titlepage.recto.auto.mode">
|
|
1975
|
+
<div xsl:use-attribute-sets="topic.titlepage.recto.style">
|
|
1976
|
+
<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
|
|
1977
|
+
</div>
|
|
1978
|
+
</xsl:template>
|
|
1979
|
+
|
|
1980
|
+
<xsl:template match="d:copyright" mode="topic.titlepage.recto.auto.mode">
|
|
1981
|
+
<div xsl:use-attribute-sets="topic.titlepage.recto.style">
|
|
1982
|
+
<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
|
|
1983
|
+
</div>
|
|
1984
|
+
</xsl:template>
|
|
1985
|
+
|
|
1986
|
+
<xsl:template match="d:legalnotice" mode="topic.titlepage.recto.auto.mode">
|
|
1987
|
+
<div xsl:use-attribute-sets="topic.titlepage.recto.style">
|
|
1988
|
+
<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
|
|
1989
|
+
</div>
|
|
1990
|
+
</xsl:template>
|
|
1991
|
+
|
|
1992
|
+
<xsl:template match="d:pubdate" mode="topic.titlepage.recto.auto.mode">
|
|
1993
|
+
<div xsl:use-attribute-sets="topic.titlepage.recto.style">
|
|
1994
|
+
<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
|
|
1995
|
+
</div>
|
|
1996
|
+
</xsl:template>
|
|
1997
|
+
|
|
1998
|
+
<xsl:template match="d:revision" mode="topic.titlepage.recto.auto.mode">
|
|
1999
|
+
<div xsl:use-attribute-sets="topic.titlepage.recto.style">
|
|
2000
|
+
<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
|
|
2001
|
+
</div>
|
|
2002
|
+
</xsl:template>
|
|
2003
|
+
|
|
2004
|
+
<xsl:template match="d:revhistory" mode="topic.titlepage.recto.auto.mode">
|
|
2005
|
+
<div xsl:use-attribute-sets="topic.titlepage.recto.style">
|
|
2006
|
+
<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
|
|
2007
|
+
</div>
|
|
2008
|
+
</xsl:template>
|
|
2009
|
+
|
|
2010
|
+
<xsl:template match="d:abstract" mode="topic.titlepage.recto.auto.mode">
|
|
2011
|
+
<div xsl:use-attribute-sets="topic.titlepage.recto.style">
|
|
2012
|
+
<xsl:apply-templates select="." mode="topic.titlepage.recto.mode"/>
|
|
2013
|
+
</div>
|
|
2014
|
+
</xsl:template>
|
|
2015
|
+
|
|
2016
|
+
<xsl:template name="appendix.titlepage.recto">
|
|
2017
|
+
<xsl:choose>
|
|
2018
|
+
<xsl:when test="d:appendixinfo/d:title">
|
|
2019
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:title"/>
|
|
2020
|
+
</xsl:when>
|
|
2021
|
+
<xsl:when test="d:docinfo/d:title">
|
|
2022
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
|
|
2023
|
+
</xsl:when>
|
|
2024
|
+
<xsl:when test="d:info/d:title">
|
|
2025
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
2026
|
+
</xsl:when>
|
|
2027
|
+
<xsl:when test="d:title">
|
|
2028
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:title"/>
|
|
2029
|
+
</xsl:when>
|
|
2030
|
+
</xsl:choose>
|
|
2031
|
+
|
|
2032
|
+
<xsl:choose>
|
|
2033
|
+
<xsl:when test="d:appendixinfo/d:subtitle">
|
|
2034
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:subtitle"/>
|
|
2035
|
+
</xsl:when>
|
|
2036
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
2037
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
2038
|
+
</xsl:when>
|
|
2039
|
+
<xsl:when test="d:info/d:subtitle">
|
|
2040
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
2041
|
+
</xsl:when>
|
|
2042
|
+
<xsl:when test="d:subtitle">
|
|
2043
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
2044
|
+
</xsl:when>
|
|
2045
|
+
</xsl:choose>
|
|
2046
|
+
|
|
2047
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:corpauthor"/>
|
|
2048
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
|
|
2049
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
2050
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:authorgroup"/>
|
|
2051
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
|
|
2052
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
2053
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:author"/>
|
|
2054
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
|
|
2055
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
2056
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:othercredit"/>
|
|
2057
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
|
|
2058
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
2059
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:releaseinfo"/>
|
|
2060
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
|
|
2061
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
2062
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:copyright"/>
|
|
2063
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
|
|
2064
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
2065
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:legalnotice"/>
|
|
2066
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
|
|
2067
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
2068
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:pubdate"/>
|
|
2069
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
|
|
2070
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
2071
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:revision"/>
|
|
2072
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
|
|
2073
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
2074
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:revhistory"/>
|
|
2075
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
|
|
2076
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
2077
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:abstract"/>
|
|
2078
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
|
|
2079
|
+
<xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
2080
|
+
</xsl:template>
|
|
2081
|
+
|
|
2082
|
+
<xsl:template name="appendix.titlepage.verso">
|
|
2083
|
+
</xsl:template>
|
|
2084
|
+
|
|
2085
|
+
<xsl:template name="appendix.titlepage.separator">
|
|
2086
|
+
</xsl:template>
|
|
2087
|
+
|
|
2088
|
+
<xsl:template name="appendix.titlepage.before.recto">
|
|
2089
|
+
</xsl:template>
|
|
2090
|
+
|
|
2091
|
+
<xsl:template name="appendix.titlepage.before.verso">
|
|
2092
|
+
</xsl:template>
|
|
2093
|
+
|
|
2094
|
+
<xsl:template name="appendix.titlepage">
|
|
2095
|
+
<div class="titlepage">
|
|
2096
|
+
<xsl:variable name="recto.content">
|
|
2097
|
+
<xsl:call-template name="appendix.titlepage.before.recto"/>
|
|
2098
|
+
<xsl:call-template name="appendix.titlepage.recto"/>
|
|
2099
|
+
</xsl:variable>
|
|
2100
|
+
<xsl:variable name="recto.elements.count">
|
|
2101
|
+
<xsl:choose>
|
|
2102
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
2103
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
2104
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
2105
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
2106
|
+
</xsl:choose>
|
|
2107
|
+
</xsl:variable>
|
|
2108
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
2109
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
2110
|
+
</xsl:if>
|
|
2111
|
+
<xsl:variable name="verso.content">
|
|
2112
|
+
<xsl:call-template name="appendix.titlepage.before.verso"/>
|
|
2113
|
+
<xsl:call-template name="appendix.titlepage.verso"/>
|
|
2114
|
+
</xsl:variable>
|
|
2115
|
+
<xsl:variable name="verso.elements.count">
|
|
2116
|
+
<xsl:choose>
|
|
2117
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
2118
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
2119
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
2120
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
2121
|
+
</xsl:choose>
|
|
2122
|
+
</xsl:variable>
|
|
2123
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
2124
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
2125
|
+
</xsl:if>
|
|
2126
|
+
<xsl:call-template name="appendix.titlepage.separator"/>
|
|
2127
|
+
</div>
|
|
2128
|
+
</xsl:template>
|
|
2129
|
+
|
|
2130
|
+
<xsl:template match="*" mode="appendix.titlepage.recto.mode">
|
|
2131
|
+
<!-- if an element isn't found in this mode, -->
|
|
2132
|
+
<!-- try the generic titlepage.mode -->
|
|
2133
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
2134
|
+
</xsl:template>
|
|
2135
|
+
|
|
2136
|
+
<xsl:template match="*" mode="appendix.titlepage.verso.mode">
|
|
2137
|
+
<!-- if an element isn't found in this mode, -->
|
|
2138
|
+
<!-- try the generic titlepage.mode -->
|
|
2139
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
2140
|
+
</xsl:template>
|
|
2141
|
+
|
|
2142
|
+
<xsl:template match="d:title" mode="appendix.titlepage.recto.auto.mode">
|
|
2143
|
+
<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
|
2144
|
+
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
|
2145
|
+
</div>
|
|
2146
|
+
</xsl:template>
|
|
2147
|
+
|
|
2148
|
+
<xsl:template match="d:subtitle" mode="appendix.titlepage.recto.auto.mode">
|
|
2149
|
+
<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
|
2150
|
+
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
|
2151
|
+
</div>
|
|
2152
|
+
</xsl:template>
|
|
2153
|
+
|
|
2154
|
+
<xsl:template match="d:corpauthor" mode="appendix.titlepage.recto.auto.mode">
|
|
2155
|
+
<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
|
2156
|
+
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
|
2157
|
+
</div>
|
|
2158
|
+
</xsl:template>
|
|
2159
|
+
|
|
2160
|
+
<xsl:template match="d:authorgroup" mode="appendix.titlepage.recto.auto.mode">
|
|
2161
|
+
<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
|
2162
|
+
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
|
2163
|
+
</div>
|
|
2164
|
+
</xsl:template>
|
|
2165
|
+
|
|
2166
|
+
<xsl:template match="d:author" mode="appendix.titlepage.recto.auto.mode">
|
|
2167
|
+
<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
|
2168
|
+
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
|
2169
|
+
</div>
|
|
2170
|
+
</xsl:template>
|
|
2171
|
+
|
|
2172
|
+
<xsl:template match="d:othercredit" mode="appendix.titlepage.recto.auto.mode">
|
|
2173
|
+
<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
|
2174
|
+
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
|
2175
|
+
</div>
|
|
2176
|
+
</xsl:template>
|
|
2177
|
+
|
|
2178
|
+
<xsl:template match="d:releaseinfo" mode="appendix.titlepage.recto.auto.mode">
|
|
2179
|
+
<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
|
2180
|
+
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
|
2181
|
+
</div>
|
|
2182
|
+
</xsl:template>
|
|
2183
|
+
|
|
2184
|
+
<xsl:template match="d:copyright" mode="appendix.titlepage.recto.auto.mode">
|
|
2185
|
+
<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
|
2186
|
+
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
|
2187
|
+
</div>
|
|
2188
|
+
</xsl:template>
|
|
2189
|
+
|
|
2190
|
+
<xsl:template match="d:legalnotice" mode="appendix.titlepage.recto.auto.mode">
|
|
2191
|
+
<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
|
2192
|
+
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
|
2193
|
+
</div>
|
|
2194
|
+
</xsl:template>
|
|
2195
|
+
|
|
2196
|
+
<xsl:template match="d:pubdate" mode="appendix.titlepage.recto.auto.mode">
|
|
2197
|
+
<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
|
2198
|
+
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
|
2199
|
+
</div>
|
|
2200
|
+
</xsl:template>
|
|
2201
|
+
|
|
2202
|
+
<xsl:template match="d:revision" mode="appendix.titlepage.recto.auto.mode">
|
|
2203
|
+
<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
|
2204
|
+
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
|
2205
|
+
</div>
|
|
2206
|
+
</xsl:template>
|
|
2207
|
+
|
|
2208
|
+
<xsl:template match="d:revhistory" mode="appendix.titlepage.recto.auto.mode">
|
|
2209
|
+
<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
|
2210
|
+
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
|
2211
|
+
</div>
|
|
2212
|
+
</xsl:template>
|
|
2213
|
+
|
|
2214
|
+
<xsl:template match="d:abstract" mode="appendix.titlepage.recto.auto.mode">
|
|
2215
|
+
<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
|
2216
|
+
<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
|
2217
|
+
</div>
|
|
2218
|
+
</xsl:template>
|
|
2219
|
+
|
|
2220
|
+
<xsl:template name="section.titlepage.recto">
|
|
2221
|
+
<xsl:choose>
|
|
2222
|
+
<xsl:when test="d:sectioninfo/d:title">
|
|
2223
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:title"/>
|
|
2224
|
+
</xsl:when>
|
|
2225
|
+
<xsl:when test="d:info/d:title">
|
|
2226
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
2227
|
+
</xsl:when>
|
|
2228
|
+
<xsl:when test="d:title">
|
|
2229
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:title"/>
|
|
2230
|
+
</xsl:when>
|
|
2231
|
+
</xsl:choose>
|
|
2232
|
+
|
|
2233
|
+
<xsl:choose>
|
|
2234
|
+
<xsl:when test="d:sectioninfo/d:subtitle">
|
|
2235
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:subtitle"/>
|
|
2236
|
+
</xsl:when>
|
|
2237
|
+
<xsl:when test="d:info/d:subtitle">
|
|
2238
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
2239
|
+
</xsl:when>
|
|
2240
|
+
<xsl:when test="d:subtitle">
|
|
2241
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
2242
|
+
</xsl:when>
|
|
2243
|
+
</xsl:choose>
|
|
2244
|
+
|
|
2245
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:corpauthor"/>
|
|
2246
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
2247
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:authorgroup"/>
|
|
2248
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
2249
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:author"/>
|
|
2250
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
2251
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:othercredit"/>
|
|
2252
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
2253
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:releaseinfo"/>
|
|
2254
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
2255
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:copyright"/>
|
|
2256
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
2257
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:legalnotice"/>
|
|
2258
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
2259
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:pubdate"/>
|
|
2260
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
2261
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:revision"/>
|
|
2262
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
2263
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:revhistory"/>
|
|
2264
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
2265
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:abstract"/>
|
|
2266
|
+
<xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
2267
|
+
</xsl:template>
|
|
2268
|
+
|
|
2269
|
+
<xsl:template name="section.titlepage.verso">
|
|
2270
|
+
</xsl:template>
|
|
2271
|
+
|
|
2272
|
+
<xsl:template name="section.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
|
|
2273
|
+
</xsl:template>
|
|
2274
|
+
|
|
2275
|
+
<xsl:template name="section.titlepage.before.recto">
|
|
2276
|
+
</xsl:template>
|
|
2277
|
+
|
|
2278
|
+
<xsl:template name="section.titlepage.before.verso">
|
|
2279
|
+
</xsl:template>
|
|
2280
|
+
|
|
2281
|
+
<xsl:template name="section.titlepage">
|
|
2282
|
+
<div class="titlepage">
|
|
2283
|
+
<xsl:variable name="recto.content">
|
|
2284
|
+
<xsl:call-template name="section.titlepage.before.recto"/>
|
|
2285
|
+
<xsl:call-template name="section.titlepage.recto"/>
|
|
2286
|
+
</xsl:variable>
|
|
2287
|
+
<xsl:variable name="recto.elements.count">
|
|
2288
|
+
<xsl:choose>
|
|
2289
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
2290
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
2291
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
2292
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
2293
|
+
</xsl:choose>
|
|
2294
|
+
</xsl:variable>
|
|
2295
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
2296
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
2297
|
+
</xsl:if>
|
|
2298
|
+
<xsl:variable name="verso.content">
|
|
2299
|
+
<xsl:call-template name="section.titlepage.before.verso"/>
|
|
2300
|
+
<xsl:call-template name="section.titlepage.verso"/>
|
|
2301
|
+
</xsl:variable>
|
|
2302
|
+
<xsl:variable name="verso.elements.count">
|
|
2303
|
+
<xsl:choose>
|
|
2304
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
2305
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
2306
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
2307
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
2308
|
+
</xsl:choose>
|
|
2309
|
+
</xsl:variable>
|
|
2310
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
2311
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
2312
|
+
</xsl:if>
|
|
2313
|
+
<xsl:call-template name="section.titlepage.separator"/>
|
|
2314
|
+
</div>
|
|
2315
|
+
</xsl:template>
|
|
2316
|
+
|
|
2317
|
+
<xsl:template match="*" mode="section.titlepage.recto.mode">
|
|
2318
|
+
<!-- if an element isn't found in this mode, -->
|
|
2319
|
+
<!-- try the generic titlepage.mode -->
|
|
2320
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
2321
|
+
</xsl:template>
|
|
2322
|
+
|
|
2323
|
+
<xsl:template match="*" mode="section.titlepage.verso.mode">
|
|
2324
|
+
<!-- if an element isn't found in this mode, -->
|
|
2325
|
+
<!-- try the generic titlepage.mode -->
|
|
2326
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
2327
|
+
</xsl:template>
|
|
2328
|
+
|
|
2329
|
+
<xsl:template match="d:title" mode="section.titlepage.recto.auto.mode">
|
|
2330
|
+
<div xsl:use-attribute-sets="section.titlepage.recto.style">
|
|
2331
|
+
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
|
2332
|
+
</div>
|
|
2333
|
+
</xsl:template>
|
|
2334
|
+
|
|
2335
|
+
<xsl:template match="d:subtitle" mode="section.titlepage.recto.auto.mode">
|
|
2336
|
+
<div xsl:use-attribute-sets="section.titlepage.recto.style">
|
|
2337
|
+
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
|
2338
|
+
</div>
|
|
2339
|
+
</xsl:template>
|
|
2340
|
+
|
|
2341
|
+
<xsl:template match="d:corpauthor" mode="section.titlepage.recto.auto.mode">
|
|
2342
|
+
<div xsl:use-attribute-sets="section.titlepage.recto.style">
|
|
2343
|
+
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
|
2344
|
+
</div>
|
|
2345
|
+
</xsl:template>
|
|
2346
|
+
|
|
2347
|
+
<xsl:template match="d:authorgroup" mode="section.titlepage.recto.auto.mode">
|
|
2348
|
+
<div xsl:use-attribute-sets="section.titlepage.recto.style">
|
|
2349
|
+
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
|
2350
|
+
</div>
|
|
2351
|
+
</xsl:template>
|
|
2352
|
+
|
|
2353
|
+
<xsl:template match="d:author" mode="section.titlepage.recto.auto.mode">
|
|
2354
|
+
<div xsl:use-attribute-sets="section.titlepage.recto.style">
|
|
2355
|
+
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
|
2356
|
+
</div>
|
|
2357
|
+
</xsl:template>
|
|
2358
|
+
|
|
2359
|
+
<xsl:template match="d:othercredit" mode="section.titlepage.recto.auto.mode">
|
|
2360
|
+
<div xsl:use-attribute-sets="section.titlepage.recto.style">
|
|
2361
|
+
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
|
2362
|
+
</div>
|
|
2363
|
+
</xsl:template>
|
|
2364
|
+
|
|
2365
|
+
<xsl:template match="d:releaseinfo" mode="section.titlepage.recto.auto.mode">
|
|
2366
|
+
<div xsl:use-attribute-sets="section.titlepage.recto.style">
|
|
2367
|
+
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
|
2368
|
+
</div>
|
|
2369
|
+
</xsl:template>
|
|
2370
|
+
|
|
2371
|
+
<xsl:template match="d:copyright" mode="section.titlepage.recto.auto.mode">
|
|
2372
|
+
<div xsl:use-attribute-sets="section.titlepage.recto.style">
|
|
2373
|
+
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
|
2374
|
+
</div>
|
|
2375
|
+
</xsl:template>
|
|
2376
|
+
|
|
2377
|
+
<xsl:template match="d:legalnotice" mode="section.titlepage.recto.auto.mode">
|
|
2378
|
+
<div xsl:use-attribute-sets="section.titlepage.recto.style">
|
|
2379
|
+
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
|
2380
|
+
</div>
|
|
2381
|
+
</xsl:template>
|
|
2382
|
+
|
|
2383
|
+
<xsl:template match="d:pubdate" mode="section.titlepage.recto.auto.mode">
|
|
2384
|
+
<div xsl:use-attribute-sets="section.titlepage.recto.style">
|
|
2385
|
+
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
|
2386
|
+
</div>
|
|
2387
|
+
</xsl:template>
|
|
2388
|
+
|
|
2389
|
+
<xsl:template match="d:revision" mode="section.titlepage.recto.auto.mode">
|
|
2390
|
+
<div xsl:use-attribute-sets="section.titlepage.recto.style">
|
|
2391
|
+
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
|
2392
|
+
</div>
|
|
2393
|
+
</xsl:template>
|
|
2394
|
+
|
|
2395
|
+
<xsl:template match="d:revhistory" mode="section.titlepage.recto.auto.mode">
|
|
2396
|
+
<div xsl:use-attribute-sets="section.titlepage.recto.style">
|
|
2397
|
+
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
|
2398
|
+
</div>
|
|
2399
|
+
</xsl:template>
|
|
2400
|
+
|
|
2401
|
+
<xsl:template match="d:abstract" mode="section.titlepage.recto.auto.mode">
|
|
2402
|
+
<div xsl:use-attribute-sets="section.titlepage.recto.style">
|
|
2403
|
+
<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
|
2404
|
+
</div>
|
|
2405
|
+
</xsl:template>
|
|
2406
|
+
|
|
2407
|
+
<xsl:template name="sect1.titlepage.recto">
|
|
2408
|
+
<xsl:choose>
|
|
2409
|
+
<xsl:when test="d:sect1info/d:title">
|
|
2410
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:title"/>
|
|
2411
|
+
</xsl:when>
|
|
2412
|
+
<xsl:when test="d:info/d:title">
|
|
2413
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
2414
|
+
</xsl:when>
|
|
2415
|
+
<xsl:when test="d:title">
|
|
2416
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:title"/>
|
|
2417
|
+
</xsl:when>
|
|
2418
|
+
</xsl:choose>
|
|
2419
|
+
|
|
2420
|
+
<xsl:choose>
|
|
2421
|
+
<xsl:when test="d:sect1info/d:subtitle">
|
|
2422
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:subtitle"/>
|
|
2423
|
+
</xsl:when>
|
|
2424
|
+
<xsl:when test="d:info/d:subtitle">
|
|
2425
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
2426
|
+
</xsl:when>
|
|
2427
|
+
<xsl:when test="d:subtitle">
|
|
2428
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
2429
|
+
</xsl:when>
|
|
2430
|
+
</xsl:choose>
|
|
2431
|
+
|
|
2432
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:corpauthor"/>
|
|
2433
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
2434
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:authorgroup"/>
|
|
2435
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
2436
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:author"/>
|
|
2437
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
2438
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:othercredit"/>
|
|
2439
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
2440
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:releaseinfo"/>
|
|
2441
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
2442
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:copyright"/>
|
|
2443
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
2444
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:legalnotice"/>
|
|
2445
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
2446
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:pubdate"/>
|
|
2447
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
2448
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:revision"/>
|
|
2449
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
2450
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:revhistory"/>
|
|
2451
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
2452
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:abstract"/>
|
|
2453
|
+
<xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
2454
|
+
</xsl:template>
|
|
2455
|
+
|
|
2456
|
+
<xsl:template name="sect1.titlepage.verso">
|
|
2457
|
+
</xsl:template>
|
|
2458
|
+
|
|
2459
|
+
<xsl:template name="sect1.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
|
|
2460
|
+
</xsl:template>
|
|
2461
|
+
|
|
2462
|
+
<xsl:template name="sect1.titlepage.before.recto">
|
|
2463
|
+
</xsl:template>
|
|
2464
|
+
|
|
2465
|
+
<xsl:template name="sect1.titlepage.before.verso">
|
|
2466
|
+
</xsl:template>
|
|
2467
|
+
|
|
2468
|
+
<xsl:template name="sect1.titlepage">
|
|
2469
|
+
<div class="titlepage">
|
|
2470
|
+
<xsl:variable name="recto.content">
|
|
2471
|
+
<xsl:call-template name="sect1.titlepage.before.recto"/>
|
|
2472
|
+
<xsl:call-template name="sect1.titlepage.recto"/>
|
|
2473
|
+
</xsl:variable>
|
|
2474
|
+
<xsl:variable name="recto.elements.count">
|
|
2475
|
+
<xsl:choose>
|
|
2476
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
2477
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
2478
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
2479
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
2480
|
+
</xsl:choose>
|
|
2481
|
+
</xsl:variable>
|
|
2482
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
2483
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
2484
|
+
</xsl:if>
|
|
2485
|
+
<xsl:variable name="verso.content">
|
|
2486
|
+
<xsl:call-template name="sect1.titlepage.before.verso"/>
|
|
2487
|
+
<xsl:call-template name="sect1.titlepage.verso"/>
|
|
2488
|
+
</xsl:variable>
|
|
2489
|
+
<xsl:variable name="verso.elements.count">
|
|
2490
|
+
<xsl:choose>
|
|
2491
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
2492
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
2493
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
2494
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
2495
|
+
</xsl:choose>
|
|
2496
|
+
</xsl:variable>
|
|
2497
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
2498
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
2499
|
+
</xsl:if>
|
|
2500
|
+
<xsl:call-template name="sect1.titlepage.separator"/>
|
|
2501
|
+
</div>
|
|
2502
|
+
</xsl:template>
|
|
2503
|
+
|
|
2504
|
+
<xsl:template match="*" mode="sect1.titlepage.recto.mode">
|
|
2505
|
+
<!-- if an element isn't found in this mode, -->
|
|
2506
|
+
<!-- try the generic titlepage.mode -->
|
|
2507
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
2508
|
+
</xsl:template>
|
|
2509
|
+
|
|
2510
|
+
<xsl:template match="*" mode="sect1.titlepage.verso.mode">
|
|
2511
|
+
<!-- if an element isn't found in this mode, -->
|
|
2512
|
+
<!-- try the generic titlepage.mode -->
|
|
2513
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
2514
|
+
</xsl:template>
|
|
2515
|
+
|
|
2516
|
+
<xsl:template match="d:title" mode="sect1.titlepage.recto.auto.mode">
|
|
2517
|
+
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
|
2518
|
+
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
|
2519
|
+
</div>
|
|
2520
|
+
</xsl:template>
|
|
2521
|
+
|
|
2522
|
+
<xsl:template match="d:subtitle" mode="sect1.titlepage.recto.auto.mode">
|
|
2523
|
+
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
|
2524
|
+
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
|
2525
|
+
</div>
|
|
2526
|
+
</xsl:template>
|
|
2527
|
+
|
|
2528
|
+
<xsl:template match="d:corpauthor" mode="sect1.titlepage.recto.auto.mode">
|
|
2529
|
+
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
|
2530
|
+
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
|
2531
|
+
</div>
|
|
2532
|
+
</xsl:template>
|
|
2533
|
+
|
|
2534
|
+
<xsl:template match="d:authorgroup" mode="sect1.titlepage.recto.auto.mode">
|
|
2535
|
+
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
|
2536
|
+
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
|
2537
|
+
</div>
|
|
2538
|
+
</xsl:template>
|
|
2539
|
+
|
|
2540
|
+
<xsl:template match="d:author" mode="sect1.titlepage.recto.auto.mode">
|
|
2541
|
+
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
|
2542
|
+
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
|
2543
|
+
</div>
|
|
2544
|
+
</xsl:template>
|
|
2545
|
+
|
|
2546
|
+
<xsl:template match="d:othercredit" mode="sect1.titlepage.recto.auto.mode">
|
|
2547
|
+
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
|
2548
|
+
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
|
2549
|
+
</div>
|
|
2550
|
+
</xsl:template>
|
|
2551
|
+
|
|
2552
|
+
<xsl:template match="d:releaseinfo" mode="sect1.titlepage.recto.auto.mode">
|
|
2553
|
+
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
|
2554
|
+
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
|
2555
|
+
</div>
|
|
2556
|
+
</xsl:template>
|
|
2557
|
+
|
|
2558
|
+
<xsl:template match="d:copyright" mode="sect1.titlepage.recto.auto.mode">
|
|
2559
|
+
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
|
2560
|
+
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
|
2561
|
+
</div>
|
|
2562
|
+
</xsl:template>
|
|
2563
|
+
|
|
2564
|
+
<xsl:template match="d:legalnotice" mode="sect1.titlepage.recto.auto.mode">
|
|
2565
|
+
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
|
2566
|
+
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
|
2567
|
+
</div>
|
|
2568
|
+
</xsl:template>
|
|
2569
|
+
|
|
2570
|
+
<xsl:template match="d:pubdate" mode="sect1.titlepage.recto.auto.mode">
|
|
2571
|
+
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
|
2572
|
+
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
|
2573
|
+
</div>
|
|
2574
|
+
</xsl:template>
|
|
2575
|
+
|
|
2576
|
+
<xsl:template match="d:revision" mode="sect1.titlepage.recto.auto.mode">
|
|
2577
|
+
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
|
2578
|
+
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
|
2579
|
+
</div>
|
|
2580
|
+
</xsl:template>
|
|
2581
|
+
|
|
2582
|
+
<xsl:template match="d:revhistory" mode="sect1.titlepage.recto.auto.mode">
|
|
2583
|
+
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
|
2584
|
+
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
|
2585
|
+
</div>
|
|
2586
|
+
</xsl:template>
|
|
2587
|
+
|
|
2588
|
+
<xsl:template match="d:abstract" mode="sect1.titlepage.recto.auto.mode">
|
|
2589
|
+
<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
|
2590
|
+
<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
|
2591
|
+
</div>
|
|
2592
|
+
</xsl:template>
|
|
2593
|
+
|
|
2594
|
+
<xsl:template name="sect2.titlepage.recto">
|
|
2595
|
+
<xsl:choose>
|
|
2596
|
+
<xsl:when test="d:sect2info/d:title">
|
|
2597
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:title"/>
|
|
2598
|
+
</xsl:when>
|
|
2599
|
+
<xsl:when test="d:info/d:title">
|
|
2600
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
2601
|
+
</xsl:when>
|
|
2602
|
+
<xsl:when test="d:title">
|
|
2603
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:title"/>
|
|
2604
|
+
</xsl:when>
|
|
2605
|
+
</xsl:choose>
|
|
2606
|
+
|
|
2607
|
+
<xsl:choose>
|
|
2608
|
+
<xsl:when test="d:sect2info/d:subtitle">
|
|
2609
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:subtitle"/>
|
|
2610
|
+
</xsl:when>
|
|
2611
|
+
<xsl:when test="d:info/d:subtitle">
|
|
2612
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
2613
|
+
</xsl:when>
|
|
2614
|
+
<xsl:when test="d:subtitle">
|
|
2615
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
2616
|
+
</xsl:when>
|
|
2617
|
+
</xsl:choose>
|
|
2618
|
+
|
|
2619
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:corpauthor"/>
|
|
2620
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
2621
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:authorgroup"/>
|
|
2622
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
2623
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:author"/>
|
|
2624
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
2625
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:othercredit"/>
|
|
2626
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
2627
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:releaseinfo"/>
|
|
2628
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
2629
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:copyright"/>
|
|
2630
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
2631
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:legalnotice"/>
|
|
2632
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
2633
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:pubdate"/>
|
|
2634
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
2635
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:revision"/>
|
|
2636
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
2637
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:revhistory"/>
|
|
2638
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
2639
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:abstract"/>
|
|
2640
|
+
<xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
2641
|
+
</xsl:template>
|
|
2642
|
+
|
|
2643
|
+
<xsl:template name="sect2.titlepage.verso">
|
|
2644
|
+
</xsl:template>
|
|
2645
|
+
|
|
2646
|
+
<xsl:template name="sect2.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
|
|
2647
|
+
</xsl:template>
|
|
2648
|
+
|
|
2649
|
+
<xsl:template name="sect2.titlepage.before.recto">
|
|
2650
|
+
</xsl:template>
|
|
2651
|
+
|
|
2652
|
+
<xsl:template name="sect2.titlepage.before.verso">
|
|
2653
|
+
</xsl:template>
|
|
2654
|
+
|
|
2655
|
+
<xsl:template name="sect2.titlepage">
|
|
2656
|
+
<div class="titlepage">
|
|
2657
|
+
<xsl:variable name="recto.content">
|
|
2658
|
+
<xsl:call-template name="sect2.titlepage.before.recto"/>
|
|
2659
|
+
<xsl:call-template name="sect2.titlepage.recto"/>
|
|
2660
|
+
</xsl:variable>
|
|
2661
|
+
<xsl:variable name="recto.elements.count">
|
|
2662
|
+
<xsl:choose>
|
|
2663
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
2664
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
2665
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
2666
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
2667
|
+
</xsl:choose>
|
|
2668
|
+
</xsl:variable>
|
|
2669
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
2670
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
2671
|
+
</xsl:if>
|
|
2672
|
+
<xsl:variable name="verso.content">
|
|
2673
|
+
<xsl:call-template name="sect2.titlepage.before.verso"/>
|
|
2674
|
+
<xsl:call-template name="sect2.titlepage.verso"/>
|
|
2675
|
+
</xsl:variable>
|
|
2676
|
+
<xsl:variable name="verso.elements.count">
|
|
2677
|
+
<xsl:choose>
|
|
2678
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
2679
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
2680
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
2681
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
2682
|
+
</xsl:choose>
|
|
2683
|
+
</xsl:variable>
|
|
2684
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
2685
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
2686
|
+
</xsl:if>
|
|
2687
|
+
<xsl:call-template name="sect2.titlepage.separator"/>
|
|
2688
|
+
</div>
|
|
2689
|
+
</xsl:template>
|
|
2690
|
+
|
|
2691
|
+
<xsl:template match="*" mode="sect2.titlepage.recto.mode">
|
|
2692
|
+
<!-- if an element isn't found in this mode, -->
|
|
2693
|
+
<!-- try the generic titlepage.mode -->
|
|
2694
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
2695
|
+
</xsl:template>
|
|
2696
|
+
|
|
2697
|
+
<xsl:template match="*" mode="sect2.titlepage.verso.mode">
|
|
2698
|
+
<!-- if an element isn't found in this mode, -->
|
|
2699
|
+
<!-- try the generic titlepage.mode -->
|
|
2700
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
2701
|
+
</xsl:template>
|
|
2702
|
+
|
|
2703
|
+
<xsl:template match="d:title" mode="sect2.titlepage.recto.auto.mode">
|
|
2704
|
+
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
|
2705
|
+
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
|
2706
|
+
</div>
|
|
2707
|
+
</xsl:template>
|
|
2708
|
+
|
|
2709
|
+
<xsl:template match="d:subtitle" mode="sect2.titlepage.recto.auto.mode">
|
|
2710
|
+
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
|
2711
|
+
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
|
2712
|
+
</div>
|
|
2713
|
+
</xsl:template>
|
|
2714
|
+
|
|
2715
|
+
<xsl:template match="d:corpauthor" mode="sect2.titlepage.recto.auto.mode">
|
|
2716
|
+
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
|
2717
|
+
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
|
2718
|
+
</div>
|
|
2719
|
+
</xsl:template>
|
|
2720
|
+
|
|
2721
|
+
<xsl:template match="d:authorgroup" mode="sect2.titlepage.recto.auto.mode">
|
|
2722
|
+
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
|
2723
|
+
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
|
2724
|
+
</div>
|
|
2725
|
+
</xsl:template>
|
|
2726
|
+
|
|
2727
|
+
<xsl:template match="d:author" mode="sect2.titlepage.recto.auto.mode">
|
|
2728
|
+
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
|
2729
|
+
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
|
2730
|
+
</div>
|
|
2731
|
+
</xsl:template>
|
|
2732
|
+
|
|
2733
|
+
<xsl:template match="d:othercredit" mode="sect2.titlepage.recto.auto.mode">
|
|
2734
|
+
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
|
2735
|
+
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
|
2736
|
+
</div>
|
|
2737
|
+
</xsl:template>
|
|
2738
|
+
|
|
2739
|
+
<xsl:template match="d:releaseinfo" mode="sect2.titlepage.recto.auto.mode">
|
|
2740
|
+
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
|
2741
|
+
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
|
2742
|
+
</div>
|
|
2743
|
+
</xsl:template>
|
|
2744
|
+
|
|
2745
|
+
<xsl:template match="d:copyright" mode="sect2.titlepage.recto.auto.mode">
|
|
2746
|
+
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
|
2747
|
+
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
|
2748
|
+
</div>
|
|
2749
|
+
</xsl:template>
|
|
2750
|
+
|
|
2751
|
+
<xsl:template match="d:legalnotice" mode="sect2.titlepage.recto.auto.mode">
|
|
2752
|
+
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
|
2753
|
+
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
|
2754
|
+
</div>
|
|
2755
|
+
</xsl:template>
|
|
2756
|
+
|
|
2757
|
+
<xsl:template match="d:pubdate" mode="sect2.titlepage.recto.auto.mode">
|
|
2758
|
+
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
|
2759
|
+
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
|
2760
|
+
</div>
|
|
2761
|
+
</xsl:template>
|
|
2762
|
+
|
|
2763
|
+
<xsl:template match="d:revision" mode="sect2.titlepage.recto.auto.mode">
|
|
2764
|
+
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
|
2765
|
+
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
|
2766
|
+
</div>
|
|
2767
|
+
</xsl:template>
|
|
2768
|
+
|
|
2769
|
+
<xsl:template match="d:revhistory" mode="sect2.titlepage.recto.auto.mode">
|
|
2770
|
+
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
|
2771
|
+
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
|
2772
|
+
</div>
|
|
2773
|
+
</xsl:template>
|
|
2774
|
+
|
|
2775
|
+
<xsl:template match="d:abstract" mode="sect2.titlepage.recto.auto.mode">
|
|
2776
|
+
<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
|
2777
|
+
<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
|
2778
|
+
</div>
|
|
2779
|
+
</xsl:template>
|
|
2780
|
+
|
|
2781
|
+
<xsl:template name="sect3.titlepage.recto">
|
|
2782
|
+
<xsl:choose>
|
|
2783
|
+
<xsl:when test="d:sect3info/d:title">
|
|
2784
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:title"/>
|
|
2785
|
+
</xsl:when>
|
|
2786
|
+
<xsl:when test="d:info/d:title">
|
|
2787
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
2788
|
+
</xsl:when>
|
|
2789
|
+
<xsl:when test="d:title">
|
|
2790
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:title"/>
|
|
2791
|
+
</xsl:when>
|
|
2792
|
+
</xsl:choose>
|
|
2793
|
+
|
|
2794
|
+
<xsl:choose>
|
|
2795
|
+
<xsl:when test="d:sect3info/d:subtitle">
|
|
2796
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:subtitle"/>
|
|
2797
|
+
</xsl:when>
|
|
2798
|
+
<xsl:when test="d:info/d:subtitle">
|
|
2799
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
2800
|
+
</xsl:when>
|
|
2801
|
+
<xsl:when test="d:subtitle">
|
|
2802
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
2803
|
+
</xsl:when>
|
|
2804
|
+
</xsl:choose>
|
|
2805
|
+
|
|
2806
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:corpauthor"/>
|
|
2807
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
2808
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:authorgroup"/>
|
|
2809
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
2810
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:author"/>
|
|
2811
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
2812
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:othercredit"/>
|
|
2813
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
2814
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:releaseinfo"/>
|
|
2815
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
2816
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:copyright"/>
|
|
2817
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
2818
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:legalnotice"/>
|
|
2819
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
2820
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:pubdate"/>
|
|
2821
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
2822
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:revision"/>
|
|
2823
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
2824
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:revhistory"/>
|
|
2825
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
2826
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:abstract"/>
|
|
2827
|
+
<xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
2828
|
+
</xsl:template>
|
|
2829
|
+
|
|
2830
|
+
<xsl:template name="sect3.titlepage.verso">
|
|
2831
|
+
</xsl:template>
|
|
2832
|
+
|
|
2833
|
+
<xsl:template name="sect3.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
|
|
2834
|
+
</xsl:template>
|
|
2835
|
+
|
|
2836
|
+
<xsl:template name="sect3.titlepage.before.recto">
|
|
2837
|
+
</xsl:template>
|
|
2838
|
+
|
|
2839
|
+
<xsl:template name="sect3.titlepage.before.verso">
|
|
2840
|
+
</xsl:template>
|
|
2841
|
+
|
|
2842
|
+
<xsl:template name="sect3.titlepage">
|
|
2843
|
+
<div class="titlepage">
|
|
2844
|
+
<xsl:variable name="recto.content">
|
|
2845
|
+
<xsl:call-template name="sect3.titlepage.before.recto"/>
|
|
2846
|
+
<xsl:call-template name="sect3.titlepage.recto"/>
|
|
2847
|
+
</xsl:variable>
|
|
2848
|
+
<xsl:variable name="recto.elements.count">
|
|
2849
|
+
<xsl:choose>
|
|
2850
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
2851
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
2852
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
2853
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
2854
|
+
</xsl:choose>
|
|
2855
|
+
</xsl:variable>
|
|
2856
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
2857
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
2858
|
+
</xsl:if>
|
|
2859
|
+
<xsl:variable name="verso.content">
|
|
2860
|
+
<xsl:call-template name="sect3.titlepage.before.verso"/>
|
|
2861
|
+
<xsl:call-template name="sect3.titlepage.verso"/>
|
|
2862
|
+
</xsl:variable>
|
|
2863
|
+
<xsl:variable name="verso.elements.count">
|
|
2864
|
+
<xsl:choose>
|
|
2865
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
2866
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
2867
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
2868
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
2869
|
+
</xsl:choose>
|
|
2870
|
+
</xsl:variable>
|
|
2871
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
2872
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
2873
|
+
</xsl:if>
|
|
2874
|
+
<xsl:call-template name="sect3.titlepage.separator"/>
|
|
2875
|
+
</div>
|
|
2876
|
+
</xsl:template>
|
|
2877
|
+
|
|
2878
|
+
<xsl:template match="*" mode="sect3.titlepage.recto.mode">
|
|
2879
|
+
<!-- if an element isn't found in this mode, -->
|
|
2880
|
+
<!-- try the generic titlepage.mode -->
|
|
2881
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
2882
|
+
</xsl:template>
|
|
2883
|
+
|
|
2884
|
+
<xsl:template match="*" mode="sect3.titlepage.verso.mode">
|
|
2885
|
+
<!-- if an element isn't found in this mode, -->
|
|
2886
|
+
<!-- try the generic titlepage.mode -->
|
|
2887
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
2888
|
+
</xsl:template>
|
|
2889
|
+
|
|
2890
|
+
<xsl:template match="d:title" mode="sect3.titlepage.recto.auto.mode">
|
|
2891
|
+
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
|
2892
|
+
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
|
2893
|
+
</div>
|
|
2894
|
+
</xsl:template>
|
|
2895
|
+
|
|
2896
|
+
<xsl:template match="d:subtitle" mode="sect3.titlepage.recto.auto.mode">
|
|
2897
|
+
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
|
2898
|
+
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
|
2899
|
+
</div>
|
|
2900
|
+
</xsl:template>
|
|
2901
|
+
|
|
2902
|
+
<xsl:template match="d:corpauthor" mode="sect3.titlepage.recto.auto.mode">
|
|
2903
|
+
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
|
2904
|
+
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
|
2905
|
+
</div>
|
|
2906
|
+
</xsl:template>
|
|
2907
|
+
|
|
2908
|
+
<xsl:template match="d:authorgroup" mode="sect3.titlepage.recto.auto.mode">
|
|
2909
|
+
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
|
2910
|
+
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
|
2911
|
+
</div>
|
|
2912
|
+
</xsl:template>
|
|
2913
|
+
|
|
2914
|
+
<xsl:template match="d:author" mode="sect3.titlepage.recto.auto.mode">
|
|
2915
|
+
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
|
2916
|
+
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
|
2917
|
+
</div>
|
|
2918
|
+
</xsl:template>
|
|
2919
|
+
|
|
2920
|
+
<xsl:template match="d:othercredit" mode="sect3.titlepage.recto.auto.mode">
|
|
2921
|
+
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
|
2922
|
+
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
|
2923
|
+
</div>
|
|
2924
|
+
</xsl:template>
|
|
2925
|
+
|
|
2926
|
+
<xsl:template match="d:releaseinfo" mode="sect3.titlepage.recto.auto.mode">
|
|
2927
|
+
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
|
2928
|
+
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
|
2929
|
+
</div>
|
|
2930
|
+
</xsl:template>
|
|
2931
|
+
|
|
2932
|
+
<xsl:template match="d:copyright" mode="sect3.titlepage.recto.auto.mode">
|
|
2933
|
+
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
|
2934
|
+
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
|
2935
|
+
</div>
|
|
2936
|
+
</xsl:template>
|
|
2937
|
+
|
|
2938
|
+
<xsl:template match="d:legalnotice" mode="sect3.titlepage.recto.auto.mode">
|
|
2939
|
+
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
|
2940
|
+
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
|
2941
|
+
</div>
|
|
2942
|
+
</xsl:template>
|
|
2943
|
+
|
|
2944
|
+
<xsl:template match="d:pubdate" mode="sect3.titlepage.recto.auto.mode">
|
|
2945
|
+
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
|
2946
|
+
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
|
2947
|
+
</div>
|
|
2948
|
+
</xsl:template>
|
|
2949
|
+
|
|
2950
|
+
<xsl:template match="d:revision" mode="sect3.titlepage.recto.auto.mode">
|
|
2951
|
+
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
|
2952
|
+
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
|
2953
|
+
</div>
|
|
2954
|
+
</xsl:template>
|
|
2955
|
+
|
|
2956
|
+
<xsl:template match="d:revhistory" mode="sect3.titlepage.recto.auto.mode">
|
|
2957
|
+
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
|
2958
|
+
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
|
2959
|
+
</div>
|
|
2960
|
+
</xsl:template>
|
|
2961
|
+
|
|
2962
|
+
<xsl:template match="d:abstract" mode="sect3.titlepage.recto.auto.mode">
|
|
2963
|
+
<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
|
2964
|
+
<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
|
2965
|
+
</div>
|
|
2966
|
+
</xsl:template>
|
|
2967
|
+
|
|
2968
|
+
<xsl:template name="sect4.titlepage.recto">
|
|
2969
|
+
<xsl:choose>
|
|
2970
|
+
<xsl:when test="d:sect4info/d:title">
|
|
2971
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:title"/>
|
|
2972
|
+
</xsl:when>
|
|
2973
|
+
<xsl:when test="d:info/d:title">
|
|
2974
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
2975
|
+
</xsl:when>
|
|
2976
|
+
<xsl:when test="d:title">
|
|
2977
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:title"/>
|
|
2978
|
+
</xsl:when>
|
|
2979
|
+
</xsl:choose>
|
|
2980
|
+
|
|
2981
|
+
<xsl:choose>
|
|
2982
|
+
<xsl:when test="d:sect4info/d:subtitle">
|
|
2983
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:subtitle"/>
|
|
2984
|
+
</xsl:when>
|
|
2985
|
+
<xsl:when test="d:info/d:subtitle">
|
|
2986
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
2987
|
+
</xsl:when>
|
|
2988
|
+
<xsl:when test="d:subtitle">
|
|
2989
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
2990
|
+
</xsl:when>
|
|
2991
|
+
</xsl:choose>
|
|
2992
|
+
|
|
2993
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:corpauthor"/>
|
|
2994
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
2995
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:authorgroup"/>
|
|
2996
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
2997
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:author"/>
|
|
2998
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
2999
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:othercredit"/>
|
|
3000
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
3001
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:releaseinfo"/>
|
|
3002
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
3003
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:copyright"/>
|
|
3004
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
3005
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:legalnotice"/>
|
|
3006
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
3007
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:pubdate"/>
|
|
3008
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
3009
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:revision"/>
|
|
3010
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
3011
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:revhistory"/>
|
|
3012
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
3013
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:abstract"/>
|
|
3014
|
+
<xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
3015
|
+
</xsl:template>
|
|
3016
|
+
|
|
3017
|
+
<xsl:template name="sect4.titlepage.verso">
|
|
3018
|
+
</xsl:template>
|
|
3019
|
+
|
|
3020
|
+
<xsl:template name="sect4.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
|
|
3021
|
+
</xsl:template>
|
|
3022
|
+
|
|
3023
|
+
<xsl:template name="sect4.titlepage.before.recto">
|
|
3024
|
+
</xsl:template>
|
|
3025
|
+
|
|
3026
|
+
<xsl:template name="sect4.titlepage.before.verso">
|
|
3027
|
+
</xsl:template>
|
|
3028
|
+
|
|
3029
|
+
<xsl:template name="sect4.titlepage">
|
|
3030
|
+
<div class="titlepage">
|
|
3031
|
+
<xsl:variable name="recto.content">
|
|
3032
|
+
<xsl:call-template name="sect4.titlepage.before.recto"/>
|
|
3033
|
+
<xsl:call-template name="sect4.titlepage.recto"/>
|
|
3034
|
+
</xsl:variable>
|
|
3035
|
+
<xsl:variable name="recto.elements.count">
|
|
3036
|
+
<xsl:choose>
|
|
3037
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3038
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3039
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3040
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3041
|
+
</xsl:choose>
|
|
3042
|
+
</xsl:variable>
|
|
3043
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
3044
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
3045
|
+
</xsl:if>
|
|
3046
|
+
<xsl:variable name="verso.content">
|
|
3047
|
+
<xsl:call-template name="sect4.titlepage.before.verso"/>
|
|
3048
|
+
<xsl:call-template name="sect4.titlepage.verso"/>
|
|
3049
|
+
</xsl:variable>
|
|
3050
|
+
<xsl:variable name="verso.elements.count">
|
|
3051
|
+
<xsl:choose>
|
|
3052
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3053
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3054
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3055
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3056
|
+
</xsl:choose>
|
|
3057
|
+
</xsl:variable>
|
|
3058
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
3059
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
3060
|
+
</xsl:if>
|
|
3061
|
+
<xsl:call-template name="sect4.titlepage.separator"/>
|
|
3062
|
+
</div>
|
|
3063
|
+
</xsl:template>
|
|
3064
|
+
|
|
3065
|
+
<xsl:template match="*" mode="sect4.titlepage.recto.mode">
|
|
3066
|
+
<!-- if an element isn't found in this mode, -->
|
|
3067
|
+
<!-- try the generic titlepage.mode -->
|
|
3068
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3069
|
+
</xsl:template>
|
|
3070
|
+
|
|
3071
|
+
<xsl:template match="*" mode="sect4.titlepage.verso.mode">
|
|
3072
|
+
<!-- if an element isn't found in this mode, -->
|
|
3073
|
+
<!-- try the generic titlepage.mode -->
|
|
3074
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3075
|
+
</xsl:template>
|
|
3076
|
+
|
|
3077
|
+
<xsl:template match="d:title" mode="sect4.titlepage.recto.auto.mode">
|
|
3078
|
+
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
|
3079
|
+
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
|
3080
|
+
</div>
|
|
3081
|
+
</xsl:template>
|
|
3082
|
+
|
|
3083
|
+
<xsl:template match="d:subtitle" mode="sect4.titlepage.recto.auto.mode">
|
|
3084
|
+
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
|
3085
|
+
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
|
3086
|
+
</div>
|
|
3087
|
+
</xsl:template>
|
|
3088
|
+
|
|
3089
|
+
<xsl:template match="d:corpauthor" mode="sect4.titlepage.recto.auto.mode">
|
|
3090
|
+
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
|
3091
|
+
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
|
3092
|
+
</div>
|
|
3093
|
+
</xsl:template>
|
|
3094
|
+
|
|
3095
|
+
<xsl:template match="d:authorgroup" mode="sect4.titlepage.recto.auto.mode">
|
|
3096
|
+
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
|
3097
|
+
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
|
3098
|
+
</div>
|
|
3099
|
+
</xsl:template>
|
|
3100
|
+
|
|
3101
|
+
<xsl:template match="d:author" mode="sect4.titlepage.recto.auto.mode">
|
|
3102
|
+
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
|
3103
|
+
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
|
3104
|
+
</div>
|
|
3105
|
+
</xsl:template>
|
|
3106
|
+
|
|
3107
|
+
<xsl:template match="d:othercredit" mode="sect4.titlepage.recto.auto.mode">
|
|
3108
|
+
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
|
3109
|
+
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
|
3110
|
+
</div>
|
|
3111
|
+
</xsl:template>
|
|
3112
|
+
|
|
3113
|
+
<xsl:template match="d:releaseinfo" mode="sect4.titlepage.recto.auto.mode">
|
|
3114
|
+
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
|
3115
|
+
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
|
3116
|
+
</div>
|
|
3117
|
+
</xsl:template>
|
|
3118
|
+
|
|
3119
|
+
<xsl:template match="d:copyright" mode="sect4.titlepage.recto.auto.mode">
|
|
3120
|
+
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
|
3121
|
+
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
|
3122
|
+
</div>
|
|
3123
|
+
</xsl:template>
|
|
3124
|
+
|
|
3125
|
+
<xsl:template match="d:legalnotice" mode="sect4.titlepage.recto.auto.mode">
|
|
3126
|
+
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
|
3127
|
+
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
|
3128
|
+
</div>
|
|
3129
|
+
</xsl:template>
|
|
3130
|
+
|
|
3131
|
+
<xsl:template match="d:pubdate" mode="sect4.titlepage.recto.auto.mode">
|
|
3132
|
+
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
|
3133
|
+
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
|
3134
|
+
</div>
|
|
3135
|
+
</xsl:template>
|
|
3136
|
+
|
|
3137
|
+
<xsl:template match="d:revision" mode="sect4.titlepage.recto.auto.mode">
|
|
3138
|
+
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
|
3139
|
+
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
|
3140
|
+
</div>
|
|
3141
|
+
</xsl:template>
|
|
3142
|
+
|
|
3143
|
+
<xsl:template match="d:revhistory" mode="sect4.titlepage.recto.auto.mode">
|
|
3144
|
+
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
|
3145
|
+
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
|
3146
|
+
</div>
|
|
3147
|
+
</xsl:template>
|
|
3148
|
+
|
|
3149
|
+
<xsl:template match="d:abstract" mode="sect4.titlepage.recto.auto.mode">
|
|
3150
|
+
<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
|
3151
|
+
<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
|
3152
|
+
</div>
|
|
3153
|
+
</xsl:template>
|
|
3154
|
+
|
|
3155
|
+
<xsl:template name="sect5.titlepage.recto">
|
|
3156
|
+
<xsl:choose>
|
|
3157
|
+
<xsl:when test="d:sect5info/d:title">
|
|
3158
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:title"/>
|
|
3159
|
+
</xsl:when>
|
|
3160
|
+
<xsl:when test="d:info/d:title">
|
|
3161
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
3162
|
+
</xsl:when>
|
|
3163
|
+
<xsl:when test="d:title">
|
|
3164
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:title"/>
|
|
3165
|
+
</xsl:when>
|
|
3166
|
+
</xsl:choose>
|
|
3167
|
+
|
|
3168
|
+
<xsl:choose>
|
|
3169
|
+
<xsl:when test="d:sect5info/d:subtitle">
|
|
3170
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:subtitle"/>
|
|
3171
|
+
</xsl:when>
|
|
3172
|
+
<xsl:when test="d:info/d:subtitle">
|
|
3173
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
3174
|
+
</xsl:when>
|
|
3175
|
+
<xsl:when test="d:subtitle">
|
|
3176
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
3177
|
+
</xsl:when>
|
|
3178
|
+
</xsl:choose>
|
|
3179
|
+
|
|
3180
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:corpauthor"/>
|
|
3181
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
3182
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:authorgroup"/>
|
|
3183
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
3184
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:author"/>
|
|
3185
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
3186
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:othercredit"/>
|
|
3187
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
3188
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:releaseinfo"/>
|
|
3189
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
3190
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:copyright"/>
|
|
3191
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
3192
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:legalnotice"/>
|
|
3193
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
3194
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:pubdate"/>
|
|
3195
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
3196
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:revision"/>
|
|
3197
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
3198
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:revhistory"/>
|
|
3199
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
3200
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:abstract"/>
|
|
3201
|
+
<xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
3202
|
+
</xsl:template>
|
|
3203
|
+
|
|
3204
|
+
<xsl:template name="sect5.titlepage.verso">
|
|
3205
|
+
</xsl:template>
|
|
3206
|
+
|
|
3207
|
+
<xsl:template name="sect5.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
|
|
3208
|
+
</xsl:template>
|
|
3209
|
+
|
|
3210
|
+
<xsl:template name="sect5.titlepage.before.recto">
|
|
3211
|
+
</xsl:template>
|
|
3212
|
+
|
|
3213
|
+
<xsl:template name="sect5.titlepage.before.verso">
|
|
3214
|
+
</xsl:template>
|
|
3215
|
+
|
|
3216
|
+
<xsl:template name="sect5.titlepage">
|
|
3217
|
+
<div class="titlepage">
|
|
3218
|
+
<xsl:variable name="recto.content">
|
|
3219
|
+
<xsl:call-template name="sect5.titlepage.before.recto"/>
|
|
3220
|
+
<xsl:call-template name="sect5.titlepage.recto"/>
|
|
3221
|
+
</xsl:variable>
|
|
3222
|
+
<xsl:variable name="recto.elements.count">
|
|
3223
|
+
<xsl:choose>
|
|
3224
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3225
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3226
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3227
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3228
|
+
</xsl:choose>
|
|
3229
|
+
</xsl:variable>
|
|
3230
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
3231
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
3232
|
+
</xsl:if>
|
|
3233
|
+
<xsl:variable name="verso.content">
|
|
3234
|
+
<xsl:call-template name="sect5.titlepage.before.verso"/>
|
|
3235
|
+
<xsl:call-template name="sect5.titlepage.verso"/>
|
|
3236
|
+
</xsl:variable>
|
|
3237
|
+
<xsl:variable name="verso.elements.count">
|
|
3238
|
+
<xsl:choose>
|
|
3239
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3240
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3241
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3242
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3243
|
+
</xsl:choose>
|
|
3244
|
+
</xsl:variable>
|
|
3245
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
3246
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
3247
|
+
</xsl:if>
|
|
3248
|
+
<xsl:call-template name="sect5.titlepage.separator"/>
|
|
3249
|
+
</div>
|
|
3250
|
+
</xsl:template>
|
|
3251
|
+
|
|
3252
|
+
<xsl:template match="*" mode="sect5.titlepage.recto.mode">
|
|
3253
|
+
<!-- if an element isn't found in this mode, -->
|
|
3254
|
+
<!-- try the generic titlepage.mode -->
|
|
3255
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3256
|
+
</xsl:template>
|
|
3257
|
+
|
|
3258
|
+
<xsl:template match="*" mode="sect5.titlepage.verso.mode">
|
|
3259
|
+
<!-- if an element isn't found in this mode, -->
|
|
3260
|
+
<!-- try the generic titlepage.mode -->
|
|
3261
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3262
|
+
</xsl:template>
|
|
3263
|
+
|
|
3264
|
+
<xsl:template match="d:title" mode="sect5.titlepage.recto.auto.mode">
|
|
3265
|
+
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
|
3266
|
+
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
|
3267
|
+
</div>
|
|
3268
|
+
</xsl:template>
|
|
3269
|
+
|
|
3270
|
+
<xsl:template match="d:subtitle" mode="sect5.titlepage.recto.auto.mode">
|
|
3271
|
+
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
|
3272
|
+
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
|
3273
|
+
</div>
|
|
3274
|
+
</xsl:template>
|
|
3275
|
+
|
|
3276
|
+
<xsl:template match="d:corpauthor" mode="sect5.titlepage.recto.auto.mode">
|
|
3277
|
+
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
|
3278
|
+
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
|
3279
|
+
</div>
|
|
3280
|
+
</xsl:template>
|
|
3281
|
+
|
|
3282
|
+
<xsl:template match="d:authorgroup" mode="sect5.titlepage.recto.auto.mode">
|
|
3283
|
+
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
|
3284
|
+
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
|
3285
|
+
</div>
|
|
3286
|
+
</xsl:template>
|
|
3287
|
+
|
|
3288
|
+
<xsl:template match="d:author" mode="sect5.titlepage.recto.auto.mode">
|
|
3289
|
+
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
|
3290
|
+
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
|
3291
|
+
</div>
|
|
3292
|
+
</xsl:template>
|
|
3293
|
+
|
|
3294
|
+
<xsl:template match="d:othercredit" mode="sect5.titlepage.recto.auto.mode">
|
|
3295
|
+
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
|
3296
|
+
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
|
3297
|
+
</div>
|
|
3298
|
+
</xsl:template>
|
|
3299
|
+
|
|
3300
|
+
<xsl:template match="d:releaseinfo" mode="sect5.titlepage.recto.auto.mode">
|
|
3301
|
+
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
|
3302
|
+
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
|
3303
|
+
</div>
|
|
3304
|
+
</xsl:template>
|
|
3305
|
+
|
|
3306
|
+
<xsl:template match="d:copyright" mode="sect5.titlepage.recto.auto.mode">
|
|
3307
|
+
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
|
3308
|
+
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
|
3309
|
+
</div>
|
|
3310
|
+
</xsl:template>
|
|
3311
|
+
|
|
3312
|
+
<xsl:template match="d:legalnotice" mode="sect5.titlepage.recto.auto.mode">
|
|
3313
|
+
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
|
3314
|
+
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
|
3315
|
+
</div>
|
|
3316
|
+
</xsl:template>
|
|
3317
|
+
|
|
3318
|
+
<xsl:template match="d:pubdate" mode="sect5.titlepage.recto.auto.mode">
|
|
3319
|
+
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
|
3320
|
+
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
|
3321
|
+
</div>
|
|
3322
|
+
</xsl:template>
|
|
3323
|
+
|
|
3324
|
+
<xsl:template match="d:revision" mode="sect5.titlepage.recto.auto.mode">
|
|
3325
|
+
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
|
3326
|
+
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
|
3327
|
+
</div>
|
|
3328
|
+
</xsl:template>
|
|
3329
|
+
|
|
3330
|
+
<xsl:template match="d:revhistory" mode="sect5.titlepage.recto.auto.mode">
|
|
3331
|
+
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
|
3332
|
+
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
|
3333
|
+
</div>
|
|
3334
|
+
</xsl:template>
|
|
3335
|
+
|
|
3336
|
+
<xsl:template match="d:abstract" mode="sect5.titlepage.recto.auto.mode">
|
|
3337
|
+
<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
|
3338
|
+
<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
|
3339
|
+
</div>
|
|
3340
|
+
</xsl:template>
|
|
3341
|
+
|
|
3342
|
+
<xsl:template name="simplesect.titlepage.recto">
|
|
3343
|
+
<xsl:choose>
|
|
3344
|
+
<xsl:when test="d:simplesectinfo/d:title">
|
|
3345
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:title"/>
|
|
3346
|
+
</xsl:when>
|
|
3347
|
+
<xsl:when test="d:docinfo/d:title">
|
|
3348
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
|
|
3349
|
+
</xsl:when>
|
|
3350
|
+
<xsl:when test="d:info/d:title">
|
|
3351
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
3352
|
+
</xsl:when>
|
|
3353
|
+
<xsl:when test="d:title">
|
|
3354
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:title"/>
|
|
3355
|
+
</xsl:when>
|
|
3356
|
+
</xsl:choose>
|
|
3357
|
+
|
|
3358
|
+
<xsl:choose>
|
|
3359
|
+
<xsl:when test="d:simplesectinfo/d:subtitle">
|
|
3360
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:subtitle"/>
|
|
3361
|
+
</xsl:when>
|
|
3362
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
3363
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
3364
|
+
</xsl:when>
|
|
3365
|
+
<xsl:when test="d:info/d:subtitle">
|
|
3366
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
3367
|
+
</xsl:when>
|
|
3368
|
+
<xsl:when test="d:subtitle">
|
|
3369
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
3370
|
+
</xsl:when>
|
|
3371
|
+
</xsl:choose>
|
|
3372
|
+
|
|
3373
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:corpauthor"/>
|
|
3374
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
|
|
3375
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
|
|
3376
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:authorgroup"/>
|
|
3377
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
|
|
3378
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
|
|
3379
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:author"/>
|
|
3380
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
|
|
3381
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:author"/>
|
|
3382
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:othercredit"/>
|
|
3383
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
|
|
3384
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
|
|
3385
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:releaseinfo"/>
|
|
3386
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
|
|
3387
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
|
|
3388
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:copyright"/>
|
|
3389
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
|
|
3390
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
|
|
3391
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:legalnotice"/>
|
|
3392
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
|
|
3393
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
|
|
3394
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:pubdate"/>
|
|
3395
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
|
|
3396
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
|
|
3397
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:revision"/>
|
|
3398
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
|
|
3399
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:revision"/>
|
|
3400
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:revhistory"/>
|
|
3401
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
|
|
3402
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
|
|
3403
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:abstract"/>
|
|
3404
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
|
|
3405
|
+
<xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
|
|
3406
|
+
</xsl:template>
|
|
3407
|
+
|
|
3408
|
+
<xsl:template name="simplesect.titlepage.verso">
|
|
3409
|
+
</xsl:template>
|
|
3410
|
+
|
|
3411
|
+
<xsl:template name="simplesect.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
|
|
3412
|
+
</xsl:template>
|
|
3413
|
+
|
|
3414
|
+
<xsl:template name="simplesect.titlepage.before.recto">
|
|
3415
|
+
</xsl:template>
|
|
3416
|
+
|
|
3417
|
+
<xsl:template name="simplesect.titlepage.before.verso">
|
|
3418
|
+
</xsl:template>
|
|
3419
|
+
|
|
3420
|
+
<xsl:template name="simplesect.titlepage">
|
|
3421
|
+
<div class="titlepage">
|
|
3422
|
+
<xsl:variable name="recto.content">
|
|
3423
|
+
<xsl:call-template name="simplesect.titlepage.before.recto"/>
|
|
3424
|
+
<xsl:call-template name="simplesect.titlepage.recto"/>
|
|
3425
|
+
</xsl:variable>
|
|
3426
|
+
<xsl:variable name="recto.elements.count">
|
|
3427
|
+
<xsl:choose>
|
|
3428
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3429
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3430
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3431
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3432
|
+
</xsl:choose>
|
|
3433
|
+
</xsl:variable>
|
|
3434
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
3435
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
3436
|
+
</xsl:if>
|
|
3437
|
+
<xsl:variable name="verso.content">
|
|
3438
|
+
<xsl:call-template name="simplesect.titlepage.before.verso"/>
|
|
3439
|
+
<xsl:call-template name="simplesect.titlepage.verso"/>
|
|
3440
|
+
</xsl:variable>
|
|
3441
|
+
<xsl:variable name="verso.elements.count">
|
|
3442
|
+
<xsl:choose>
|
|
3443
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3444
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3445
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3446
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3447
|
+
</xsl:choose>
|
|
3448
|
+
</xsl:variable>
|
|
3449
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
3450
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
3451
|
+
</xsl:if>
|
|
3452
|
+
<xsl:call-template name="simplesect.titlepage.separator"/>
|
|
3453
|
+
</div>
|
|
3454
|
+
</xsl:template>
|
|
3455
|
+
|
|
3456
|
+
<xsl:template match="*" mode="simplesect.titlepage.recto.mode">
|
|
3457
|
+
<!-- if an element isn't found in this mode, -->
|
|
3458
|
+
<!-- try the generic titlepage.mode -->
|
|
3459
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3460
|
+
</xsl:template>
|
|
3461
|
+
|
|
3462
|
+
<xsl:template match="*" mode="simplesect.titlepage.verso.mode">
|
|
3463
|
+
<!-- if an element isn't found in this mode, -->
|
|
3464
|
+
<!-- try the generic titlepage.mode -->
|
|
3465
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3466
|
+
</xsl:template>
|
|
3467
|
+
|
|
3468
|
+
<xsl:template match="d:title" mode="simplesect.titlepage.recto.auto.mode">
|
|
3469
|
+
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
|
3470
|
+
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
|
3471
|
+
</div>
|
|
3472
|
+
</xsl:template>
|
|
3473
|
+
|
|
3474
|
+
<xsl:template match="d:subtitle" mode="simplesect.titlepage.recto.auto.mode">
|
|
3475
|
+
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
|
3476
|
+
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
|
3477
|
+
</div>
|
|
3478
|
+
</xsl:template>
|
|
3479
|
+
|
|
3480
|
+
<xsl:template match="d:corpauthor" mode="simplesect.titlepage.recto.auto.mode">
|
|
3481
|
+
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
|
3482
|
+
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
|
3483
|
+
</div>
|
|
3484
|
+
</xsl:template>
|
|
3485
|
+
|
|
3486
|
+
<xsl:template match="d:authorgroup" mode="simplesect.titlepage.recto.auto.mode">
|
|
3487
|
+
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
|
3488
|
+
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
|
3489
|
+
</div>
|
|
3490
|
+
</xsl:template>
|
|
3491
|
+
|
|
3492
|
+
<xsl:template match="d:author" mode="simplesect.titlepage.recto.auto.mode">
|
|
3493
|
+
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
|
3494
|
+
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
|
3495
|
+
</div>
|
|
3496
|
+
</xsl:template>
|
|
3497
|
+
|
|
3498
|
+
<xsl:template match="d:othercredit" mode="simplesect.titlepage.recto.auto.mode">
|
|
3499
|
+
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
|
3500
|
+
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
|
3501
|
+
</div>
|
|
3502
|
+
</xsl:template>
|
|
3503
|
+
|
|
3504
|
+
<xsl:template match="d:releaseinfo" mode="simplesect.titlepage.recto.auto.mode">
|
|
3505
|
+
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
|
3506
|
+
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
|
3507
|
+
</div>
|
|
3508
|
+
</xsl:template>
|
|
3509
|
+
|
|
3510
|
+
<xsl:template match="d:copyright" mode="simplesect.titlepage.recto.auto.mode">
|
|
3511
|
+
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
|
3512
|
+
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
|
3513
|
+
</div>
|
|
3514
|
+
</xsl:template>
|
|
3515
|
+
|
|
3516
|
+
<xsl:template match="d:legalnotice" mode="simplesect.titlepage.recto.auto.mode">
|
|
3517
|
+
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
|
3518
|
+
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
|
3519
|
+
</div>
|
|
3520
|
+
</xsl:template>
|
|
3521
|
+
|
|
3522
|
+
<xsl:template match="d:pubdate" mode="simplesect.titlepage.recto.auto.mode">
|
|
3523
|
+
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
|
3524
|
+
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
|
3525
|
+
</div>
|
|
3526
|
+
</xsl:template>
|
|
3527
|
+
|
|
3528
|
+
<xsl:template match="d:revision" mode="simplesect.titlepage.recto.auto.mode">
|
|
3529
|
+
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
|
3530
|
+
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
|
3531
|
+
</div>
|
|
3532
|
+
</xsl:template>
|
|
3533
|
+
|
|
3534
|
+
<xsl:template match="d:revhistory" mode="simplesect.titlepage.recto.auto.mode">
|
|
3535
|
+
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
|
3536
|
+
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
|
3537
|
+
</div>
|
|
3538
|
+
</xsl:template>
|
|
3539
|
+
|
|
3540
|
+
<xsl:template match="d:abstract" mode="simplesect.titlepage.recto.auto.mode">
|
|
3541
|
+
<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
|
3542
|
+
<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
|
3543
|
+
</div>
|
|
3544
|
+
</xsl:template>
|
|
3545
|
+
|
|
3546
|
+
<xsl:template name="bibliography.titlepage.recto">
|
|
3547
|
+
<div xsl:use-attribute-sets="bibliography.titlepage.recto.style">
|
|
3548
|
+
<xsl:call-template name="component.title">
|
|
3549
|
+
<xsl:with-param name="node" select="ancestor-or-self::d:bibliography[1]"/>
|
|
3550
|
+
</xsl:call-template></div>
|
|
3551
|
+
<xsl:choose>
|
|
3552
|
+
<xsl:when test="d:bibliographyinfo/d:subtitle">
|
|
3553
|
+
<xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:bibliographyinfo/d:subtitle"/>
|
|
3554
|
+
</xsl:when>
|
|
3555
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
3556
|
+
<xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
3557
|
+
</xsl:when>
|
|
3558
|
+
<xsl:when test="d:info/d:subtitle">
|
|
3559
|
+
<xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
3560
|
+
</xsl:when>
|
|
3561
|
+
<xsl:when test="d:subtitle">
|
|
3562
|
+
<xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
3563
|
+
</xsl:when>
|
|
3564
|
+
</xsl:choose>
|
|
3565
|
+
|
|
3566
|
+
</xsl:template>
|
|
3567
|
+
|
|
3568
|
+
<xsl:template name="bibliography.titlepage.verso">
|
|
3569
|
+
</xsl:template>
|
|
3570
|
+
|
|
3571
|
+
<xsl:template name="bibliography.titlepage.separator">
|
|
3572
|
+
</xsl:template>
|
|
3573
|
+
|
|
3574
|
+
<xsl:template name="bibliography.titlepage.before.recto">
|
|
3575
|
+
</xsl:template>
|
|
3576
|
+
|
|
3577
|
+
<xsl:template name="bibliography.titlepage.before.verso">
|
|
3578
|
+
</xsl:template>
|
|
3579
|
+
|
|
3580
|
+
<xsl:template name="bibliography.titlepage">
|
|
3581
|
+
<div class="titlepage">
|
|
3582
|
+
<xsl:variable name="recto.content">
|
|
3583
|
+
<xsl:call-template name="bibliography.titlepage.before.recto"/>
|
|
3584
|
+
<xsl:call-template name="bibliography.titlepage.recto"/>
|
|
3585
|
+
</xsl:variable>
|
|
3586
|
+
<xsl:variable name="recto.elements.count">
|
|
3587
|
+
<xsl:choose>
|
|
3588
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3589
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3590
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3591
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3592
|
+
</xsl:choose>
|
|
3593
|
+
</xsl:variable>
|
|
3594
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
3595
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
3596
|
+
</xsl:if>
|
|
3597
|
+
<xsl:variable name="verso.content">
|
|
3598
|
+
<xsl:call-template name="bibliography.titlepage.before.verso"/>
|
|
3599
|
+
<xsl:call-template name="bibliography.titlepage.verso"/>
|
|
3600
|
+
</xsl:variable>
|
|
3601
|
+
<xsl:variable name="verso.elements.count">
|
|
3602
|
+
<xsl:choose>
|
|
3603
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3604
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3605
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3606
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3607
|
+
</xsl:choose>
|
|
3608
|
+
</xsl:variable>
|
|
3609
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
3610
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
3611
|
+
</xsl:if>
|
|
3612
|
+
<xsl:call-template name="bibliography.titlepage.separator"/>
|
|
3613
|
+
</div>
|
|
3614
|
+
</xsl:template>
|
|
3615
|
+
|
|
3616
|
+
<xsl:template match="*" mode="bibliography.titlepage.recto.mode">
|
|
3617
|
+
<!-- if an element isn't found in this mode, -->
|
|
3618
|
+
<!-- try the generic titlepage.mode -->
|
|
3619
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3620
|
+
</xsl:template>
|
|
3621
|
+
|
|
3622
|
+
<xsl:template match="*" mode="bibliography.titlepage.verso.mode">
|
|
3623
|
+
<!-- if an element isn't found in this mode, -->
|
|
3624
|
+
<!-- try the generic titlepage.mode -->
|
|
3625
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3626
|
+
</xsl:template>
|
|
3627
|
+
|
|
3628
|
+
<xsl:template match="d:subtitle" mode="bibliography.titlepage.recto.auto.mode">
|
|
3629
|
+
<div xsl:use-attribute-sets="bibliography.titlepage.recto.style">
|
|
3630
|
+
<xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/>
|
|
3631
|
+
</div>
|
|
3632
|
+
</xsl:template>
|
|
3633
|
+
|
|
3634
|
+
<xsl:template name="glossary.titlepage.recto">
|
|
3635
|
+
<div xsl:use-attribute-sets="glossary.titlepage.recto.style">
|
|
3636
|
+
<xsl:call-template name="component.title">
|
|
3637
|
+
<xsl:with-param name="node" select="ancestor-or-self::d:glossary[1]"/>
|
|
3638
|
+
</xsl:call-template></div>
|
|
3639
|
+
<xsl:choose>
|
|
3640
|
+
<xsl:when test="d:glossaryinfo/d:subtitle">
|
|
3641
|
+
<xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:glossaryinfo/d:subtitle"/>
|
|
3642
|
+
</xsl:when>
|
|
3643
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
3644
|
+
<xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
3645
|
+
</xsl:when>
|
|
3646
|
+
<xsl:when test="d:info/d:subtitle">
|
|
3647
|
+
<xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
3648
|
+
</xsl:when>
|
|
3649
|
+
<xsl:when test="d:subtitle">
|
|
3650
|
+
<xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
3651
|
+
</xsl:when>
|
|
3652
|
+
</xsl:choose>
|
|
3653
|
+
|
|
3654
|
+
</xsl:template>
|
|
3655
|
+
|
|
3656
|
+
<xsl:template name="glossary.titlepage.verso">
|
|
3657
|
+
</xsl:template>
|
|
3658
|
+
|
|
3659
|
+
<xsl:template name="glossary.titlepage.separator">
|
|
3660
|
+
</xsl:template>
|
|
3661
|
+
|
|
3662
|
+
<xsl:template name="glossary.titlepage.before.recto">
|
|
3663
|
+
</xsl:template>
|
|
3664
|
+
|
|
3665
|
+
<xsl:template name="glossary.titlepage.before.verso">
|
|
3666
|
+
</xsl:template>
|
|
3667
|
+
|
|
3668
|
+
<xsl:template name="glossary.titlepage">
|
|
3669
|
+
<div class="titlepage">
|
|
3670
|
+
<xsl:variable name="recto.content">
|
|
3671
|
+
<xsl:call-template name="glossary.titlepage.before.recto"/>
|
|
3672
|
+
<xsl:call-template name="glossary.titlepage.recto"/>
|
|
3673
|
+
</xsl:variable>
|
|
3674
|
+
<xsl:variable name="recto.elements.count">
|
|
3675
|
+
<xsl:choose>
|
|
3676
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3677
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3678
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3679
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3680
|
+
</xsl:choose>
|
|
3681
|
+
</xsl:variable>
|
|
3682
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
3683
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
3684
|
+
</xsl:if>
|
|
3685
|
+
<xsl:variable name="verso.content">
|
|
3686
|
+
<xsl:call-template name="glossary.titlepage.before.verso"/>
|
|
3687
|
+
<xsl:call-template name="glossary.titlepage.verso"/>
|
|
3688
|
+
</xsl:variable>
|
|
3689
|
+
<xsl:variable name="verso.elements.count">
|
|
3690
|
+
<xsl:choose>
|
|
3691
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3692
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3693
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3694
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3695
|
+
</xsl:choose>
|
|
3696
|
+
</xsl:variable>
|
|
3697
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
3698
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
3699
|
+
</xsl:if>
|
|
3700
|
+
<xsl:call-template name="glossary.titlepage.separator"/>
|
|
3701
|
+
</div>
|
|
3702
|
+
</xsl:template>
|
|
3703
|
+
|
|
3704
|
+
<xsl:template match="*" mode="glossary.titlepage.recto.mode">
|
|
3705
|
+
<!-- if an element isn't found in this mode, -->
|
|
3706
|
+
<!-- try the generic titlepage.mode -->
|
|
3707
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3708
|
+
</xsl:template>
|
|
3709
|
+
|
|
3710
|
+
<xsl:template match="*" mode="glossary.titlepage.verso.mode">
|
|
3711
|
+
<!-- if an element isn't found in this mode, -->
|
|
3712
|
+
<!-- try the generic titlepage.mode -->
|
|
3713
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3714
|
+
</xsl:template>
|
|
3715
|
+
|
|
3716
|
+
<xsl:template match="d:subtitle" mode="glossary.titlepage.recto.auto.mode">
|
|
3717
|
+
<div xsl:use-attribute-sets="glossary.titlepage.recto.style">
|
|
3718
|
+
<xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/>
|
|
3719
|
+
</div>
|
|
3720
|
+
</xsl:template>
|
|
3721
|
+
|
|
3722
|
+
<xsl:template name="index.titlepage.recto">
|
|
3723
|
+
<div xsl:use-attribute-sets="index.titlepage.recto.style">
|
|
3724
|
+
<xsl:call-template name="component.title">
|
|
3725
|
+
<xsl:with-param name="node" select="ancestor-or-self::d:index[1]"/>
|
|
3726
|
+
</xsl:call-template></div>
|
|
3727
|
+
<xsl:choose>
|
|
3728
|
+
<xsl:when test="d:indexinfo/d:subtitle">
|
|
3729
|
+
<xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:indexinfo/d:subtitle"/>
|
|
3730
|
+
</xsl:when>
|
|
3731
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
3732
|
+
<xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
3733
|
+
</xsl:when>
|
|
3734
|
+
<xsl:when test="d:info/d:subtitle">
|
|
3735
|
+
<xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
3736
|
+
</xsl:when>
|
|
3737
|
+
<xsl:when test="d:subtitle">
|
|
3738
|
+
<xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
3739
|
+
</xsl:when>
|
|
3740
|
+
</xsl:choose>
|
|
3741
|
+
|
|
3742
|
+
</xsl:template>
|
|
3743
|
+
|
|
3744
|
+
<xsl:template name="index.titlepage.verso">
|
|
3745
|
+
</xsl:template>
|
|
3746
|
+
|
|
3747
|
+
<xsl:template name="index.titlepage.separator">
|
|
3748
|
+
</xsl:template>
|
|
3749
|
+
|
|
3750
|
+
<xsl:template name="index.titlepage.before.recto">
|
|
3751
|
+
</xsl:template>
|
|
3752
|
+
|
|
3753
|
+
<xsl:template name="index.titlepage.before.verso">
|
|
3754
|
+
</xsl:template>
|
|
3755
|
+
|
|
3756
|
+
<xsl:template name="index.titlepage">
|
|
3757
|
+
<div class="titlepage">
|
|
3758
|
+
<xsl:variable name="recto.content">
|
|
3759
|
+
<xsl:call-template name="index.titlepage.before.recto"/>
|
|
3760
|
+
<xsl:call-template name="index.titlepage.recto"/>
|
|
3761
|
+
</xsl:variable>
|
|
3762
|
+
<xsl:variable name="recto.elements.count">
|
|
3763
|
+
<xsl:choose>
|
|
3764
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3765
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3766
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3767
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3768
|
+
</xsl:choose>
|
|
3769
|
+
</xsl:variable>
|
|
3770
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
3771
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
3772
|
+
</xsl:if>
|
|
3773
|
+
<xsl:variable name="verso.content">
|
|
3774
|
+
<xsl:call-template name="index.titlepage.before.verso"/>
|
|
3775
|
+
<xsl:call-template name="index.titlepage.verso"/>
|
|
3776
|
+
</xsl:variable>
|
|
3777
|
+
<xsl:variable name="verso.elements.count">
|
|
3778
|
+
<xsl:choose>
|
|
3779
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3780
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3781
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3782
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3783
|
+
</xsl:choose>
|
|
3784
|
+
</xsl:variable>
|
|
3785
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
3786
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
3787
|
+
</xsl:if>
|
|
3788
|
+
<xsl:call-template name="index.titlepage.separator"/>
|
|
3789
|
+
</div>
|
|
3790
|
+
</xsl:template>
|
|
3791
|
+
|
|
3792
|
+
<xsl:template match="*" mode="index.titlepage.recto.mode">
|
|
3793
|
+
<!-- if an element isn't found in this mode, -->
|
|
3794
|
+
<!-- try the generic titlepage.mode -->
|
|
3795
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3796
|
+
</xsl:template>
|
|
3797
|
+
|
|
3798
|
+
<xsl:template match="*" mode="index.titlepage.verso.mode">
|
|
3799
|
+
<!-- if an element isn't found in this mode, -->
|
|
3800
|
+
<!-- try the generic titlepage.mode -->
|
|
3801
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3802
|
+
</xsl:template>
|
|
3803
|
+
|
|
3804
|
+
<xsl:template match="d:subtitle" mode="index.titlepage.recto.auto.mode">
|
|
3805
|
+
<div xsl:use-attribute-sets="index.titlepage.recto.style">
|
|
3806
|
+
<xsl:apply-templates select="." mode="index.titlepage.recto.mode"/>
|
|
3807
|
+
</div>
|
|
3808
|
+
</xsl:template>
|
|
3809
|
+
|
|
3810
|
+
<xsl:template name="setindex.titlepage.recto">
|
|
3811
|
+
<div xsl:use-attribute-sets="setindex.titlepage.recto.style">
|
|
3812
|
+
<xsl:call-template name="component.title">
|
|
3813
|
+
<xsl:with-param name="node" select="ancestor-or-self::d:setindex[1]"/>
|
|
3814
|
+
</xsl:call-template></div>
|
|
3815
|
+
<xsl:choose>
|
|
3816
|
+
<xsl:when test="d:setindexinfo/d:subtitle">
|
|
3817
|
+
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:setindexinfo/d:subtitle"/>
|
|
3818
|
+
</xsl:when>
|
|
3819
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
3820
|
+
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
3821
|
+
</xsl:when>
|
|
3822
|
+
<xsl:when test="d:info/d:subtitle">
|
|
3823
|
+
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
3824
|
+
</xsl:when>
|
|
3825
|
+
<xsl:when test="d:subtitle">
|
|
3826
|
+
<xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
3827
|
+
</xsl:when>
|
|
3828
|
+
</xsl:choose>
|
|
3829
|
+
|
|
3830
|
+
</xsl:template>
|
|
3831
|
+
|
|
3832
|
+
<xsl:template name="setindex.titlepage.verso">
|
|
3833
|
+
</xsl:template>
|
|
3834
|
+
|
|
3835
|
+
<xsl:template name="setindex.titlepage.separator">
|
|
3836
|
+
</xsl:template>
|
|
3837
|
+
|
|
3838
|
+
<xsl:template name="setindex.titlepage.before.recto">
|
|
3839
|
+
</xsl:template>
|
|
3840
|
+
|
|
3841
|
+
<xsl:template name="setindex.titlepage.before.verso">
|
|
3842
|
+
</xsl:template>
|
|
3843
|
+
|
|
3844
|
+
<xsl:template name="setindex.titlepage">
|
|
3845
|
+
<div class="titlepage">
|
|
3846
|
+
<xsl:variable name="recto.content">
|
|
3847
|
+
<xsl:call-template name="setindex.titlepage.before.recto"/>
|
|
3848
|
+
<xsl:call-template name="setindex.titlepage.recto"/>
|
|
3849
|
+
</xsl:variable>
|
|
3850
|
+
<xsl:variable name="recto.elements.count">
|
|
3851
|
+
<xsl:choose>
|
|
3852
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3853
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3854
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3855
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3856
|
+
</xsl:choose>
|
|
3857
|
+
</xsl:variable>
|
|
3858
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
3859
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
3860
|
+
</xsl:if>
|
|
3861
|
+
<xsl:variable name="verso.content">
|
|
3862
|
+
<xsl:call-template name="setindex.titlepage.before.verso"/>
|
|
3863
|
+
<xsl:call-template name="setindex.titlepage.verso"/>
|
|
3864
|
+
</xsl:variable>
|
|
3865
|
+
<xsl:variable name="verso.elements.count">
|
|
3866
|
+
<xsl:choose>
|
|
3867
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3868
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3869
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3870
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3871
|
+
</xsl:choose>
|
|
3872
|
+
</xsl:variable>
|
|
3873
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
3874
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
3875
|
+
</xsl:if>
|
|
3876
|
+
<xsl:call-template name="setindex.titlepage.separator"/>
|
|
3877
|
+
</div>
|
|
3878
|
+
</xsl:template>
|
|
3879
|
+
|
|
3880
|
+
<xsl:template match="*" mode="setindex.titlepage.recto.mode">
|
|
3881
|
+
<!-- if an element isn't found in this mode, -->
|
|
3882
|
+
<!-- try the generic titlepage.mode -->
|
|
3883
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3884
|
+
</xsl:template>
|
|
3885
|
+
|
|
3886
|
+
<xsl:template match="*" mode="setindex.titlepage.verso.mode">
|
|
3887
|
+
<!-- if an element isn't found in this mode, -->
|
|
3888
|
+
<!-- try the generic titlepage.mode -->
|
|
3889
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3890
|
+
</xsl:template>
|
|
3891
|
+
|
|
3892
|
+
<xsl:template match="d:subtitle" mode="setindex.titlepage.recto.auto.mode">
|
|
3893
|
+
<div xsl:use-attribute-sets="setindex.titlepage.recto.style">
|
|
3894
|
+
<xsl:apply-templates select="." mode="setindex.titlepage.recto.mode"/>
|
|
3895
|
+
</div>
|
|
3896
|
+
</xsl:template>
|
|
3897
|
+
|
|
3898
|
+
<xsl:template name="sidebar.titlepage.recto">
|
|
3899
|
+
<xsl:choose>
|
|
3900
|
+
<xsl:when test="d:sidebarinfo/d:title">
|
|
3901
|
+
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:sidebarinfo/d:title"/>
|
|
3902
|
+
</xsl:when>
|
|
3903
|
+
<xsl:when test="d:docinfo/d:title">
|
|
3904
|
+
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
|
|
3905
|
+
</xsl:when>
|
|
3906
|
+
<xsl:when test="d:info/d:title">
|
|
3907
|
+
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:info/d:title"/>
|
|
3908
|
+
</xsl:when>
|
|
3909
|
+
<xsl:when test="d:title">
|
|
3910
|
+
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:title"/>
|
|
3911
|
+
</xsl:when>
|
|
3912
|
+
</xsl:choose>
|
|
3913
|
+
|
|
3914
|
+
<xsl:choose>
|
|
3915
|
+
<xsl:when test="d:sidebarinfo/d:subtitle">
|
|
3916
|
+
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:sidebarinfo/d:subtitle"/>
|
|
3917
|
+
</xsl:when>
|
|
3918
|
+
<xsl:when test="d:docinfo/d:subtitle">
|
|
3919
|
+
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
|
|
3920
|
+
</xsl:when>
|
|
3921
|
+
<xsl:when test="d:info/d:subtitle">
|
|
3922
|
+
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
|
|
3923
|
+
</xsl:when>
|
|
3924
|
+
<xsl:when test="d:subtitle">
|
|
3925
|
+
<xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:subtitle"/>
|
|
3926
|
+
</xsl:when>
|
|
3927
|
+
</xsl:choose>
|
|
3928
|
+
|
|
3929
|
+
</xsl:template>
|
|
3930
|
+
|
|
3931
|
+
<xsl:template name="sidebar.titlepage.verso">
|
|
3932
|
+
</xsl:template>
|
|
3933
|
+
|
|
3934
|
+
<xsl:template name="sidebar.titlepage.separator">
|
|
3935
|
+
</xsl:template>
|
|
3936
|
+
|
|
3937
|
+
<xsl:template name="sidebar.titlepage.before.recto">
|
|
3938
|
+
</xsl:template>
|
|
3939
|
+
|
|
3940
|
+
<xsl:template name="sidebar.titlepage.before.verso">
|
|
3941
|
+
</xsl:template>
|
|
3942
|
+
|
|
3943
|
+
<xsl:template name="sidebar.titlepage">
|
|
3944
|
+
<div class="titlepage">
|
|
3945
|
+
<xsl:variable name="recto.content">
|
|
3946
|
+
<xsl:call-template name="sidebar.titlepage.before.recto"/>
|
|
3947
|
+
<xsl:call-template name="sidebar.titlepage.recto"/>
|
|
3948
|
+
</xsl:variable>
|
|
3949
|
+
<xsl:variable name="recto.elements.count">
|
|
3950
|
+
<xsl:choose>
|
|
3951
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3952
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3953
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
|
3954
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3955
|
+
</xsl:choose>
|
|
3956
|
+
</xsl:variable>
|
|
3957
|
+
<xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
|
3958
|
+
<div><xsl:copy-of select="$recto.content"/></div>
|
|
3959
|
+
</xsl:if>
|
|
3960
|
+
<xsl:variable name="verso.content">
|
|
3961
|
+
<xsl:call-template name="sidebar.titlepage.before.verso"/>
|
|
3962
|
+
<xsl:call-template name="sidebar.titlepage.verso"/>
|
|
3963
|
+
</xsl:variable>
|
|
3964
|
+
<xsl:variable name="verso.elements.count">
|
|
3965
|
+
<xsl:choose>
|
|
3966
|
+
<xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3967
|
+
<xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
|
3968
|
+
<!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
|
3969
|
+
<xsl:otherwise>1</xsl:otherwise>
|
|
3970
|
+
</xsl:choose>
|
|
3971
|
+
</xsl:variable>
|
|
3972
|
+
<xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
|
3973
|
+
<div><xsl:copy-of select="$verso.content"/></div>
|
|
3974
|
+
</xsl:if>
|
|
3975
|
+
<xsl:call-template name="sidebar.titlepage.separator"/>
|
|
3976
|
+
</div>
|
|
3977
|
+
</xsl:template>
|
|
3978
|
+
|
|
3979
|
+
<xsl:template match="*" mode="sidebar.titlepage.recto.mode">
|
|
3980
|
+
<!-- if an element isn't found in this mode, -->
|
|
3981
|
+
<!-- try the generic titlepage.mode -->
|
|
3982
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3983
|
+
</xsl:template>
|
|
3984
|
+
|
|
3985
|
+
<xsl:template match="*" mode="sidebar.titlepage.verso.mode">
|
|
3986
|
+
<!-- if an element isn't found in this mode, -->
|
|
3987
|
+
<!-- try the generic titlepage.mode -->
|
|
3988
|
+
<xsl:apply-templates select="." mode="titlepage.mode"/>
|
|
3989
|
+
</xsl:template>
|
|
3990
|
+
|
|
3991
|
+
<xsl:template match="d:title" mode="sidebar.titlepage.recto.auto.mode">
|
|
3992
|
+
<div xsl:use-attribute-sets="sidebar.titlepage.recto.style">
|
|
3993
|
+
<xsl:call-template name="formal.object.heading">
|
|
3994
|
+
<xsl:with-param name="object" select="ancestor-or-self::d:sidebar[1]"/>
|
|
3995
|
+
</xsl:call-template>
|
|
3996
|
+
</div>
|
|
3997
|
+
</xsl:template>
|
|
3998
|
+
|
|
3999
|
+
<xsl:template match="d:subtitle" mode="sidebar.titlepage.recto.auto.mode">
|
|
4000
|
+
<div xsl:use-attribute-sets="sidebar.titlepage.recto.style">
|
|
4001
|
+
<xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/>
|
|
4002
|
+
</div>
|
|
4003
|
+
</xsl:template>
|
|
4004
|
+
|
|
4005
|
+
</xsl:stylesheet>
|