1 <?xml version="1.0"?>
\r
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
\r
3 xmlns:fo="http://www.w3.org/1999/XSL/Format"
\r
4 xmlns:dc="http://purl.org/dc/elements/1.1/"
\r
5 exclude-result-prefixes="dc"
\r
8 <xsl:template match="drama/title"/>
\r
9 <xsl:template match="poetry/title"/>
\r
10 <xsl:template match="dialogue/title"/>
\r
12 <xsl:template match="drama">
\r
13 <xsl:variable name="id">
\r
14 <xsl:call-template name="object.id"/>
\r
17 <xsl:element name="fo:{$section.container.element}"
\r
18 use-attribute-sets="drama.properties">
\r
19 <xsl:attribute name="id"><xsl:value-of
\r
20 select="$id"/></xsl:attribute>
\r
21 <xsl:call-template name="drama.titlepage"/>
\r
22 <xsl:apply-templates/>
\r
26 <xsl:template match="dialogue">
\r
27 <xsl:variable name="id">
\r
28 <xsl:call-template name="object.id"/>
\r
31 <xsl:element name="fo:{$section.container.element}"
\r
32 use-attribute-sets="dialogue.properties">
\r
33 <xsl:attribute name="id"><xsl:value-of
\r
34 select="$id"/></xsl:attribute>
\r
35 <xsl:call-template name="dialogue.titlepage"/>
\r
36 <xsl:apply-templates/>
\r
40 <xsl:template match="poetry">
\r
41 <xsl:variable name="id">
\r
42 <xsl:call-template name="object.id"/>
\r
45 <xsl:element name="fo:{$section.container.element}"
\r
46 use-attribute-sets="poetry.properties">
\r
47 <xsl:attribute name="id"><xsl:value-of
\r
48 select="$id"/></xsl:attribute>
\r
49 <xsl:call-template name="poetry.titlepage"/>
\r
50 <xsl:apply-templates/>
\r
54 <xsl:template match="stagedir">
\r
55 <xsl:variable name="id">
\r
56 <xsl:call-template name="object.id"/>
\r
59 <xsl:variable name="keep.together">
\r
60 <xsl:call-template name="pi.dbfo_keep-together"/>
\r
63 <fo:block id="{$id}" xsl:use-attribute-sets="stagedir.properties">
\r
64 <xsl:if test="$keep.together != ''">
\r
65 <xsl:attribute name="keep-together.within-column"><xsl:value-of
\r
66 select="$keep.together"/></xsl:attribute>
\r
68 <xsl:apply-templates />
\r
73 <xsl:template match="inlinestagedir">
\r
74 <fo:inline xsl:use-attribute-sets="inlinestagedir.properties">
\r
75 <xsl:call-template name="anchor"/>
\r
76 <xsl:text> [</xsl:text>
\r
77 <xsl:apply-templates />
\r
78 <xsl:text>] </xsl:text>
\r
82 <xsl:template match="linegroup">
\r
83 <xsl:variable name="id">
\r
84 <xsl:call-template name="object.id"/>
\r
87 <xsl:variable name="keep.together">
\r
88 <xsl:call-template name="pi.dbfo_keep-together"/>
\r
91 <fo:list-block id="{$id}" xsl:use-attribute-sets="linegroup.properties">
\r
92 <xsl:if test="$keep.together != ''">
\r
93 <xsl:attribute name="keep-together.within-column"><xsl:value-of
\r
94 select="$keep.together"/></xsl:attribute>
\r
97 <fo:list-item-label end-indent="label-end()">
\r
98 <xsl:apply-templates select="speaker"/>
\r
99 </fo:list-item-label>
\r
100 <fo:list-item-body start-indent="body-start()">
\r
101 <xsl:apply-templates select="*[not(self::speaker)]"/>
\r
102 </fo:list-item-body>
\r
107 <xsl:template match="speaker">
\r
108 <fo:block xsl:use-attribute-sets="speaker.properties">
\r
109 <xsl:call-template name="anchor"/>
\r
110 <xsl:apply-templates/>
\r
114 <xsl:template match="line">
\r
115 <fo:block xsl:use-attribute-sets="line.properties">
\r
116 <xsl:call-template name="anchor"/>
\r
117 <xsl:apply-templates/>
\r