1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
3 xmlns:
office=
"urn:oasis:names:tc:openoffice:xmlns:office:1.0"
4 xmlns:
style=
"urn:oasis:names:tc:openoffice:xmlns:style:1.0"
5 xmlns:
text=
"urn:oasis:names:tc:openoffice:xmlns:text:1.0"
6 xmlns:
table=
"urn:oasis:names:tc:openoffice:xmlns:table:1.0"
7 xmlns:
draw=
"urn:oasis:names:tc:openoffice:xmlns:drawing:1.0"
8 xmlns:
fo=
"http://www.w3.org/1999/XSL/Format"
9 xmlns:
xlink=
"http://www.w3.org/1999/xlink"
10 xmlns:
dc=
"http://purl.org/dc/elements/1.1/"
11 xmlns:
meta=
"urn:oasis:names:tc:openoffice:xmlns:meta:1.0"
12 xmlns:
number=
"urn:oasis:names:tc:openoffice:xmlns:datastyle:1.0"
13 xmlns:
pres=
"urn:oasis:names:tc:openoffice:xmlns:presentation:1.0"
14 xmlns:
svg=
"http://www.w3.org/2000/svg"
15 xmlns:
chart=
"urn:oasis:names:tc:openoffice:xmlns:chart:1.0"
16 xmlns:
dr3d=
"urn:oasis:names:tc:openoffice:xmlns:dr3d:1.0"
17 xmlns:
math=
"http://www.w3.org/1998/Math/MathML"
18 xmlns:
form=
"urn:oasis:names:tc:openoffice:xmlns:form:1.0"
19 xmlns:
script=
"urn:oasis:names:tc:openoffice:xmlns:script:1.0"
20 xmlns:
ooo=
"http://openoffice.org/2004/office"
21 xmlns:
ooow=
"http://openoffice.org/2004/writer"
22 xmlns:
oooc=
"http://openoffice.org/2004/calc"
23 xmlns:
dom=
"http://www.w3.org/2001/xml-events"
24 xmlns:
smil=
"http://www.w3.org/2001/SMIL20"
25 xmlns:
anim=
"urn:oasis:names:tc:openoffice:xmlns:animation:1.0"
30 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-fly-in']">
31 <anim:par pres:
preset-property=
"Direction;Accelerate;Decelerate">
32 <xsl:apply-templates select=
"*|@*|text()"/>
36 <!-- fade in an swivel -->
37 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-fade-in-and-swivel']">
38 <anim:iterate pres:
text-only=
"true">
39 <xsl:apply-templates select=
"*|@*|text()"/>
44 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-falling-in']">
45 <anim:iterate pres:
text-only=
"true">
46 <xsl:apply-templates select=
"*|@*|text()"/>
51 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-unfold']">
52 <anim:iterate pres:
text-only=
"true">
53 <xsl:apply-templates select=
"*|@*|text()"/>
58 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-unfold']">
59 <anim:iterate pres:
text-only=
"true">
60 <xsl:apply-templates select=
"*|@*|text()"/>
64 <!-- turn and grow -->
65 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-turn-and-grow']">
66 <anim:iterate pres:
text-only=
"true">
67 <xsl:apply-templates select=
"*|@*|text()"/>
72 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-fold']">
73 <anim:par pres:
text-only=
"true">
74 <xsl:apply-templates select=
"*|@*|text()"/>
79 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-whip']">
80 <anim:iterate pres:
text-only=
"true">
81 <xsl:apply-templates select=
"*|@*|text()"/>
86 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-flip']">
87 <anim:iterate pres:
text-only=
"true">
88 <xsl:apply-templates select=
"*|@*|text()"/>
93 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-swish']">
94 <anim:iterate pres:
text-only=
"true">
95 <xsl:apply-templates select=
"*|@*|text()"/>
100 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-venetian-blinds']">
101 <anim:par pres:
preset-property=
"Direction">
102 <xsl:apply-templates select=
"*|@*|text()"/>
107 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-box']">
108 <anim:par pres:
preset-property=
"Direction">
109 <xsl:apply-templates select=
"*|@*|text()"/>
113 <!-- checkerboard -->
114 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-checkerboard']">
115 <anim:par pres:
preset-property=
"Direction">
116 <xsl:apply-templates select=
"*|@*|text()"/>
121 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-circle']">
122 <anim:par pres:
preset-property=
"Direction">
123 <xsl:apply-templates select=
"*|@*|text()"/>
128 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-fly-in-slow']">
129 <anim:par pres:
preset-property=
"Direction">
130 <xsl:apply-templates select=
"*|@*|text()"/>
135 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-diamond']">
136 <anim:par pres:
preset-property=
"Direction">
137 <xsl:apply-templates select=
"*|@*|text()"/>
142 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-peek-in']">
143 <anim:par pres:
preset-property=
"Direction">
144 <xsl:apply-templates select=
"*|@*|text()"/>
149 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-plus']">
150 <anim:par pres:
preset-property=
"Direction">
151 <xsl:apply-templates select=
"*|@*|text()"/>
156 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-random-bars']">
157 <anim:par pres:
preset-property=
"Direction">
158 <xsl:apply-templates select=
"*|@*|text()"/>
163 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-split']">
164 <anim:par pres:
preset-property=
"Direction">
165 <xsl:apply-templates select=
"*|@*|text()"/>
170 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-diagonal-squares']">
171 <anim:par pres:
preset-property=
"Direction">
172 <xsl:apply-templates select=
"*|@*|text()"/>
177 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-wheel']">
178 <anim:par pres:
preset-property=
"Spokes">
179 <xsl:apply-templates select=
"*|@*|text()"/>
184 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-wipe']">
185 <anim:par pres:
preset-property=
"Direction">
186 <xsl:apply-templates select=
"*|@*|text()"/>
190 <!-- color typewriter -->
191 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-colored-lettering']">
192 <anim:iterate pres:
preset-property=
"Color1;Color2" pres:
text-only=
"true">
193 <xsl:apply-templates select=
"*|@*|text()"/>
198 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-stretchy']">
199 <anim:par pres:
preset-property=
"Direction">
200 <xsl:apply-templates select=
"*|@*|text()"/>
205 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-zoom']">
206 <anim:par pres:
preset-property=
"Zoom">
207 <xsl:apply-templates select=
"*|@*|text()"/>
212 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-swivel']">
213 <anim:par pres:
preset-property=
"Direction">
214 <xsl:apply-templates select=
"*|@*|text()"/>
220 <!-- change fill color -->
221 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-fill-color']">
222 <anim:par pres:
preset-property=
"FillColor;ColorStyle;Accelerate;Decelerate;AutoReverse">
223 <xsl:apply-templates select=
"*|@*|text()"/>
228 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-font']">
229 <anim:par pres:
preset-property=
"FontStyle" pres:
text-only=
"true">
230 <xsl:apply-templates select=
"*|@*|text()"/>
234 <!-- change font color -->
235 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-font-color']">
236 <anim:par pres:
preset-property=
"CharColor;ColorStyle;Accelerate;Decelerate;AutoReverse" pres:
text-only=
"true">
237 <xsl:apply-templates select=
"*|@*|text()"/>
241 <!-- change font size -->
242 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-font-size']">
243 <anim:par pres:
preset-property=
"CharHeight" pres:
text-only=
"true">
244 <xsl:apply-templates select=
"*|@*|text()"/>
248 <!-- change font style -->
249 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-font-style']">
250 <anim:par pres:
preset-property=
"CharDecoration" pres:
text-only=
"true">
251 <xsl:apply-templates select=
"*|@*|text()"/>
255 <!-- change line color -->
256 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-line-color']">
257 <anim:par pres:
preset-property=
"LineColor;ColorStyle;Accelerate;Decelerate;AutoReverse">
258 <xsl:apply-templates select=
"*|@*|text()"/>
263 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-grow-and-shrink']">
264 <anim:par pres:
preset-property=
"Scale;Accelerate;Decelerate;AutoReverse">
265 <xsl:apply-templates select=
"*|@*|text()"/>
270 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-spin']">
271 <anim:par pres:
preset-property=
"Rotate;Accelerate;Decelerate;AutoReverse">
272 <xsl:apply-templates select=
"*|@*|text()"/>
276 <!-- Transparency -->
277 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-transparency']">
278 <anim:par pres:
preset-property=
"Transparency">
279 <xsl:apply-templates select=
"*|@*|text()"/>
283 <!-- brush on color -->
284 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-color-over-by-word']">
285 <anim:iterate pres:
preset-property=
"Color" pres:
text-only=
"true">
286 <xsl:apply-templates select=
"*|@*|text()"/>
291 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-color-blend']">
292 <anim:par pres:
preset-property=
"Color">
293 <xsl:apply-templates select=
"*|@*|text()"/>
298 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-color-over-by-letter']">
299 <anim:iterate pres:
preset-property=
"Color" pres:
text-only=
"true">
300 <xsl:apply-templates select=
"*|@*|text()"/>
305 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-bold-flash']">
306 <anim:par pres:
text-only=
"true">
307 <xsl:apply-templates select=
"*|@*|text()"/>
311 <!-- reveal underline -->
312 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-reveal-underline']">
313 <anim:iterate pres:
text-only=
"true">
314 <xsl:apply-templates select=
"*|@*|text()"/>
319 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-shimmer']">
320 <anim:iterate pres:
text-only=
"true">
321 <xsl:apply-templates select=
"*|@*|text()"/>
325 <!-- verticales highlight -->
326 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-vertical-highlight']">
327 <anim:par pres:
preset-property=
"Color">
328 <xsl:apply-templates select=
"*|@*|text()"/>
333 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-flicker']">
334 <anim:par pres:
preset-property=
"Color">
335 <xsl:apply-templates select=
"*|@*|text()"/>
339 <!-- grow with color -->
340 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-grow-with-color']">
341 <anim:iterate pres:
preset-property=
"Color" pres:
text-only=
"true">
342 <xsl:apply-templates select=
"*|@*|text()"/>
347 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-teeter']">
348 <anim:par pres:
preset-property=
"Color">
349 <xsl:apply-templates select=
"*|@*|text()"/>
354 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-blast']">
355 <anim:par pres:
preset-property=
"Color">
356 <xsl:apply-templates select=
"*|@*|text()"/>
360 <!-- style emphasis -->
361 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-style-emphasis']">
362 <anim:par pres:
preset-property=
"Color" pres:
text-only=
"true">
363 <xsl:apply-templates select=
"*|@*|text()"/>
368 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-bold-reveal']">
369 <anim:iterate pres:
text-only=
"true">
370 <xsl:apply-templates select=
"*|@*|text()"/>
375 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-wave']">
376 <anim:iterate pres:
text-only=
"true">
377 <xsl:apply-templates select=
"*|@*|text()"/>
384 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-venetian-blinds']">
385 <anim:par pres:
preset-property=
"Direction">
386 <xsl:apply-templates select=
"*|@*|text()"/>
391 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-box']">
392 <anim:par pres:
preset-property=
"Direction">
393 <xsl:apply-templates select=
"*|@*|text()"/>
397 <!-- checkerboard -->
398 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-checkerboard']">
399 <anim:par pres:
preset-property=
"Direction">
400 <xsl:apply-templates select=
"*|@*|text()"/>
405 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-circle']">
406 <anim:par pres:
preset-property=
"Direction">
407 <xsl:apply-templates select=
"*|@*|text()"/>
412 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-crawl-out']">
413 <anim:par pres:
preset-property=
"Direction">
414 <xsl:apply-templates select=
"*|@*|text()"/>
419 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-diamond']">
420 <anim:par pres:
preset-property=
"Direction">
421 <xsl:apply-templates select=
"*|@*|text()"/>
426 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-fly-out']">
427 <anim:par pres:
preset-property=
"Direction;Accelerate;Decelerate">
428 <xsl:apply-templates select=
"*|@*|text()"/>
433 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-peek-out']">
434 <anim:par pres:
preset-property=
"Direction">
435 <xsl:apply-templates select=
"*|@*|text()"/>
440 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-plus']">
441 <anim:par pres:
preset-property=
"Direction">
442 <xsl:apply-templates select=
"*|@*|text()"/>
447 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-random-bars']">
448 <anim:par pres:
preset-property=
"Direction">
449 <xsl:apply-templates select=
"*|@*|text()"/>
454 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-split']">
455 <anim:par pres:
preset-property=
"Direction">
456 <xsl:apply-templates select=
"*|@*|text()"/>
461 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-diagonal-squares']">
462 <anim:par pres:
preset-property=
"Direction">
463 <xsl:apply-templates select=
"*|@*|text()"/>
468 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-wheel']">
469 <anim:par pres:
preset-property=
"Spokes">
470 <xsl:apply-templates select=
"*|@*|text()"/>
475 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-wipe']">
476 <anim:par pres:
preset-property=
"Direction">
477 <xsl:apply-templates select=
"*|@*|text()"/>
482 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-collapse']">
483 <anim:par pres:
preset-property=
"Direction">
484 <xsl:apply-templates select=
"*|@*|text()"/>
488 <!-- color typewriter -->
489 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-colored-lettering']">
490 <anim:iterate pres:
preset-property=
"Color1;Color2" pres:
text-only=
"true">
491 <xsl:apply-templates select=
"*|@*|text()"/>
496 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-zoom']">
497 <anim:par pres:
preset-property=
"Zoom">
498 <xsl:apply-templates select=
"*|@*|text()"/>
503 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-swivel']">
504 <anim:par pres:
preset-property=
"Direction">
505 <xsl:apply-templates select=
"*|@*|text()"/>
509 <!-- fade in an swivel -->
510 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-fade-out-and-swivel']">
511 <anim:iterate pres:
text-only=
"true">
512 <xsl:apply-templates select=
"*|@*|text()"/>
516 <!-- fade in an swivel -->
517 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-turn-and-grow']">
518 <anim:iterate pres:
text-only=
"true">
519 <xsl:apply-templates select=
"*|@*|text()"/>
524 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-fold']">
525 <anim:par pres:
text-only=
"true">
526 <xsl:apply-templates select=
"*|@*|text()"/>
531 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-whip']">
532 <anim:iterate pres:
text-only=
"true">
533 <xsl:apply-templates select=
"*|@*|text()"/>
538 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-flip']">
539 <anim:iterate pres:
text-only=
"true">
540 <xsl:apply-templates select=
"*|@*|text()"/>
545 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-swish']">
546 <anim:iterate pres:
text-only=
"true">
547 <xsl:apply-templates select=
"*|@*|text()"/>
551 <!-- remove pres:group-id -->
552 <xsl:template match=
"@xlink:href" />
553 <xsl:template match=
"@smil:targetElement" />
554 <xsl:template match=
"@pres:group-id" />
557 <xsl:template match=
"*|@*|text()">
559 <xsl:apply-templates select=
"*|@*|text()"/>