-
Notifications
You must be signed in to change notification settings - Fork 32
/
rftg-html.xsl
804 lines (753 loc) · 41.3 KB
/
rftg-html.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output indent="yes" method="html" omit-xml-declaration="yes" />
<xsl:strip-space elements="*" />
<xsl:template match="/RftgExport">
<html>
<head>
<style type="text/css">
body { font-family: Lucida, sans-serif; }
.em { font-weight:bold }
.phase { color:#0000aa }
.takeover { color:#ff0000 }
.goal { color:#eeaa00 }
.prestige { color:#8800bb }
.verbose { color:#aaaaaa }
.discard { color:#aaaaaa }
.draw { color:#aaaaaa }
.chat { font-weight:bold }
.debug { background-color:#ff5555 }
.highlight { background-color:yellow }
</style>
</head>
<body>
Goto: <xsl:apply-templates select="Player" mode="links" /><a href="#Log">Log</a><xsl:text> </xsl:text><a href="#End">End</a>
<xsl:apply-templates select="Links" />
<xsl:apply-templates select="Setup/Variant" />
<xsl:apply-templates select="Status" mode="statusHeader" />
<xsl:apply-templates select="Player" />
<xsl:apply-templates select="Status" mode="statusFooter" />
<xsl:apply-templates select="Log" />
<a name="End" />
<script type="text/javascript">
var styleSheet = document.styleSheets[0];
var rules = styleSheet.cssRules ? styleSheet.cssRules : styleSheet.rules;
function getRule(selector) {
for (var i = 0; i < rules.length; ++i) {
if (rules[i].selectorText == selector) return rules[i];
}
return null;
}
function trigger(input) {
if (input.checked) {
getRule(input.id).style.display = "inline";
}
else {
getRule(input.id).style.display = "none";
}
}
function high(input) {
var elems = document.getElementsByTagName("span");
var text = input.value.toLowerCase();
for (var i = 0; i < elems.length; ++i) {
if (elems[i].className.indexOf("message") == -1) continue;
if (text != "" && elems[i].innerHTML.toLowerCase().search(text) >= 0) {
elems[i].className = "message highlight";
} else {
elems[i].className = "message";
}
}
}
function init() {
var elems = document.getElementsByTagName("input");
for (var i = 0; i < elems.length; ++i) {
if (elems[i].type != "checkbox") continue;
trigger(elems[i]);
}
high(document.getElementById("highlight"));
}
init();
</script>
</body>
</html>
</xsl:template>
<xsl:template match="Link">
<a href="{.}"><xsl:value-of select="@text" /></a><xsl:if test="position() != last()"> - </xsl:if>
</xsl:template>
<xsl:template match="Links">
<p>
<xsl:if test="@text"><b><xsl:value-of select="@text" /></b>: </xsl:if>
<xsl:apply-templates select="Link" />
</p>
</xsl:template>
<xsl:template match="Setup/Variant">
<h3>Variant game: <xsl:value-of select="." /></h3>
</xsl:template>
<xsl:template match="Tampered" mode="statusHeader" />
<xsl:template match="Round" mode="statusHeader">
<xsl:if test="not(../GameOver)"><h3>Round <xsl:value-of select="." /></h3></xsl:if>
</xsl:template>
<xsl:template match="GameOver" mode="statusHeader">
<h3>Game has ended</h3>
<xsl:apply-templates select="../../Player" mode="winner" /><br />
</xsl:template>
<xsl:template match="Phase">
<b>
<xsl:if test="@current = 'yes'">
<xsl:attribute name="style">color:blue</xsl:attribute>
</xsl:if>
<xsl:value-of select="." />
</b>
<xsl:if test="position() != last()"> - </xsl:if>
</xsl:template>
<xsl:template match="Phases" mode="statusHeader">
<xsl:if test="not(../GameOver)">Round phases: <xsl:apply-templates select="Phase" /><br /></xsl:if>
</xsl:template>
<xsl:template match="Deck" mode="statusHeader">
Draw deck size: <b><xsl:value-of select="." /> card<xsl:if test=". != 1">s</xsl:if></b><br />
</xsl:template>
<xsl:template match="Discard" mode="statusHeader">
Discard pile size: <b><xsl:value-of select="." /> card<xsl:if test=". != 1">s</xsl:if></b><br />
</xsl:template>
<xsl:template match="Pool" mode="statusHeader">
VP chips left: <b><xsl:value-of select="." /> chip<xsl:if test=". != 1">s</xsl:if></b><br />
</xsl:template>
<xsl:template match="Goals" mode="statusHeader">
<h4>Goals</h4>
<p>
<xsl:if test="count(Goal) = 0">None</xsl:if>
<xsl:apply-templates select="Goal" mode="images" />
</p>
</xsl:template>
<xsl:template match="Player" mode="links">
<a href="#{Name}"><xsl:if test="@ai and not(starts-with(Name, '[AI]'))">[AI] </xsl:if><xsl:value-of select="Name" /></a><xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="Player" mode="winner">
<xsl:if test="./@winner"><xsl:value-of select="Name" /> wins the game.<br /></xsl:if>
</xsl:template>
<xsl:template match="Player">
<hr />
<xsl:apply-templates select="Name | Actions | Prestige | Chips | Score | Hand" mode="player" />
<xsl:apply-templates select="Goals | Tableau" mode="player" />
<xsl:apply-templates select="Start" mode="hand" />
<xsl:apply-templates select="Hand | Search | Discards | Flips" mode="hand" />
</xsl:template>
<xsl:template match="Name" mode="player">
<a name="{.}" /><h3><xsl:if test="../@ai and not(starts-with(., '[AI]'))">[AI] </xsl:if><xsl:value-of select="." /></h3>
</xsl:template>
<xsl:template match="Action">
<b><xsl:value-of select="." /></b><xsl:if test="position() != last()"> - </xsl:if>
</xsl:template>
<xsl:template match="Actions" mode="player">
Action<xsl:if test="/RftgExport/Setup/Players/@advanced = 'yes'">s</xsl:if>:
<xsl:apply-templates select="Action" />
<br />
</xsl:template>
<xsl:template match="Prestige" mode="player">
Prestige/Search action <xsl:if test="./@actionUsed = 'yes'"><b><span style="color:red">used</span></b></xsl:if><xsl:if test="./@actionUsed = 'no'"><b><span style="color:green">available</span></b></xsl:if><br />
Prestige: <b><span style="color:purple"><xsl:value-of select="." /> PP chip<xsl:if test=". != 1">s</xsl:if></span></b>
<xsl:if test="./@onTile"> (Prestige on the tile)</xsl:if><br />
</xsl:template>
<xsl:template match="Hand" mode="player">
Hand: <b><xsl:value-of select="@count" /> card<xsl:if test="@count != 1">s</xsl:if></b><br />
</xsl:template>
<xsl:template match="Deck" mode="player">
Draw pile: <xsl:value-of select="." /> card<xsl:if test=". != 1">s</xsl:if><br />
</xsl:template>
<xsl:template match="Discard" mode="player">
Discard pile: <xsl:value-of select="." /> card<xsl:if test=". != 1">s</xsl:if><br />
</xsl:template>
<xsl:template match="Chips" mode="player">
VP chips: <b><span style="color:blue"><xsl:value-of select="." /> VP chip<xsl:if test=". != 1">s</xsl:if></span></b><br />
</xsl:template>
<xsl:template match="Score" mode="player">
Points: <b><xsl:value-of select="." /> VP<xsl:if test=". != 1">s</xsl:if></b><br />
</xsl:template>
<xsl:template match="Goals" mode="player">
<h4>Goals claimed</h4>
<p>
<xsl:if test="count(Goal) = 0">None</xsl:if>
<xsl:apply-templates select="Goal" mode="images" />
</p>
</xsl:template>
<xsl:template match="Tableau" mode="player">
<h4>Tableau</h4>
<p>
<xsl:if test="count(Card) = 0">No cards</xsl:if>
<xsl:apply-templates select="Card" mode="images" />
</p>
</xsl:template>
<xsl:template match="Saved" mode="player">
<xsl:choose>
<xsl:when test="count(Card) > 0">
<h4>Saved</h4>
<p>
<xsl:apply-templates select="Card" mode="images" />
</p>
</xsl:when>
<xsl:otherwise>
<p>Saved <xsl:value-of select="@count" /> card<xsl:if test="@count != 1">s</xsl:if></p>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="Hand" mode="hand">
<xsl:if test="count(Card[not(@explore)]) > 0">
<h4>Hand</h4>
<p>
<xsl:apply-templates select="*[not(@explore)]" mode="images" />
</p>
</xsl:if>
<xsl:if test="count(Card[@explore]) > 0">
<h4>Explore cards</h4>
<p>
<xsl:apply-templates select="*[@explore]" mode="images" />
</p>
</xsl:if>
</xsl:template>
<xsl:template match="Start" mode="player" />
<xsl:template match="Start" mode="hand">
<h4>Start worlds</h4>
<p>
<xsl:apply-templates mode="images" />
</p>
</xsl:template>
<xsl:template match="Search" mode="player" />
<xsl:template match="Search" mode="hand">
<h4>Search</h4>
<p>
<xsl:apply-templates mode="images" />
</p>
</xsl:template>
<xsl:template match="Discards" mode="player" />
<xsl:template match="Discards" mode="hand">
<h4>Discards</h4>
<p>
<xsl:apply-templates mode="images" />
</p>
</xsl:template>
<xsl:template match="Flips" mode="player" />
<xsl:template match="Flips" mode="hand">
<h4>Gambling World cards</h4>
<p>
<xsl:apply-templates mode="images" />
</p>
</xsl:template>
<xsl:template match="Status" mode="statusFooter">
<xsl:if test="./Message">
<hr />
<h3>Message</h3>
<p>
<xsl:apply-templates select="Message" />
</p>
</xsl:if>
</xsl:template>
<xsl:template match="Log">
<hr />
<a name="Log" /><h3>Log</h3>
<form>
<xsl:if test="./Message[@format='chat']">
Show chats: <input id=".chat" type="checkbox" checked="yes" onClick="trigger(this)" /><br />
</xsl:if>
<xsl:if test="./Message[@format='verbose']">
Show verbose logs: <input id=".verbose" type="checkbox" checked="yes" onClick="trigger(this)" /><br />
</xsl:if>
<xsl:if test="./Message[@format='draw']">
Show draw logs: <input id=".draw" type="checkbox" onClick="trigger(this)" /><br />
</xsl:if>
<xsl:if test="./Message[@format='discard']">
Show discard logs: <input id=".discard" type="checkbox" onClick="trigger(this)" /><br />
</xsl:if>
Highlight: <input id="highlight" type="text" onChange="high(this)" onKeyUp="high(this)" />
</form>
<p>
<xsl:apply-templates />
</p>
</xsl:template>
<xsl:template match="Message" mode="statusHeader" />
<xsl:template match="Message">
<span class="message">
<xsl:choose>
<xsl:when test="./@format"><span class="{@format}"><xsl:value-of select="." /><br /></span></xsl:when>
<xsl:otherwise><xsl:value-of select="." /><br /></xsl:otherwise>
</xsl:choose>
</span>
</xsl:template>
<xsl:template match="Card" mode="names">
<xsl:value-of select="." />
<xsl:if test="@good"> (with good)</xsl:if>
<xsl:if test="position() != last()"> - </xsl:if>
</xsl:template>
<xsl:template match="Card" mode="images">
<xsl:variable name="id"><xsl:call-template name="cardId" /></xsl:variable>
<xsl:variable name="ext"><xsl:call-template name="cardExt" /></xsl:variable>
<xsl:variable name="alt">
<xsl:value-of select="." />
<xsl:if test="@good"> (with good)</xsl:if>
</xsl:variable>
<img src="{concat('http://cf.geekdo-images.com/images/pic',$id,'_md.',$ext)}" width="220" height="308" alt="{$alt}" title="{$alt}" />
</xsl:template>
<xsl:template match="Goal" mode="names">
<b><span>
<xsl:attribute name="style">
<xsl:choose>
<xsl:when test="@claimed = 'yes'">color:gray</xsl:when>
<xsl:when test="@shared = 'yes'">color:gray</xsl:when>
<xsl:otherwise>color:orange</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:call-template name="goalDesc" />
</span></b>
<xsl:if test="position() != last()"> - </xsl:if>
</xsl:template>
<xsl:template match="Goal" mode="images">
<xsl:variable name="id"><xsl:call-template name="goalId" /></xsl:variable>
<xsl:variable name="alt">
<xsl:value-of select="." />
<xsl:if test="@claimed"><xsl:value-of select="concat(' Claimed: ', @claimed)" /></xsl:if>
<xsl:if test="@shared"> (Shared)</xsl:if>
</xsl:variable>
<img src="{concat('http://cf.geekdo-images.com/images/pic',$id,'_t.jpg')}" alt="{$alt}" title="{$alt}" />
</xsl:template>
<xsl:template name="goalDesc">
<xsl:choose>
<xsl:when test=". = 'Galactic Standard of Living'">First 5 VP chips</xsl:when>
<xsl:when test=". = 'System Diversity'">First all kinds</xsl:when>
<xsl:when test=". = 'Overlord Discoveries'">First 3 Alien</xsl:when>
<xsl:when test=". = 'Budget Surplus'">First discard at end of round</xsl:when>
<xsl:when test=". = 'Innovation Leader'">First Power in all phases</xsl:when>
<xsl:when test=". = 'Galactic Status'">First 6?-development</xsl:when>
<xsl:when test=". = 'Uplift Knowledge'">First 3 Uplift</xsl:when>
<xsl:when test=". = 'Galactic Riches'">First 4 goods</xsl:when>
<xsl:when test=". = 'Expansion Leader'">First 8 cards</xsl:when>
<xsl:when test=". = 'Peace/War Leader'">First negative Military & 2 worlds / a takeover attack power & 2 Military worlds</xsl:when>
<xsl:when test=". = 'Galactic Standing'">First 2 prestige chips and 3 VP chips</xsl:when>
<xsl:when test=". = 'Military Influence'">First 3 Imperium cards / 4 Military worlds</xsl:when>
<xsl:when test=". = 'Greatest Military'">Most total military (6+)</xsl:when>
<xsl:when test=". = 'Largest Industry'">Most Novelty and/or Rare worlds (3+)</xsl:when>
<xsl:when test=". = 'Greatest Infrastructure'">Most developments (4+)</xsl:when>
<xsl:when test=". = 'Production Leader'">Most production worlds (4+)</xsl:when>
<xsl:when test=". = 'Research Leader'">Most Explore powers (3+)</xsl:when>
<xsl:when test=". = 'Propaganda Edge'">Most Rebel Military worlds (3+)</xsl:when>
<xsl:when test=". = 'Galactic Prestige'">Most prestige chips (3+)</xsl:when>
<xsl:when test=". = 'Prosperity Lead'">Most Consume powers (3+)</xsl:when>
<xsl:otherwise><xsl:value-of select="." /></xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="goalId">
<xsl:choose>
<xsl:when test=". = 'Galactic Standard of Living'">451487</xsl:when>
<xsl:when test=". = 'System Diversity'">451489</xsl:when>
<xsl:when test=". = 'Overlord Discoveries'">451490</xsl:when>
<xsl:when test=". = 'Budget Surplus'">451491</xsl:when>
<xsl:when test=". = 'Innovation Leader'">451485</xsl:when>
<xsl:when test=". = 'Galactic Status'">451488</xsl:when>
<xsl:when test=". = 'Uplift Knowledge'">743455</xsl:when>
<xsl:when test=". = 'Galactic Riches'">743459</xsl:when>
<xsl:when test=". = 'Expansion Leader'">743464</xsl:when>
<xsl:when test=". = 'Peace/War Leader'">743454</xsl:when>
<xsl:when test=". = 'Galactic Standing'">743456</xsl:when>
<xsl:when test=". = 'Military Influence'">743463</xsl:when>
<xsl:when test=". = 'Greatest Military'">451477</xsl:when>
<xsl:when test=". = 'Largest Industry'">451484</xsl:when>
<xsl:when test=". = 'Greatest Infrastructure'">451481</xsl:when>
<xsl:when test=". = 'Production Leader'">451476</xsl:when>
<xsl:when test=". = 'Research Leader'">743458</xsl:when>
<xsl:when test=". = 'Propaganda Edge'">743462</xsl:when>
<xsl:when test=". = 'Galactic Prestige'">743460</xsl:when>
<xsl:when test=". = 'Prosperity Lead'">743461</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="cardExt">
<xsl:choose>
<xsl:when test=". = 'Alien Research Ship'">png</xsl:when>
<xsl:when test=". = 'Alien Survey Technology'">png</xsl:when>
<xsl:when test=". = 'Galactic Investors'">png</xsl:when>
<xsl:when test=". = 'Imperium Stealth Tactics'">png</xsl:when>
<xsl:when test=". = 'Imperium Supply Convoy'">png</xsl:when>
<xsl:when test=". = 'Scientific Cruisers'">png</xsl:when>
<xsl:when test=". = 'Terraforming Project'">png</xsl:when>
<xsl:when test=". = 'Alien Artifact Hunters'">png</xsl:when>
<xsl:when test=". = 'Alien Fuel Refinery'">png</xsl:when>
<xsl:when test=". = 'Alien Sentinels'">png</xsl:when>
<xsl:when test=". = 'Alien Uplift Chamber'">png</xsl:when>
<xsl:when test=". = 'Amphibian Uplift Race'">png</xsl:when>
<xsl:when test=". = 'Arboreal Uplift Race'">png</xsl:when>
<xsl:when test=". = 'Deep Space Symbionts, Ltd.'">png</xsl:when>
<xsl:when test=". = 'Designer Species, Ultd.'">png</xsl:when>
<xsl:when test=". = 'Frontier Capital'">png</xsl:when>
<xsl:when test=". = 'Galactic News Hub'">png</xsl:when>
<xsl:when test=". = 'Galactic Survey Headquarters'">png</xsl:when>
<xsl:when test=". = 'Imperium Blaster Gem Depot'">png</xsl:when>
<xsl:when test=". = 'Imperium Fifth Column'">png</xsl:when>
<xsl:when test=". = 'Interstellar Trade Port'">png</xsl:when>
<xsl:when test=". = 'Jumpdrive Fuel Refinery'">png</xsl:when>
<xsl:when test=". = 'Mercenary Guild'">png</xsl:when>
<xsl:when test=". = 'Ore-Rich World'">png</xsl:when>
<xsl:when test=". = 'Rebel Gem Smugglers'">png</xsl:when>
<xsl:when test=". = 'Rebel Mutineers'">png</xsl:when>
<xsl:when test=". = 'Rebel Resistance'">png</xsl:when>
<xsl:when test=". = 'Rebel Uplift World'">png</xsl:when>
<xsl:when test=". = 'Self-Repairing Alien Artillery'">png</xsl:when>
<xsl:when test=". = 'Sentient Robots'">png</xsl:when>
<xsl:when test=". = 'Terraforming Colony'">png</xsl:when>
<xsl:when test=". = 'Tranship Point'">png</xsl:when>
<xsl:when test=". = 'Uplift Researchers'">png</xsl:when>
<xsl:when test=". = 'Alien Researchers'">png</xsl:when>
<xsl:when test=". = 'Galactic Expansionists'">png</xsl:when>
<xsl:when test=". = 'Imperium War Faction'">png</xsl:when>
<xsl:when test=". = 'Terraforming Unlimited'">png</xsl:when>
<xsl:when test=". = 'Uplift Alliance'">png</xsl:when>
<xsl:when test=". = 'Wormhole Prospectors'">png</xsl:when>
<xsl:otherwise>jpg</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="cardId">
<xsl:choose>
<xsl:when test="not(@good)">
<xsl:choose>
<xsl:when test=". = 'Abandoned Alien Uplift Camp'">524250</xsl:when>
<xsl:when test=". = 'Alien Booby Trap'">756231</xsl:when>
<xsl:when test=". = 'Alien Burial Site'">756230</xsl:when>
<xsl:when test=". = 'Alien Cornucopia'">756228</xsl:when>
<xsl:when test=". = 'Alien Data Repository'">524248</xsl:when>
<xsl:when test=". = 'Alien Departure Point'">756227</xsl:when>
<xsl:when test=". = 'Alien Guardian'">756225</xsl:when>
<xsl:when test=". = 'Alien Monolith'">524246</xsl:when>
<xsl:when test=". = 'Alien Oort Cloud Refinery'">756223</xsl:when>
<xsl:when test=". = 'Alien Research Team'">756217</xsl:when>
<xsl:when test=". = 'Alien Robot Scout Ship'">340998</xsl:when>
<xsl:when test=". = 'Alien Robot Sentry'">354962</xsl:when>
<xsl:when test=". = 'Alien Robotic Factory'">353147</xsl:when>
<xsl:when test=". = 'Alien Rosetta Stone World'">340487</xsl:when>
<xsl:when test=". = 'Alien Tech Institute'">354518</xsl:when>
<xsl:when test=". = 'Alien Tourist Attraction'">756216</xsl:when>
<xsl:when test=". = 'Alien Toy Shop'">451464</xsl:when>
<xsl:when test=". = 'Alien Uplift Center'">524244</xsl:when>
<xsl:when test=". = 'Alpha Centauri'">340437</xsl:when>
<xsl:when test=". = 'Ancient Race'">451465</xsl:when>
<xsl:when test=". = 'Aquatic Uplift Race'">357389</xsl:when>
<xsl:when test=". = 'Artist Colony'">356855</xsl:when>
<xsl:when test=". = 'Asteroid Belt'">356809</xsl:when>
<xsl:when test=". = 'Avian Uplift Race'">357619</xsl:when>
<xsl:when test=". = 'Bio-Hazard Mining World'">353127</xsl:when>
<xsl:when test=". = 'Black Hole Miners'">756215</xsl:when>
<xsl:when test=". = 'Black Market Trading World'">356849</xsl:when>
<xsl:when test=". = 'Blaster Gem Mines'">341377</xsl:when>
<xsl:when test=". = 'Blaster Runners'">524243</xsl:when>
<xsl:when test=". = 'Clandestine Uplift Lab'">451449</xsl:when>
<xsl:when test=". = 'Colony Ship'">341705</xsl:when>
<xsl:when test=". = 'Comet Zone'">356850</xsl:when>
<xsl:when test=". = 'Consumer Markets'">354516</xsl:when>
<xsl:when test=". = 'Contact Specialist'">340758</xsl:when>
<xsl:when test=". = 'Damaged Alien Factory'">451448</xsl:when>
<xsl:when test=". = 'Deficit Spending'">340443</xsl:when>
<xsl:when test=". = 'Deserted Alien Colony'">357618</xsl:when>
<xsl:when test=". = 'Deserted Alien Library'">340909</xsl:when>
<xsl:when test=". = 'Deserted Alien Outpost'">353881</xsl:when>
<xsl:when test=". = 'Deserted Alien World'">451452</xsl:when>
<xsl:when test=". = 'Destroyed World'">341712</xsl:when>
<xsl:when test=". = 'Devolved Uplift Race'">524241</xsl:when>
<xsl:when test=". = 'Distant World'">357386</xsl:when>
<xsl:when test=". = 'Diversified Economy'">340438</xsl:when>
<xsl:when test=". = 'Doomed World'">451427</xsl:when>
<xsl:when test=". = 'Drop Ships'">340474</xsl:when>
<xsl:when test=". = 'Dying Colony'">524239</xsl:when>
<xsl:when test="contains(., 'Lost Colony')">340462</xsl:when>
<xsl:when test=". = 'Empath World'">341381</xsl:when>
<xsl:when test=". = 'Epsilon Eridani'">340439</xsl:when>
<xsl:when test=". = 'Expanding Colony'">357384</xsl:when>
<xsl:when test=". = 'Expedition Force'">340442</xsl:when>
<xsl:when test=". = 'Export Duties'">340912</xsl:when>
<xsl:when test=". = 'Federation Capital'">756214</xsl:when>
<xsl:when test=". = 'Former Penal Colony'">357620</xsl:when>
<xsl:when test=". = 'Free Trade Association'">356848</xsl:when>
<xsl:when test=". = 'Galactic Advertisers'">524238</xsl:when>
<xsl:when test=". = 'Galactic Bankers'">524237</xsl:when>
<xsl:when test=". = 'Galactic Bazaar'">451457</xsl:when>
<xsl:when test=". = 'Galactic Developers'">524236</xsl:when>
<xsl:when test=". = 'Galactic Engineers'">340486</xsl:when>
<xsl:when test=". = 'Galactic Exchange'">524235</xsl:when>
<xsl:when test=". = 'Galactic Federation'">356847</xsl:when>
<xsl:when test=". = 'Galactic Genome Project'">451438</xsl:when>
<xsl:when test=". = 'Galactic Imperium'">356852</xsl:when>
<xsl:when test=". = 'Galactic Markets'">756213</xsl:when>
<xsl:when test=". = 'Galactic Power Brokers'">756212</xsl:when>
<xsl:when test=". = 'Galactic Renaissance'">340468</xsl:when>
<xsl:when test=". = 'Galactic Resort'">341380</xsl:when>
<xsl:when test=". = 'Galactic Salon'">524234</xsl:when>
<xsl:when test=". = 'Galactic Scavengers'">756211</xsl:when>
<xsl:when test=". = 'Galactic Studios'">451458</xsl:when>
<xsl:when test=". = 'Galactic Survey: SETI'">354517</xsl:when>
<xsl:when test=". = 'Galactic Trendsetters'">341379</xsl:when>
<xsl:when test=". = 'Gambling World'">524233</xsl:when>
<xsl:when test=". = 'Gem Smugglers'">524231</xsl:when>
<xsl:when test=". = 'Gem World'">340440</xsl:when>
<xsl:when test=". = 'Gene Designers'">524229</xsl:when>
<xsl:when test=". = 'Genetics Lab'">340760</xsl:when>
<xsl:when test=". = 'Golden Age of Terraforming'">756209</xsl:when>
<xsl:when test=". = 'Hidden Fortress'">524228</xsl:when>
<xsl:when test=". = 'Hive World'">451460</xsl:when>
<xsl:when test=". = 'Imperium Armaments World'">340465</xsl:when>
<xsl:when test=". = 'Imperium Blaster Gem Consortium'">524226</xsl:when>
<xsl:when test=". = 'Imperium Capital'">756208</xsl:when>
<xsl:when test=". = 'Imperium Cloaking Technology'">524225</xsl:when>
<xsl:when test=". = 'Imperium Fuel Depot'">756207</xsl:when>
<xsl:when test=". = 'Imperium Invasion Fleet'">756205</xsl:when>
<xsl:when test=". = 'Imperium Lords'">451441</xsl:when>
<xsl:when test=". = 'Imperium Planet Buster'">756204</xsl:when>
<xsl:when test=". = 'Imperium Seat'">524224</xsl:when>
<xsl:when test=". = 'Imperium Troops'">524223</xsl:when>
<xsl:when test=". = 'Imperium Warlord'">524222</xsl:when>
<xsl:when test=". = 'Improved Logistics'">451444</xsl:when>
<xsl:when test=". = 'Information Hub'">756203</xsl:when>
<xsl:when test=". = 'Insect Uplift Race'">524220</xsl:when>
<xsl:when test=". = 'Interstellar Bank'">341709</xsl:when>
<xsl:when test=". = 'Interstellar Casus Belli'">756201</xsl:when>
<xsl:when test=". = 'Interstellar Prospectors'">524219</xsl:when>
<xsl:when test=". = 'Investment Credits'">356836</xsl:when>
<xsl:when test=". = 'Lifeforms, Inc'">756200</xsl:when>
<xsl:when test=". = 'Lost Alien Battle Fleet'">357387</xsl:when>
<xsl:when test=". = 'Lost Alien Warship'">357607</xsl:when>
<xsl:when test=". = 'Lost Species Ark World'">340453</xsl:when>
<xsl:when test=". = 'Malevolent Lifeforms'">340761</xsl:when>
<xsl:when test=". = 'Mercenary Fleet'">524217</xsl:when>
<xsl:when test=". = 'Merchant Guild'">341376</xsl:when>
<xsl:when test=". = 'Merchant World'">340911</xsl:when>
<xsl:when test=". = 'Mining Conglomerate'">340490</xsl:when>
<xsl:when test=". = 'Mining League'">341710</xsl:when>
<xsl:when test=". = 'Mining Mole Uplift Race'">756198</xsl:when>
<xsl:when test=". = 'Mining Robots'">354961</xsl:when>
<xsl:when test=". = 'Mining World'">353148</xsl:when>
<xsl:when test=". = 'New Earth'">353133</xsl:when>
<xsl:when test=". = 'New Economy'">340466</xsl:when>
<xsl:when test=". = 'New Galactic Order'">340904</xsl:when>
<xsl:when test=". = 'New Military Tactics'">340753</xsl:when>
<xsl:when test=". = 'New Sparta'">353124</xsl:when>
<xsl:when test=". = 'New Survivalists'">341713</xsl:when>
<xsl:when test=". = 'New Vinland'">340469</xsl:when>
<xsl:when test=". = 'Old Earth'">340450</xsl:when>
<xsl:when test=". = 'Outlaw World'">356833</xsl:when>
<xsl:when test=". = 'Pan-Galactic Affluence'">756196</xsl:when>
<xsl:when test=". = 'Pan-Galactic Hologrid'">756195</xsl:when>
<xsl:when test=". = 'Pan-Galactic League'">356846</xsl:when>
<xsl:when test=". = 'Pan-Galactic Mediator'">756194</xsl:when>
<xsl:when test=". = 'Pan-Galactic Research'">524216</xsl:when>
<xsl:when test=". = 'Pan-Galactic Security Council'">756193</xsl:when>
<xsl:when test=". = 'Pilgrimage World'">340755</xsl:when>
<xsl:when test=". = 'Pirate World'">341092</xsl:when>
<xsl:when test=". = 'Plague World'">340451</xsl:when>
<xsl:when test=". = 'Pre-Sentient Race'">341744</xsl:when>
<xsl:when test=". = 'Primitive Rebel World'">524214</xsl:when>
<xsl:when test=". = 'Prospecting Guild'">524213</xsl:when>
<xsl:when test=". = 'Prosperous World'">357388</xsl:when>
<xsl:when test=". = 'Psi-Crystal World'">756192</xsl:when>
<xsl:when test=". = 'Public Works'">341095</xsl:when>
<xsl:when test=". = 'R&D Crash Program'">524212</xsl:when>
<xsl:when test=". = 'Radioactive World'">354529</xsl:when>
<xsl:when test=". = 'Ravaged Uplift World'">756190</xsl:when>
<xsl:when test=". = 'Rebel Alliance'">524211</xsl:when>
<xsl:when test=". = 'Rebel Base'">356854</xsl:when>
<xsl:when test=". = 'Rebel Cantina'">524210</xsl:when>
<xsl:when test=". = 'Rebel Colony'">451430</xsl:when>
<xsl:when test=". = 'Rebel Convict Mines'">524208</xsl:when>
<xsl:when test=". = 'Rebel Council'">756188</xsl:when>
<xsl:when test=". = 'Rebel Freedom Fighters'">756187</xsl:when>
<xsl:when test=". = 'Rebel Fuel Cache'">341096</xsl:when>
<xsl:when test=". = 'Rebel Fuel Refinery'">756186</xsl:when>
<xsl:when test=". = 'Rebel Homeworld'">341094</xsl:when>
<xsl:when test=". = 'Rebel Miners'">356851</xsl:when>
<xsl:when test=". = 'Rebel Outpost'">356853</xsl:when>
<xsl:when test=". = 'Rebel Pact'">524206</xsl:when>
<xsl:when test=". = 'Rebel Sneak Attack'">756184</xsl:when>
<xsl:when test=". = 'Rebel Stronghold'">524205</xsl:when>
<xsl:when test=". = 'Rebel Sympathizers'">451454</xsl:when>
<xsl:when test=". = 'Rebel Troops'">756183</xsl:when>
<xsl:when test=". = 'Rebel Underground'">354958</xsl:when>
<xsl:when test=". = 'Rebel Warrior Race'">353882</xsl:when>
<xsl:when test=". = 'Refugee World'">341093</xsl:when>
<xsl:when test=". = 'Replicant Robots'">340994</xsl:when>
<xsl:when test=". = 'Reptilian Uplift Race'">353885</xsl:when>
<xsl:when test=". = 'Research Labs'">340449</xsl:when>
<xsl:when test=". = 'Retrofit & Salvage, Inc'">756182</xsl:when>
<xsl:when test=". = 'Runaway Robots'">354957</xsl:when>
<xsl:when test=". = 'Secluded World'">353883</xsl:when>
<xsl:when test=". = 'Separatist Colony'">451424</xsl:when>
<xsl:when test=". = 'Smuggling Lair'">451455</xsl:when>
<xsl:when test=". = 'Smuggling World'">524203</xsl:when>
<xsl:when test=". = 'Space Marines'">340446</xsl:when>
<xsl:when test=". = 'Space Mercenaries'">451433</xsl:when>
<xsl:when test=". = 'Space Port'">356379</xsl:when>
<xsl:when test=". = 'Spice World'">341378</xsl:when>
<xsl:when test=". = 'Star Nomad Lair'">353130</xsl:when>
<xsl:when test=". = 'Terraformed World'">340452</xsl:when>
<xsl:when test=". = 'Terraforming Engineers'">756180</xsl:when>
<xsl:when test=". = 'Terraforming Guild'">451435</xsl:when>
<xsl:when test=". = 'Terraforming Robots'">340906</xsl:when>
<xsl:when test=". = 'The Last of the Uplift Gnarssh'">357610</xsl:when>
<xsl:when test=". = 'Tourist World'">340464</xsl:when>
<xsl:when test=". = 'Trade League'">340448</xsl:when>
<xsl:when test=". = 'Trading Outpost'">524202</xsl:when>
<xsl:when test=". = 'Universal Exports'">756179</xsl:when>
<xsl:when test=". = 'Universal Peace Institute'">756177</xsl:when>
<xsl:when test=". = 'Universal Symbionts'">524200</xsl:when>
<xsl:when test=". = 'Uplift Code'">524198</xsl:when>
<xsl:when test=". = 'Uplift Gene Breeders'">756176</xsl:when>
<xsl:when test=". = 'Uplift Mercenary Force'">756174</xsl:when>
<xsl:when test=". = 'Uplift Revolt World'">756173</xsl:when>
<xsl:when test=". = 'Volcanic World'">451456</xsl:when>
<xsl:when test=". = 'Alien Research Ship'">1902420</xsl:when>
<xsl:when test=". = 'Alien Survey Technology'">1896652</xsl:when>
<xsl:when test=". = 'Galactic Investors'">1902458</xsl:when>
<xsl:when test=". = 'Imperium Stealth Tactics'">1894951</xsl:when>
<xsl:when test=". = 'Imperium Supply Convoy'">1896646</xsl:when>
<xsl:when test=". = 'Scientific Cruisers'">1902418</xsl:when>
<xsl:when test=". = 'Terraforming Project'">1897486</xsl:when>
<xsl:when test=". = 'Alien Artifact Hunters'">1896681</xsl:when>
<xsl:when test=". = 'Alien Fuel Refinery'">1902466</xsl:when>
<xsl:when test=". = 'Alien Sentinels'">1902464</xsl:when>
<xsl:when test=". = 'Alien Uplift Chamber'">1902416</xsl:when>
<xsl:when test=". = 'Amphibian Uplift Race'">1902462</xsl:when>
<xsl:when test=". = 'Arboreal Uplift Race'">1902460</xsl:when>
<xsl:when test=". = 'Deep Space Symbionts, Ltd.'">1902423</xsl:when>
<xsl:when test=". = 'Designer Species, Ultd.'">1896661</xsl:when>
<xsl:when test=". = 'Frontier Capital'">1896682</xsl:when>
<xsl:when test=". = 'Galactic News Hub'">1902417</xsl:when>
<xsl:when test=". = 'Galactic Survey Headquarters'">1902457</xsl:when>
<xsl:when test=". = 'Imperium Blaster Gem Depot'">1902455</xsl:when>
<xsl:when test=". = 'Imperium Fifth Column'">1902422</xsl:when>
<xsl:when test=". = 'Interstellar Trade Port'">1902477</xsl:when>
<xsl:when test=". = 'Jumpdrive Fuel Refinery'">1902476</xsl:when>
<xsl:when test=". = 'Mercenary Guild'">1902475</xsl:when>
<xsl:when test=". = 'Ore-Rich World'">1902474</xsl:when>
<xsl:when test=". = 'Rebel Gem Smugglers'">1902473</xsl:when>
<xsl:when test=". = 'Rebel Mutineers'">1896685</xsl:when>
<xsl:when test=". = 'Rebel Resistance'">1902415</xsl:when>
<xsl:when test=". = 'Rebel Uplift World'">1902421</xsl:when>
<xsl:when test=". = 'Self-Repairing Alien Artillery'">1902472</xsl:when>
<xsl:when test=". = 'Sentient Robots'">1894953</xsl:when>
<xsl:when test=". = 'Terraforming Colony'">1902470</xsl:when>
<xsl:when test=". = 'Tranship Point'">1902468</xsl:when>
<xsl:when test=". = 'Uplift Researchers'">1896684</xsl:when>
<xsl:when test=". = 'Alien Researchers'">1902453</xsl:when>
<xsl:when test=". = 'Galactic Expansionists'">1902459</xsl:when>
<xsl:when test=". = 'Imperium War Faction'">1902414</xsl:when>
<xsl:when test=". = 'Terraforming Unlimited'">1902413</xsl:when>
<xsl:when test=". = 'Uplift Alliance'">1902454</xsl:when>
<xsl:when test=". = 'Wormhole Prospectors'">1902467</xsl:when>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test=". = 'Alien Burial Site'">756229</xsl:when>
<xsl:when test=". = 'Alien Data Repository'">524249</xsl:when>
<xsl:when test=". = 'Alien Departure Point'">756226</xsl:when>
<xsl:when test=". = 'Alien Guardian'">756224</xsl:when>
<xsl:when test=". = 'Alien Monolith'">524247</xsl:when>
<xsl:when test=". = 'Alien Oort Cloud Refinery'">756218</xsl:when>
<xsl:when test=". = 'Alien Oort Cloud Refinery'">756222</xsl:when>
<xsl:when test=". = 'Alien Oort Cloud Refinery'">756221</xsl:when>
<xsl:when test=". = 'Alien Oort Cloud Refinery'">756220</xsl:when>
<xsl:when test=". = 'Alien Oort Cloud Refinery'">756219</xsl:when>
<xsl:when test=". = 'Alien Robot Scout Ship'">357631</xsl:when>
<xsl:when test=". = 'Alien Robot Sentry'">357383</xsl:when>
<xsl:when test=". = 'Alien Robotic Factory'">357651</xsl:when>
<xsl:when test=". = 'Alien Tourist Attraction'">757909</xsl:when>
<xsl:when test=". = 'Alien Toy Shop'">451469</xsl:when>
<xsl:when test=". = 'Alien Uplift Center'">524245</xsl:when>
<xsl:when test=". = 'Alpha Centauri'">341384</xsl:when>
<xsl:when test=". = 'Ancient Race'">451468</xsl:when>
<xsl:when test=". = 'Aquatic Uplift Race'">357642</xsl:when>
<xsl:when test=". = 'Artist Colony'">357655</xsl:when>
<xsl:when test=". = 'Asteroid Belt'">357600</xsl:when>
<xsl:when test=". = 'Avian Uplift Race'">357622</xsl:when>
<xsl:when test=". = 'Bio-Hazard Mining World'">357650</xsl:when>
<xsl:when test=". = 'Blaster Gem Mines'">357636</xsl:when>
<xsl:when test=". = 'Comet Zone'">357660</xsl:when>
<xsl:when test=". = 'Damaged Alien Factory'">451473</xsl:when>
<xsl:when test=". = 'Deserted Alien Colony'">357629</xsl:when>
<xsl:when test=". = 'Deserted Alien Library'">341373</xsl:when>
<xsl:when test=". = 'Deserted Alien Outpost'">354244</xsl:when>
<xsl:when test=". = 'Destroyed World'">357637</xsl:when>
<xsl:when test=". = 'Devolved Uplift Race'">524242</xsl:when>
<xsl:when test=". = 'Distant World'">357656</xsl:when>
<xsl:when test=". = 'Dying Colony'">524240</xsl:when>
<xsl:when test="contains(., 'Lost Colony')">341387</xsl:when>
<xsl:when test=". = 'Empath World'">357632</xsl:when>
<xsl:when test=". = 'Former Penal Colony'">357630</xsl:when>
<xsl:when test=". = 'Galactic Bazaar'">451466</xsl:when>
<xsl:when test=". = 'Galactic Resort'">357644</xsl:when>
<xsl:when test=". = 'Galactic Scavengers'">756210</xsl:when>
<xsl:when test=". = 'Galactic Studios'">451463</xsl:when>
<xsl:when test=". = 'Gem Smugglers'">524232</xsl:when>
<xsl:when test=". = 'Gem World'">341386</xsl:when>
<xsl:when test=". = 'Gene Designers'">524230</xsl:when>
<xsl:when test=". = 'Hive World'">451467</xsl:when>
<xsl:when test=". = 'Imperium Armaments World'">357663</xsl:when>
<xsl:when test=". = 'Imperium Blaster Gem Consortium'">524227</xsl:when>
<xsl:when test=". = 'Imperium Fuel Depot'">756206</xsl:when>
<xsl:when test=". = 'Information Hub'">756202</xsl:when>
<xsl:when test=". = 'Insect Uplift Race'">524221</xsl:when>
<xsl:when test=". = 'Interstellar Prospectors'">639052</xsl:when>
<xsl:when test=". = 'Lifeforms, Inc'">756199</xsl:when>
<xsl:when test=". = 'Lost Alien Battle Fleet'">357653</xsl:when>
<xsl:when test=". = 'Lost Alien Warship'">357635</xsl:when>
<xsl:when test=". = 'Lost Species Ark World'">341374</xsl:when>
<xsl:when test=". = 'Malevolent Lifeforms'">369685</xsl:when>
<xsl:when test=". = 'Mining Mole Uplift Race'">756197</xsl:when>
<xsl:when test=". = 'Mining World'">357648</xsl:when>
<xsl:when test=". = 'New Earth'">357654</xsl:when>
<xsl:when test=". = 'New Survivalists'">369686</xsl:when>
<xsl:when test=". = 'New Vinland'">340491</xsl:when>
<xsl:when test=". = 'Pirate World'">357647</xsl:when>
<xsl:when test=". = 'Plague World'">357657</xsl:when>
<xsl:when test=". = 'Pre-Sentient Race'">357623</xsl:when>
<xsl:when test=". = 'Primitive Rebel World'">524215</xsl:when>
<xsl:when test=". = 'Prosperous World'">369689</xsl:when>
<xsl:when test=". = 'Psi-Crystal World'">756191</xsl:when>
<xsl:when test=". = 'Radioactive World'">357624</xsl:when>
<xsl:when test=". = 'Ravaged Uplift World'">756189</xsl:when>
<xsl:when test=". = 'Rebel Convict Mines'">524209</xsl:when>
<xsl:when test=". = 'Rebel Fuel Cache'">341506</xsl:when>
<xsl:when test=". = 'Rebel Fuel Refinery'">756185</xsl:when>
<xsl:when test=". = 'Rebel Miners'">357652</xsl:when>
<xsl:when test=". = 'Rebel Sympathizers'">451475</xsl:when>
<xsl:when test=". = 'Rebel Warrior Race'">357634</xsl:when>
<xsl:when test=". = 'Refugee World'">357649</xsl:when>
<xsl:when test=". = 'Reptilian Uplift Race'">354243</xsl:when>
<xsl:when test=". = 'Retrofit & Salvage, Inc'">756181</xsl:when>
<xsl:when test=". = 'Runaway Robots'">357621</xsl:when>
<xsl:when test=". = 'Secluded World'">357662</xsl:when>
<xsl:when test=". = 'Smuggling Lair'">451472</xsl:when>
<xsl:when test=". = 'Smuggling World'">524204</xsl:when>
<xsl:when test=". = 'Space Port'">357385</xsl:when>
<xsl:when test=". = 'Spice World'">357658</xsl:when>
<xsl:when test=". = 'Star Nomad Lair'">357628</xsl:when>
<xsl:when test=". = 'The Last of the Uplift Gnarssh'">357633</xsl:when>
<xsl:when test=". = 'Universal Exports'">756178</xsl:when>
<xsl:when test=". = 'Universal Symbionts'">524201</xsl:when>
<xsl:when test=". = 'Uplift Gene Breeders'">756175</xsl:when>
<xsl:when test=". = 'Uplift Revolt World'">756172</xsl:when>
<xsl:when test=". = 'Volcanic World'">451470</xsl:when>
<xsl:when test=". = 'Alien Fuel Refinery'">1902564</xsl:when>
<xsl:when test=". = 'Alien Sentinels'">1902565</xsl:when>
<xsl:when test=". = 'Alien Uplift Chamber'">1902554</xsl:when>
<xsl:when test=". = 'Amphibian Uplift Race'">1902566</xsl:when>
<xsl:when test=". = 'Arboreal Uplift Race'">1902567</xsl:when>
<xsl:when test=". = 'Deep Space Symbionts, Ltd.'">1902553</xsl:when>
<xsl:when test=". = 'Designer Species, Ultd.'">1902552</xsl:when>
<xsl:when test=". = 'Galactic News Hub'">1902551</xsl:when>
<xsl:when test=". = 'Galactic Survey Headquarters'">1902568</xsl:when>
<xsl:when test=". = 'Imperium Blaster Gem Depot'">1902548</xsl:when>
<xsl:when test=". = 'Interstellar Trade Port'">1902563</xsl:when>
<xsl:when test=". = 'Jumpdrive Fuel Refinery'">1902562</xsl:when>
<xsl:when test=". = 'Mercenary Guild'">1902561</xsl:when>
<xsl:when test=". = 'Ore-Rich World'">1902559</xsl:when>
<xsl:when test=". = 'Rebel Gem Smugglers'">1902558</xsl:when>
<xsl:when test=". = 'Rebel Mutineers'">1902550</xsl:when>
<xsl:when test=". = 'Self-Repairing Alien Artillery'">1902557</xsl:when>
<xsl:when test=". = 'Terraforming Colony'">1902556</xsl:when>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>