Debian Codegraph @

texmf-dist/tex4ht/xtpipes/oo-text.4xt

raw
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE xtpipes SYSTEM "xtpipes.dtd" >
3 <!-- oo-text.4xt (2020-02-25-10:47), generated from tex4ht-oo-xtpipes.tex
4 Copyright (C) 2009-2013 TeX Users Group
5 Copyright (C) 2006-2009 Eitan M. Gurari
6 %
7 % This work may be distributed and/or modified under the
8 % conditions of the LaTeX Project Public License, either
9 % version 1.3c of this license or (at your option) any
10 % later version. The latest version of this license is in
11 % http://www.latex-project.org/lppl.txt
12 % and version 1.3c or later is part of all distributions
13 % of LaTeX version 2005/12/01 or later.
14 %
15 % This work has the LPPL maintenance status "maintained".
16 %
17 % The Current Maintainer of this work
18 % is the TeX4ht Project <http://tug.org/tex4ht>.
19 %
20 % If you modify this program, changing the
21 % version identification would be appreciated. -->
22 <xtpipes preamble="yes" signature="oo-text.4xt (2020-02-25-10:47)">
23 <sax content-handler="xtpipes.util.ScriptsManager,tex4ht.OoFilter"
24 lexical-handler="xtpipes.util.ScriptsManagerLH" >
25 <script element="text:bibliography-mark" >
26 <set name="bib-mark" >
27 <![CDATA[
28 <xsl:stylesheet version="1.0"
29 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
30
31 xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
32 xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
33 xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
34 xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
35 xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
36 xmlns:fo="http://www.w3.org/1999/XSL/Format"
37 xmlns:xlink="http://www.w3.org/1999/xlink"
38 xmlns:dc="http://purl.org/dc/elements/1.1/"
39 xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
40 xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
41 xmlns:svg="http://www.w3.org/2000/svg"
42 xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
43 xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
44 xmlns:math="http://www.w3.org/1998/Math/MathML"
45 xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
46 xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
47 xmlns:ooo="http://openoffice.org/2004/office"
48 xmlns:ooow="http://openoffice.org/2004/writer"
49 xmlns:oooc="http://openoffice.org/2004/calc"
50 xmlns:dom="http://www.w3.org/2001/xml-events"
51 xmlns:xforms="http://www.w3.org/2002/xforms"
52 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
53 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
54 >
55 <xsl:output omit-xml-declaration = "yes" />
56
57 <xsl:template match="text:bibliography-mark" >
58 <xsl:copy>
59 <xsl:attribute name="text:identifier">
60 <xsl:value-of select="normalize-space(.)" />
61 </xsl:attribute>
62 <xsl:apply-templates select="@*" />
63 </xsl:copy>
64 <text:span>
65 <xsl:attribute name="text:style-name">
66 <xsl:text>reference-ref</xsl:text>
67 </xsl:attribute>
68 <text:reference-ref>
69 <xsl:attribute name="text:ref-name">
70 <xsl:value-of
71 select="text:span/text:reference-ref/@text:ref-name"/>
72 </xsl:attribute>
73 <xsl:attribute name="text:reference-format">
74 <xsl:text>text</xsl:text>
75 </xsl:attribute>
76 <xsl:text> </xsl:text>
77 </text:reference-ref>
78 </text:span>
79 </xsl:template>
80
81 <xsl:template match="*|@*|text()|comment()" >
82 <xsl:copy>
83 <xsl:apply-templates select="*|@*|text()|comment()" />
84 </xsl:copy>
85 </xsl:template>
86 </xsl:stylesheet>
87 ]]>
88
89 </set>
90 <xslt name="." xml="." xsl="bib-mark" />
91
92 </script>
93 <script element="table:table" >
94 <dom name="." xml="." method="table" class="tex4ht.OoUtilities" />
95
96 </script>
97 <script element="text:p" >
98 <set name="text-p" >
99 <![CDATA[
100 <xsl:stylesheet version="1.0"
101 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
102
103 xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
104 xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
105 xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
106 xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
107 xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
108 xmlns:fo="http://www.w3.org/1999/XSL/Format"
109 xmlns:xlink="http://www.w3.org/1999/xlink"
110 xmlns:dc="http://purl.org/dc/elements/1.1/"
111 xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
112 xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
113 xmlns:svg="http://www.w3.org/2000/svg"
114 xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
115 xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
116 xmlns:math="http://www.w3.org/1998/Math/MathML"
117 xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
118 xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
119 xmlns:ooo="http://openoffice.org/2004/office"
120 xmlns:ooow="http://openoffice.org/2004/writer"
121 xmlns:oooc="http://openoffice.org/2004/calc"
122 xmlns:dom="http://www.w3.org/2001/xml-events"
123 xmlns:xforms="http://www.w3.org/2002/xforms"
124 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
125 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
126 >
127 <xsl:output omit-xml-declaration = "yes" />
128
129 <xsl:template match="text:p[ (count(child::*)=1)
130 and child::draw:frame
131 and parent::text:p
132 ]" >
133 <xsl:apply-templates select="child::draw:frame" />
134 </xsl:template>
135 <xsl:template match="text:p[
136 child::text:p
137 and
138 (count(child::text:p) = count(child::*))
139 ]" >
140 <!--xsl:copy>
141 <xsl:attribute name="text:style-name">
142 <xsl:text>start_</xsl:text>
143 <xsl:value-of select="@text:style-name" />
144 </xsl:attribute-->
145 <xsl:comment>
146 <xsl:text>start </xsl:text>
147 <xsl:value-of select=" @text:style-name " />
148 </xsl:comment>
149 <!--/xsl:copy-->
150 <xsl:apply-templates select="*|text()|comment()" mode="nested-p" />
151 <!--xsl:copy>
152 <xsl:attribute name="text:style-name">
153 <xsl:text>end</xsl:text>
154 <xsl:value-of select="@text:style-name" />
155 </xsl:attribute-->
156 <xsl:comment>
157 <xsl:text>end_</xsl:text>
158 <xsl:value-of select=" @text:style-name " />
159 </xsl:comment>
160 <!--/xsl:copy-->
161 </xsl:template>
162 <xsl:template match="*[not(text:p)]|text()|comment()" mode="nested-p" >
163 <xsl:copy/>
164 </xsl:template>
165 <xsl:template match="text:p" mode="nested-p" >
166 <xsl:copy>
167 <xsl:attribute name="text:style-name">
168 <xsl:value-of select="parent::text:p/@text:style-name" />
169 <xsl:text>_</xsl:text>
170 <xsl:value-of select="@text:style-name" />
171 <xsl:text>_</xsl:text>
172 <xsl:value-of select="child::*[1]/@text:style-name" />
173 </xsl:attribute>
174 <xsl:apply-templates select="@*[ name() != 'text:style-name' ]" />
175 <xsl:apply-templates select="*|text()|comment()" />
176 </xsl:copy>
177 </xsl:template>
178
179 <xsl:template
180 match="text:p[
181 parent::text:p/@text:style-name='printthebibliography-dd'
182 ]"
183 mode="nested-p" >
184 <xsl:copy>
185 <xsl:attribute name="text:style-name">
186 <xsl:value-of select="'printthebibliography-dd'" />
187 </xsl:attribute>
188 <xsl:apply-templates select="@*[ name() != 'text:style-name' ]" />
189 <xsl:apply-templates select="*|text()|comment()" />
190 </xsl:copy>
191 </xsl:template>
192
193 <xsl:template match="text:p[ child::text:span[
194 starts-with(@text:style-name, 'multicolumn-')
195 ] ]" >
196 <xsl:copy>
197 <xsl:apply-templates
198 select="child::text:span[
199 starts-with(@text:style-name, 'multicolumn-') ]
200 /@*
201 " />
202 <xsl:apply-templates select="*|text()|comment()" />
203 </xsl:copy>
204 </xsl:template>
205 <xsl:template match="text:span[
206 starts-with(@text:style-name, 'multicolumn-') ]" />
207
208 <xsl:template match="*|@*|text()|comment()" >
209 <xsl:copy>
210 <xsl:apply-templates select="*|@*|text()|comment()" />
211 </xsl:copy>
212 </xsl:template>
213 </xsl:stylesheet>
214 ]]>
215
216 </set>
217 <xslt name="." xml="." xsl="text-p" />
218
219 </script>
220 <script element="text:h" >
221 <set name="headers" >
222 <![CDATA[
223 <xsl:stylesheet version="1.0"
224 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
225
226 xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
227 xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
228 xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
229 xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
230 xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
231 xmlns:fo="http://www.w3.org/1999/XSL/Format"
232 xmlns:xlink="http://www.w3.org/1999/xlink"
233 xmlns:dc="http://purl.org/dc/elements/1.1/"
234 xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
235 xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
236 xmlns:svg="http://www.w3.org/2000/svg"
237 xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
238 xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
239 xmlns:math="http://www.w3.org/1998/Math/MathML"
240 xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
241 xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
242 xmlns:ooo="http://openoffice.org/2004/office"
243 xmlns:ooow="http://openoffice.org/2004/writer"
244 xmlns:oooc="http://openoffice.org/2004/calc"
245 xmlns:dom="http://www.w3.org/2001/xml-events"
246 xmlns:xforms="http://www.w3.org/2002/xforms"
247 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
248 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
249 >
250 <xsl:output omit-xml-declaration = "yes" />
251
252 <xsl:template match="text:h[@text:style-name='algorithmic-dt']" >
253 <xsl:copy>
254 <xsl:apply-templates select="@*" />
255 <xsl:apply-templates select="*|text()|comment()" mode="algorithmic"/>
256 </xsl:copy>
257 </xsl:template>
258 <xsl:template match="*|@*|comment()" mode="algorithmic" >
259 <xsl:copy>
260 <xsl:apply-templates select="@*" />
261 <xsl:apply-templates select="*|text()|comment()" mode="algorithmic"/>
262 </xsl:copy>
263 </xsl:template>
264 <xsl:template match="text()" mode="algorithmic" >
265 <xsl:value-of select="translate(.,' ','&#xA0;')"/>
266 </xsl:template>
267
268 <xsl:template match="text:h[
269 (@text:style-name='printthebibliography-dt')
270 and
271 (normalize-space()='')
272 ]" >
273 </xsl:template>
274
275 <xsl:template match="*|@*|text()|comment()" >
276 <xsl:copy>
277 <xsl:apply-templates select="*|@*|text()|comment()" />
278 </xsl:copy>
279 </xsl:template>
280 </xsl:stylesheet>
281 ]]>
282
283 </set>
284 <xslt name="." xml="." xsl="headers" />
285
286 </script>
287 </sax>
288 </xtpipes>
289