Statistics
| Revision:

root / tmp / org.txm.core / res / org / txm / xml / xsl / tei / docx / to / drama / drama.xsl @ 187

History | View | Annotate | Download (5.7 kB)

1
<?xml version="1.0" encoding="utf-8"?>
2
<xsl:stylesheet xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
3
                xmlns:cals="http://www.oasis-open.org/specs/tm9901"
4
                xmlns:contypes="http://schemas.openxmlformats.org/package/2006/content-types"
5
                xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"
6
                xmlns:dc="http://purl.org/dc/elements/1.1/"
7
                xmlns:dcmitype="http://purl.org/dc/dcmitype/"
8
                xmlns:dcterms="http://purl.org/dc/terms/"
9
                xmlns:html="http://www.w3.org/1999/xhtml"
10
                xmlns:iso="http://www.iso.org/ns/1.0"
11
                xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
12
                xmlns:mml="http://www.w3.org/1998/Math/MathML"
13
                xmlns:o="urn:schemas-microsoft-com:office:office"
14
                xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"
15
                xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
16
		xmlns:rel="http://schemas.openxmlformats.org/package/2006/relationships"
17
                xmlns:tbx="http://www.lisa.org/TBX-Specification.33.0.html"
18
                xmlns:tei="http://www.tei-c.org/ns/1.0"
19
                xmlns:teidocx="http://www.tei-c.org/ns/teidocx/1.0"
20
                xmlns:teix="http://www.tei-c.org/ns/Examples"
21
                xmlns:v="urn:schemas-microsoft-com:vml"
22
                xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
23
                xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006"
24
                xmlns:w10="urn:schemas-microsoft-com:office:word"
25
                xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
26
                xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml"
27
                xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
28
                
29
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
30
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
31
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
32
                version="2.0"
33
                exclude-result-prefixes="cp ve o r m v wp w10 w wne
34
					 mml tbx iso tei a xs
35
					 pic fn xsi dc dcterms
36
					 dcmitype rel contypes teidocx teix html cals">
37
    
38

    
39
    <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" scope="stylesheet" type="stylesheet">
40
      <desc>
41
         <p> TEI stylesheet for making Word docx files from TEI XML
42
         </p>
43
         <p>This software is dual-licensed:
44

    
45
1. Distributed under a Creative Commons Attribution-ShareAlike 3.0
46
Unported License http://creativecommons.org/licenses/by-sa/3.0/ 
47

    
48
2. http://www.opensource.org/licenses/BSD-2-Clause
49
		
50
All rights reserved.
51

    
52
Redistribution and use in source and binary forms, with or without
53
modification, are permitted provided that the following conditions are
54
met:
55

    
56
* Redistributions of source code must retain the above copyright
57
notice, this list of conditions and the following disclaimer.
58

    
59
* Redistributions in binary form must reproduce the above copyright
60
notice, this list of conditions and the following disclaimer in the
61
documentation and/or other materials provided with the distribution.
62

    
63
This software is provided by the copyright holders and contributors
64
"as is" and any express or implied warranties, including, but not
65
limited to, the implied warranties of merchantability and fitness for
66
a particular purpose are disclaimed. In no event shall the copyright
67
holder or contributors be liable for any direct, indirect, incidental,
68
special, exemplary, or consequential damages (including, but not
69
limited to, procurement of substitute goods or services; loss of use,
70
data, or profits; or business interruption) however caused and on any
71
theory of liability, whether in contract, strict liability, or tort
72
(including negligence or otherwise) arising in any way out of the use
73
of this software, even if advised of the possibility of such damage.
74
</p>
75
         <p>Author: See AUTHORS</p>
76
         <p>Id: $Id: drama.xsl 9646 2011-11-05 23:39:08Z rahtz $</p>
77
         <p>Copyright: 2008, TEI Consortium</p>
78
      </desc>
79
   </doc>
80
    
81
    <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl">
82
      <desc>
83
        A speaker's name
84
    </desc>
85
   </doc>
86
    <xsl:template match="tei:sp/tei:speaker" >
87
      <xsl:call-template name="block-element">
88
	<xsl:with-param name="style">teispeaker</xsl:with-param>
89
      </xsl:call-template>
90
    </xsl:template>
91
    <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl">
92
      <desc>
93
        A bit of speech name
94
    </desc>
95
   </doc>
96
    <xsl:template match="tei:sp/tei:p" >
97
      <xsl:call-template name="block-element">
98
	<xsl:with-param name="style">teispeech</xsl:with-param>
99
      </xsl:call-template>
100
    </xsl:template>
101

    
102
    <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl">
103
      <desc>
104
        A stage direction
105
    </desc>
106
   </doc>
107
    <xsl:template match="tei:sp/tei:stage" >
108
      <xsl:call-template name="block-element">
109
            <xsl:with-param name="style">teistage</xsl:with-param>
110
      </xsl:call-template>
111
    </xsl:template>
112
    
113
    <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl">
114
      <desc>
115
        A line of verse
116
    </desc>
117
   </doc>
118
    <xsl:template match="tei:l">
119
      <xsl:call-template name="block-element">
120
	<xsl:with-param name="style">teil</xsl:with-param>
121
      </xsl:call-template>
122
    </xsl:template>
123

    
124
    <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl">
125
      <desc>
126
        A block of verse
127
    </desc>
128
    </doc>
129
    <xsl:template match="tei:lg">
130
      <xsl:apply-templates/>
131
      <w:p>
132
	<w:pPr>
133
	  <w:pStyle w:val="teilg"/>
134
	</w:pPr>
135
        <w:r>
136
	  <w:br/>
137
        </w:r>
138
      </w:p>
139
    </xsl:template>
140

    
141

    
142

    
143
</xsl:stylesheet>