-
Notifications
You must be signed in to change notification settings - Fork 2
/
bugs.xsl
802 lines (636 loc) · 20.6 KB
/
bugs.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
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE xsl:stylesheet>
<!--*
* Create the bugs HTML page from XML source file
*-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
xmlns:extfuncs="http://hea-www.harvard.edu/~dburke/xsl/extfuncs"
extension-element-prefixes="exsl extfuncs">
<!--* Change this if the filename changes *-->
<xsl:variable name="hack-import-bugs" select="extfuncs:register-import-dependency('bugs.xsl')"/>
<xsl:output method="text"/>
<!--* we place this here to see if it works (was in header.xsl and wasn't working
* - and it seems to
*-->
<!--* a template to output a new line (useful after a comment) *-->
<xsl:template name="newline">
<xsl:text>
</xsl:text>
</xsl:template>
<!--* load in the set of "global" parameters *-->
<xsl:include href="globalparams.xsl"/>
<!--* include the stylesheets AFTER defining the variables *-->
<xsl:include href="helper.xsl"/>
<xsl:include href="links.xsl"/>
<xsl:include href="myhtml.xsl"/>
<!--*
* top level: create
* index.html
*
*-->
<xsl:template match="/">
<!--* check the params are okay *-->
<xsl:call-template name="is-site-valid"/>
<xsl:call-template name="check-param-ends-in-a-slash">
<xsl:with-param name="pname" select="'install'"/>
<xsl:with-param name="pvalue" select="$install"/>
</xsl:call-template>
<xsl:call-template name="check-param-ends-in-a-slash">
<xsl:with-param name="pname" select="'canonicalbase'"/>
<xsl:with-param name="pvalue" select="$canonicalbase"/>
</xsl:call-template>
<!--* what do we create *-->
<xsl:apply-templates select="bugs" mode="page"/>
<xsl:if test="$site = 'ciao'">
<xsl:apply-templates select="bugs" mode="include"/>
</xsl:if>
</xsl:template> <!--* match=/ *-->
<!--*
* create bugs page: <bugs>.html
*-->
<xsl:template match="bugs" mode="page">
<xsl:variable name="filename"><xsl:value-of select="$install"/><xsl:value-of select="$pagename"/>.html</xsl:variable>
<!--* output filename to stdout *-->
<xsl:value-of select="$filename"/><xsl:call-template name="newline"/>
<!--* create document *-->
<xsl:document href="{$filename}" method="html" media-type="text/html"
doctype-system="about:legacy-compat"
version="5.0">
<!--* we start processing the XML file here *-->
<html lang="en-US">
<xsl:call-template name="add-htmlhead-standard"/>
<xsl:call-template name="add-body-withnavbar">
<xsl:with-param name="contents">
<h1 class="pagetitle">
<xsl:value-of select="/bugs/info/title/short"/>
</h1>
<div class="qlinkbar">
<xsl:if test="intro/altlink">
<p>
<xsl:text>Related pages: </xsl:text>
<xsl:apply-templates select="intro/altlink"/>
</p>
</xsl:if>
<xsl:if test="$site='ciao' and not(/bugs/info/noahelp)">
<xsl:variable name="hrefval"
select="concat('../ahelp/', $pagename, '.html')"/>
<p>
For detailed information and examples of running this tool,
refer to
<a href="{$hrefval}"><xsl:value-of
select="concat('the ', $pagename, ' ahelp file')"/></a>.
<xsl:if test="$site='ciao' and (/bugs/info/scripts)">
This script is part of
the <a href="../download/scripts/">CIAO Scripts Package</a>.
</xsl:if>
</p>
</xsl:if>
</div>
<xsl:if test="intro/note">
<xsl:apply-templates select="intro/note"/>
</xsl:if>
<xsl:variable name="ctbuglist" select="count(//buglist/entry[not(@cav)])"/>
<xsl:variable name="ctcavlist" select="count(//buglist/entry[@cav])"/>
<xsl:variable name="isbuglist">
<xsl:choose>
<xsl:when test="$ctbuglist > 0">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="iscavlist">
<xsl:choose>
<xsl:when test="$ctcavlist > 0">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="isfixlist" select="count(//fixlist)"/>
<xsl:variable name="isscriptlist" select="count(//scriptlist)"/>
<xsl:variable name="istotal" select="$isbuglist + $iscavlist + $isfixlist + $isscriptlist"/>
<xsl:if test="($istotal > 1) or (//buglist/subbuglist)">
<ul class="inlinenav">
<xsl:if test="//buglist/entry[@cav]">
<li>
<a>
<xsl:attribute name="href">
<xsl:text>#caveats</xsl:text>
</xsl:attribute>
<xsl:text>Caveats</xsl:text>
</a>
</li>
</xsl:if>
<xsl:if test="(//buglist/entry[not(@cav)]) or (//buglist/subbuglist)">
<xsl:choose>
<xsl:when test="(//buglist/subbuglist)">
<xsl:for-each select="//buglist/subbuglist">
<xsl:choose>
<xsl:when test="position()=1">
<li>
<xsl:text>Bugs: </xsl:text>
<a>
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
<xsl:value-of select="@ref"/>
</xsl:attribute>
<xsl:value-of select="@title"/>
</a>
</li>
</xsl:when>
<xsl:otherwise>
<li>
<a>
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
<xsl:value-of select="@ref"/>
</xsl:attribute>
<xsl:value-of select="@title"/>
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<li>
<a>
<xsl:attribute name="href">
<xsl:text>#bugs</xsl:text>
</xsl:attribute>
<xsl:text>Bugs</xsl:text>
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="//fixlist">
<xsl:for-each select="//fixlist">
<li>
<a>
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
<xsl:value-of select="concat('ciao',./@ver)"/>
</xsl:attribute>
<xsl:text>Bugs fixed in CIAO </xsl:text>
<xsl:value-of select="./@vername"/>
</a>
</li>
</xsl:for-each>
</xsl:if>
<xsl:if test="//scriptlist">
<xsl:for-each select="//scriptlist">
<li>
<a>
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
<xsl:value-of select="@ver"/>
</xsl:attribute>
<xsl:value-of select="@vername"/>
<xsl:text> Bug Fixes</xsl:text>
</a>
</li>
</xsl:for-each>
</xsl:if>
</ul> <!-- end inlinenav -->
</xsl:if>
<xsl:if test="(//buglist/entry and count(//buglist/entry)>1) or (//buglist/subbuglist)">
<hr/>
</xsl:if>
<!--// end front materials //-->
<!--// any known bugs? -->
<xsl:if test="not(//buglist)">
<hr/>
<p>
There are currently no known bugs.
</p>
<hr/>
</xsl:if>
<!--// create TOC if there is more than one bug entry //-->
<xsl:if test="//buglist/subbuglist or (//buglist/entry and count(//buglist/entry)>1)">
<h2 class="toc">Table of Contents</h2>
<xsl:if test="//buglist/entry[@cav]">
<h3 id="caveats">Caveats</h3>
<ul>
<xsl:apply-templates select="//buglist/entry[@cav]" mode="toc"/>
</ul>
</xsl:if>
<xsl:if test="(//buglist/entry[not(@cav)]) or (//buglist/subbuglist)">
<xsl:choose>
<xsl:when test="//buglist/subbuglist">
<xsl:apply-templates select="//buglist/subbuglist" mode="toc"/>
</xsl:when>
<xsl:otherwise>
<h3 id="bugs">Bugs</h3>
<ul>
<xsl:apply-templates select="//buglist/entry[not(@cav)]" mode="toc"/>
</ul>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:if>
<!--// end TOC //-->
<!-- create body //-->
<xsl:if test="//buglist/entry[@cav]">
<hr/>
<h2>Caveats</h2>
<xsl:apply-templates select="//buglist/entry[@cav]" mode="main"/>
</xsl:if>
<xsl:if test="(//buglist/entry[not(@cav)]) or (//buglist/subbuglist)">
<hr/>
<h2>Bugs</h2>
<xsl:choose>
<xsl:when test="//buglist/subbuglist">
<xsl:apply-templates select="//buglist/subbuglist" mode="main"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="//buglist/entry[not(@cav)]" mode="main"/>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<!--// add "fixed in CIAO x.x" section if applicable //-->
<xsl:if test="//fixlist">
<xsl:if test="//buglist">
<hr/>
</xsl:if>
<xsl:for-each select="//fixlist">
<h2>
<xsl:attribute name="id">
<xsl:value-of select="concat('ciao',./@ver)"/>
</xsl:attribute>
<xsl:text>Bugs fixed in CIAO </xsl:text>
<xsl:value-of select="./@vername"/>
</h2>
<p>
The following is a list of bugs that were fixed
in the CIAO <xsl:value-of select="./@vername"/>
software release.
</p>
<xsl:apply-templates select="./entry" mode="main"/>
</xsl:for-each>
</xsl:if>
<!--// end "fixed in CIAO x.x" section //-->
<!--// add "fixed in version x.x of this script" section if applicable //-->
<xsl:if test="//scriptlist">
<xsl:if test="(//buglist) or (//fixlist)">
<hr/>
</xsl:if>
<xsl:for-each select="//scriptlist">
<h2>
<a>
<xsl:attribute name="name">
<xsl:value-of select="@ver"/>
</xsl:attribute>
<xsl:value-of select="@vername"/>
<xsl:text> Bug Fixes</xsl:text>
</a>
</h2>
<p>
The following is a list of bugs that were fixed
in version <xsl:value-of select="@vername"/>.
</p>
<xsl:apply-templates select="entry" mode="main"/>
</xsl:for-each>
</xsl:if>
<!--// end "fixed in version x.x" section //-->
<!--// end body //-->
</xsl:with-param>
<xsl:with-param name="navbar">
<xsl:call-template name="add-navbar">
<xsl:with-param name="name" select="info/navbar"/>
</xsl:call-template>
</xsl:with-param>
<!-- TODO: do we want to make this optional? -->
<xsl:with-param name="breadcrumbs" select="true()"/>
<xsl:with-param name="location" select="$filename"/>
</xsl:call-template>
</html>
</xsl:document>
</xsl:template> <!--* match=bugs *-->
<!--*
* create the file that ahelp processing will pick up to
* include this information in the ahelp page.
*
* TODO: do not write out if
* just contains 'no known bugs' statement.
*
*-->
<xsl:template match="bugs" mode="include">
<!-- write the slug to the storage area -->
<xsl:variable name="outloc" select="$storageInfo//dir[@site=$site]"/>
<xsl:variable name="filename"
select="concat($outloc, 'bugs/', $pagename, '.slug.xml')"/>
<!--* output filename to stdout *-->
<xsl:value-of select="$filename"/><xsl:call-template name="newline"/>
<xsl:variable name="should-not-be-a-function"
select="extfuncs:delete-file-if-exists($filename)"/>
<xsl:document href="{$filename}" method="xml" encoding="UTF-8">
<!--* add disclaimer about editing this HTML file *-->
<xsl:call-template name="add-disclaimer"/>
<slug>
<xsl:if test="not(//buglist)">
<p>There are no known bugs for this tool.</p>
</xsl:if>
<xsl:if test="(//buglist/entry[not(@cav)]) or (//buglist/subbuglist)">
<xsl:choose>
<xsl:when test="//buglist/subbuglist">
<xsl:apply-templates select="//buglist/subbuglist" mode="ahelp-buglist"/>
</xsl:when>
<xsl:otherwise>
<dl>
<xsl:apply-templates select="//buglist/entry[not(@cav)]" mode="ahelp-buglist"/>
</dl>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="//buglist/entry[@cav]">
<h2 id="caveats">Caveats</h2>
<dl>
<xsl:apply-templates select="//buglist/entry[@cav]" mode="ahelp-buglist"/>
</dl>
</xsl:if>
</slug>
</xsl:document>
</xsl:template> <!--* match=bugs mode=include *-->
<!--* note: we process the text so we can handle our `helper' tags *-->
<xsl:template match="text">
<xsl:apply-templates/>
</xsl:template>
<!-- subbuglist table of contents template -->
<xsl:template match="subbuglist" mode="toc">
<xsl:for-each select=".">
<h3>
<a>
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
<xsl:value-of select="@ref"/>
</xsl:attribute>
<xsl:value-of select="@title"/>
</a>
</h3>
<ul>
<xsl:apply-templates select="./entry" mode="toc"/>
</ul>
</xsl:for-each>
</xsl:template>
<!-- end subbuglist table of contents template -->
<!-- table of contents template -->
<xsl:template match="entry" mode="toc">
<xsl:for-each select=".">
<!-- create summary and id -->
<li>
<p>
<a>
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="@ref"><xsl:text>#</xsl:text><xsl:value-of select="@ref"/></xsl:when>
<xsl:when test="@bugnum"><xsl:text>#bug-</xsl:text><xsl:value-of select="@bugnum"/></xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
ERROR: you must have either a ref or a bugnum attribute on the entry
</xsl:message>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:apply-templates select="summary/*|summary/text()"/>
<!--// add new/updated icon if the entry has a type attribute //-->
<xsl:if test="@type">
<xsl:choose>
<xsl:when test="@type = 'new'">
<xsl:call-template name="add-image">
<xsl:with-param name="src" select="'imgs/new.gif'"/>
<xsl:with-param name="alt" select="'New'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="@type = 'updated'">
<xsl:call-template name="add-image">
<xsl:with-param name="src" select="'imgs/updated.gif'"/>
<xsl:with-param name="alt" select="'Updated'"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
ERROR: item tag found in navbar with unrecognised type attribute
of type=<xsl:value-of select="@type"/>
</xsl:message>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="./date">
<xsl:apply-templates select="./date"/>
</xsl:if>
<xsl:if test="./platform">
<br/>
<xsl:text>(</xsl:text>
<xsl:apply-templates select="platform/text()"/>
<xsl:text>) </xsl:text>
</xsl:if>
</a>
</p>
</li>
</xsl:for-each>
</xsl:template>
<!-- table of contents template -->
<!-- subbuglist content template -->
<xsl:template match="subbuglist" mode="main">
<xsl:for-each select=".">
<h3>
<a>
<xsl:attribute name="name">
<xsl:value-of select="@ref"/>
</xsl:attribute>
<xsl:value-of select="@title"/>
</a>
</h3>
<ol>
<xsl:apply-templates select="entry" mode="main"/>
</ol>
</xsl:for-each>
</xsl:template>
<!-- end subbuglist content template -->
<!-- main bug content template -->
<xsl:template match="entry" mode="main">
<xsl:for-each select=".">
<!-- create summary and id -->
<div class="bugitem">
<div class="bugsummary">
<xsl:attribute name="id">
<xsl:choose>
<xsl:when test="@ref"><xsl:value-of select="@ref"/></xsl:when>
<xsl:when test="@bugnum"><xsl:text>bug-</xsl:text><xsl:value-of select="@bugnum"/></xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
ERROR: you must have either a ref or a bugnum attribute on the entry
</xsl:message>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<p>
<xsl:apply-templates select="summary/*|summary/text()"/>
<!--// add new/updated icon if the entry has a type attribute //-->
<xsl:if test="@type">
<xsl:choose>
<xsl:when test="@type = 'new'">
<xsl:call-template name="add-image">
<xsl:with-param name="src" select="'imgs/new.gif'"/>
<xsl:with-param name="alt" select="'New'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="@type = 'updated'">
<xsl:call-template name="add-image">
<xsl:with-param name="src" select="'imgs/updated.gif'"/>
<xsl:with-param name="alt" select="'Updated'"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
ERROR: item tag found in navbar with unrecognised type attribute
of type=<xsl:value-of select="@type"/>
</xsl:message>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="./date">
<xsl:apply-templates select="./date"/>
</xsl:if>
<xsl:if test="./platform">
<br/>
<xsl:text>(</xsl:text>
<xsl:apply-templates select="platform/text()"/>
<xsl:text>) </xsl:text>
</xsl:if>
</p>
<!-- done with summary and id -->
</div>
<xsl:if test="./desc">
<div class="buganswer">
<xsl:apply-templates select="desc/*"/>
</div>
</xsl:if>
<xsl:if test="./work">
<div class="buganswer">
<xsl:if test="count(work) > 1">
<h4>Workarounds:</h4>
<ol>
<xsl:for-each select="work">
<li>
<xsl:apply-templates select="./*"/>
</li>
</xsl:for-each>
</ol>
</xsl:if>
<xsl:if test="count(work) = 1">
<h4>Workaround:</h4>
<xsl:apply-templates select="work/*"/>
</xsl:if>
</div>
</xsl:if>
</div>
</xsl:for-each>
</xsl:template>
<!-- end main bug content template -->
<!-- subbuglist ahelp content template -->
<xsl:template match="subbuglist" mode="ahelp-buglist">
<xsl:for-each select=".">
<h3><xsl:value-of select="@title"/></h3>
<xsl:apply-templates select="entry" mode="ahelp-buglist"/>
</xsl:for-each>
</xsl:template>
<!-- end subbuglist ahelp content template -->
<!-- ahelp bug content template -->
<xsl:template match="entry" mode="ahelp-buglist">
<xsl:for-each select=".">
<!-- create summary and id -->
<dt class="ahelp">
<xsl:apply-templates select="summary/*|summary/text()"/>
<!--// add new/updated icon if the entry has a type attribute //-->
<xsl:if test="@type">
<xsl:choose>
<xsl:when test="@type = 'new'">
<xsl:call-template name="add-image">
<xsl:with-param name="src" select="'imgs/new.gif'"/>
<xsl:with-param name="alt" select="'New'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="@type = 'updated'">
<xsl:call-template name="add-image">
<xsl:with-param name="src" select="'imgs/updated.gif'"/>
<xsl:with-param name="alt" select="'Updated'"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
ERROR: item tag found with unrecognised type attribute
of type=<xsl:value-of select="@type"/>
</xsl:message>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="./date">
<xsl:apply-templates select="./date"/>
</xsl:if>
<xsl:if test="./platform">
<br/>
<xsl:text>(</xsl:text>
<xsl:apply-templates select="platform/text()"/>
<xsl:text>) </xsl:text>
</xsl:if>
</dt>
<!-- done with summary and id -->
<xsl:if test="./desc">
<dd>
<xsl:apply-templates select="desc/*"/>
</dd>
</xsl:if>
<xsl:if test="./work">
<dd>
<xsl:if test="count(work) > 1">
<h4>Workarounds:</h4>
<ol>
<xsl:for-each select="work">
<li>
<xsl:apply-templates select="./*"/>
</li>
</xsl:for-each>
</ol>
</xsl:if>
<xsl:if test="count(work) = 1">
<h4>Workaround:</h4>
<xsl:apply-templates select="work/*"/>
</xsl:if>
</dd>
</xsl:if>
</xsl:for-each>
</xsl:template>
<!-- end ahelp bug content template -->
<!--* altlinks template *-->
<xsl:template match="intro/altlink">
<xsl:for-each select=".">
<a>
<xsl:attribute name="href">
<xsl:value-of select="@ref"/>
</xsl:attribute>
<xsl:value-of select="text()"/>
</a>
</xsl:for-each>
<xsl:if test="position() != last()">
<xsl:text> | </xsl:text>
</xsl:if>
</xsl:template>
<!--* end altlinks template *-->
<!--* intro/note template *-->
<xsl:template match="intro/note">
<xsl:apply-templates/>
</xsl:template>
<!--* date template *-->
<xsl:template match="date">
<span class="date"> (<xsl:number value="@day" format="01"/>
<xsl:text> </xsl:text>
<xsl:value-of select="substring(@month,1,3)"/>
<xsl:text> </xsl:text>
<xsl:choose>
<xsl:when test="@year >= 2000"><xsl:number value="@year"/></xsl:when>
<xsl:otherwise><xsl:number value="@year+2000"/></xsl:otherwise>
</xsl:choose>)</span>
</xsl:template>
<!--* end date template *-->
</xsl:stylesheet>