swfmill 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/.swfmill +0 -134
  2. data/README.rdoc +28 -8
  3. data/Rakefile +6 -5
  4. data/VERSION +1 -1
  5. data/ext/.gitignore +1 -0
  6. data/ext/buffer.h +95 -0
  7. data/ext/deflate.h +125 -0
  8. data/ext/extconf.rb +77 -43
  9. data/ext/inflate.h +82 -0
  10. data/ext/swfmill/.gitignore +3 -16
  11. data/ext/swfmill/AUTHORS +2 -1
  12. data/ext/swfmill/Makefile.in +2 -1
  13. data/ext/swfmill/NEWS +5 -0
  14. data/ext/swfmill/autogen.sh +7 -1
  15. data/ext/swfmill/configure +361 -275
  16. data/ext/swfmill/configure.ac +28 -20
  17. data/ext/swfmill/src/Makefile.am +93 -20
  18. data/ext/swfmill/src/Makefile.in +454 -170
  19. data/ext/swfmill/src/SWF.h +3 -0
  20. data/ext/swfmill/src/SWFFile.cpp +1 -1
  21. data/ext/swfmill/src/SWFShapeMaker.cpp +4 -3
  22. data/ext/swfmill/src/codegen/basics.xsl +2 -1
  23. data/ext/swfmill/src/codegen/header.xsl +3 -0
  24. data/ext/swfmill/src/codegen/parsexml.xsl +53 -2
  25. data/ext/swfmill/src/codegen/writexml.xsl +54 -1
  26. data/ext/swfmill/src/swfmill.cpp +52 -35
  27. data/ext/swfmill/src/swft/swft_import_jpeg.cpp +62 -16
  28. data/ext/swfmill/src/xslt/simple-elements.xslt +1 -0
  29. data/ext/swfmill/test/Makefile.in +2 -1
  30. data/ext/swfmill/test/xml/Makefile.in +2 -1
  31. data/ext/swfmill_ext.cc +12 -366
  32. data/ext/swfmill_ext_to_swf.cc +260 -0
  33. data/ext/swfmill_ext_to_swf.h +6 -0
  34. data/ext/swfmill_ext_to_xml.cc +262 -0
  35. data/ext/swfmill_ext_to_xml.h +6 -0
  36. data/ext/test/Makefile +16 -0
  37. data/ext/test/buffer_test.cc +84 -0
  38. data/ext/test/deflate_test.cc +61 -0
  39. data/ext/test/inflate_test.cc +84 -0
  40. data/ext/test/test.dat +0 -0
  41. data/lib/swfmill.rb +14 -23
  42. data/spec/swfmill_spec.rb +0 -123
  43. metadata +28 -17
  44. data/ext/swfmill/src/codegen/Makefile.am +0 -15
  45. data/ext/swfmill/src/codegen/Makefile.in +0 -346
  46. data/ext/swfmill/src/swft/Makefile.am +0 -55
  47. data/ext/swfmill/src/swft/Makefile.in +0 -717
  48. data/ext/swfmill/src/xslt/Makefile.am +0 -51
  49. data/ext/swfmill/src/xslt/Makefile.in +0 -536
  50. data/ext/swfmill/src/xslt/README +0 -19
  51. data/ext/swfmill/src/xslt/simple.cpp +0 -1686
@@ -1,19 +0,0 @@
1
-
2
- 2005-07-19 building the internal stylesheets
3
-
4
- * swfmill uses internal stylesheets for some commands ("simple").
5
- * these get big, so they are split into parts (*.xslt)
6
- * a .xml file (e.g. simple.xml) describes which parts should get assembled
7
- to form a single internal sheet.
8
- * the .xml is transformed along assemble.xsl, including the parts,
9
- producing a .cpp that contains the stylesheet as a static string.
10
-
11
- a new internal stylesheet (foo) would need:
12
- * foo.xml <compilation> description
13
- * ? anything else
14
- * mentions in Makefile.am
15
- * mention in xslt.h
16
- * command in swfmill.cpp
17
-
18
- (PS, yes i know about xsl:import and :include, but i would have to hack
19
- libxslt to read from something like memory:// urls, which is not nice either)
@@ -1,1686 +0,0 @@
1
- #include "xslt.h"
2
- const char *xslt_simple =
3
- "<?xml version=\"1.0\"?>\n"
4
- "<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" extension-element-prefixes=\"swft\" version=\"1.0\">\n"
5
- "<xsl:output method=\"xml\" indent=\"yes\"/><xsl:param name=\"quiet\" select=\"'false'\"/>\n"
6
- " \n"
7
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" name=\"color\">\n"
8
- " <xsl:variable name=\"red\">\n"
9
- " <xsl:choose>\n"
10
- " <xsl:when test=\"@red\"><xsl:value-of select=\"@red\"/></xsl:when>\n"
11
- " <xsl:when test=\"@color\">0x<xsl:value-of select=\"substring(@color,2,2)\"/></xsl:when>\n"
12
- " <xsl:otherwise>200</xsl:otherwise>\n"
13
- " </xsl:choose>\n"
14
- " </xsl:variable>\n"
15
- " <xsl:variable name=\"green\">\n"
16
- " <xsl:choose>\n"
17
- " <xsl:when test=\"@green\"><xsl:value-of select=\"@green\"/></xsl:when>\n"
18
- " <xsl:when test=\"@color\">0x<xsl:value-of select=\"substring(@color,4,2)\"/></xsl:when>\n"
19
- " <xsl:otherwise>200</xsl:otherwise>\n"
20
- " </xsl:choose>\n"
21
- " </xsl:variable>\n"
22
- " <xsl:variable name=\"blue\">\n"
23
- " <xsl:choose>\n"
24
- " <xsl:when test=\"@blue\"><xsl:value-of select=\"@blue\"/></xsl:when>\n"
25
- " <xsl:when test=\"@color\">0x<xsl:value-of select=\"substring(@color,6)\"/></xsl:when>\n"
26
- " <xsl:otherwise>200</xsl:otherwise>\n"
27
- " </xsl:choose>\n"
28
- " </xsl:variable>\n"
29
- " <Color red=\"{$red}\" green=\"{$green}\" blue=\"{$blue}\"/>\n"
30
- "</xsl:template>\n"
31
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" name=\"color-rgba\">\n"
32
- " <xsl:variable name=\"red\">\n"
33
- " <xsl:choose>\n"
34
- " <xsl:when test=\"@red\"><xsl:value-of select=\"@red\"/></xsl:when>\n"
35
- " <xsl:when test=\"@color\">0x<xsl:value-of select=\"substring(@color,2,2)\"/></xsl:when>\n"
36
- " <xsl:otherwise>0</xsl:otherwise>\n"
37
- " </xsl:choose>\n"
38
- " </xsl:variable>\n"
39
- " <xsl:variable name=\"green\">\n"
40
- " <xsl:choose>\n"
41
- " <xsl:when test=\"@green\"><xsl:value-of select=\"@green\"/></xsl:when>\n"
42
- " <xsl:when test=\"@color\">0x<xsl:value-of select=\"substring(@color,4,2)\"/></xsl:when>\n"
43
- " <xsl:otherwise>0</xsl:otherwise>\n"
44
- " </xsl:choose>\n"
45
- " </xsl:variable>\n"
46
- " <xsl:variable name=\"blue\">\n"
47
- " <xsl:choose>\n"
48
- " <xsl:when test=\"@blue\"><xsl:value-of select=\"@blue\"/></xsl:when>\n"
49
- " <xsl:when test=\"@color\">0x<xsl:value-of select=\"substring(@color,6)\"/></xsl:when>\n"
50
- " <xsl:otherwise>0</xsl:otherwise>\n"
51
- " </xsl:choose>\n"
52
- " </xsl:variable>\n"
53
- " <xsl:variable name=\"alpha\">\n"
54
- " <xsl:choose>\n"
55
- " <xsl:when test=\"@alpha\"><xsl:value-of select=\"@alpha\"/></xsl:when>\n"
56
- " <xsl:when test=\"string-length(@color) = 9\">0x<xsl:value-of select=\"substring(@color,8)\"/></xsl:when>\n"
57
- " <xsl:otherwise>255</xsl:otherwise>\n"
58
- " </xsl:choose>\n"
59
- " </xsl:variable>\n"
60
- " <Color red=\"{$red}\" green=\"{$green}\" blue=\"{$blue}\" alpha=\"{$alpha}\"/>\n"
61
- "</xsl:template>\n"
62
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" name=\"color-rgba-param\">\n"
63
- " <xsl:param name=\"color\">#00000000</xsl:param>\n"
64
- " <xsl:param name=\"alpha\"/>\n"
65
- " <xsl:variable name=\"red\">\n"
66
- " <xsl:choose>\n"
67
- " <xsl:when test=\"$color\">0x<xsl:value-of select=\"substring($color,2,2)\"/></xsl:when>\n"
68
- " <xsl:otherwise>0</xsl:otherwise>\n"
69
- " </xsl:choose>\n"
70
- " </xsl:variable>\n"
71
- " <xsl:variable name=\"green\">\n"
72
- " <xsl:choose>\n"
73
- " <xsl:when test=\"$color\">0x<xsl:value-of select=\"substring($color,4,2)\"/></xsl:when>\n"
74
- " <xsl:otherwise>0</xsl:otherwise>\n"
75
- " </xsl:choose>\n"
76
- " </xsl:variable>\n"
77
- " <xsl:variable name=\"blue\">\n"
78
- " <xsl:choose>\n"
79
- " <xsl:when test=\"$color\">0x<xsl:value-of select=\"substring($color,6)\"/></xsl:when>\n"
80
- " <xsl:otherwise>0</xsl:otherwise>\n"
81
- " </xsl:choose>\n"
82
- " </xsl:variable>\n"
83
- " <xsl:variable name=\"a\">\n"
84
- " <xsl:choose>\n"
85
- " <xsl:when test=\"$alpha != ''\"><xsl:value-of select=\"$alpha * 255\"/></xsl:when>\n"
86
- " <xsl:when test=\"string-length($color) = 9\">0x<xsl:value-of select=\"substring($color,8)\"/></xsl:when>\n"
87
- " <xsl:otherwise>255</xsl:otherwise>\n"
88
- " </xsl:choose>\n"
89
- " </xsl:variable>\n"
90
- " <Color red=\"{$red}\" green=\"{$green}\" blue=\"{$blue}\" alpha=\"{$a}\"/>\n"
91
- "</xsl:template>\n"
92
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"string\" mode=\"set\">\n"
93
- " <PushData>\n"
94
- " <items>\n"
95
- " <StackString value=\"{@name}\"/>\n"
96
- " <StackString value=\"{@value}\"/>\n"
97
- " </items>\n"
98
- " </PushData>\n"
99
- " <SetVariable/>\n"
100
- "</xsl:template>\n"
101
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"number\" mode=\"set\">\n"
102
- " <PushData>\n"
103
- " <items>\n"
104
- " <StackString value=\"{@name}\"/>\n"
105
- " <StackDouble value=\"{@value}\"/>\n"
106
- " </items>\n"
107
- " </PushData>\n"
108
- " <SetVariable/>\n"
109
- "</xsl:template>\n"
110
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"boolean\" mode=\"set\">\n"
111
- " <PushData>\n"
112
- " <items>\n"
113
- " <StackString value=\"{@name}\"/>\n"
114
- " <StackBoolean value=\"{@value}\"/>\n"
115
- " </items>\n"
116
- " </PushData>\n"
117
- " <SetVariable/>\n"
118
- "</xsl:template>\n"
119
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" name=\"register-class\">\n"
120
- " <xsl:param name=\"class\"/>\n"
121
- " <xsl:param name=\"linkage-id\"/>\n"
122
- " <xsl:variable name=\"packages\" select=\"str:tokenize($class,'.')\"/>\n"
123
- " <xsl:variable name=\"strofs\">3</xsl:variable>\n"
124
- " <xsl:variable name=\"id\" select=\"swft:next-id()\"/>\n"
125
- "\n"
126
- " <DefineSprite objectID=\"{$id}\" frames=\"1\">\n"
127
- " <tags>\n"
128
- " <End/>\n"
129
- " </tags>\n"
130
- " </DefineSprite>\n"
131
- " <Export>\n"
132
- " <symbols>\n"
133
- " <Symbol objectID=\"{$id}\" name=\"__Packages.swfmill.registerClass.{$linkage-id}\"/>\n"
134
- " </symbols>\n"
135
- " </Export>\n"
136
- " <DoInitAction sprite=\"{$id}\">\n"
137
- " <actions>\n"
138
- " <Dictionary>\n"
139
- " <strings>\n"
140
- " <String value=\"Object\"/>\n"
141
- " <String value=\"registerClass\"/>\n"
142
- " <String value=\"{$linkage-id}\"/>\n"
143
- " <xsl:for-each select=\"$packages\">\n"
144
- " <String value=\"{.}\"/>\n"
145
- " </xsl:for-each>\n"
146
- " </strings>\n"
147
- " </Dictionary>\n"
148
- " \n"
149
- " <!-- package root -->\n"
150
- " <PushData>\n"
151
- " <items>\n"
152
- " <StackDictionaryLookup index=\"{$strofs}\"/> \n"
153
- " </items>\n"
154
- " </PushData>\n"
155
- " <GetVariable/>\n"
156
- " \n"
157
- " <!-- packages -->\n"
158
- " <xsl:for-each select=\"$packages[position()&gt;1]\">\n"
159
- " <PushData>\n"
160
- " <items>\n"
161
- " <StackDictionaryLookup index=\"{$strofs + position()}\"/>\n"
162
- " </items>\n"
163
- " </PushData>\n"
164
- " <GetMember/>\n"
165
- " </xsl:for-each>\n"
166
- " \n"
167
- " <!-- linkage id, 2 (arguments), Object-->\n"
168
- " <PushData>\n"
169
- " <items>\n"
170
- " <StackDictionaryLookup index=\"2\"/>\n"
171
- " <StackInteger value=\"2\"/>\n"
172
- " <StackDictionaryLookup index=\"0\"/>\n"
173
- " </items>\n"
174
- " </PushData>\n"
175
- " <GetVariable/>\n"
176
- " <!-- registerClass -->\n"
177
- " <PushData>\n"
178
- " <items>\n"
179
- " <StackDictionaryLookup index=\"1\"/>\n"
180
- " </items>\n"
181
- " </PushData>\n"
182
- " <CallMethod/>\n"
183
- " <Pop/>\n"
184
- " <EndAction/>\n"
185
- " </actions>\n"
186
- " </DoInitAction>\n"
187
- " \n"
188
- "</xsl:template>\n"
189
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"html-wrapper\">\n"
190
- " <xsl:document href=\"{@name}\">\n"
191
- "<html>\n"
192
- " <body>\n"
193
- " <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"{/movie/@width}\" height=\"{/movie/@width}\" id=\"video\" align=\"middle\">\n"
194
- " <param name=\"allowScriptAccess\" value=\"sameDomain\"/>\n"
195
- " <param name=\"movie\" value=\"{@swf}\"/>\n"
196
- " <param name=\"quality\" value=\"high\"/>\n"
197
- " <embed src=\"{@swf}\" quality=\"high\" width=\"{/movie/@width}\" height=\"{/movie/@height}\" name=\"video\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"/>\n"
198
- " </object>\n"
199
- " </body>\n"
200
- "</html>\n"
201
- " </xsl:document>\n"
202
- "</xsl:template>\n"
203
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"*\" mode=\"htmltext\">\n"
204
- " <xsl:text>&lt;</xsl:text>\n"
205
- " <xsl:value-of select=\"name()\"/>\n"
206
- " <xsl:apply-templates select=\"@*\" mode=\"htmltext\"/>\n"
207
- " <xsl:text>&gt;</xsl:text>\n"
208
- " <xsl:apply-templates select=\"*|text()\" mode=\"htmltext\"/>\n"
209
- " <xsl:text>&lt;/</xsl:text>\n"
210
- " <xsl:value-of select=\"name()\"/>\n"
211
- " <xsl:text>&gt;</xsl:text>\n"
212
- "</xsl:template>\n"
213
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"@*\" mode=\"htmltext\">\n"
214
- " <xsl:text> </xsl:text>\n"
215
- " <xsl:value-of select=\"name()\"/>\n"
216
- " <xsl:text>=\"</xsl:text>\n"
217
- " <xsl:value-of select=\".\"/>\n"
218
- " <xsl:text>\"</xsl:text>\n"
219
- "</xsl:template>\n"
220
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"text()\" mode=\"htmltext\">\n"
221
- " <xsl:value-of select=\".\"/>\n"
222
- "</xsl:template>\n"
223
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"@objectID|@sprite|@fontRef\">\n"
224
- " <xsl:attribute name=\"{name()}\"><xsl:value-of select=\"swft:map-id(.)\"/></xsl:attribute>\n"
225
- "</xsl:template>\n"
226
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"*|@*|text()\" priority=\"-2\">\n"
227
- " <xsl:copy select=\".\">\n"
228
- " <xsl:apply-templates select=\"*|@*|text()\"/>\n"
229
- " </xsl:copy>\n"
230
- "</xsl:template>\n"
231
- " \n"
232
- "<xsl:variable xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" name=\"movie-version\">\n"
233
- " <xsl:choose>\n"
234
- " <xsl:when test=\"movie/@version\"><xsl:value-of select=\"movie/@version\"/></xsl:when>\n"
235
- " <xsl:otherwise>7</xsl:otherwise>\n"
236
- " </xsl:choose>\n"
237
- "</xsl:variable>\n"
238
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"movie\">\n"
239
- " <!-- set defaults for movie -->\n"
240
- " <xsl:variable name=\"version\" select=\"$movie-version\"/>\n"
241
- " <xsl:variable name=\"compressed\">\n"
242
- " <xsl:choose>\n"
243
- " <xsl:when test=\"@compressed='true'\">1</xsl:when>\n"
244
- " <xsl:when test=\"@compressed='false'\">0</xsl:when>\n"
245
- " <xsl:otherwise>1</xsl:otherwise>\n"
246
- " </xsl:choose>\n"
247
- " </xsl:variable>\n"
248
- " <xsl:variable name=\"framerate\">\n"
249
- " <xsl:choose>\n"
250
- " <xsl:when test=\"@framerate\"><xsl:value-of select=\"@framerate\"/></xsl:when>\n"
251
- " <xsl:otherwise>12</xsl:otherwise>\n"
252
- " </xsl:choose>\n"
253
- " </xsl:variable>\n"
254
- " <xsl:variable name=\"frames\">\n"
255
- " <xsl:choose>\n"
256
- " <xsl:when test=\"@frames\"><xsl:value-of select=\"@frames\"/></xsl:when>\n"
257
- " <xsl:otherwise>1</xsl:otherwise>\n"
258
- " </xsl:choose>\n"
259
- " </xsl:variable>\n"
260
- " <xsl:variable name=\"left\">\n"
261
- " <xsl:choose>\n"
262
- " <xsl:when test=\"@left\"><xsl:value-of select=\"@left * 20\"/></xsl:when>\n"
263
- " <xsl:otherwise>0</xsl:otherwise>\n"
264
- " </xsl:choose>\n"
265
- " </xsl:variable>\n"
266
- " <xsl:variable name=\"top\">\n"
267
- " <xsl:choose>\n"
268
- " <xsl:when test=\"@top\"><xsl:value-of select=\"@top * 20\"/></xsl:when>\n"
269
- " <xsl:otherwise>0</xsl:otherwise>\n"
270
- " </xsl:choose>\n"
271
- " </xsl:variable>\n"
272
- " <xsl:variable name=\"right\">\n"
273
- " <xsl:choose>\n"
274
- " <xsl:when test=\"@width\"><xsl:value-of select=\"$left + (@width * 20)\"/></xsl:when>\n"
275
- " <xsl:otherwise>6400</xsl:otherwise>\n"
276
- " </xsl:choose>\n"
277
- " </xsl:variable>\n"
278
- " <xsl:variable name=\"bottom\">\n"
279
- " <xsl:choose>\n"
280
- " <xsl:when test=\"@height\"><xsl:value-of select=\"$top + (@height * 20)\"/></xsl:when>\n"
281
- " <xsl:otherwise>4800</xsl:otherwise>\n"
282
- " </xsl:choose>\n"
283
- " </xsl:variable>\n"
284
- " <xsl:variable name=\"hasMetaData\">\n"
285
- " <xsl:choose>\n"
286
- " <xsl:when test=\"count(meta) &gt; 0\">1</xsl:when>\n"
287
- " <xsl:otherwise>0</xsl:otherwise>\n"
288
- " </xsl:choose>\n"
289
- " </xsl:variable>\n"
290
- " <xsl:variable name=\"useNetwork\">\n"
291
- " <xsl:choose>\n"
292
- " <xsl:when test=\"@local-access = 'network'\">1</xsl:when>\n"
293
- " <xsl:when test=\"@local-access = 'filesystem'\">0</xsl:when>\n"
294
- " <xsl:otherwise>0</xsl:otherwise>\n"
295
- " </xsl:choose>\n"
296
- " </xsl:variable>\n"
297
- " <xsl:variable name=\"as3\">\n"
298
- " <xsl:choose>\n"
299
- " <xsl:when test=\"@as3\">1</xsl:when>\n"
300
- " <xsl:otherwise>0</xsl:otherwise>\n"
301
- " </xsl:choose>\n"
302
- " </xsl:variable>\n"
303
- "\n"
304
- " <swf version=\"{$version}\" compressed=\"{$compressed}\">\n"
305
- " <Header framerate=\"{$framerate}\" frames=\"{$frames}\">\n"
306
- " <size>\n"
307
- " <Rectangle left=\"{$left}\" right=\"{$right}\" top=\"{$top}\" bottom=\"{$bottom}\"/>\n"
308
- " </size>\n"
309
- " <tags>\n"
310
- " <xsl:if test=\"$version &gt;= 8\">\n"
311
- " <FileAttributes hasMetaData=\"{$hasMetaData}\" useNetwork=\"{$useNetwork}\" allowABC=\"{$as3}\"/>\n"
312
- " </xsl:if>\n"
313
- " <xsl:apply-templates/>\n"
314
- " <End/>\n"
315
- " </tags>\n"
316
- " </Header>\n"
317
- " </swf>\n"
318
- "</xsl:template>\n"
319
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"background\">\n"
320
- " <SetBackgroundColor>\n"
321
- " <color>\n"
322
- " <xsl:call-template name=\"color\"/>\n"
323
- " </color>\n"
324
- " </SetBackgroundColor>\n"
325
- "</xsl:template>\n"
326
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"meta\">\n"
327
- " <Metadata>\n"
328
- " <rdf:RDF>\n"
329
- " <rdf:Description>\n"
330
- " <xsl:apply-templates select=\"@*\" mode=\"meta\"/>\n"
331
- " </rdf:Description>\n"
332
- " <xsl:copy-of select=\"*\"/>\n"
333
- " </rdf:RDF>\n"
334
- " </Metadata>\n"
335
- "</xsl:template>\n"
336
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"@title\" mode=\"meta\">\n"
337
- " <dc:title>\n"
338
- " <xsl:apply-templates/>\n"
339
- " </dc:title>\n"
340
- "</xsl:template>\n"
341
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"@description\" mode=\"meta\">\n"
342
- " <dc:description>\n"
343
- " <xsl:apply-templates/>\n"
344
- " </dc:description>\n"
345
- "</xsl:template>\n"
346
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"*|text()\" mode=\"meta\"/>\n"
347
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"library\">\n"
348
- " <xsl:apply-templates/>\n"
349
- "</xsl:template>\n"
350
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"@id\" mode=\"export\">\n"
351
- " <xsl:param name=\"id\"/>\n"
352
- " <Export count=\"1\">\n"
353
- " <symbols>\n"
354
- " <Symbol objectID=\"{$id}\">\n"
355
- " <xsl:attribute name=\"name\"><xsl:value-of select=\".\"/></xsl:attribute>\n"
356
- " </Symbol>\n"
357
- " </symbols>\n"
358
- " </Export>\n"
359
- "</xsl:template>\n"
360
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"@*\" mode=\"export\" priority=\"-1\"/>\n"
361
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"place\">\n"
362
- " <xsl:variable name=\"id\">\n"
363
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
364
- " </xsl:variable>\n"
365
- " <xsl:variable name=\"x\">\n"
366
- " <xsl:choose>\n"
367
- " <xsl:when test=\"@x\"><xsl:value-of select=\"@x * 20\"/></xsl:when>\n"
368
- " <xsl:otherwise>0</xsl:otherwise>\n"
369
- " </xsl:choose>\n"
370
- " </xsl:variable>\n"
371
- " <xsl:variable name=\"y\">\n"
372
- " <xsl:choose>\n"
373
- " <xsl:when test=\"@y\"><xsl:value-of select=\"@y * 20\"/></xsl:when>\n"
374
- " <xsl:otherwise>0</xsl:otherwise>\n"
375
- " </xsl:choose>\n"
376
- " </xsl:variable>\n"
377
- " <xsl:variable name=\"scale\">\n"
378
- " <xsl:choose>\n"
379
- " <xsl:when test=\"@scale\"><xsl:value-of select=\"@scale\"/></xsl:when>\n"
380
- " <xsl:otherwise>1</xsl:otherwise>\n"
381
- " </xsl:choose>\n"
382
- " </xsl:variable>\n"
383
- " <xsl:variable name=\"skewx\">\n"
384
- " <xsl:choose>\n"
385
- " <xsl:when test=\"@skewx\"><xsl:value-of select=\"@skewx\"/></xsl:when>\n"
386
- " <xsl:otherwise>0</xsl:otherwise>\n"
387
- " </xsl:choose>\n"
388
- " </xsl:variable>\n"
389
- " <xsl:variable name=\"skewy\">\n"
390
- " <xsl:choose>\n"
391
- " <xsl:when test=\"@skewy\"><xsl:value-of select=\"@skewy\"/></xsl:when>\n"
392
- " <xsl:otherwise>0</xsl:otherwise>\n"
393
- " </xsl:choose>\n"
394
- " </xsl:variable>\n"
395
- " <xsl:variable name=\"scalex\">\n"
396
- " <xsl:choose>\n"
397
- " <xsl:when test=\"@scalex\"><xsl:value-of select=\"@scalex\"/></xsl:when>\n"
398
- " <xsl:when test=\"@scale\"><xsl:value-of select=\"@scale\"/></xsl:when>\n"
399
- " <xsl:otherwise>1</xsl:otherwise>\n"
400
- " </xsl:choose>\n"
401
- " </xsl:variable>\n"
402
- " <xsl:variable name=\"scaley\">\n"
403
- " <xsl:choose>\n"
404
- " <xsl:when test=\"@scaley\"><xsl:value-of select=\"@scaley\"/></xsl:when>\n"
405
- " <xsl:when test=\"@scale\"><xsl:value-of select=\"@scale\"/></xsl:when>\n"
406
- " <xsl:otherwise>1</xsl:otherwise>\n"
407
- " </xsl:choose>\n"
408
- " </xsl:variable>\n"
409
- "\n"
410
- " <xsl:variable name=\"depth\"><xsl:value-of select=\"@depth\"/></xsl:variable>\n"
411
- " \n"
412
- " <!-- Setting replace=\"1\" doesn't work if we are replacing a sprite.\n"
413
- " Instead, we remove the previous sprite with RemoveObject2,\n"
414
- " and increment \"morph\". This strange requirement isn't\n"
415
- " documented anywhere, but this is what Flash does, and it\n"
416
- " works. See bug #409165 on Launchpad. -->\n"
417
- " <xsl:variable name=\"replace\">\n"
418
- " <xsl:choose>\n"
419
- " <xsl:when test=\"preceding-sibling::place[@depth=$depth] or ../preceding-sibling::frame/place[@depth=$depth]\">1</xsl:when>\n"
420
- " <xsl:otherwise>0</xsl:otherwise>\n"
421
- " </xsl:choose>\n"
422
- " </xsl:variable>\n"
423
- " <xsl:variable name=\"morph\">\n"
424
- " <xsl:value-of select=\"count(preceding-sibling::place[@depth=$depth] | ../preceding-sibling::frame/place[@depth=$depth])\"/>\n"
425
- " </xsl:variable>\n"
426
- " <xsl:if test=\"$replace = '1'\">\n"
427
- " <RemoveObject2 depth=\"{@depth}\"/>\n"
428
- " </xsl:if>\n"
429
- " <PlaceObject2 replace=\"0\" morph=\"{$morph}\" depth=\"{$depth}\" objectID=\"{$id}\">\n"
430
- " <xsl:if test=\"@name\">\n"
431
- " <xsl:attribute name=\"name\"><xsl:value-of select=\"@name\"/></xsl:attribute>\n"
432
- " </xsl:if>\n"
433
- " <xsl:if test=\"*\">\n"
434
- " <!-- 0x200: initialize -->\n"
435
- " <xsl:attribute name=\"allflags1\">0x200</xsl:attribute>\n"
436
- " <events>\n"
437
- " <Event flags1=\"0x200\">\n"
438
- " <actions>\n"
439
- " <xsl:apply-templates mode=\"set\"/>\n"
440
- " <EndAction/>\n"
441
- " </actions>\n"
442
- " </Event>\n"
443
- " <Event/>\n"
444
- " </events>\n"
445
- " </xsl:if>\n"
446
- " <transform>\n"
447
- " <Transform transX=\"{$x}\" transY=\"{$y}\" scaleX=\"{$scalex}\" scaleY=\"{$scaley}\" skewX=\"{$skewx}\" skewY=\"{$skewy}\"/>\n"
448
- " </transform>\n"
449
- " </PlaceObject2>\n"
450
- "</xsl:template>\n"
451
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"transform\">\n"
452
- " <xsl:variable name=\"id\">\n"
453
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
454
- " </xsl:variable>\n"
455
- " <xsl:variable name=\"myid\">\n"
456
- " <xsl:value-of select=\"@id\"/>\n"
457
- " </xsl:variable>\n"
458
- " <xsl:variable name=\"x\">\n"
459
- " <xsl:choose>\n"
460
- " <xsl:when test=\"@x\"><xsl:value-of select=\"@x * 20\"/></xsl:when>\n"
461
- " <xsl:otherwise>0</xsl:otherwise>\n"
462
- " </xsl:choose>\n"
463
- " </xsl:variable>\n"
464
- " <xsl:variable name=\"y\">\n"
465
- " <xsl:choose>\n"
466
- " <xsl:when test=\"@y\"><xsl:value-of select=\"@y * 20\"/></xsl:when>\n"
467
- " <xsl:otherwise>0</xsl:otherwise>\n"
468
- " </xsl:choose>\n"
469
- " </xsl:variable>\n"
470
- " <xsl:variable name=\"scale\">\n"
471
- " <xsl:choose>\n"
472
- " <xsl:when test=\"@scale\"><xsl:value-of select=\"@scale\"/></xsl:when>\n"
473
- " <xsl:otherwise>1</xsl:otherwise>\n"
474
- " </xsl:choose>\n"
475
- " </xsl:variable>\n"
476
- "\n"
477
- " <xsl:variable name=\"scalex\">\n"
478
- " <xsl:choose>\n"
479
- " <xsl:when test=\"@scalex\"><xsl:value-of select=\"@scalex\"/></xsl:when>\n"
480
- " <xsl:when test=\"@scale\"><xsl:value-of select=\"@scale\"/></xsl:when>\n"
481
- " <xsl:otherwise>1</xsl:otherwise>\n"
482
- " </xsl:choose>\n"
483
- " </xsl:variable>\n"
484
- " <xsl:variable name=\"scaley\">\n"
485
- " <xsl:choose>\n"
486
- " <xsl:when test=\"@scaley\"><xsl:value-of select=\"@scaley\"/></xsl:when>\n"
487
- " <xsl:when test=\"@scale\"><xsl:value-of select=\"@scale\"/></xsl:when>\n"
488
- " <xsl:otherwise>1</xsl:otherwise>\n"
489
- " </xsl:choose>\n"
490
- " </xsl:variable>\n"
491
- " <xsl:variable name=\"skewx\">\n"
492
- " <xsl:choose>\n"
493
- " <xsl:when test=\"@skewx\"><xsl:value-of select=\"@skewx\"/></xsl:when>\n"
494
- " <xsl:otherwise>0</xsl:otherwise>\n"
495
- " </xsl:choose>\n"
496
- " </xsl:variable>\n"
497
- " <xsl:variable name=\"skewy\">\n"
498
- " <xsl:choose>\n"
499
- " <xsl:when test=\"@skewy\"><xsl:value-of select=\"@skewy\"/></xsl:when>\n"
500
- " <xsl:otherwise>0</xsl:otherwise>\n"
501
- " </xsl:choose>\n"
502
- " </xsl:variable>\n"
503
- " \n"
504
- " <xsl:variable name=\"depth\">\n"
505
- " <xsl:value-of select=\"preceding-sibling::place[@id=$myid]/@depth\"/>\n"
506
- " </xsl:variable>\n"
507
- " \n"
508
- " <PlaceObject2 replace=\"1\" depth=\"{$depth}\" objectID=\"{$id}\">\n"
509
- " <transform>\n"
510
- " <Transform transX=\"{$x}\" transY=\"{$y}\" scaleX=\"{$scalex}\" scaleY=\"{$scaley}\" skewX=\"{$skewx}\" skewY=\"{$skewy}\"/>\n"
511
- " </transform>\n"
512
- " </PlaceObject2>\n"
513
- "</xsl:template>\n"
514
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"textfield\">\n"
515
- " <xsl:variable name=\"id\">\n"
516
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
517
- " </xsl:variable>\n"
518
- " <xsl:variable name=\"x\">\n"
519
- " <xsl:choose>\n"
520
- " <xsl:when test=\"@x\"><xsl:value-of select=\"@x * 20\"/></xsl:when>\n"
521
- " <xsl:otherwise>0</xsl:otherwise>\n"
522
- " </xsl:choose>\n"
523
- " </xsl:variable>\n"
524
- " <xsl:variable name=\"y\">\n"
525
- " <xsl:choose>\n"
526
- " <xsl:when test=\"@y\"><xsl:value-of select=\"@y * 20\"/></xsl:when>\n"
527
- " <xsl:otherwise>0</xsl:otherwise>\n"
528
- " </xsl:choose>\n"
529
- " </xsl:variable>\n"
530
- " <xsl:variable name=\"width\">\n"
531
- " <xsl:choose>\n"
532
- " <xsl:when test=\"@width\"><xsl:value-of select=\"@width * 20\"/></xsl:when>\n"
533
- " <xsl:otherwise>100</xsl:otherwise>\n"
534
- " </xsl:choose>\n"
535
- " </xsl:variable>\n"
536
- " <xsl:variable name=\"height\">\n"
537
- " <xsl:choose>\n"
538
- " <xsl:when test=\"@height\"><xsl:value-of select=\"@height * 20\"/></xsl:when>\n"
539
- " <xsl:otherwise>100</xsl:otherwise>\n"
540
- " </xsl:choose>\n"
541
- " </xsl:variable>\n"
542
- " <xsl:variable name=\"size\">\n"
543
- " <xsl:choose>\n"
544
- " <xsl:when test=\"@size\"><xsl:value-of select=\"@size * 20\"/></xsl:when>\n"
545
- " <xsl:otherwise>240</xsl:otherwise>\n"
546
- " </xsl:choose>\n"
547
- " </xsl:variable>\n"
548
- " <xsl:variable name=\"leading\">\n"
549
- " <xsl:choose>\n"
550
- " <xsl:when test=\"@leading\"><xsl:value-of select=\"@leading * 20\"/></xsl:when>\n"
551
- " <xsl:otherwise>20</xsl:otherwise>\n"
552
- " </xsl:choose>\n"
553
- " </xsl:variable>\n"
554
- "\n"
555
- " <DefineEditText objectID=\"{$id}\" fontRef=\"{swft:map-id(@font)}\" fontHeight=\"{$size}\" readOnly=\"0\" autoSize=\"0\" hasLayout=\"0\" notSelectable=\"0\" hasBorder=\"0\" isHTML=\"0\" useOutlines=\"{@useOutlines}\" align=\"0\" leftMargin=\"0\" rightMargin=\"0\" indent=\"0\" leading=\"{$leading}\" wordWrap=\"1\" multiLine=\"1\" password=\"0\" variableName=\"{@name}\">\n"
556
- " <xsl:for-each select=\"@wordWrap|@multiLine|@password|@readOnly|@autoSize|@notSelectable|@hasBorder|@isHTML|@useOutlines|@align|@leftMargin|@rightMargin|@indent\">\n"
557
- " <xsl:copy-of select=\".\"/>\n"
558
- " </xsl:for-each>\n"
559
- " <xsl:choose>\n"
560
- " <xsl:when test=\"*|text()\">\n"
561
- " <xsl:attribute name=\"initialText\">\n"
562
- " <xsl:apply-templates select=\"*|text()\" mode=\"htmltext\"/>\n"
563
- " </xsl:attribute>\n"
564
- " </xsl:when>\n"
565
- " <xsl:when test=\"@text\">\n"
566
- " <xsl:attribute name=\"initialText\">\n"
567
- " <xsl:value-of select=\"@text\"/>\n"
568
- " </xsl:attribute>\n"
569
- " </xsl:when>\n"
570
- " </xsl:choose>\n"
571
- " <size>\n"
572
- " <Rectangle left=\"{$x}\" right=\"{$x + $width}\" top=\"{$y}\" bottom=\"{$y + $height}\"/>\n"
573
- " </size>\n"
574
- " <color>\n"
575
- " <xsl:call-template name=\"color-rgba\"/>\n"
576
- " </color>\n"
577
- " </DefineEditText>\n"
578
- " \n"
579
- " <xsl:if test=\"$movie-version &gt; 7\">\n"
580
- " <xsl:apply-templates select=\"text-settings\">\n"
581
- " <xsl:with-param name=\"id\" select=\"$id\"/>\n"
582
- " </xsl:apply-templates>\n"
583
- " </xsl:if>\n"
584
- "\n"
585
- "</xsl:template>\n"
586
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"text-settings\">\n"
587
- " <xsl:param name=\"id\" select=\"0\"/>\n"
588
- " \n"
589
- " <CSMTextSettings objectId=\"{$id}\">\n"
590
- " <xsl:attribute name=\"useFlashType\">\n"
591
- " <xsl:choose>\n"
592
- " <xsl:when test=\"@render = 'advanced'\">1</xsl:when>\n"
593
- " <xsl:otherwise>0</xsl:otherwise>\n"
594
- " </xsl:choose>\n"
595
- " </xsl:attribute>\n"
596
- " <xsl:attribute name=\"gridFit\">\n"
597
- " <xsl:choose>\n"
598
- " <xsl:when test=\"@grid = 'sub-pixel'\">2</xsl:when>\n"
599
- " <xsl:when test=\"@grid = 'pixel'\">1</xsl:when>\n"
600
- " <xsl:otherwise>0</xsl:otherwise>\n"
601
- " </xsl:choose>\n"
602
- " </xsl:attribute>\n"
603
- " <xsl:attribute name=\"thickness\">\n"
604
- " <xsl:choose>\n"
605
- " <xsl:when test=\"@thickness\">\n"
606
- " <xsl:choose>\n"
607
- " <xsl:when test=\"@thickness &lt; -200\">\n"
608
- " <xsl:value-of select=\"-200\"/>\n"
609
- " </xsl:when>\n"
610
- " <xsl:when test=\"@thickness &gt; 200\">\n"
611
- " <xsl:value-of select=\"200\"/>\n"
612
- " </xsl:when>\n"
613
- " <xsl:otherwise>\n"
614
- " <xsl:value-of select=\"@thickness\"/>\n"
615
- " </xsl:otherwise>\n"
616
- " </xsl:choose>\n"
617
- " </xsl:when>\n"
618
- " <xsl:otherwise>0</xsl:otherwise>\n"
619
- " </xsl:choose>\n"
620
- " </xsl:attribute>\n"
621
- " <xsl:attribute name=\"sharpness\">\n"
622
- " <xsl:choose>\n"
623
- " <xsl:when test=\"@sharpness\">\n"
624
- " <xsl:choose>\n"
625
- " <xsl:when test=\"@sharpness &lt; -400\">\n"
626
- " <xsl:value-of select=\"-400\"/>\n"
627
- " </xsl:when>\n"
628
- " <xsl:when test=\"@sharpness &gt; 400\">\n"
629
- " <xsl:value-of select=\"400\"/>\n"
630
- " </xsl:when>\n"
631
- " <xsl:otherwise>\n"
632
- " <xsl:value-of select=\"@sharpness\"/>\n"
633
- " </xsl:otherwise>\n"
634
- " </xsl:choose>\n"
635
- " </xsl:when>\n"
636
- " <xsl:otherwise>0</xsl:otherwise>\n"
637
- " </xsl:choose>\n"
638
- " </xsl:attribute>\n"
639
- " </CSMTextSettings>\n"
640
- "</xsl:template>\n"
641
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"video\">\n"
642
- " <xsl:variable name=\"id\">\n"
643
- " <xsl:choose>\n"
644
- " <xsl:when test=\"@id\">\n"
645
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
646
- " </xsl:when>\n"
647
- " <xsl:otherwise>\n"
648
- " <xsl:value-of select=\"swft:next-id()\"/>\n"
649
- " </xsl:otherwise>\n"
650
- " </xsl:choose>\n"
651
- " </xsl:variable>\n"
652
- " <xsl:variable name=\"frames\">\n"
653
- " <xsl:choose>\n"
654
- " <xsl:when test=\"@frames\"><xsl:value-of select=\"@frames\"/></xsl:when>\n"
655
- " <xsl:otherwise>0</xsl:otherwise>\n"
656
- " </xsl:choose>\n"
657
- " </xsl:variable>\n"
658
- " <xsl:variable name=\"width\">\n"
659
- " <xsl:choose>\n"
660
- " <xsl:when test=\"@width\"><xsl:value-of select=\"@width\"/></xsl:when>\n"
661
- " <xsl:otherwise>160</xsl:otherwise>\n"
662
- " </xsl:choose>\n"
663
- " </xsl:variable>\n"
664
- " <xsl:variable name=\"height\">\n"
665
- " <xsl:choose>\n"
666
- " <xsl:when test=\"@height\"><xsl:value-of select=\"@height\"/></xsl:when>\n"
667
- " <xsl:otherwise>120</xsl:otherwise>\n"
668
- " </xsl:choose>\n"
669
- " </xsl:variable>\n"
670
- " <xsl:variable name=\"deblocking\">\n"
671
- " <xsl:choose>\n"
672
- " <xsl:when test=\"@deblocking\"><xsl:value-of select=\"@deblocking\"/></xsl:when>\n"
673
- " <xsl:otherwise>0</xsl:otherwise>\n"
674
- " </xsl:choose>\n"
675
- " </xsl:variable>\n"
676
- " <xsl:variable name=\"smoothing\">\n"
677
- " <xsl:choose>\n"
678
- " <xsl:when test=\"@smoothing\">1</xsl:when>\n"
679
- " <xsl:otherwise>0</xsl:otherwise>\n"
680
- " </xsl:choose>\n"
681
- " </xsl:variable>\n"
682
- " <xsl:variable name=\"codec\">\n"
683
- " <xsl:choose>\n"
684
- " <xsl:when test=\"@codec\"><xsl:value-of select=\"@codec\"/></xsl:when>\n"
685
- " <xsl:otherwise>0</xsl:otherwise>\n"
686
- " </xsl:choose>\n"
687
- " </xsl:variable>\n"
688
- " <DefineVideoStream objectID=\"{$id}\" frames=\"{$frames}\" width=\"{$width}\" height=\"{$height}\" deblocking=\"{$deblocking}\" smoothing=\"{$smoothing}\" codec=\"{$codec}\"/>\n"
689
- "</xsl:template>\n"
690
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"frame\">\n"
691
- " <xsl:apply-templates/>\n"
692
- " <xsl:if test=\"@name\">\n"
693
- " <FrameLabel label=\"{@name}\"/>\n"
694
- " </xsl:if>\n"
695
- " <ShowFrame/>\n"
696
- "</xsl:template>\n"
697
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"clip\" priority=\"-1\">\n"
698
- " <xsl:variable name=\"id\">\n"
699
- " <xsl:choose>\n"
700
- " <xsl:when test=\"@id\">\n"
701
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
702
- " </xsl:when>\n"
703
- " <xsl:otherwise>\n"
704
- " <xsl:value-of select=\"swft:next-id()\"/>\n"
705
- " </xsl:otherwise>\n"
706
- " </xsl:choose>\n"
707
- " </xsl:variable>\n"
708
- " <xsl:variable name=\"frames\">\n"
709
- " <xsl:choose>\n"
710
- " <xsl:when test=\"count(frame)\">\n"
711
- " <xsl:value-of select=\"count(frame)\"/>\n"
712
- " </xsl:when>\n"
713
- " <xsl:otherwise>1</xsl:otherwise>\n"
714
- " </xsl:choose>\n"
715
- " </xsl:variable>\n"
716
- " <DefineSprite objectID=\"{$id}\" frames=\"{$frames}\">\n"
717
- " <tags>\n"
718
- " <xsl:apply-templates/>\n"
719
- " <End/>\n"
720
- " </tags>\n"
721
- " </DefineSprite> \n"
722
- " <xsl:if test=\"ancestor::library\">\n"
723
- " <xsl:apply-templates select=\"*|@*\" mode=\"export\">\n"
724
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
725
- " </xsl:apply-templates>\n"
726
- " </xsl:if>\n"
727
- " <xsl:if test=\"@class\">\n"
728
- " <xsl:call-template name=\"register-class\">\n"
729
- " <xsl:with-param name=\"class\" select=\"@class\"/>\n"
730
- " <xsl:with-param name=\"linkage-id\" select=\"@id\"/>\n"
731
- " </xsl:call-template>\n"
732
- " </xsl:if>\n"
733
- "</xsl:template>\n"
734
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"scale-grid\">\n"
735
- " <xsl:variable name=\"id\">\n"
736
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
737
- " </xsl:variable>\n"
738
- " <xsl:if test=\"number(/movie/@version) &gt;= 8\"> \n"
739
- " <DefineScalingGrid objectID=\"{$id}\"> <!-- FIXME ID not Id? does it matter? -->\n"
740
- " <splitter> \n"
741
- " <Rectangle left=\"{@left * 20}\" right=\"{@right * 20}\" top=\"{@top * 20}\" bottom=\"{@bottom * 20}\"/> \n"
742
- " </splitter> \n"
743
- " </DefineScalingGrid> \n"
744
- " </xsl:if> \n"
745
- "</xsl:template>\n"
746
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"stop\">\n"
747
- " <DoAction>\n"
748
- " <actions>\n"
749
- " <Stop/>\n"
750
- " <EndAction/>\n"
751
- " </actions>\n"
752
- " </DoAction>\n"
753
- "</xsl:template>\n"
754
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" match=\"call\">\n"
755
- " <xsl:variable name=\"object\">\n"
756
- " <xsl:choose>\n"
757
- " <xsl:when test=\"@object\"><xsl:value-of select=\"@object\"/></xsl:when>\n"
758
- " <xsl:otherwise>Main</xsl:otherwise>\n"
759
- " </xsl:choose>\n"
760
- " </xsl:variable>\n"
761
- " <xsl:variable name=\"method\">\n"
762
- " <xsl:choose>\n"
763
- " <xsl:when test=\"@method\"><xsl:value-of select=\"@method\"/></xsl:when>\n"
764
- " <xsl:otherwise>main</xsl:otherwise>\n"
765
- " </xsl:choose>\n"
766
- " </xsl:variable>\n"
767
- " <xsl:variable name=\"spriteid\">\n"
768
- " <xsl:value-of select=\"swft:next-id()\"/>\n"
769
- " </xsl:variable>\n"
770
- " <DefineSprite objectID=\"{$spriteid}\" frames=\"1\">\n"
771
- " <tags>\n"
772
- " <End/>\n"
773
- " </tags>\n"
774
- " </DefineSprite>\n"
775
- " <Export>\n"
776
- " <symbols>\n"
777
- " <Symbol objectID=\"{$spriteid}\" name=\"__Packages.swfmill.call.{$object}.{$method}\"/>\n"
778
- " </symbols>\n"
779
- " </Export>\n"
780
- " <DoInitAction sprite=\"{$spriteid}\">\n"
781
- " <actions>\n"
782
- " <PushData>\n"
783
- " <items>\n"
784
- " <StackString value=\"{@object}\"/>\n"
785
- " </items>\n"
786
- " </PushData>\n"
787
- " <GetVariable/>\n"
788
- " <PushData>\n"
789
- " <items>\n"
790
- " <StackString value=\"{@method}\"/>\n"
791
- " </items>\n"
792
- " </PushData>\n"
793
- " <CallMethod/>\n"
794
- " <Pop/>\n"
795
- " <EndAction/>\n"
796
- " </actions>\n"
797
- " </DoInitAction>\n"
798
- "</xsl:template>\n"
799
- " \n"
800
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"clip[@import]|sound[@import]\">\n"
801
- " <xsl:variable name=\"id\">\n"
802
- " <xsl:choose>\n"
803
- " <xsl:when test=\"@id\">\n"
804
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
805
- " </xsl:when>\n"
806
- " <xsl:otherwise>\n"
807
- " <xsl:value-of select=\"swft:next-id()\"/>\n"
808
- " </xsl:otherwise>\n"
809
- " </xsl:choose>\n"
810
- " </xsl:variable>\n"
811
- " <xsl:variable name=\"file\">\n"
812
- " <xsl:value-of select=\"@import\"/>\n"
813
- " </xsl:variable>\n"
814
- " <xsl:variable name=\"mask\">\n"
815
- " <xsl:value-of select=\"@mask\"/>\n"
816
- " </xsl:variable>\n"
817
- " <xsl:variable name=\"ext\">\n"
818
- " <xsl:value-of select=\"translate(substring(@import,string-length(@import)-2),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')\"/>\n"
819
- " </xsl:variable>\n"
820
- " <xsl:choose>\n"
821
- " <xsl:when test=\"@mask\">\n"
822
- " <xsl:apply-templates select=\"swft:import-jpega($file,$mask)\" mode=\"makeswf\">\n"
823
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
824
- " </xsl:apply-templates>\n"
825
- " </xsl:when>\n"
826
- " <xsl:when test=\"$ext = 'jpg' or $ext = 'peg'\">\n"
827
- " <xsl:apply-templates select=\"swft:import-jpeg($file)\" mode=\"makeswf\">\n"
828
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
829
- " </xsl:apply-templates>\n"
830
- " </xsl:when>\n"
831
- " <xsl:when test=\"$ext = 'png'\">\n"
832
- " <xsl:apply-templates select=\"swft:import-png($file)\" mode=\"makeswf\">\n"
833
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
834
- " </xsl:apply-templates>\n"
835
- " </xsl:when>\n"
836
- " <xsl:when test=\"$ext = 'swf'\">\n"
837
- " <xsl:apply-templates select=\"swft:document($file)\" mode=\"makeswf\">\n"
838
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
839
- " </xsl:apply-templates>\n"
840
- " </xsl:when>\n"
841
- " <!-- this is stupid, shouldnt be used.\n"
842
- " <xsl:when test=\"$ext = 'ttf'\">\n"
843
- " <xsl:apply-templates select=\"swft:import-ttf($file,@glyphs,'hello')\" mode=\"makeswf\">\n"
844
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
845
- " </xsl:apply-templates>\n"
846
- " </xsl:when>\n"
847
- " -->\n"
848
- " <xsl:when test=\"$ext = 'svg'\">\n"
849
- " <swft:push-map/>\n"
850
- " <xsl:apply-templates select=\"document($file)\" mode=\"svg\">\n"
851
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
852
- " <xsl:with-param name=\"export\">\n"
853
- " <xsl:choose>\n"
854
- " <xsl:when test=\"@export\"><xsl:value-of select=\"@export\"/></xsl:when>\n"
855
- " <xsl:otherwise>all</xsl:otherwise>\n"
856
- " </xsl:choose>\n"
857
- " </xsl:with-param>\n"
858
- " </xsl:apply-templates>\n"
859
- " <swft:pop-map/>\n"
860
- " </xsl:when>\n"
861
- " <xsl:when test=\"$ext = 'mp3'\">\n"
862
- " <xsl:apply-templates select=\"swft:import-mp3($file)\" mode=\"makeswf\">\n"
863
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
864
- " </xsl:apply-templates>\n"
865
- " </xsl:when>\n"
866
- " <xsl:when test=\"$ext = 'wav'\">\n"
867
- " <xsl:apply-templates select=\"swft:import-wav($file)\" mode=\"makeswf\">\n"
868
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
869
- " </xsl:apply-templates>\n"
870
- " </xsl:when>\n"
871
- " <xsl:otherwise>\n"
872
- " <xsl:message>WARNING: Cannot import <xsl:value-of select=\"$file\"/> (unknown extension), skipping.</xsl:message>\n"
873
- " </xsl:otherwise>\n"
874
- " </xsl:choose>\n"
875
- " <xsl:if test=\"ancestor::library\">\n"
876
- " <xsl:apply-templates select=\"*|@*\" mode=\"export\">\n"
877
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
878
- " </xsl:apply-templates>\n"
879
- " </xsl:if>\n"
880
- " <xsl:if test=\"@class\">\n"
881
- " <xsl:call-template name=\"register-class\">\n"
882
- " <xsl:with-param name=\"class\" select=\"@class\"/>\n"
883
- " <xsl:with-param name=\"linkage-id\" select=\"@id\"/>\n"
884
- " </xsl:call-template>\n"
885
- " </xsl:if>\n"
886
- "</xsl:template>\n"
887
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"bitmap[@import]\">\n"
888
- " <xsl:variable name=\"id\">\n"
889
- " <xsl:choose>\n"
890
- " <xsl:when test=\"@id\">\n"
891
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
892
- " </xsl:when>\n"
893
- " <xsl:otherwise>\n"
894
- " <xsl:value-of select=\"swft:next-id()\"/>\n"
895
- " </xsl:otherwise>\n"
896
- " </xsl:choose>\n"
897
- " </xsl:variable>\n"
898
- " <xsl:variable name=\"file\">\n"
899
- " <xsl:value-of select=\"@import\"/>\n"
900
- " </xsl:variable>\n"
901
- " <xsl:variable name=\"mask\">\n"
902
- " <xsl:value-of select=\"@mask\"/>\n"
903
- " </xsl:variable>\n"
904
- " <xsl:variable name=\"ext\">\n"
905
- " <xsl:value-of select=\"translate(substring(@import,string-length(@import)-2),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')\"/>\n"
906
- " </xsl:variable>\n"
907
- " <xsl:choose>\n"
908
- " <xsl:when test=\"@mask\">\n"
909
- " <xsl:apply-templates select=\"swft:import-jpega($file,$mask)\" mode=\"bitmap\">\n"
910
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
911
- " </xsl:apply-templates>\n"
912
- " </xsl:when>\n"
913
- " <xsl:when test=\"$ext = 'jpg' or $ext = 'peg'\">\n"
914
- " <xsl:apply-templates select=\"swft:import-jpeg($file)\" mode=\"bitmap\">\n"
915
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
916
- " </xsl:apply-templates>\n"
917
- " </xsl:when>\n"
918
- " <xsl:when test=\"$ext = 'png'\">\n"
919
- " <xsl:apply-templates select=\"swft:import-png($file)\" mode=\"bitmap\">\n"
920
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
921
- " </xsl:apply-templates>\n"
922
- " </xsl:when>\n"
923
- " <xsl:otherwise>\n"
924
- " <xsl:message>WARNING: Cannot import <xsl:value-of select=\"$file\"/> (unknown extension), skipping.</xsl:message>\n"
925
- " </xsl:otherwise>\n"
926
- " </xsl:choose>\n"
927
- " <xsl:if test=\"ancestor::library\">\n"
928
- " <xsl:apply-templates select=\"*|@*\" mode=\"export\">\n"
929
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
930
- " </xsl:apply-templates>\n"
931
- " </xsl:if>\n"
932
- "</xsl:template>\n"
933
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"font[@import]\">\n"
934
- " <xsl:variable name=\"id\">\n"
935
- " <xsl:choose>\n"
936
- " <xsl:when test=\"@id\">\n"
937
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
938
- " </xsl:when>\n"
939
- " <xsl:otherwise>\n"
940
- " <xsl:value-of select=\"swft:next-id()\"/>\n"
941
- " </xsl:otherwise>\n"
942
- " </xsl:choose>\n"
943
- " </xsl:variable>\n"
944
- " <xsl:variable name=\"file\">\n"
945
- " <xsl:value-of select=\"@import\"/>\n"
946
- " </xsl:variable>\n"
947
- " <xsl:variable name=\"offset\">\n"
948
- " <xsl:choose>\n"
949
- " <xsl:when test=\"@symbol='true'\">\n"
950
- " <xsl:value-of select=\"-61440\"/>\n"
951
- " </xsl:when>\n"
952
- " <xsl:otherwise>\n"
953
- " <xsl:value-of select=\"0\"/>\n"
954
- " </xsl:otherwise>\n"
955
- " </xsl:choose>\n"
956
- " </xsl:variable>\n"
957
- "\n"
958
- " <xsl:apply-templates select=\"swft:import-ttf($file,$movie-version,@glyphs,@name,$offset)\" mode=\"makeswf\">\n"
959
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
960
- " </xsl:apply-templates>\n"
961
- "\n"
962
- " <xsl:if test=\"ancestor::library\">\n"
963
- " <xsl:apply-templates select=\"*|@*\" mode=\"export\">\n"
964
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
965
- " </xsl:apply-templates>\n"
966
- " </xsl:if>\n"
967
- "</xsl:template>\n"
968
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"binary[@import]\">\n"
969
- " <xsl:variable name=\"id\">\n"
970
- " <xsl:choose>\n"
971
- " <xsl:when test=\"@id\">\n"
972
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
973
- " </xsl:when>\n"
974
- " <xsl:otherwise>\n"
975
- " <xsl:value-of select=\"swft:next-id()\"/>\n"
976
- " </xsl:otherwise>\n"
977
- " </xsl:choose>\n"
978
- " </xsl:variable>\n"
979
- " <xsl:variable name=\"file\">\n"
980
- " <xsl:value-of select=\"@import\"/>\n"
981
- " </xsl:variable>\n"
982
- " \n"
983
- " <xsl:apply-templates select=\"swft:import-binary($file)\" mode=\"makeswf\">\n"
984
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
985
- " </xsl:apply-templates>\n"
986
- "\n"
987
- " <xsl:if test=\"ancestor::library\">\n"
988
- " <xsl:apply-templates select=\"*|@*\" mode=\"export\">\n"
989
- " <xsl:with-param name=\"id\"><xsl:value-of select=\"$id\"/></xsl:with-param>\n"
990
- " </xsl:apply-templates>\n"
991
- " </xsl:if>\n"
992
- "</xsl:template>\n"
993
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"font\" priority=\"-1\">\n"
994
- " <xsl:variable name=\"id\">\n"
995
- " <xsl:choose>\n"
996
- " <xsl:when test=\"@id\">\n"
997
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
998
- " </xsl:when>\n"
999
- " <xsl:otherwise>\n"
1000
- " <xsl:value-of select=\"swft:next-id()\"/>\n"
1001
- " </xsl:otherwise>\n"
1002
- " </xsl:choose>\n"
1003
- " </xsl:variable>\n"
1004
- " <DefineFont2 objectID=\"{$id}\" isShiftJIS=\"0\" isUnicode=\"0\" isANSII=\"0\" wideGlyphOffsets=\"0\" italic=\"0\" bold=\"0\" language=\"1\" name=\"{@name}\">\n"
1005
- " </DefineFont2>\n"
1006
- "</xsl:template>\n"
1007
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"jpeg\" mode=\"makeswf\">\n"
1008
- " <xsl:param name=\"id\"/>\n"
1009
- " <xsl:variable name=\"bitmapID\"><xsl:value-of select=\"swft:next-id()\"/></xsl:variable> \n"
1010
- " <xsl:variable name=\"shapeID\"><xsl:value-of select=\"swft:next-id()\"/></xsl:variable> \n"
1011
- " <DefineBitsJPEG2 objectID=\"{$bitmapID}\">\n"
1012
- " <data>\n"
1013
- " <xsl:copy-of select=\"data\"/>\n"
1014
- " </data>\n"
1015
- " </DefineBitsJPEG2>\n"
1016
- " <DefineShape objectID=\"{$shapeID}\">\n"
1017
- " <bounds>\n"
1018
- " <Rectangle left=\"0\" right=\"{@width}\" top=\"0\" bottom=\"{@height}\"/>\n"
1019
- " </bounds>\n"
1020
- " <styles>\n"
1021
- " <StyleList>\n"
1022
- " <fillStyles>\n"
1023
- " <ClippedBitmap objectID=\"{$bitmapID}\">\n"
1024
- " <matrix>\n"
1025
- " <Transform transX=\"0\" transY=\"0\"/>\n"
1026
- " </matrix>\n"
1027
- " </ClippedBitmap>\n"
1028
- " </fillStyles>\n"
1029
- " <lineStyles/>\n"
1030
- " </StyleList>\n"
1031
- " </styles>\n"
1032
- " <shapes>\n"
1033
- " <Shape>\n"
1034
- " <edges>\n"
1035
- " <ShapeSetup x=\"{@width}\" y=\"{@height}\" fillStyle1=\"1\"/>\n"
1036
- " <LineTo x=\"-{@width}\" y=\"0\"/>\n"
1037
- " <LineTo x=\"0\" y=\"-{@height}\"/>\n"
1038
- " <LineTo x=\"{@width}\" y=\"0\"/>\n"
1039
- " <LineTo x=\"0\" y=\"{@height}\"/>\n"
1040
- " <ShapeSetup/>\n"
1041
- " </edges>\n"
1042
- " </Shape>\n"
1043
- " </shapes>\n"
1044
- " </DefineShape>\n"
1045
- " <DefineSprite objectID=\"{$id}\" frames=\"1\">\n"
1046
- " <tags>\n"
1047
- " <PlaceObject2 replace=\"0\" depth=\"1\" objectID=\"{$shapeID}\">\n"
1048
- " <transform>\n"
1049
- " <Transform transX=\"0\" transY=\"0\" scaleX=\"20\" scaleY=\"20\"/>\n"
1050
- " </transform>\n"
1051
- " </PlaceObject2>\n"
1052
- " <ShowFrame/>\n"
1053
- " <End/>\n"
1054
- " </tags>\n"
1055
- " </DefineSprite>\n"
1056
- "</xsl:template>\n"
1057
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"jpega\" mode=\"makeswf\">\n"
1058
- " <xsl:param name=\"id\"/>\n"
1059
- " <xsl:variable name=\"bitmapID\"><xsl:value-of select=\"swft:next-id()\"/></xsl:variable> \n"
1060
- " <xsl:variable name=\"shapeID\"><xsl:value-of select=\"swft:next-id()\"/></xsl:variable> \n"
1061
- " <DefineBitsJPEG3 objectID=\"{$bitmapID}\" offset_to_alpha=\"{@offset_to_alpha}\">\n"
1062
- " <data>\n"
1063
- " <xsl:copy-of select=\"data\"/>\n"
1064
- " </data>\n"
1065
- " </DefineBitsJPEG3>\n"
1066
- " <DefineShape objectID=\"{$shapeID}\">\n"
1067
- " <bounds>\n"
1068
- " <Rectangle left=\"0\" right=\"{@width}\" top=\"0\" bottom=\"{@height}\"/>\n"
1069
- " </bounds>\n"
1070
- " <styles>\n"
1071
- " <StyleList>\n"
1072
- " <fillStyles>\n"
1073
- " <ClippedBitmap objectID=\"{$bitmapID}\">\n"
1074
- " <matrix>\n"
1075
- " <Transform transX=\"0\" transY=\"0\"/>\n"
1076
- " </matrix>\n"
1077
- " </ClippedBitmap>\n"
1078
- " </fillStyles>\n"
1079
- " <lineStyles/>\n"
1080
- " </StyleList>\n"
1081
- " </styles>\n"
1082
- " <shapes>\n"
1083
- " <Shape>\n"
1084
- " <edges>\n"
1085
- " <ShapeSetup x=\"{@width}\" y=\"{@height}\" fillStyle1=\"1\"/>\n"
1086
- " <LineTo x=\"-{@width}\" y=\"0\"/>\n"
1087
- " <LineTo x=\"0\" y=\"-{@height}\"/>\n"
1088
- " <LineTo x=\"{@width}\" y=\"0\"/>\n"
1089
- " <LineTo x=\"0\" y=\"{@height}\"/>\n"
1090
- " <ShapeSetup/>\n"
1091
- " </edges>\n"
1092
- " </Shape>\n"
1093
- " </shapes>\n"
1094
- " </DefineShape>\n"
1095
- " <DefineSprite objectID=\"{$id}\" frames=\"1\">\n"
1096
- " <tags>\n"
1097
- " <PlaceObject2 replace=\"0\" depth=\"1\" objectID=\"{$shapeID}\">\n"
1098
- " <transform>\n"
1099
- " <Transform transX=\"0\" transY=\"0\" scaleX=\"20\" scaleY=\"20\"/>\n"
1100
- " </transform>\n"
1101
- " </PlaceObject2>\n"
1102
- " <ShowFrame/>\n"
1103
- " <End/>\n"
1104
- " </tags>\n"
1105
- " </DefineSprite>\n"
1106
- "</xsl:template>\n"
1107
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"png\" mode=\"makeswf\">\n"
1108
- " <xsl:param name=\"id\"/>\n"
1109
- " <xsl:variable name=\"bitmapID\"><xsl:value-of select=\"swft:next-id()\"/></xsl:variable> \n"
1110
- " <xsl:variable name=\"shapeID\"><xsl:value-of select=\"swft:next-id()\"/></xsl:variable> \n"
1111
- " <DefineBitsLossless2 format=\"{@format}\" width=\"{@width}\" height=\"{@height}\" n_colormap=\"{@n_colormap}\" objectID=\"{$bitmapID}\">\n"
1112
- " <data>\n"
1113
- " <xsl:copy-of select=\"data\"/>\n"
1114
- " </data>\n"
1115
- " </DefineBitsLossless2>\n"
1116
- " <DefineShape objectID=\"{$shapeID}\">\n"
1117
- " <bounds>\n"
1118
- " <Rectangle left=\"0\" right=\"{@width}\" top=\"0\" bottom=\"{@height}\"/>\n"
1119
- " </bounds>\n"
1120
- " <styles>\n"
1121
- " <StyleList>\n"
1122
- " <fillStyles>\n"
1123
- " <ClippedBitmap objectID=\"{$bitmapID}\">\n"
1124
- " <matrix>\n"
1125
- " <Transform transX=\"0\" transY=\"0\"/>\n"
1126
- " </matrix>\n"
1127
- " </ClippedBitmap>\n"
1128
- " </fillStyles>\n"
1129
- " <lineStyles/>\n"
1130
- " </StyleList>\n"
1131
- " </styles>\n"
1132
- " <shapes>\n"
1133
- " <Shape>\n"
1134
- " <edges>\n"
1135
- " <ShapeSetup x=\"{@width}\" y=\"{@height}\" fillStyle1=\"1\"/>\n"
1136
- " <LineTo x=\"-{@width}\" y=\"0\"/>\n"
1137
- " <LineTo x=\"0\" y=\"-{@height}\"/>\n"
1138
- " <LineTo x=\"{@width}\" y=\"0\"/>\n"
1139
- " <LineTo x=\"0\" y=\"{@height}\"/>\n"
1140
- " <ShapeSetup/>\n"
1141
- " </edges>\n"
1142
- " </Shape>\n"
1143
- " </shapes>\n"
1144
- " </DefineShape>\n"
1145
- " <DefineSprite objectID=\"{$id}\" frames=\"1\">\n"
1146
- " <tags>\n"
1147
- " <PlaceObject2 replace=\"0\" depth=\"1\" objectID=\"{$shapeID}\">\n"
1148
- " <transform>\n"
1149
- " <Transform transX=\"0\" transY=\"0\" scaleX=\"20\" scaleY=\"20\"/>\n"
1150
- " </transform>\n"
1151
- " </PlaceObject2>\n"
1152
- " <ShowFrame/>\n"
1153
- " <End/>\n"
1154
- " </tags>\n"
1155
- " </DefineSprite>\n"
1156
- "</xsl:template>\n"
1157
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"jpeg\" mode=\"bitmap\">\n"
1158
- " <xsl:param name=\"id\"/>\n"
1159
- " <DefineBitsJPEG2 objectID=\"{$id}\">\n"
1160
- " <data>\n"
1161
- " <xsl:copy-of select=\"data\"/>\n"
1162
- " </data>\n"
1163
- " </DefineBitsJPEG2>\n"
1164
- "</xsl:template>\n"
1165
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"jpega\" mode=\"bitmap\">\n"
1166
- " <xsl:param name=\"id\"/>\n"
1167
- " <DefineBitsJPEG3 objectID=\"{$id}\" offset_to_alpha=\"{@offset_to_alpha}\">\n"
1168
- " <data>\n"
1169
- " <xsl:copy-of select=\"data\"/>\n"
1170
- " </data>\n"
1171
- " </DefineBitsJPEG3>\n"
1172
- "</xsl:template>\n"
1173
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"png\" mode=\"bitmap\">\n"
1174
- " <xsl:param name=\"id\"/>\n"
1175
- " <DefineBitsLossless2 format=\"{@format}\" width=\"{@width}\" height=\"{@height}\" n_colormap=\"{@n_colormap}\" objectID=\"{$id}\">\n"
1176
- " <data>\n"
1177
- " <xsl:copy-of select=\"data\"/>\n"
1178
- " </data>\n"
1179
- " </DefineBitsLossless2>\n"
1180
- "</xsl:template>\n"
1181
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"swf\" mode=\"makeswf\">\n"
1182
- " <xsl:param name=\"id\"/>\n"
1183
- " <swft:push-map/>\n"
1184
- "\n"
1185
- " <xsl:apply-templates select=\"Header/tags/*\" mode=\"sprite-global\"/>\n"
1186
- " \n"
1187
- " <DefineSprite objectID=\"{$id}\" frames=\"{count(Header/tags/ShowFrame)}\">\n"
1188
- " <tags>\n"
1189
- " <xsl:apply-templates select=\"Header/tags/*\" mode=\"sprite-local\"/>\n"
1190
- " </tags>\n"
1191
- " </DefineSprite>\n"
1192
- " <swft:pop-map/>\n"
1193
- "</xsl:template>\n"
1194
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"binary\" mode=\"makeswf\">\n"
1195
- " <xsl:param name=\"id\"/>\n"
1196
- " <DefineBinaryData objectID=\"{$id}\">\n"
1197
- " <data>\n"
1198
- " <xsl:copy-of select=\"data\"/>\n"
1199
- " </data>\n"
1200
- " </DefineBinaryData>\n"
1201
- "</xsl:template>\n"
1202
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"@objectID|@fontRef|@sprite\" mode=\"idmap\">\n"
1203
- " <xsl:attribute name=\"{name()}\"><xsl:value-of select=\"swft:map-id(.)\"/></xsl:attribute>\n"
1204
- "</xsl:template>\n"
1205
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"text()\" mode=\"idmap\" priority=\"-1\">\n"
1206
- " <xsl:copy select=\".\"/>\n"
1207
- "</xsl:template>\n"
1208
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"@*\" mode=\"idmap\" priority=\"-1\">\n"
1209
- " <xsl:copy select=\".\"/>\n"
1210
- "</xsl:template>\n"
1211
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"*\" mode=\"idmap\" priority=\"-1\">\n"
1212
- " <xsl:copy select=\".\">\n"
1213
- " <xsl:apply-templates select=\"@*\" mode=\"idmap\"/>\n"
1214
- " <xsl:apply-templates mode=\"idmap\"/>\n"
1215
- " </xsl:copy>\n"
1216
- "</xsl:template>\n"
1217
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"SetBackgroundColor|FileAttributes\" mode=\"sprite-global\"/>\n"
1218
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"DoAction|End|FrameLabel|PlaceObject|PlaceObject2|RemoveObject|RemoveObject2|ShowFrame|SoundStreamBlock|SoundStreamHead|StartSound\" mode=\"sprite-global\"/>\n"
1219
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"*|@*|text()\" mode=\"sprite-global\" priority=\"-1\">\n"
1220
- " <xsl:apply-templates select=\".\" mode=\"idmap\"/>\n"
1221
- "</xsl:template>\n"
1222
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"DoAction|End|FrameLabel|PlaceObject|PlaceObject2|RemoveObject|RemoveObject2|ShowFrame|SoundStreamBlock|SoundStreamHead|StartSound\" mode=\"sprite-local\">\n"
1223
- " <xsl:apply-templates select=\".\" mode=\"idmap\"/>\n"
1224
- "</xsl:template>\n"
1225
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"*|@*|text()\" mode=\"sprite-local\" priority=\"-1\"/>\n"
1226
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"component\">\n"
1227
- " \n"
1228
- " <xsl:variable name=\"name\" select=\"@id\"/>\n"
1229
- " <xsl:variable name=\"component\" select=\"swft:document(@file)\"/>\n"
1230
- "\n"
1231
- " <swft:push-map/>\n"
1232
- " <xsl:apply-templates select=\"$component/swf/Header/tags/*\" mode=\"component\"/>\n"
1233
- " <xsl:variable name=\"id\" select=\"swft:map-id($component/swf/Header/tags/Export/symbols/Symbol[@name = $name]/@objectID)\"/>\n"
1234
- " <swft:pop-map/>\n"
1235
- "\n"
1236
- " <xsl:value-of select=\"swft:set-map($name,$id)\"/>\n"
1237
- " <xsl:message>New ID of \"<xsl:value-of select=\"$name\"/>\" component is: <xsl:value-of select=\"$id\"/></xsl:message>\n"
1238
- "\n"
1239
- "</xsl:template>\n"
1240
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"PlaceObject2|ShowFrame|End\" mode=\"component\"/>\n"
1241
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"*\" mode=\"component\" priority=\"-1\">\n"
1242
- " <xsl:apply-templates select=\".\" mode=\"idmap\"/>\n"
1243
- "</xsl:template>\n"
1244
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"import\">\n"
1245
- " <xsl:choose>\n"
1246
- " <xsl:when test=\"number(/movie/@version) &gt;= 8\">\n"
1247
- " <ImportAssets2 url=\"{@url}\" reserved1=\"1\" reserved2=\"0\">\n"
1248
- " <symbols>\n"
1249
- " <xsl:if test=\"@symbol\">\n"
1250
- " <Symbol objectID=\"{swft:map-id(@symbol)}\" name=\"{@symbol}\"/>\n"
1251
- " </xsl:if> \n"
1252
- " <xsl:if test=\"@file\">\n"
1253
- " <xsl:apply-templates select=\"swft:document(@file)/swf/Header/tags/Export/symbols/*\" mode=\"import\"/>\n"
1254
- " </xsl:if>\n"
1255
- " </symbols>\n"
1256
- " </ImportAssets2>\n"
1257
- " </xsl:when>\n"
1258
- " <xsl:otherwise>\n"
1259
- " <Import url=\"{@url}\">\n"
1260
- " <symbols>\n"
1261
- " <xsl:if test=\"@symbol\">\n"
1262
- " <Symbol objectID=\"{swft:map-id(@symbol)}\" name=\"{@symbol}\"/>\n"
1263
- " </xsl:if> \n"
1264
- " <xsl:if test=\"@file\">\n"
1265
- " <xsl:apply-templates select=\"swft:document(@file)/swf/Header/tags/Export/symbols/*\" mode=\"import\"/>\n"
1266
- " </xsl:if>\n"
1267
- " </symbols>\n"
1268
- " </Import>\n"
1269
- " </xsl:otherwise>\n"
1270
- " </xsl:choose>\n"
1271
- "</xsl:template>\n"
1272
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"Symbol\" mode=\"import\">\n"
1273
- " <Symbol objectID=\"{swft:map-id(@name)}\" name=\"{@name}\"/>\n"
1274
- "</xsl:template>\n"
1275
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"ttf\" mode=\"makeswf\">\n"
1276
- " <xsl:param name=\"id\"/>\n"
1277
- " <xsl:choose>\n"
1278
- " <xsl:when test=\"$movie-version &gt;= 8\">\n"
1279
- " <DefineFont3 objectID=\"{$id}\">\n"
1280
- " <xsl:copy-of select=\"DefineFont3/*|DefineFont3/@*[name() != 'objectID']\"/>\n"
1281
- " </DefineFont3>\n"
1282
- " </xsl:when>\n"
1283
- " <xsl:otherwise>\n"
1284
- " <DefineFont2 objectID=\"{$id}\">\n"
1285
- " <xsl:copy-of select=\"DefineFont2/*|DefineFont2/@*[name() != 'objectID']\"/>\n"
1286
- " </DefineFont2>\n"
1287
- " </xsl:otherwise>\n"
1288
- " </xsl:choose>\n"
1289
- "</xsl:template>\n"
1290
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"mp3\" mode=\"makeswf\">\n"
1291
- " <xsl:param name=\"id\"/>\n"
1292
- " <DefineSound objectID=\"{$id}\" format=\"{@format}\" rate=\"{@rate}\" is16bit=\"{@is16bit}\" stereo=\"{@stereo}\" samples=\"{@samples}\">\n"
1293
- " <data>\n"
1294
- " <xsl:copy-of select=\"data\"/>\n"
1295
- " </data>\n"
1296
- " </DefineSound>\n"
1297
- "</xsl:template>\n"
1298
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"wav\" mode=\"makeswf\">\n"
1299
- " <xsl:param name=\"id\"/>\n"
1300
- " <DefineSound objectID=\"{$id}\" format=\"{@format}\" rate=\"{@rate}\" is16bit=\"{@is16bit}\" stereo=\"{@stereo}\" samples=\"{@samples}\">\n"
1301
- " <data>\n"
1302
- " <xsl:copy-of select=\"data\"/>\n"
1303
- " </data>\n"
1304
- " </DefineSound>\n"
1305
- "</xsl:template>\n"
1306
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"include[@file]\">\n"
1307
- " <xsl:apply-templates select=\"document(@file)/movie/*\"/> \n"
1308
- "</xsl:template>\n"
1309
- " \n"
1310
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" name=\"transform\">\n"
1311
- " <transform>\n"
1312
- " <xsl:choose>\n"
1313
- " <!-- catch empty transform attributes. -->\n"
1314
- " <xsl:when test=\"not(@transform) or @transform=''\">\n"
1315
- " <Transform transX=\"0\" transY=\"0\"/>\n"
1316
- " </xsl:when>\n"
1317
- " <xsl:otherwise>\n"
1318
- " <xsl:copy-of select=\"swft:transform(@transform)\"/>\n"
1319
- " </xsl:otherwise>\n"
1320
- " </xsl:choose>\n"
1321
- " </transform>\n"
1322
- "</xsl:template>\n"
1323
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" name=\"placeObject\">\n"
1324
- " <!-- place the element, or the referenced element (if it's a reference). \n"
1325
- "-->\n"
1326
- " <xsl:variable name=\"id\">\n"
1327
- " <xsl:choose>\n"
1328
- " <xsl:when test=\"name()='use'\">\n"
1329
- " <xsl:value-of select=\"swft:map-id(substring(@xlink:href,2))\"/>\n"
1330
- " </xsl:when>\n"
1331
- " <xsl:when test=\"@id\">\n"
1332
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
1333
- " </xsl:when>\n"
1334
- " <xsl:otherwise>\n"
1335
- " <xsl:value-of select=\"swft:map-id(generate-id(.))\"/>\n"
1336
- " </xsl:otherwise>\n"
1337
- " </xsl:choose>\n"
1338
- " </xsl:variable>\n"
1339
- " <!-- use inkscape label as an instance name instead of id, allowing \n"
1340
- "multiple instances with the same name. -->\n"
1341
- " <xsl:variable name=\"name\">\n"
1342
- " <xsl:choose>\n"
1343
- " <xsl:when test=\"@inkscape:label\">\n"
1344
- " <xsl:choose>\n"
1345
- " <xsl:when test=\"substring(@inkscape:label,1,1)='#'\">\n"
1346
- " <xsl:value-of select=\"substring(@inkscape:label,2)\"/>\n"
1347
- " </xsl:when>\n"
1348
- " <xsl:otherwise>\n"
1349
- " <xsl:value-of select=\"@inkscape:label\"/>\n"
1350
- " </xsl:otherwise>\n"
1351
- " </xsl:choose>\n"
1352
- " </xsl:when>\n"
1353
- " <xsl:when test=\"@id\">\n"
1354
- " <xsl:value-of select=\"@id\"/>\n"
1355
- " </xsl:when>\n"
1356
- " <xsl:otherwise>\n"
1357
- " <xsl:value-of select=\"generate-id(.)\"/>\n"
1358
- " </xsl:otherwise>\n"
1359
- " </xsl:choose>\n"
1360
- " </xsl:variable>\n"
1361
- " <!-- place the object. -->\n"
1362
- " <PlaceObject2 replace=\"0\" depth=\"{swft:next-depth()}\" name=\"{$name}\" objectID=\"{$id}\">\n"
1363
- " <!-- svg:use elements add an instance transform, all others have it \n"
1364
- "included in their definition. -->\n"
1365
- " <xsl:choose>\n"
1366
- " <xsl:when test=\"name()='use'\">\n"
1367
- " <xsl:call-template name=\"transform\"/>\n"
1368
- " </xsl:when>\n"
1369
- " <xsl:otherwise>\n"
1370
- " <transform>\n"
1371
- " <Transform transX=\"0\" transY=\"0\"/>\n"
1372
- " </transform>\n"
1373
- " </xsl:otherwise>\n"
1374
- " </xsl:choose>\n"
1375
- " </PlaceObject2>\n"
1376
- "</xsl:template>\n"
1377
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" name=\"wrapElement\">\n"
1378
- " <xsl:param name=\"innerid\"/>\n"
1379
- " <xsl:variable name=\"id\">\n"
1380
- " <xsl:choose>\n"
1381
- " <xsl:when test=\"@id\">\n"
1382
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
1383
- " </xsl:when>\n"
1384
- " <xsl:otherwise>\n"
1385
- " <xsl:value-of select=\"swft:map-id(generate-id(.))\"/>\n"
1386
- " </xsl:otherwise>\n"
1387
- " </xsl:choose>\n"
1388
- " </xsl:variable>\n"
1389
- " <DefineSprite objectID=\"{$id}\" frames=\"1\">\n"
1390
- " <tags>\n"
1391
- " <PlaceObject2 replace=\"0\" depth=\"{swft:next-depth()}\" objectID=\"{$innerid}\">\n"
1392
- " <xsl:call-template name=\"transform\"/>\n"
1393
- " </PlaceObject2>\n"
1394
- " <ShowFrame/>\n"
1395
- " <End/>\n"
1396
- " </tags>\n"
1397
- " </DefineSprite>\n"
1398
- "</xsl:template>\n"
1399
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" name=\"exportElement\">\n"
1400
- " <!-- export the element. -->\n"
1401
- " <xsl:if test=\"@id\">\n"
1402
- " <xsl:variable name=\"id\" select=\"swft:map-id(@id)\"/>\n"
1403
- " <xsl:variable name=\"name\" select=\"@id\"/>\n"
1404
- "\n"
1405
- " <Export>\n"
1406
- " <symbols>\n"
1407
- " <Symbol objectID=\"{$id}\" name=\"{$name}\"/>\n"
1408
- " </symbols>\n"
1409
- " </Export>\n"
1410
- " </xsl:if>\n"
1411
- "\n"
1412
- " <!-- define a class, if applicable. -->\n"
1413
- " <xsl:variable name=\"swfClass\" select=\"@swfClass\"/>\n"
1414
- " <xsl:if test=\"string-length($swfClass) &gt; 0\">\n"
1415
- " <xsl:call-template name=\"register-class\">\n"
1416
- " <xsl:with-param name=\"class\" select=\"$swfClass\"/>\n"
1417
- " <xsl:with-param name=\"linkage-id\" select=\"@id\"/>\n"
1418
- " </xsl:call-template>\n"
1419
- " </xsl:if>\n"
1420
- "</xsl:template>\n"
1421
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"svg:svg\" mode=\"svg\">\n"
1422
- " <xsl:param name=\"id\"/>\n"
1423
- " <xsl:param name=\"export\"/>\n"
1424
- " <!-- initiate the gradient pass. -->\n"
1425
- " <xsl:apply-templates mode=\"gradient1\"/>\n"
1426
- " <xsl:apply-templates mode=\"gradient2\"/>\n"
1427
- " <!-- initiate the definition pass. -->\n"
1428
- " <xsl:apply-templates mode=\"queue\">\n"
1429
- " <xsl:with-param name=\"export\" select=\"$export\"/>\n"
1430
- " </xsl:apply-templates>\n"
1431
- " <!-- define svg root as sprite. -->\n"
1432
- " <DefineSprite objectID=\"{$id}\" frames=\"1\">\n"
1433
- " <tags>\n"
1434
- " <!-- initiate the placement pass. -->\n"
1435
- " <xsl:apply-templates mode=\"placement\"/>\n"
1436
- " <ShowFrame/>\n"
1437
- " <End/>\n"
1438
- " </tags>\n"
1439
- " </DefineSprite>\n"
1440
- "</xsl:template>\n"
1441
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"svg:linearGradient[not(@xlink:href)]|svg:radialGradient[not(@xlink:href)]\" mode=\"gradient1\">\n"
1442
- " <swft:push-gradient/>\n"
1443
- "</xsl:template>\n"
1444
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"svg:linearGradient[@xlink:href]|svg:radialGradient[@xlink:href]\" mode=\"gradient2\">\n"
1445
- " <swft:push-gradient/>\n"
1446
- "</xsl:template>\n"
1447
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"svg:g|svg:path|svg:rect|svg:circle|svg:ellipse|svg:line|svg:polyline|svg:polygon|svg:use|svg:text|svg:flowRoot\" mode=\"queue\">\n"
1448
- " <xsl:param name=\"export\"/>\n"
1449
- "\n"
1450
- " <xsl:if test=\"name()='g'\">\n"
1451
- " <swft:push-style/>\n"
1452
- " </xsl:if>\n"
1453
- "\n"
1454
- " <xsl:variable name=\"id\">\n"
1455
- " <xsl:choose>\n"
1456
- " <xsl:when test=\"@id\">\n"
1457
- " <xsl:value-of select=\"swft:map-id(@id)\"/>\n"
1458
- " </xsl:when>\n"
1459
- " <xsl:otherwise>\n"
1460
- " <xsl:value-of select=\"swft:map-id(generate-id(.))\"/>\n"
1461
- " </xsl:otherwise>\n"
1462
- " </xsl:choose>\n"
1463
- " </xsl:variable>\n"
1464
- " <xsl:variable name=\"name\">\n"
1465
- " <xsl:choose>\n"
1466
- " <xsl:when test=\"@id\">\n"
1467
- " <xsl:value-of select=\"@id\"/>\n"
1468
- " </xsl:when>\n"
1469
- " <xsl:otherwise>\n"
1470
- " <xsl:value-of select=\"generate-id(.)\"/>\n"
1471
- " </xsl:otherwise>\n"
1472
- " </xsl:choose>\n"
1473
- " </xsl:variable>\n"
1474
- "\n"
1475
- " <!-- first define the subparts, so that we get the innermost ones queued \n"
1476
- "first. -->\n"
1477
- " <xsl:apply-templates mode=\"queue\">\n"
1478
- " <xsl:with-param name=\"export\" select=\"$export\"/>\n"
1479
- " </xsl:apply-templates>\n"
1480
- "\n"
1481
- " <!-- now define this element, which is based on the subparts. -->\n"
1482
- " <xsl:apply-templates select=\".\" mode=\"definition\">\n"
1483
- " <xsl:with-param name=\"id\" select=\"$id\"/>\n"
1484
- " <xsl:with-param name=\"name\" select=\"$name\"/>\n"
1485
- " <xsl:with-param name=\"export\" select=\"$export\"/>\n"
1486
- " </xsl:apply-templates>\n"
1487
- "\n"
1488
- " <xsl:if test=\"name()='g'\">\n"
1489
- " <swft:pop-style/>\n"
1490
- " </xsl:if>\n"
1491
- "</xsl:template>\n"
1492
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"svg:g|svg:path|svg:rect|svg:circle|svg:ellipse|svg:line|svg:polyline|svg:polygon|svg:use|svg:text|svg:flowRoot\" mode=\"placement\">\n"
1493
- " <xsl:if test=\"not(ancestor::svg:defs) or parent::svg:g\">\n"
1494
- " <!-- no definition. just place this element. -->\n"
1495
- " <xsl:call-template name=\"placeObject\"/>\n"
1496
- " </xsl:if>\n"
1497
- "</xsl:template>\n"
1498
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"svg:g\" mode=\"definition\" priority=\"-1\">\n"
1499
- " <xsl:param name=\"id\"/>\n"
1500
- " <xsl:param name=\"name\"/>\n"
1501
- " <xsl:param name=\"export\"/>\n"
1502
- "\n"
1503
- " <!-- test if a wrapper is needed for a group transform -->\n"
1504
- " <xsl:choose>\n"
1505
- " <xsl:when test=\"not(@transform) or @transform='' or transform='translate(0,0)'\">\n"
1506
- " <!-- no transform, define the group and place the subparts -->\n"
1507
- " <DefineSprite objectID=\"{$id}\" frames=\"1\">\n"
1508
- " <tags>\n"
1509
- " <xsl:apply-templates mode=\"placement\"/>\n"
1510
- " <ShowFrame/>\n"
1511
- " <End/>\n"
1512
- " </tags>\n"
1513
- " </DefineSprite>\n"
1514
- " </xsl:when>\n"
1515
- " <xsl:otherwise>\n"
1516
- " <!-- define an inner group and wrap it with the group transform -->\n"
1517
- " <xsl:variable name=\"innerid\"><xsl:value-of select=\"swft:next-id()\"/></xsl:variable>\n"
1518
- " <DefineSprite objectID=\"{$innerid}\" frames=\"1\">\n"
1519
- " <tags>\n"
1520
- " <xsl:apply-templates mode=\"placement\"/>\n"
1521
- " <ShowFrame/>\n"
1522
- " <End/>\n"
1523
- " </tags>\n"
1524
- " </DefineSprite>\n"
1525
- " <xsl:call-template name=\"wrapElement\">\n"
1526
- " <xsl:with-param name=\"innerid\" select=\"$innerid\"/>\n"
1527
- " </xsl:call-template>\n"
1528
- " </xsl:otherwise>\n"
1529
- " </xsl:choose>\n"
1530
- "\n"
1531
- "\n"
1532
- " <!-- export -->\n"
1533
- " <xsl:if test=\"$export = 'all' or $export = 'groups'\">\n"
1534
- " <xsl:call-template name=\"exportElement\"/>\n"
1535
- " </xsl:if>\n"
1536
- "</xsl:template>\n"
1537
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"svg:rect|svg:circle|svg:ellipse|svg:line|svg:polyline|svg:polygon|svg:path\" mode=\"definition\">\n"
1538
- " <xsl:param name=\"id\"/>\n"
1539
- " <xsl:param name=\"export\"/>\n"
1540
- " <xsl:variable name=\"shapeid\"><xsl:value-of select=\"swft:next-id()\"/></xsl:variable>\n"
1541
- "\n"
1542
- " <!-- define the path -->\n"
1543
- " <xsl:copy-of select=\"swft:path(., $shapeid, $movie-version)\"/>\n"
1544
- " <!-- wrap in sprite -->\n"
1545
- " <xsl:call-template name=\"wrapElement\">\n"
1546
- " <xsl:with-param name=\"innerid\" select=\"$shapeid\"/>\n"
1547
- " </xsl:call-template>\n"
1548
- " <!-- export -->\n"
1549
- " <xsl:if test=\"$export = 'all'\">\n"
1550
- " <xsl:call-template name=\"exportElement\"/>\n"
1551
- " </xsl:if>\n"
1552
- "</xsl:template>\n"
1553
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"svg:flowRoot\" mode=\"definition\">\n"
1554
- " <xsl:param name=\"id\"/>\n"
1555
- " <xsl:param name=\"name\"/>\n"
1556
- " <xsl:param name=\"export\"/>\n"
1557
- " <xsl:variable name=\"shapeid\"><xsl:value-of select=\"swft:next-id()\"/></xsl:variable>\n"
1558
- "\n"
1559
- " <!-- define the element -->\n"
1560
- " <DefineEditText objectID=\"{$shapeid}\" wordWrap=\"1\" multiLine=\"1\" password=\"0\" readOnly=\"0\" autoSize=\"0\" hasLayout=\"1\" notSelectable=\"0\" hasBorder=\"0\" isHTML=\"0\" useOutlines=\"0\" fontRef=\"{swft:map-id('vera')}\" fontHeight=\"240\" align=\"0\" leftMargin=\"0\" rightMargin=\"0\" indent=\"0\" leading=\"40\" variableName=\"{@name}\">\n"
1561
- " <xsl:attribute name=\"initialText\">\n"
1562
- " <xsl:apply-templates mode=\"svg-text\"/>\n"
1563
- " </xsl:attribute>\n"
1564
- " <size>\n"
1565
- " <Rectangle left=\"{svg:flowRegion/svg:rect/@x * 20}\" right=\"{(svg:flowRegion/svg:rect/@x + svg:flowRegion/svg:rect/@width)* 20}\" top=\"{svg:flowRegion/svg:rect/@y * 20}\" bottom=\"{(svg:flowRegion/svg:rect/@y + svg:flowRegion/svg:rect/@height)* 20}\"/>\n"
1566
- " </size>\n"
1567
- " <color>\n"
1568
- " <Color red=\"0\" green=\"0\" blue=\"0\" alpha=\"255\"/>\n"
1569
- " </color>\n"
1570
- " </DefineEditText>\n"
1571
- " <!-- wrap in sprite -->\n"
1572
- " <xsl:call-template name=\"wrapElement\">\n"
1573
- " <xsl:with-param name=\"innerid\" select=\"$shapeid\"/>\n"
1574
- " </xsl:call-template>\n"
1575
- " <!-- export -->\n"
1576
- " <xsl:if test=\"$export = 'all'\">\n"
1577
- " <xsl:call-template name=\"exportElement\"/>\n"
1578
- " </xsl:if>\n"
1579
- "</xsl:template>\n"
1580
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"svg:text\" mode=\"definition\">\n"
1581
- " <xsl:param name=\"id\"/>\n"
1582
- " <xsl:param name=\"name\"/>\n"
1583
- " <xsl:param name=\"export\"/>\n"
1584
- " <xsl:variable name=\"shapeid\"><xsl:value-of select=\"swft:next-id()\"/></xsl:variable>\n"
1585
- "\n"
1586
- " <!-- define the element -->\n"
1587
- " <DefineEditText objectID=\"{$shapeid}\" wordWrap=\"0\" multiLine=\"1\" password=\"0\" readOnly=\"1\" autoSize=\"1\" hasLayout=\"1\" notSelectable=\"1\" hasBorder=\"0\" isHTML=\"0\" useOutlines=\"0\" fontRef=\"{swft:map-id('vera')}\" fontHeight=\"240\" align=\"0\" leftMargin=\"0\" rightMargin=\"0\" indent=\"0\" leading=\"40\" variableName=\"{@name}\">\n"
1588
- " <xsl:attribute name=\"initialText\">\n"
1589
- " <xsl:apply-templates mode=\"svg-text\"/>\n"
1590
- " </xsl:attribute>\n"
1591
- " <size>\n"
1592
- " <Rectangle left=\"{@x * 20}\" right=\"{(@x + 200) * 20}\" top=\"{@y * 20 - 240}\" bottom=\"{@y * 20}\"/>\n"
1593
- " </size>\n"
1594
- " <color>\n"
1595
- " <Color red=\"0\" green=\"0\" blue=\"0\" alpha=\"255\"/>\n"
1596
- " </color>\n"
1597
- " </DefineEditText>\n"
1598
- " <!-- wrap in sprite -->\n"
1599
- " <xsl:call-template name=\"wrapElement\">\n"
1600
- " <xsl:with-param name=\"innerid\" select=\"$shapeid\"/>\n"
1601
- " </xsl:call-template>\n"
1602
- " <!-- export -->\n"
1603
- " <xsl:if test=\"$export = 'all'\">\n"
1604
- " <xsl:call-template name=\"exportElement\"/>\n"
1605
- " </xsl:if>\n"
1606
- "</xsl:template>\n"
1607
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"svg:flowRegion\" mode=\"svg-text\">\n"
1608
- " <xsl:apply-templates mode=\"svg-text\"/>\n"
1609
- "</xsl:template>\n"
1610
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"svg:flowPara\" mode=\"svg-text\">\n"
1611
- " <xsl:apply-templates mode=\"svg-text\"/>\n"
1612
- "</xsl:template>\n"
1613
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"svg:tspan[position()=1]\" mode=\"svg-text\">\n"
1614
- " <xsl:apply-templates mode=\"svg-text\"/>\n"
1615
- "</xsl:template>\n"
1616
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"svg:tspan\" mode=\"svg-text\" priority=\"-1\">\n"
1617
- " <xsl:text>\n"
1618
- " </xsl:text>\n"
1619
- " <xsl:apply-templates mode=\"svg-text\"/>\n"
1620
- "</xsl:template>\n"
1621
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"text()\" mode=\"svg-text\">\n"
1622
- " <xsl:copy-of select=\".\"/>\n"
1623
- "</xsl:template>\n"
1624
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"*|@*|text()\" mode=\"svg\" priority=\"-1\"/>\n"
1625
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"ShapeSetup\" mode=\"shape\">\n"
1626
- " <ShapeSetup fillStyle0=\"1\" fillStyle1=\"2\" lineStyle=\"1\">\n"
1627
- " <xsl:apply-templates select=\"*|@*\" mode=\"shape\"/>\n"
1628
- " </ShapeSetup>\n"
1629
- "</xsl:template>\n"
1630
- "<xsl:template xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" match=\"*|@*|text()\" mode=\"shape\" priority=\"-1\">\n"
1631
- " <xsl:copy-of select=\".\"/>\n"
1632
- "</xsl:template>\n"
1633
- " \n"
1634
- "<xsl:template xmlns:swft=\"http://subsignal.org/swfml/swft\" xmlns:str=\"http://exslt.org/strings\" xmlns:math=\"http://exslt.org/math\" match=\"set\">\n"
1635
- " <xsl:if test=\"$quiet != 'true'\">\n"
1636
- " <xsl:message>\"set\" is deprecated, please use assignments in place</xsl:message>\n"
1637
- " </xsl:if>\n"
1638
- " \n"
1639
- " <xsl:variable name=\"spriteid\">\n"
1640
- " <xsl:value-of select=\"swft:next-id()\"/>\n"
1641
- " </xsl:variable>\n"
1642
- " <DefineSprite objectID=\"{$spriteid}\" frames=\"1\">\n"
1643
- " <tags>\n"
1644
- " <End/>\n"
1645
- " </tags>\n"
1646
- " </DefineSprite>\n"
1647
- " <Export>\n"
1648
- " <symbols>\n"
1649
- " <Symbol objectID=\"{$spriteid}\" name=\"__Packages.swfmill.set.{@name}.{@member}\"/>\n"
1650
- " </symbols>\n"
1651
- " </Export>\n"
1652
- " <DoInitAction sprite=\"{$spriteid}\">\n"
1653
- " <actions>\n"
1654
- " <Dictionary>\n"
1655
- " <strings>\n"
1656
- " <String value=\"_root\"/>\n"
1657
- " <String value=\"{@name}\"/>\n"
1658
- " <String value=\"{@member}\"/>\n"
1659
- " <String value=\"{@value}\"/>\n"
1660
- " </strings>\n"
1661
- " </Dictionary>\n"
1662
- " <PushData>\n"
1663
- " <items>\n"
1664
- " <StackDictionaryLookup index=\"0\"/>\n"
1665
- " </items>\n"
1666
- " </PushData>\n"
1667
- " <GetVariable/>\n"
1668
- " <PushData>\n"
1669
- " <items>\n"
1670
- " <StackDictionaryLookup index=\"1\"/>\n"
1671
- " </items>\n"
1672
- " </PushData>\n"
1673
- " <GetMember/>\n"
1674
- " <PushData>\n"
1675
- " <items>\n"
1676
- " <StackDictionaryLookup index=\"2\"/>\n"
1677
- " <StackDictionaryLookup index=\"3\"/>\n"
1678
- " </items>\n"
1679
- " </PushData>\n"
1680
- " <SetMember/>\n"
1681
- " <EndAction/>\n"
1682
- " </actions>\n"
1683
- " </DoInitAction>\n"
1684
- "</xsl:template>\n"
1685
- "</xsl:stylesheet>\n"
1686
- ;