blob: 430cec0ebbdfc0796e7dfbe67dd7fc225bf89799 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dtm="http://syntext.com/Extensions/DocumentTypeMetadata-1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
extension-element-prefixes="dtm"
version='1.0'>
<dtm:doc dtm:idref="appendix"/>
<xsl:template match="appendix" dtm:id="appendix">
<xsl:variable name="preamble"
select="title|subtitle|titleabbrev|appendixinfo|docinfo"/>
<xsl:variable name="content"
select="*[not(self::title or self::subtitle
or self::titleabbrev
or self::appendixinfo or self::docinfo)]"/>
<fo:block
xsl:use-attribute-sets="component.block.properties">
<xsl:call-template name="handle.empty">
<xsl:with-param name="titles">
<xsl:call-template name="appendix.titlepage"/>
</xsl:with-param>
<xsl:with-param name="preamble" select="$preamble"/>
<xsl:with-param name="content" select="$content"/>
</xsl:call-template>
</fo:block>
</xsl:template>
<dtm:doc dtm:idref="article"/>
<xsl:template match="article" dtm:id="article">
<xsl:variable name="preamble"
select="title|subtitle|articleinfo|artheader"/>
<xsl:variable name="content"
select="*[not(self::title or self::subtitle
or self::articleinfo or self::artheader)]"/>
<fo:block
xsl:use-attribute-sets="component.block.properties">
<xsl:call-template name="handle.empty">
<xsl:with-param name="titles">
<xsl:call-template name="article.titlepage"/>
</xsl:with-param>
<xsl:with-param name="preamble" select="$preamble"/>
<xsl:with-param name="content" select="$content"/>
</xsl:call-template>
</fo:block>
</xsl:template>
<dtm:doc dtm:idref="preface"/>
<xsl:template match="preface" dtm:id="preface">
<xsl:variable name="preamble"
select="title|subtitle|titleabbrev|docinfo|prefaceinfo"/>
<xsl:variable name="content"
select="*[not(self::title or self::subtitle or self::titleabbrev
or self::docinfo or self::prefaceinfo)]"/>
<fo:block
xsl:use-attribute-sets="component.block.properties">
<xsl:call-template name="handle.empty">
<xsl:with-param name="titles">
<xsl:call-template name="preface.titlepage"/>
</xsl:with-param>
<xsl:with-param name="preamble" select="$preamble"/>
<xsl:with-param name="content" select="$content"/>
</xsl:call-template>
</fo:block>
</xsl:template>
<dtm:doc dtm:idref="chapter"/>
<xsl:template match="chapter" dtm:id="chapter">
<xsl:variable name="preamble"
select="title|subtitle|titleabbrev|docinfo|chapterinfo"/>
<xsl:variable name="content"
select="*[not(self::title or self::subtitle or self::titleabbrev
or self::docinfo or self::chapterinfo)]"/>
<fo:block
xsl:use-attribute-sets="component.block.properties">
<xsl:call-template name="handle.empty">
<xsl:with-param name="titles">
<xsl:call-template name="chapter.titlepage"/>
</xsl:with-param>
<xsl:with-param name="preamble" select="$preamble"/>
<xsl:with-param name="content" select="$content"/>
</xsl:call-template>
</fo:block>
</xsl:template>
<dtm:doc dtm:idref="sections"/>
<xsl:template match="section|sect1|sect2|sect3|sect4|sect5" dtm:id="sections">
<xsl:variable name="preamble"
select="title|subtitle|titleabbrev|sectioninfo|sect1info
|sect2info|sect3info|sect4info|sect5info"/>
<xsl:variable name="content"
select="*[not(self::title or self::subtitle or self::titleabbrev
or self::sectioninfo or self::sect1info
or self::sect2info or self::sect3info
or self::sect4info or self::sect5info)]"/>
<fo:block
xsl:use-attribute-sets="section.block.properties">
<xsl:call-template name="handle.empty">
<xsl:with-param name="titles">
<xsl:call-template name="section.titlepage"/>
</xsl:with-param>
<xsl:with-param name="preamble" select="$preamble"/>
<xsl:with-param name="content" select="$content"/>
</xsl:call-template>
</fo:block>
</xsl:template>
<dtm:doc dtm:idref="simplesect"/>
<xsl:template match="simplesect" dtm:id="simplesect">
<xsl:variable name="preamble"
select="title|subtitle|titleabbrev"/>
<xsl:variable name="content"
select="*[not(self::title or self::subtitle or self::titleabbrev)]"/>
<fo:block
xsl:use-attribute-sets="section.block.properties">
<xsl:call-template name="handle.empty">
<xsl:with-param name="titles">
<xsl:call-template name="simplesect.titlepage"/>
</xsl:with-param>
<xsl:with-param name="preamble" select="$preamble"/>
<xsl:with-param name="content" select="$content"/>
</xsl:call-template>
</fo:block>
</xsl:template>
</xsl:stylesheet>
|