testability-driver 1.4.4 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,19 +5,19 @@
5
5
  xmlns:exsl="http://exslt.org/common"
6
6
  extension-element-prefixes="exsl str">
7
7
 
8
- <xsl:preserve-space elements="*"/>
9
- <xsl:output method="html"/>
8
+ <xsl:preserve-space elements="*"/>
9
+ <xsl:output method="html"/>
10
10
 
11
- <xsl:template match="/">
12
- <html>
13
- <head>
14
- <style TYPE="text/css">
11
+ <xsl:template match="/">
12
+ <html>
13
+ <head>
14
+ <style TYPE="text/css">
15
15
 
16
16
  body
17
17
  {
18
18
  padding: 10px;
19
19
  border: #e7e7e7 1px solid;
20
- background: #ffffff;
20
+ background: #74C2E1;
21
21
  color: black;
22
22
  font-size: 13px;
23
23
  cursor: default;
@@ -301,9 +301,10 @@
301
301
  span.toc_title
302
302
  {
303
303
 
304
- font-size: 14px;
304
+ font-size: 24px;
305
305
  font-weight: bold;
306
306
  #text-shadow: #909090 1px 1px 1px;
307
+ text-align: center;
307
308
 
308
309
  }
309
310
 
@@ -311,7 +312,7 @@
311
312
  {
312
313
 
313
314
  padding: 5px;
314
- width: 100%;
315
+ width: 65%;
315
316
  word-spacing: normal;
316
317
  }
317
318
 
@@ -319,15 +320,17 @@
319
320
  {
320
321
 
321
322
  padding: 7px;
323
+
322
324
  }
323
325
 
324
326
  a.toc_item
325
327
  {
326
328
 
327
- font-size: 11px;
329
+ font-size: 20px;
328
330
  text-decoration: none;
329
331
  color: #313131;
330
-
332
+ text-align: center;
333
+
331
334
  }
332
335
 
333
336
  a.toc_item:hover
@@ -402,31 +405,38 @@
402
405
 
403
406
  }
404
407
 
405
- </style>
406
- </head>
407
- <body>
408
-
409
- <a name="top">
410
- <h2>Testability Driver API Documentation</h2>
411
- </a>
408
+ </style>
409
+ </head>
410
+ <body>
411
+
412
+ <a name="top">
413
+ <center>
414
+ <h1>Testability Driver API Documentation</h1>
415
+ </center>
416
+ </a>
412
417
 
413
- <xsl:apply-templates/>
418
+ <xsl:apply-templates/>
414
419
 
415
- </body>
416
- </html>
417
- </xsl:template>
420
+ </body>
421
+ </html>
422
+ </xsl:template>
418
423
 
419
- <xsl:template match="documentation">
424
+ <xsl:template match="documentation">
420
425
 
421
426
  <!-- table of contents -->
422
- <span class="toc_title">Table of contents:</span>
423
- <br />
427
+ <center>
428
+ <span class="toc_title">Table of contents:</span>
429
+ <br />
424
430
 
425
- <div class="toc">
426
-
427
- <xsl:for-each select="feature/@name">
428
-
429
- <xsl:sort select="." />
431
+ <div class="toc">
432
+ <table class="default">
433
+ <tr class="header">
434
+ <td class="header">Method</td>
435
+ <td class="header">Description</td>
436
+ </tr>
437
+ <xsl:for-each select="feature/@name">
438
+
439
+ <xsl:sort select="." />
430
440
 
431
441
  <!---
432
442
 
@@ -434,61 +444,88 @@
434
444
 
435
445
  -->
436
446
 
437
- <xsl:variable name="name"><xsl:value-of select="../@name"/></xsl:variable>
438
- <xsl:variable name="module"><xsl:value-of select="../behaviour/@module"/></xsl:variable>
439
- <xsl:variable name="module_name"><xsl:value-of select="../behaviour/@name"/></xsl:variable>
440
-
441
- <xsl:for-each select="str:split(.,';')">
442
- <span class="toc_block"><a href="#{ $module_name }:{ $name }" class="toc_item" title="{ $module_name } ({ $module })"><xsl:value-of select="." /></a><xsl:text> </xsl:text></span>
443
- </xsl:for-each>
444
-
445
- <xsl:text> </xsl:text>
447
+ <xsl:variable name="name">
448
+ <xsl:value-of select="../@name"/>
449
+ </xsl:variable>
450
+ <xsl:variable name="module">
451
+ <xsl:value-of select="../behaviour/@module"/>
452
+ </xsl:variable>
453
+ <xsl:variable name="module_name">
454
+ <xsl:value-of select="../behaviour/@name"/>
455
+ </xsl:variable>
456
+ <xsl:variable name="feature_description">
457
+ <xsl:call-template name="formatted_content">
458
+ <xsl:with-param name="text" select="../description/text()" />
459
+ </xsl:call-template>
460
+ </xsl:variable>
461
+
462
+ <tr>
463
+ <td class="tablebg_even" valign="top">
464
+ <xsl:for-each select="str:split(.,';')">
465
+ <span class="toc_block">
466
+ <a href="#{ $module_name }:{ $name }" class="toc_item" title="{ $module_name } ({ $module })">
467
+ <xsl:value-of select="." />
468
+ </a>
469
+ <xsl:text> </xsl:text>
470
+ </span>
471
+ </xsl:for-each>
472
+ </td>
473
+ <td class="tablebg_even" valign="top">
474
+
475
+ <xsl:value-of select="$feature_description" />
476
+
477
+ </td>
478
+ </tr>
479
+ <xsl:text> </xsl:text>
446
480
 
447
- </xsl:for-each>
448
-
449
- </div>
450
- <br />
481
+ </xsl:for-each>
482
+ </table>
483
+ </div>
484
+ </center>
485
+ <hr />
451
486
 
452
487
  <!-- content -->
453
488
 
454
- <xsl:for-each select="feature">
455
- <xsl:sort select="@name" />
456
- <xsl:call-template name="feature">
457
- </xsl:call-template>
489
+ <xsl:for-each select="feature">
490
+ <xsl:sort select="@name" />
491
+ <xsl:call-template name="feature">
492
+ </xsl:call-template>
458
493
 
459
- </xsl:for-each>
494
+ </xsl:for-each>
460
495
 
461
- </xsl:template>
496
+ </xsl:template>
462
497
 
463
- <xsl:template name="feature_name">
498
+ <xsl:template name="feature_name">
464
499
 
465
500
  <!-- implements following features, e.g. method name, attribute reader, attribute writer or both when attribute accessor -->
466
501
 
467
502
  <!-- #{ $module }.{ $name }-->
468
503
 
469
- <a name="{ ./behaviour/@name }:{ @name }"></a>
470
- <div class="feature_title">
471
- <a href="#{ ./behaviour/@name }:{ @name }" class="feature_name_link">
472
- <xsl:for-each select="str:split(@name,';')">
473
- <span class="feature_title_text"><xsl:value-of select="."/></span>
474
- <xsl:if test="position()!=last()">
475
- <xsl:text>, </xsl:text>
476
- </xsl:if>
477
- </xsl:for-each>
478
- </a>
479
- </div>
504
+ <a name="{ ./behaviour/@name }:{ @name }"></a>
505
+ <div class="feature_title">
506
+ <a href="#{ ./behaviour/@name }:{ @name }" class="feature_name_link">
507
+ <xsl:for-each select="str:split(@name,';')">
508
+ <span class="feature_title_text">
509
+ <xsl:value-of select="."/>
510
+ </span>
511
+ <xsl:if test="position()!=last()">
512
+ <xsl:text>, </xsl:text>
513
+ </xsl:if>
514
+ </xsl:for-each>
515
+ </a>
516
+ </div>
480
517
 
481
- <br />
518
+ <br />
482
519
 
483
- </xsl:template>
520
+ </xsl:template>
484
521
 
485
- <xsl:template name="call_sequence">
522
+ <xsl:template name="call_sequence">
486
523
 
487
- <div class="feature_section_title">Call sequence:</div>
524
+ <div class="feature_section_title">Call sequence:</div>
488
525
 
489
- <div class="feature_call_sequence">
526
+ <div class="feature_call_sequence">
490
527
  <!-- method: call example using parameters -->
491
- <xsl:if test="@type='method'">
528
+ <xsl:if test="@type='method'">
492
529
 
493
530
  <!-- contains($type/@name,' ') -->
494
531
 
@@ -508,539 +545,564 @@
508
545
 
509
546
  <!-- determine whether add dot between the object and method; e.g. object.method or object[]-->
510
547
 
511
- <xsl:choose>
512
- <xsl:when test="contains(@name, '[')">
513
- <xsl:text>object</xsl:text>
514
- </xsl:when>
515
- <xsl:otherwise>
516
- <xsl:text>object.</xsl:text><xsl:value-of select="@name" />
517
- </xsl:otherwise>
518
- </xsl:choose>
548
+ <xsl:choose>
549
+ <xsl:when test="contains(@name, '[')">
550
+ <xsl:text>object</xsl:text>
551
+ </xsl:when>
552
+ <xsl:otherwise>
553
+ <xsl:text>object.</xsl:text>
554
+ <xsl:value-of select="@name" />
555
+ </xsl:otherwise>
556
+ </xsl:choose>
519
557
 
520
- <xsl:choose>
558
+ <xsl:choose>
521
559
 
522
- <xsl:when test="arguments/@count>0 and count(arguments/argument)&lt;arguments/@count">
523
- <xsl:text>( </xsl:text><xsl:call-template name="span_warning">
524
- <xsl:with-param name="text">Incomplete arguments documentation</xsl:with-param>
525
- </xsl:call-template><xsl:text> )</xsl:text>
526
- </xsl:when>
560
+ <xsl:when test="arguments/@count>0 and count(arguments/argument)&lt;arguments/@count">
561
+ <xsl:text>( </xsl:text>
562
+ <xsl:call-template name="span_warning">
563
+ <xsl:with-param name="text">Incomplete arguments documentation</xsl:with-param>
564
+ </xsl:call-template>
565
+ <xsl:text> )</xsl:text>
566
+ </xsl:when>
527
567
 
528
- <xsl:when test="count(arguments/argument)=0"></xsl:when>
568
+ <xsl:when test="count(arguments/argument)=0"></xsl:when>
529
569
 
530
- <xsl:when test="count(arguments/argument)>0">
570
+ <xsl:when test="count(arguments/argument)>0">
531
571
 
532
572
  <!-- do not show parenthesis if first argument is type of block -->
533
- <xsl:if test="arguments/argument[1]/@type!='block'">
573
+ <xsl:if test="arguments/argument[1]/@type!='block'">
534
574
 
535
- <xsl:choose>
536
- <xsl:when test="contains(@name, '[')">
537
- <xsl:text>[ </xsl:text>
538
- </xsl:when>
539
- <xsl:otherwise>
540
- <xsl:text>( </xsl:text>
541
- </xsl:otherwise>
542
- </xsl:choose>
575
+ <xsl:choose>
576
+ <xsl:when test="contains(@name, '[')">
577
+ <xsl:text>[ </xsl:text>
578
+ </xsl:when>
579
+ <xsl:otherwise>
580
+ <xsl:text>( </xsl:text>
581
+ </xsl:otherwise>
582
+ </xsl:choose>
543
583
 
544
584
  <!--<xsl:text>( </xsl:text>-->
545
585
 
546
586
  <!-- collect arguments for example -->
547
- <xsl:for-each select="arguments/argument">
587
+ <xsl:for-each select="arguments/argument">
548
588
 
549
- <xsl:if test="@type='normal' or @type='multi'">
589
+ <xsl:if test="@type='normal' or @type='multi'">
550
590
 
551
- <xsl:choose>
591
+ <xsl:choose>
552
592
 
553
- <xsl:when test="@optional='true'">
593
+ <xsl:when test="@optional='true'">
554
594
 
555
- <span class="optional_argument" title="Optional argument">
595
+ <span class="optional_argument" title="Optional argument">
556
596
 
557
- <xsl:if test="@type='multi'">
558
- <xsl:text></xsl:text>
559
- </xsl:if>
597
+ <xsl:if test="@type='multi'">
598
+ <xsl:text></xsl:text>
599
+ </xsl:if>
560
600
 
561
- <xsl:text></xsl:text>
562
- <span class="hover_text">
563
- <xsl:value-of select="@name"/>
564
- <xsl:if test="@type='multi'">
565
- <xsl:text>, ..., ...</xsl:text>
566
- </xsl:if>
567
- </span>
601
+ <xsl:text></xsl:text>
602
+ <span class="hover_text">
603
+ <xsl:value-of select="@name"/>
604
+ <xsl:if test="@type='multi'">
605
+ <xsl:text>, ..., ...</xsl:text>
606
+ </xsl:if>
607
+ </span>
568
608
 
569
- <xsl:text></xsl:text>
609
+ <xsl:text></xsl:text>
570
610
 
571
- </span>
611
+ </span>
572
612
 
573
- </xsl:when>
613
+ </xsl:when>
574
614
 
575
- <xsl:otherwise>
576
- <span title="Mandatory argument" class="hover_text"><xsl:value-of select="@name"/></span>
577
- </xsl:otherwise>
615
+ <xsl:otherwise>
616
+ <span title="Mandatory argument" class="hover_text">
617
+ <xsl:value-of select="@name"/>
618
+ </span>
619
+ </xsl:otherwise>
578
620
 
579
- </xsl:choose>
621
+ </xsl:choose>
580
622
 
581
623
  <!-- separate arguments with comma if next argument defintion is not type of block -->
582
- <xsl:if test="position()!=last() and (string(following-sibling::argument/@type)!='block' and string(following-sibling::argument/@type)!='block_argument')">
583
- <xsl:text>, </xsl:text>
584
- </xsl:if>
624
+ <xsl:if test="position()!=last() and (string(following-sibling::argument/@type)!='block' and string(following-sibling::argument/@type)!='block_argument')">
625
+ <xsl:text>, </xsl:text>
626
+ </xsl:if>
585
627
 
586
- </xsl:if>
628
+ </xsl:if>
587
629
 
588
- </xsl:for-each>
630
+ </xsl:for-each>
589
631
  <!--<xsl:text> ) </xsl:text>-->
590
632
 
591
- <xsl:choose>
592
- <xsl:when test="contains(@name, ']')">
593
- <xsl:text> ] </xsl:text>
594
- </xsl:when>
595
- <xsl:otherwise>
596
- <xsl:text> ) </xsl:text>
597
- </xsl:otherwise>
598
- </xsl:choose>
633
+ <xsl:choose>
634
+ <xsl:when test="contains(@name, ']')">
635
+ <xsl:text> ] </xsl:text>
636
+ </xsl:when>
637
+ <xsl:otherwise>
638
+ <xsl:text> ) </xsl:text>
639
+ </xsl:otherwise>
640
+ </xsl:choose>
599
641
 
600
642
 
601
- </xsl:if>
643
+ </xsl:if>
602
644
 
603
645
  <!-- collect arguments for example -->
604
- <xsl:for-each select="arguments/argument">
646
+ <xsl:for-each select="arguments/argument">
605
647
 
606
- <xsl:if test="./@type='block'">
648
+ <xsl:if test="./@type='block'">
607
649
 
608
- <xsl:text>{ </xsl:text>
650
+ <xsl:text>{ </xsl:text>
609
651
 
610
- <xsl:for-each select="../../arguments/argument[@type='block_argument']">
652
+ <xsl:for-each select="../../arguments/argument[@type='block_argument']">
611
653
 
612
- <xsl:choose>
613
- <xsl:when test="position()=1">
614
- <xsl:text>| </xsl:text>
615
- </xsl:when>
616
- <xsl:otherwise>
617
- <xsl:text>, </xsl:text>
618
- </xsl:otherwise>
619
- </xsl:choose>
654
+ <xsl:choose>
655
+ <xsl:when test="position()=1">
656
+ <xsl:text>| </xsl:text>
657
+ </xsl:when>
658
+ <xsl:otherwise>
659
+ <xsl:text>, </xsl:text>
660
+ </xsl:otherwise>
661
+ </xsl:choose>
620
662
 
621
- <span title="Code block argument, mandatory or optional" class="hover_text"><xsl:value-of select="str:split(@name,'#')[2]"/></span>
663
+ <span title="Code block argument, mandatory or optional" class="hover_text">
664
+ <xsl:value-of select="str:split(@name,'#')[2]"/>
665
+ </span>
622
666
 
623
- <xsl:if test="position()=last()">
624
- <xsl:text> | </xsl:text>
625
- </xsl:if>
667
+ <xsl:if test="position()=last()">
668
+ <xsl:text> | </xsl:text>
669
+ </xsl:if>
626
670
 
627
- </xsl:for-each>
671
+ </xsl:for-each>
628
672
 
629
- <span class="hover_text" title="Code block, mandatory or optional"><xsl:value-of select="@name"/></span>
630
- <xsl:text> }</xsl:text>
673
+ <span class="hover_text" title="Code block, mandatory or optional">
674
+ <xsl:value-of select="@name"/>
675
+ </span>
676
+ <xsl:text> }</xsl:text>
631
677
 
632
- </xsl:if>
678
+ </xsl:if>
633
679
 
634
- </xsl:for-each>
680
+ </xsl:for-each>
635
681
 
636
- </xsl:when>
682
+ </xsl:when>
637
683
 
638
- </xsl:choose>
684
+ </xsl:choose>
639
685
 
640
686
  <!-- describe block usage -->
641
- <xsl:if test="count(arguments/block)>0">
642
- <xsl:text>{ dsadsa</xsl:text>
687
+ <xsl:if test="count(arguments/block)>0">
688
+ <xsl:text>{ dsadsa</xsl:text>
643
689
  <!-- TODO: block arguments -->
644
- <xsl:value-of select="arguments/block/@name" />
645
- <xsl:text> }</xsl:text>
646
- </xsl:if>
647
- <br />
648
- </xsl:if>
690
+ <xsl:value-of select="arguments/block/@name" />
691
+ <xsl:text> }</xsl:text>
692
+ </xsl:if>
693
+ <br />
694
+ </xsl:if>
649
695
 
650
696
  <!-- attr_reader/attr_accessor: call example -->
651
- <xsl:if test="@type='reader' or @type='accessor'">
652
- <xsl:text>return_value = object.</xsl:text>
653
- <xsl:value-of select="str:split(@name,';')[1]" />
654
- <br />
655
- </xsl:if>
697
+ <xsl:if test="@type='reader' or @type='accessor'">
698
+ <xsl:text>return_value = object.</xsl:text>
699
+ <xsl:value-of select="str:split(@name,';')[1]" />
700
+ <br />
701
+ </xsl:if>
656
702
 
657
703
  <!-- attr_writer/attr_accessor: call example -->
658
- <xsl:if test="@type='writer' or @type='accessor'">
704
+ <xsl:if test="@type='writer' or @type='accessor'">
659
705
 
660
706
  <!-- TODO: argument name from arguments array -->
661
- <xsl:text>object.</xsl:text>
662
- <xsl:value-of select="str:split(@name,';')[1]" />
663
- <xsl:text> = ( </xsl:text>
707
+ <xsl:text>object.</xsl:text>
708
+ <xsl:value-of select="str:split(@name,';')[1]" />
709
+ <xsl:text> = ( </xsl:text>
664
710
 
665
- <xsl:choose>
711
+ <xsl:choose>
666
712
 
667
- <xsl:when test="count(arguments/argument)=0">
668
- <span title="Mandatory value" class="hover_text"><xsl:text>new_value</xsl:text></span>
669
- </xsl:when>
713
+ <xsl:when test="count(arguments/argument)=0">
714
+ <span title="Mandatory value" class="hover_text">
715
+ <xsl:text>new_value</xsl:text>
716
+ </span>
717
+ </xsl:when>
670
718
 
671
- <xsl:otherwise>
672
- <span title="Mandatory value" class="hover_text"><xsl:value-of select="arguments/argument[1]/@name" /></span>
673
- </xsl:otherwise>
719
+ <xsl:otherwise>
720
+ <span title="Mandatory value" class="hover_text">
721
+ <xsl:value-of select="arguments/argument[1]/@name" />
722
+ </span>
723
+ </xsl:otherwise>
674
724
 
675
- </xsl:choose>
725
+ </xsl:choose>
676
726
 
677
- <xsl:text> )</xsl:text>
678
- <br />
679
- </xsl:if>
727
+ <xsl:text> )</xsl:text>
728
+ <br />
729
+ </xsl:if>
680
730
 
681
- </div>
731
+ </div>
682
732
 
683
- <br />
733
+ <br />
684
734
 
685
- </xsl:template>
735
+ </xsl:template>
686
736
 
687
737
  <!-- template to capitalize string -->
688
- <xsl:template name="capitalize">
738
+ <xsl:template name="capitalize">
689
739
 
690
- <xsl:param name="text" />
740
+ <xsl:param name="text" />
691
741
 
692
- <xsl:value-of select="concat(translate(substring($text,1,1), 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'), substring($text,2))"/>
742
+ <xsl:value-of select="concat(translate(substring($text,1,1), 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'), substring($text,2))"/>
693
743
 
694
- </xsl:template>
744
+ </xsl:template>
695
745
 
696
- <xsl:template name="target_details">
746
+ <xsl:template name="target_details">
697
747
 
698
- <div class="feature_section_title">Feature and target details:</div>
699
- <table class="default">
700
- <tr class="header">
701
- <td class="header">Type</td>
702
- <td class="header">Target object</td>
703
- <td class="header">SUT type</td>
704
- <td class="header">SUT version</td>
705
- <td class="header">SUT input type</td>
706
- <td class="header">Behaviour module and name</td>
707
- <td class="header">Required plugin</td>
708
- </tr>
709
- <tr>
748
+ <div class="feature_section_title">Feature and target details:</div>
749
+ <table class="default">
750
+ <tr class="header">
751
+ <td class="header">Type</td>
752
+ <td class="header">Target object</td>
753
+ <td class="header">SUT type</td>
754
+ <td class="header">SUT version</td>
755
+ <td class="header">SUT input type</td>
756
+ <td class="header">Behaviour module and name</td>
757
+ <td class="header">Required plugin</td>
758
+ </tr>
759
+ <tr>
710
760
 
711
761
  <!-- feature type -->
712
- <td class="tablebg_even" valign="top">
762
+ <td class="tablebg_even" valign="top">
713
763
  <!-- capitalize text() -->
714
- <xsl:call-template name="capitalize">
715
- <xsl:with-param name="text" select="@type" />
716
- </xsl:call-template>
717
- </td>
764
+ <xsl:call-template name="capitalize">
765
+ <xsl:with-param name="text" select="@type" />
766
+ </xsl:call-template>
767
+ </td>
718
768
 
719
769
  <!-- target object -->
720
- <xsl:choose>
721
- <xsl:when test="string-length(@object_type)>0">
722
- <td class="tablebg_even" valign="top">
723
- <xsl:for-each select="str:split(@object_type,';')">
724
- <xsl:choose>
725
- <xsl:when test="text()='*'">
726
- <xsl:text>Any test object</xsl:text>
727
- </xsl:when>
728
- <xsl:when test="text()='sut'">
729
- <xsl:text>SUT object</xsl:text>
730
- </xsl:when>
731
- <xsl:otherwise>
732
- <xsl:value-of select="text()" />
733
- </xsl:otherwise>
734
- </xsl:choose>
735
- <xsl:if test="position()!=last()">
736
- <xsl:text>,</xsl:text>
737
- </xsl:if>
738
- <br />
739
- </xsl:for-each>
740
- </td>
741
- </xsl:when>
742
- <xsl:otherwise>
743
- <td class="tablebg_warning" valign="top">
744
- <xsl:call-template name="div_warning">
745
- <xsl:with-param name="text">Not defined</xsl:with-param>
746
- </xsl:call-template>
747
- </td>
748
- </xsl:otherwise>
749
- </xsl:choose>
770
+ <xsl:choose>
771
+ <xsl:when test="string-length(@object_type)>0">
772
+ <td class="tablebg_even" valign="top">
773
+ <xsl:for-each select="str:split(@object_type,';')">
774
+ <xsl:choose>
775
+ <xsl:when test="text()='*'">
776
+ <xsl:text>Any test object</xsl:text>
777
+ </xsl:when>
778
+ <xsl:when test="text()='sut'">
779
+ <xsl:text>SUT object</xsl:text>
780
+ </xsl:when>
781
+ <xsl:otherwise>
782
+ <xsl:value-of select="text()" />
783
+ </xsl:otherwise>
784
+ </xsl:choose>
785
+ <xsl:if test="position()!=last()">
786
+ <xsl:text>,</xsl:text>
787
+ </xsl:if>
788
+ <br />
789
+ </xsl:for-each>
790
+ </td>
791
+ </xsl:when>
792
+ <xsl:otherwise>
793
+ <td class="tablebg_warning" valign="top">
794
+ <xsl:call-template name="div_warning">
795
+ <xsl:with-param name="text">Not defined</xsl:with-param>
796
+ </xsl:call-template>
797
+ </td>
798
+ </xsl:otherwise>
799
+ </xsl:choose>
750
800
 
751
801
 
752
802
 
753
803
  <!-- target sut -->
754
- <xsl:choose>
755
- <xsl:when test="string-length(@sut_type)>0">
756
- <td class="tablebg_even" valign="top">
757
- <xsl:for-each select="str:split(@sut_type,';')">
758
- <xsl:choose>
759
- <xsl:when test="text()='*'">
760
- <xsl:text>Any SUT type</xsl:text>
761
- </xsl:when>
762
- <xsl:otherwise>
804
+ <xsl:choose>
805
+ <xsl:when test="string-length(@sut_type)>0">
806
+ <td class="tablebg_even" valign="top">
807
+ <xsl:for-each select="str:split(@sut_type,';')">
808
+ <xsl:choose>
809
+ <xsl:when test="text()='*'">
810
+ <xsl:text>Any SUT type</xsl:text>
811
+ </xsl:when>
812
+ <xsl:otherwise>
763
813
  <!-- capitalize text() -->
764
- <xsl:call-template name="capitalize">
765
- <xsl:with-param name="text" select="text()" />
766
- </xsl:call-template>
767
- </xsl:otherwise>
768
- </xsl:choose>
769
- <xsl:if test="position()!=last()">
770
- <xsl:text>,</xsl:text>
771
- </xsl:if>
772
- <br />
773
- </xsl:for-each>
774
- </td>
775
- </xsl:when>
776
- <xsl:otherwise>
777
- <td class="tablebg_warning" valign="top">
778
- <xsl:call-template name="div_warning">
779
- <xsl:with-param name="text">Not defined</xsl:with-param>
780
- </xsl:call-template>
781
- </td>
782
- </xsl:otherwise>
783
- </xsl:choose>
814
+ <xsl:call-template name="capitalize">
815
+ <xsl:with-param name="text" select="text()" />
816
+ </xsl:call-template>
817
+ </xsl:otherwise>
818
+ </xsl:choose>
819
+ <xsl:if test="position()!=last()">
820
+ <xsl:text>,</xsl:text>
821
+ </xsl:if>
822
+ <br />
823
+ </xsl:for-each>
824
+ </td>
825
+ </xsl:when>
826
+ <xsl:otherwise>
827
+ <td class="tablebg_warning" valign="top">
828
+ <xsl:call-template name="div_warning">
829
+ <xsl:with-param name="text">Not defined</xsl:with-param>
830
+ </xsl:call-template>
831
+ </td>
832
+ </xsl:otherwise>
833
+ </xsl:choose>
784
834
 
785
835
  <!-- sut version -->
786
- <xsl:choose>
787
- <xsl:when test="string-length(@sut_version)>0">
788
- <td class="tablebg_even" valign="top">
789
- <xsl:for-each select="str:split(@sut_version,';')">
790
-
791
- <xsl:choose>
792
- <xsl:when test="text()='*'">
793
- <xsl:text>All</xsl:text>
794
- </xsl:when>
795
- <xsl:otherwise>
836
+ <xsl:choose>
837
+ <xsl:when test="string-length(@sut_version)>0">
838
+ <td class="tablebg_even" valign="top">
839
+ <xsl:for-each select="str:split(@sut_version,';')">
840
+
841
+ <xsl:choose>
842
+ <xsl:when test="text()='*'">
843
+ <xsl:text>All</xsl:text>
844
+ </xsl:when>
845
+ <xsl:otherwise>
796
846
  <!-- capitalize text() -->
797
- <xsl:call-template name="capitalize">
798
- <xsl:with-param name="text" select="text()" />
799
- </xsl:call-template>
800
- </xsl:otherwise>
801
- </xsl:choose>
802
- <xsl:if test="position()!=last()">
803
- <xsl:text>,</xsl:text>
804
- </xsl:if>
805
- <br />
806
- </xsl:for-each>
807
- </td>
808
- </xsl:when>
809
- <xsl:otherwise>
810
- <td class="tablebg_warning" valign="top">
811
- <xsl:call-template name="div_warning">
812
- <xsl:with-param name="text">Not defined</xsl:with-param>
813
- </xsl:call-template>
814
- </td>
815
- </xsl:otherwise>
816
- </xsl:choose>
847
+ <xsl:call-template name="capitalize">
848
+ <xsl:with-param name="text" select="text()" />
849
+ </xsl:call-template>
850
+ </xsl:otherwise>
851
+ </xsl:choose>
852
+ <xsl:if test="position()!=last()">
853
+ <xsl:text>,</xsl:text>
854
+ </xsl:if>
855
+ <br />
856
+ </xsl:for-each>
857
+ </td>
858
+ </xsl:when>
859
+ <xsl:otherwise>
860
+ <td class="tablebg_warning" valign="top">
861
+ <xsl:call-template name="div_warning">
862
+ <xsl:with-param name="text">Not defined</xsl:with-param>
863
+ </xsl:call-template>
864
+ </td>
865
+ </xsl:otherwise>
866
+ </xsl:choose>
817
867
 
818
868
  <!-- input type -->
819
- <xsl:choose>
820
- <xsl:when test="string-length(@input_type)=0">
821
- <td class="tablebg_warning" valign="top">
822
- <xsl:call-template name="div_warning">
823
- <xsl:with-param name="text">Not defined</xsl:with-param>
824
- </xsl:call-template>
825
- </td>
826
- </xsl:when>
827
- <xsl:otherwise>
828
- <td class="tablebg_even" valign="top">
829
- <xsl:for-each select="str:split(@input_type,';')">
830
- <xsl:choose>
831
- <xsl:when test="text()='*'">
832
- <xsl:text>All</xsl:text>
833
- </xsl:when>
834
- <xsl:otherwise>
869
+ <xsl:choose>
870
+ <xsl:when test="string-length(@input_type)=0">
871
+ <td class="tablebg_warning" valign="top">
872
+ <xsl:call-template name="div_warning">
873
+ <xsl:with-param name="text">Not defined</xsl:with-param>
874
+ </xsl:call-template>
875
+ </td>
876
+ </xsl:when>
877
+ <xsl:otherwise>
878
+ <td class="tablebg_even" valign="top">
879
+ <xsl:for-each select="str:split(@input_type,';')">
880
+ <xsl:choose>
881
+ <xsl:when test="text()='*'">
882
+ <xsl:text>All</xsl:text>
883
+ </xsl:when>
884
+ <xsl:otherwise>
835
885
  <!-- capitalize text() -->
836
- <xsl:call-template name="capitalize">
837
- <xsl:with-param name="text" select="text()" />
838
- </xsl:call-template>
839
- </xsl:otherwise>
840
- </xsl:choose>
841
- <xsl:if test="position()!=last()">
842
- <xsl:text>,</xsl:text>
843
- </xsl:if>
844
- <br />
845
- </xsl:for-each>
846
- </td>
847
- </xsl:otherwise>
848
- </xsl:choose>
886
+ <xsl:call-template name="capitalize">
887
+ <xsl:with-param name="text" select="text()" />
888
+ </xsl:call-template>
889
+ </xsl:otherwise>
890
+ </xsl:choose>
891
+ <xsl:if test="position()!=last()">
892
+ <xsl:text>,</xsl:text>
893
+ </xsl:if>
894
+ <br />
895
+ </xsl:for-each>
896
+ </td>
897
+ </xsl:otherwise>
898
+ </xsl:choose>
849
899
 
850
900
  <!-- behaviour module -->
851
- <xsl:choose>
852
- <xsl:when test="string-length(behaviour/@module)>0">
853
-
854
- <xsl:choose>
855
- <xsl:when test="string-length(behaviour/@name)>0">
856
-
857
- <td class="tablebg_even" valign="top">
858
- <xsl:value-of select="behaviour/@module" /><xsl:text> (</xsl:text><xsl:value-of select="behaviour/@name" /><xsl:text>)</xsl:text>
859
- </td>
860
-
861
- </xsl:when>
862
- <xsl:otherwise>
901
+ <xsl:choose>
902
+ <xsl:when test="string-length(behaviour/@module)>0">
863
903
 
864
- <td class="tablebg_warning" valign="top">
865
- <xsl:call-template name="div_warning">
866
- <xsl:with-param name="text">
867
- <xsl:value-of select="behaviour/@module" /><xsl:text> (Behaviour name not defined)</xsl:text>
868
- </xsl:with-param>
869
- </xsl:call-template>
870
- </td>
871
-
872
- </xsl:otherwise>
873
- </xsl:choose>
904
+ <xsl:choose>
905
+ <xsl:when test="string-length(behaviour/@name)>0">
906
+
907
+ <td class="tablebg_even" valign="top">
908
+ <xsl:value-of select="behaviour/@module" />
909
+ <xsl:text> (</xsl:text>
910
+ <xsl:value-of select="behaviour/@name" />
911
+ <xsl:text>)</xsl:text>
912
+ </td>
913
+
914
+ </xsl:when>
915
+ <xsl:otherwise>
916
+
917
+ <td class="tablebg_warning" valign="top">
918
+ <xsl:call-template name="div_warning">
919
+ <xsl:with-param name="text">
920
+ <xsl:value-of select="behaviour/@module" />
921
+ <xsl:text> (Behaviour name not defined)</xsl:text>
922
+ </xsl:with-param>
923
+ </xsl:call-template>
924
+ </td>
925
+
926
+ </xsl:otherwise>
927
+ </xsl:choose>
874
928
 
875
- </xsl:when>
876
- <xsl:otherwise>
877
- <td class="tablebg_warning" valign="top">
878
- <xsl:call-template name="div_warning">
879
- <xsl:with-param name="text">Not defined</xsl:with-param>
880
- </xsl:call-template>
881
- </td>
882
- </xsl:otherwise>
883
- </xsl:choose>
929
+ </xsl:when>
930
+ <xsl:otherwise>
931
+ <td class="tablebg_warning" valign="top">
932
+ <xsl:call-template name="div_warning">
933
+ <xsl:with-param name="text">Not defined</xsl:with-param>
934
+ </xsl:call-template>
935
+ </td>
936
+ </xsl:otherwise>
937
+ </xsl:choose>
884
938
 
885
939
  <!-- required plugin -->
886
- <xsl:choose>
887
- <xsl:when test="string-length(@required_plugin)=0">
888
- <td class="tablebg_warning" valign="top">
889
- <xsl:call-template name="div_warning">
890
- <xsl:with-param name="text">Not defined</xsl:with-param>
891
- </xsl:call-template>
892
- </td>
893
- </xsl:when>
894
- <xsl:when test="@required_plugin!='*'">
895
- <td class="tablebg_even" valign="top">
896
- <xsl:value-of select="@required_plugin" />
897
- </td>
898
- </xsl:when>
899
- <xsl:otherwise>
900
- <td class="tablebg_disabled" valign="top"></td>
901
- </xsl:otherwise>
902
- </xsl:choose>
940
+ <xsl:choose>
941
+ <xsl:when test="string-length(@required_plugin)=0">
942
+ <td class="tablebg_warning" valign="top">
943
+ <xsl:call-template name="div_warning">
944
+ <xsl:with-param name="text">Not defined</xsl:with-param>
945
+ </xsl:call-template>
946
+ </td>
947
+ </xsl:when>
948
+ <xsl:when test="@required_plugin!='*'">
949
+ <td class="tablebg_even" valign="top">
950
+ <xsl:value-of select="@required_plugin" />
951
+ </td>
952
+ </xsl:when>
953
+ <xsl:otherwise>
954
+ <td class="tablebg_disabled" valign="top"></td>
955
+ </xsl:otherwise>
956
+ </xsl:choose>
903
957
 
904
- </tr>
958
+ </tr>
905
959
 
906
- </table>
907
- <br />
960
+ </table>
961
+ <br />
908
962
 
909
- </xsl:template>
963
+ </xsl:template>
910
964
 
911
- <xsl:template name="feature">
965
+ <xsl:template name="feature">
912
966
 
913
- <div id="{ ./behaviour/@name }.@name">
967
+ <div id="{ ./behaviour/@name }.@name">
914
968
 
915
- <xsl:call-template name="feature_name" />
969
+ <xsl:call-template name="feature_name" />
916
970
 
917
- <xsl:if test="count(deprecated)>0">
971
+ <xsl:if test="count(deprecated)>0">
918
972
 
919
- <xsl:call-template name="deprecated" />
973
+ <xsl:call-template name="deprecated" />
920
974
 
921
- </xsl:if>
975
+ </xsl:if>
922
976
 
923
- <xsl:call-template name="description" />
977
+ <xsl:call-template name="description" />
924
978
 
925
- <xsl:if test="count(deprecated)>0">
979
+ <xsl:if test="count(deprecated)>0">
926
980
 
927
- <xsl:call-template name="target_details" />
981
+ <xsl:call-template name="target_details" />
928
982
 
929
- </xsl:if>
983
+ </xsl:if>
930
984
 
931
- <xsl:if test="count(deprecated)=0">
985
+ <xsl:if test="count(deprecated)=0">
932
986
 
933
- <xsl:call-template name="call_sequence" />
987
+ <xsl:call-template name="call_sequence" />
934
988
 
935
- <xsl:call-template name="target_details" />
989
+ <xsl:call-template name="target_details" />
936
990
 
937
- <xsl:call-template name="arguments" />
991
+ <xsl:call-template name="arguments" />
938
992
 
939
- <xsl:call-template name="returns">
940
- <xsl:with-param name="type" select="returns/type" />
941
- <xsl:with-param name="feature_type" select="@type" />
942
- </xsl:call-template>
993
+ <xsl:call-template name="returns">
994
+ <xsl:with-param name="type" select="returns/type" />
995
+ <xsl:with-param name="feature_type" select="@type" />
996
+ </xsl:call-template>
943
997
 
944
- <xsl:call-template name="exceptions">
945
- <xsl:with-param name="type" select="exceptions/type" />
946
- <xsl:with-param name="feature_type" select="@type" />
947
- </xsl:call-template>
998
+ <xsl:call-template name="exceptions">
999
+ <xsl:with-param name="type" select="exceptions/type" />
1000
+ <xsl:with-param name="feature_type" select="@type" />
1001
+ </xsl:call-template>
948
1002
 
949
- <xsl:if test="count(tables/table)>0">
1003
+ <xsl:if test="count(tables/table)>0">
950
1004
  <!-- custom tables -->
951
- <xsl:call-template name="tables" />
952
- </xsl:if>
1005
+ <xsl:call-template name="tables" />
1006
+ </xsl:if>
953
1007
 
954
- <xsl:call-template name="tests">
955
- <xsl:with-param name="tests" select="tests" />
956
- </xsl:call-template>
1008
+ <xsl:call-template name="tests">
1009
+ <xsl:with-param name="tests" select="tests" />
1010
+ </xsl:call-template>
957
1011
 
958
- </xsl:if>
1012
+ </xsl:if>
959
1013
 
960
- <xsl:call-template name="info" />
1014
+ <xsl:call-template name="info" />
961
1015
 
962
- <xsl:if test="position()!=last()-1">
1016
+ <xsl:if test="position()!=last()-1">
963
1017
  <!-- feature separator? -->
964
- </xsl:if>
1018
+ </xsl:if>
965
1019
 
966
- <a href="#top" class="jump_to">Jump to top of page</a><br />
967
- <br />
1020
+ <a href="#top" class="jump_to">Jump to top of page</a>
1021
+ <br />
1022
+ <br />
968
1023
 
969
- </div>
1024
+ </div>
970
1025
 
971
- </xsl:template>
1026
+ </xsl:template>
972
1027
 
973
- <xsl:template name="exceptions">
1028
+ <xsl:template name="exceptions">
974
1029
 
975
- <xsl:param name="type" />
976
- <xsl:param name="feature_type" />
1030
+ <xsl:param name="type" />
1031
+ <xsl:param name="feature_type" />
977
1032
 
978
- <xsl:if test="count($type)>0">
1033
+ <xsl:if test="count($type)>0">
979
1034
 
980
1035
  <!-- exceptions -->
981
- <div class="feature_section_title">Exceptions:</div>
1036
+ <div class="feature_section_title">Exceptions:</div>
982
1037
 
983
- <table class="default">
984
- <tr class="header">
985
- <td class="header">Type</td>
986
- <td class="header">Description</td>
987
- </tr>
1038
+ <table class="default">
1039
+ <tr class="header">
1040
+ <td class="header">Type</td>
1041
+ <td class="header">Description</td>
1042
+ </tr>
988
1043
 
989
- <xsl:for-each select="$type">
1044
+ <xsl:for-each select="$type">
990
1045
 
991
- <xsl:choose>
1046
+ <xsl:choose>
992
1047
 
993
- <xsl:when test="(number(position()-1) mod 2)=0">
994
- <xsl:call-template name="exception_type">
995
- <xsl:with-param name="type" select="." />
996
- <xsl:with-param name="class">tablebg_even</xsl:with-param>
997
- </xsl:call-template>
998
- </xsl:when>
1048
+ <xsl:when test="(number(position()-1) mod 2)=0">
1049
+ <xsl:call-template name="exception_type">
1050
+ <xsl:with-param name="type" select="." />
1051
+ <xsl:with-param name="class">tablebg_even</xsl:with-param>
1052
+ </xsl:call-template>
1053
+ </xsl:when>
999
1054
 
1000
- <xsl:otherwise>
1001
- <xsl:call-template name="exception_type">
1002
- <xsl:with-param name="type" select="." />
1003
- <xsl:with-param name="class">tablebg_odd</xsl:with-param>
1004
- </xsl:call-template>
1005
- </xsl:otherwise>
1055
+ <xsl:otherwise>
1056
+ <xsl:call-template name="exception_type">
1057
+ <xsl:with-param name="type" select="." />
1058
+ <xsl:with-param name="class">tablebg_odd</xsl:with-param>
1059
+ </xsl:call-template>
1060
+ </xsl:otherwise>
1006
1061
 
1007
- </xsl:choose>
1062
+ </xsl:choose>
1008
1063
 
1009
- </xsl:for-each>
1064
+ </xsl:for-each>
1010
1065
 
1011
- </table>
1012
- <br />
1066
+ </table>
1067
+ <br />
1013
1068
 
1014
- </xsl:if>
1069
+ </xsl:if>
1015
1070
 
1016
- </xsl:template>
1071
+ </xsl:template>
1017
1072
 
1018
- <xsl:template name="exception_type">
1073
+ <xsl:template name="exception_type">
1019
1074
 
1020
- <xsl:param name="type" />
1021
- <xsl:param name="class" />
1075
+ <xsl:param name="type" />
1076
+ <xsl:param name="class" />
1022
1077
 
1023
- <tr valign="top" class="{ $class }">
1024
- <td class="{ $class }"><xsl:value-of select="$type/@name"/></td>
1078
+ <tr valign="top" class="{ $class }">
1079
+ <td class="{ $class }">
1080
+ <xsl:value-of select="$type/@name"/>
1081
+ </td>
1025
1082
 
1026
1083
 
1027
- <xsl:choose>
1084
+ <xsl:choose>
1028
1085
 
1029
1086
 
1030
1087
 
1031
- <xsl:when test="string-length($type/description)=0">
1088
+ <xsl:when test="string-length($type/description)=0">
1032
1089
 
1033
- <xsl:call-template name="col_warning" >
1034
- <xsl:with-param name="text">Exception description not defined</xsl:with-param>
1035
- </xsl:call-template>
1090
+ <xsl:call-template name="col_warning" >
1091
+ <xsl:with-param name="text">Exception description not defined</xsl:with-param>
1092
+ </xsl:call-template>
1036
1093
 
1037
- </xsl:when>
1094
+ </xsl:when>
1038
1095
 
1039
- <xsl:otherwise>
1040
- <td class="{ $class }"><xsl:for-each select="str:split($type/description,'\n')"><xsl:value-of select="text()" /><br /></xsl:for-each></td>
1041
- </xsl:otherwise>
1096
+ <xsl:otherwise>
1097
+ <td class="{ $class }">
1098
+ <xsl:for-each select="str:split($type/description,'\n')">
1099
+ <xsl:value-of select="text()" />
1100
+ <br />
1101
+ </xsl:for-each>
1102
+ </td>
1103
+ </xsl:otherwise>
1042
1104
 
1043
- </xsl:choose>
1105
+ </xsl:choose>
1044
1106
  <!--
1045
1107
 
1046
1108
  <td class="{ $class }"><xsl:for-each select="str:split($type/description,'\n')"><xsl:value-of select="text()" /><br /></xsl:for-each></td>
@@ -1048,649 +1110,722 @@
1048
1110
 
1049
1111
 
1050
1112
 
1051
- </tr>
1113
+ </tr>
1052
1114
 
1053
- </xsl:template>
1115
+ </xsl:template>
1054
1116
 
1055
- <xsl:template name="argument_details">
1117
+ <xsl:template name="argument_details">
1056
1118
 
1057
- <xsl:param name="argument_name" />
1058
- <xsl:param name="type" />
1059
- <xsl:param name="default" />
1060
- <xsl:param name="class" />
1119
+ <xsl:param name="argument_name" />
1120
+ <xsl:param name="type" />
1121
+ <xsl:param name="default" />
1122
+ <xsl:param name="class" />
1061
1123
 
1062
- <xsl:choose>
1124
+ <xsl:choose>
1063
1125
 
1064
- <xsl:when test="count(type)>0">
1126
+ <xsl:when test="count(type)>0">
1065
1127
 
1066
- <xsl:variable name="argument_types" select="count(type)" />
1128
+ <xsl:variable name="argument_types" select="count(type)" />
1067
1129
 
1068
- <xsl:for-each select="type">
1130
+ <xsl:for-each select="type">
1069
1131
 
1070
- <tr valign="top" class="{ $class }">
1132
+ <tr valign="top" class="{ $class }">
1071
1133
 
1072
- <xsl:if test="position()=1">
1073
-
1074
- <xsl:choose>
1075
-
1076
- <xsl:when test="string(../@type)='block_argument'">
1077
- <td rowspan="{ $argument_types }" class="{ $class }">
1078
- <span title="Code block argument, mandatory or optional" class="hover_text"><xsl:value-of select="str:split($argument_name,'#')[2]" /></span>
1079
- </td>
1080
- </xsl:when>
1081
-
1082
- <xsl:when test="string(../@type)='block'">
1083
- <td rowspan="{ $argument_types }" class="{ $class }">
1084
- <span title="Code block, mandatory or optional" class="hover_text"><xsl:value-of select="$argument_name" /></span>
1085
- </td>
1086
- </xsl:when>
1087
-
1088
- <xsl:when test="string(../@optional)='true'">
1089
- <td rowspan="{$argument_types}" class="{ $class }">
1090
- <span class="optional_argument" title="Optional argument">
1091
- <span class="hover_text"><xsl:value-of select="$argument_name" /></span>
1092
- </span>
1093
- </td>
1094
- </xsl:when>
1095
-
1096
-
1097
- <xsl:otherwise>
1098
- <td rowspan="{ $argument_types }" class="{ $class }">
1099
- <span title="Mandatory argument" class="hover_text"><xsl:value-of select="$argument_name" /></span>
1100
- </td>
1101
- </xsl:otherwise>
1102
-
1103
- </xsl:choose>
1104
-
1105
- </xsl:if>
1134
+ <xsl:if test="position()=1">
1135
+
1136
+ <xsl:choose>
1137
+
1138
+ <xsl:when test="string(../@type)='block_argument'">
1139
+ <td rowspan="{ $argument_types }" class="{ $class }">
1140
+ <span title="Code block argument, mandatory or optional" class="hover_text">
1141
+ <xsl:value-of select="str:split($argument_name,'#')[2]" />
1142
+ </span>
1143
+ </td>
1144
+ </xsl:when>
1145
+
1146
+ <xsl:when test="string(../@type)='block'">
1147
+ <td rowspan="{ $argument_types }" class="{ $class }">
1148
+ <span title="Code block, mandatory or optional" class="hover_text">
1149
+ <xsl:value-of select="$argument_name" />
1150
+ </span>
1151
+ </td>
1152
+ </xsl:when>
1153
+
1154
+ <xsl:when test="string(../@optional)='true'">
1155
+ <td rowspan="{$argument_types}" class="{ $class }">
1156
+ <span class="optional_argument" title="Optional argument">
1157
+ <span class="hover_text">
1158
+ <xsl:value-of select="$argument_name" />
1159
+ </span>
1160
+ </span>
1161
+ </td>
1162
+ </xsl:when>
1163
+
1164
+
1165
+ <xsl:otherwise>
1166
+ <td rowspan="{ $argument_types }" class="{ $class }">
1167
+ <span title="Mandatory argument" class="hover_text">
1168
+ <xsl:value-of select="$argument_name" />
1169
+ </span>
1170
+ </td>
1171
+ </xsl:otherwise>
1172
+
1173
+ </xsl:choose>
1174
+
1175
+ </xsl:if>
1106
1176
 
1107
1177
  <!-- verify that argument variable type is defined -->
1108
- <xsl:choose>
1109
- <xsl:when test="string-length(@name)>0">
1110
- <td class="{ $class }"><xsl:value-of select="@name"/></td>
1111
- </xsl:when>
1112
- <xsl:otherwise>
1113
- <xsl:call-template name="col_warning" >
1114
- <xsl:with-param name="text">Not defined</xsl:with-param>
1115
- </xsl:call-template>
1116
- </xsl:otherwise>
1117
- </xsl:choose>
1178
+ <xsl:choose>
1179
+ <xsl:when test="string-length(@name)>0">
1180
+ <td class="{ $class }">
1181
+ <xsl:value-of select="@name"/>
1182
+ </td>
1183
+ </xsl:when>
1184
+ <xsl:otherwise>
1185
+ <xsl:call-template name="col_warning" >
1186
+ <xsl:with-param name="text">Not defined</xsl:with-param>
1187
+ </xsl:call-template>
1188
+ </xsl:otherwise>
1189
+ </xsl:choose>
1118
1190
 
1119
1191
  <!-- verify that argument description is defined -->
1120
- <xsl:choose>
1121
- <xsl:when test="string-length(description/text())>0">
1122
- <td class="{ $class }">
1123
- <xsl:call-template name="formatted_content">
1124
- <xsl:with-param name="text" select="description/text()"/>
1125
- </xsl:call-template>
1126
- </td>
1127
- </xsl:when>
1128
- <xsl:otherwise>
1129
- <xsl:call-template name="col_warning" >
1130
- <xsl:with-param name="text">Not defined</xsl:with-param>
1131
- </xsl:call-template>
1132
- </xsl:otherwise>
1133
- </xsl:choose>
1192
+ <xsl:choose>
1193
+ <xsl:when test="string-length(description/text())>0">
1194
+ <td class="{ $class }">
1195
+ <xsl:call-template name="formatted_content">
1196
+ <xsl:with-param name="text" select="description/text()"/>
1197
+ </xsl:call-template>
1198
+ </td>
1199
+ </xsl:when>
1200
+ <xsl:otherwise>
1201
+ <xsl:call-template name="col_warning" >
1202
+ <xsl:with-param name="text">Not defined</xsl:with-param>
1203
+ </xsl:call-template>
1204
+ </xsl:otherwise>
1205
+ </xsl:choose>
1134
1206
 
1135
1207
  <!-- verify that argument example is defined -->
1136
- <xsl:choose>
1208
+ <xsl:choose>
1137
1209
 
1138
- <xsl:when test="@type='block_argument'">
1139
- <td class="{ $class }"><xsl:value-of select="example/text()"/></td>
1140
- </xsl:when>
1210
+ <xsl:when test="@type='block_argument'">
1211
+ <td class="{ $class }">
1212
+ <xsl:value-of select="example/text()"/>
1213
+ </td>
1214
+ </xsl:when>
1141
1215
 
1142
- <xsl:when test="string(example/text())='-'">
1216
+ <xsl:when test="string(example/text())='-'">
1143
1217
  <!-- <td class="tablebg_disabled" rowspan="{ $argument_types }"><xsl:value-of select="$default"/></td> -->
1144
- <td class="tablebg_disabled"><xsl:value-of select="example/text()"/></td>
1145
- </xsl:when>
1146
-
1147
- <xsl:when test="string-length(example/text())>0">
1148
- <td class="{ $class }"><xsl:value-of select="example/text()"/></td>
1149
- </xsl:when>
1150
-
1151
- <xsl:otherwise>
1152
- <xsl:call-template name="col_warning" >
1153
- <xsl:with-param name="text">Not defined</xsl:with-param>
1154
- </xsl:call-template>
1155
- </xsl:otherwise>
1218
+ <td class="tablebg_disabled">
1219
+ <xsl:value-of select="example/text()"/>
1220
+ </td>
1221
+ </xsl:when>
1222
+
1223
+ <xsl:when test="string-length(example/text())>0">
1224
+ <td class="{ $class }">
1225
+ <xsl:value-of select="example/text()"/>
1226
+ </td>
1227
+ </xsl:when>
1228
+
1229
+ <xsl:otherwise>
1230
+ <xsl:call-template name="col_warning" >
1231
+ <xsl:with-param name="text">Not defined</xsl:with-param>
1232
+ </xsl:call-template>
1233
+ </xsl:otherwise>
1156
1234
 
1157
- </xsl:choose>
1235
+ </xsl:choose>
1158
1236
 
1159
1237
  <!-- default value -->
1160
- <xsl:if test="position()=1">
1238
+ <xsl:if test="position()=1">
1161
1239
 
1162
- <xsl:choose>
1240
+ <xsl:choose>
1163
1241
 
1164
- <xsl:when test="string-length($default)=0">
1165
- <td class="tablebg_disabled" rowspan="{ $argument_types }"><xsl:value-of select="$default"/></td>
1166
- </xsl:when>
1242
+ <xsl:when test="string-length($default)=0">
1243
+ <td class="tablebg_disabled" rowspan="{ $argument_types }">
1244
+ <xsl:value-of select="$default"/>
1245
+ </td>
1246
+ </xsl:when>
1167
1247
 
1168
- <xsl:otherwise>
1169
- <td class="{ $class }" rowspan="{ $argument_types }"><xsl:value-of select="$default"/></td>
1170
- </xsl:otherwise>
1248
+ <xsl:otherwise>
1249
+ <td class="{ $class }" rowspan="{ $argument_types }">
1250
+ <xsl:value-of select="$default"/>
1251
+ </td>
1252
+ </xsl:otherwise>
1171
1253
 
1172
- </xsl:choose>
1254
+ </xsl:choose>
1173
1255
 
1174
- </xsl:if>
1256
+ </xsl:if>
1175
1257
 
1176
- </tr>
1258
+ </tr>
1177
1259
 
1178
- </xsl:for-each>
1260
+ </xsl:for-each>
1179
1261
 
1180
- </xsl:when>
1262
+ </xsl:when>
1181
1263
 
1182
- <xsl:otherwise>
1264
+ <xsl:otherwise>
1183
1265
 
1184
- <tr>
1185
- <td class="{ $class }"><xsl:value-of select="$argument_name" /></td>
1266
+ <tr>
1267
+ <td class="{ $class }">
1268
+ <xsl:value-of select="$argument_name" />
1269
+ </td>
1186
1270
 
1187
- <xsl:call-template name="col_warning">
1188
- <xsl:with-param name="colspan">3</xsl:with-param>
1189
- <xsl:with-param name="text">Not defined; description, example cannot be shown due to variable type is not defined. Please verify also that argument name is defined properly</xsl:with-param>
1190
- </xsl:call-template>
1271
+ <xsl:call-template name="col_warning">
1272
+ <xsl:with-param name="colspan">3</xsl:with-param>
1273
+ <xsl:with-param name="text">Not defined; description, example cannot be shown due to variable type is not defined. Please verify also that argument name is defined properly</xsl:with-param>
1274
+ </xsl:call-template>
1191
1275
 
1192
- <xsl:choose>
1276
+ <xsl:choose>
1193
1277
 
1194
- <xsl:when test="string-length($default)=0">
1195
- <td class="tablebg_disabled"><xsl:value-of select="$default"/></td>
1196
- </xsl:when>
1278
+ <xsl:when test="string-length($default)=0">
1279
+ <td class="tablebg_disabled">
1280
+ <xsl:value-of select="$default"/>
1281
+ </td>
1282
+ </xsl:when>
1197
1283
 
1198
- <xsl:otherwise>
1199
- <td class="{ $class }"><xsl:value-of select="$default"/></td>
1200
- </xsl:otherwise>
1284
+ <xsl:otherwise>
1285
+ <td class="{ $class }">
1286
+ <xsl:value-of select="$default"/>
1287
+ </td>
1288
+ </xsl:otherwise>
1201
1289
 
1202
- </xsl:choose>
1290
+ </xsl:choose>
1203
1291
 
1204
1292
 
1205
- </tr>
1293
+ </tr>
1206
1294
 
1207
- </xsl:otherwise>
1295
+ </xsl:otherwise>
1208
1296
 
1209
- </xsl:choose>
1297
+ </xsl:choose>
1210
1298
 
1211
- </xsl:template>
1299
+ </xsl:template>
1212
1300
 
1213
- <xsl:template name="arguments">
1301
+ <xsl:template name="arguments">
1214
1302
 
1215
- <xsl:if test="@type='writer' or @type='accessor' or (@type='method' and number(arguments/@count)>0)">
1303
+ <xsl:if test="@type='writer' or @type='accessor' or (@type='method' and number(arguments/@count)>0)">
1216
1304
 
1217
- <div class="feature_section_title">Arguments:</div>
1305
+ <div class="feature_section_title">Arguments:</div>
1218
1306
 
1219
- <table class="default">
1220
- <tr class="header">
1221
- <td class="header">Name</td>
1222
- <td class="header">Type</td>
1223
- <td class="header">Description</td>
1224
- <td class="header">Example</td>
1225
- <td class="header">Default</td>
1226
- </tr>
1307
+ <table class="default">
1308
+ <tr class="header">
1309
+ <td class="header">Name</td>
1310
+ <td class="header">Type</td>
1311
+ <td class="header">Description</td>
1312
+ <td class="header">Example</td>
1313
+ <td class="header">Default</td>
1314
+ </tr>
1227
1315
 
1228
- <xsl:for-each select="arguments/argument">
1316
+ <xsl:for-each select="arguments/argument">
1229
1317
 
1230
- <xsl:choose>
1318
+ <xsl:choose>
1231
1319
 
1232
1320
  <!-- table stripes: position even -->
1233
- <xsl:when test="((number(position())-1) mod 2)=0">
1234
- <xsl:call-template name="argument_details">
1235
- <xsl:with-param name="argument_name" select="@name" />
1236
- <xsl:with-param name="type" select="type" />
1237
- <xsl:with-param name="class">tablebg_even</xsl:with-param>
1238
- <xsl:with-param name="default" select="@default" />
1239
- </xsl:call-template>
1240
- </xsl:when>
1321
+ <xsl:when test="((number(position())-1) mod 2)=0">
1322
+ <xsl:call-template name="argument_details">
1323
+ <xsl:with-param name="argument_name" select="@name" />
1324
+ <xsl:with-param name="type" select="type" />
1325
+ <xsl:with-param name="class">tablebg_even</xsl:with-param>
1326
+ <xsl:with-param name="default" select="@default" />
1327
+ </xsl:call-template>
1328
+ </xsl:when>
1241
1329
 
1242
1330
  <!-- table stripes: position odd -->
1243
- <xsl:otherwise>
1244
- <xsl:call-template name="argument_details">
1245
- <xsl:with-param name="argument_name" select="@name" />
1246
- <xsl:with-param name="type" select="type" />
1247
- <xsl:with-param name="class">tablebg_odd</xsl:with-param>
1248
- <xsl:with-param name="default" select="@default" />
1249
- </xsl:call-template>
1250
- </xsl:otherwise>
1331
+ <xsl:otherwise>
1332
+ <xsl:call-template name="argument_details">
1333
+ <xsl:with-param name="argument_name" select="@name" />
1334
+ <xsl:with-param name="type" select="type" />
1335
+ <xsl:with-param name="class">tablebg_odd</xsl:with-param>
1336
+ <xsl:with-param name="default" select="@default" />
1337
+ </xsl:call-template>
1338
+ </xsl:otherwise>
1251
1339
 
1252
- </xsl:choose>
1340
+ </xsl:choose>
1253
1341
 
1254
- </xsl:for-each>
1342
+ </xsl:for-each>
1255
1343
 
1256
1344
  <!-- show error message if argument is not described -->
1257
- <xsl:if test="@type='method' and (arguments/@described&lt;arguments/@count)">
1258
- <xsl:call-template name="row_warning" >
1259
- <xsl:with-param name="colspan">5</xsl:with-param>
1260
- <xsl:with-param name="text">Incomplete documentation: <xsl:value-of select="arguments/@described" /> of <xsl:value-of select="arguments/@count" /> arguments documented. Please note that block is also counted as one argument.</xsl:with-param>
1261
- </xsl:call-template>
1262
- </xsl:if>
1345
+ <xsl:if test="@type='method' and (arguments/@described&lt;arguments/@count)">
1346
+ <xsl:call-template name="row_warning" >
1347
+ <xsl:with-param name="colspan">5</xsl:with-param>
1348
+ <xsl:with-param name="text">Incomplete documentation:
1349
+ <xsl:value-of select="arguments/@described" /> of
1350
+ <xsl:value-of select="arguments/@count" /> arguments documented. Please note that block is also counted as one argument.
1351
+ </xsl:with-param>
1352
+ </xsl:call-template>
1353
+ </xsl:if>
1263
1354
 
1264
1355
  <!-- show error message if argument is not described -->
1265
- <xsl:if test="(@type='accessor' or @type='writer') and arguments/@described=0">
1266
- <xsl:call-template name="row_warning" >
1267
- <xsl:with-param name="colspan">5</xsl:with-param>
1268
- <xsl:with-param name="text">Attribute writer or accessor input value needs to be documented.</xsl:with-param>
1269
- </xsl:call-template>
1270
- </xsl:if>
1356
+ <xsl:if test="(@type='accessor' or @type='writer') and arguments/@described=0">
1357
+ <xsl:call-template name="row_warning" >
1358
+ <xsl:with-param name="colspan">5</xsl:with-param>
1359
+ <xsl:with-param name="text">Attribute writer or accessor input value needs to be documented.</xsl:with-param>
1360
+ </xsl:call-template>
1361
+ </xsl:if>
1271
1362
 
1272
- </table>
1273
- <br />
1363
+ </table>
1364
+ <br />
1274
1365
 
1275
- </xsl:if>
1366
+ </xsl:if>
1276
1367
 
1277
- </xsl:template>
1368
+ </xsl:template>
1278
1369
 
1279
- <xsl:template name="returns_type">
1370
+ <xsl:template name="returns_type">
1280
1371
 
1281
- <xsl:param name="type" />
1282
- <xsl:param name="class" />
1372
+ <xsl:param name="type" />
1373
+ <xsl:param name="class" />
1283
1374
 
1284
- <tr valign="top" class="{ $class }">
1375
+ <tr valign="top" class="{ $class }">
1285
1376
 
1286
1377
  <!-- verify that return value type is defined -->
1287
- <xsl:choose>
1378
+ <xsl:choose>
1288
1379
 
1289
- <xsl:when test="string-length($type/@name)>0 and contains($type/@name,' ')">
1290
- <xsl:call-template name="col_warning" >
1291
- <xsl:with-param name="text">Return value variable type cannot be multiple words with whitespaces</xsl:with-param>
1292
- </xsl:call-template>
1293
- </xsl:when>
1380
+ <xsl:when test="string-length($type/@name)>0 and contains($type/@name,' ')">
1381
+ <xsl:call-template name="col_warning" >
1382
+ <xsl:with-param name="text">Return value variable type cannot be multiple words with whitespaces</xsl:with-param>
1383
+ </xsl:call-template>
1384
+ </xsl:when>
1294
1385
 
1295
- <xsl:when test="string-length($type/@name)>0">
1296
- <td class="{ $class }"><xsl:value-of select="$type/@name"/></td>
1297
- </xsl:when>
1386
+ <xsl:when test="string-length($type/@name)>0">
1387
+ <td class="{ $class }">
1388
+ <xsl:value-of select="$type/@name"/>
1389
+ </td>
1390
+ </xsl:when>
1298
1391
 
1299
- <xsl:otherwise>
1300
- <xsl:call-template name="col_warning" >
1301
- <xsl:with-param name="text">Return value variable type not defined</xsl:with-param>
1302
- </xsl:call-template>
1303
- </xsl:otherwise>
1304
- </xsl:choose>
1392
+ <xsl:otherwise>
1393
+ <xsl:call-template name="col_warning" >
1394
+ <xsl:with-param name="text">Return value variable type not defined</xsl:with-param>
1395
+ </xsl:call-template>
1396
+ </xsl:otherwise>
1397
+ </xsl:choose>
1305
1398
 
1306
1399
  <!-- verify that argument description is defined -->
1307
- <xsl:choose>
1400
+ <xsl:choose>
1308
1401
 
1309
- <xsl:when test="string($type/description/text())='-'">
1310
- <td class="tablebg_disabled" />
1311
- </xsl:when>
1402
+ <xsl:when test="string($type/description/text())='-'">
1403
+ <td class="tablebg_disabled" />
1404
+ </xsl:when>
1312
1405
 
1313
- <xsl:when test="string-length($type/description/text())>0">
1314
- <td class="{ $class }">
1315
- <xsl:call-template name="formatted_content">
1316
- <xsl:with-param name="text" select="$type/description/text()"/>
1317
- </xsl:call-template>
1318
- </td>
1319
- </xsl:when>
1320
- <xsl:otherwise>
1321
- <xsl:call-template name="col_warning" >
1322
- <xsl:with-param name="text">Return value description not defined</xsl:with-param>
1323
- </xsl:call-template>
1324
- </xsl:otherwise>
1325
- </xsl:choose>
1406
+ <xsl:when test="string-length($type/description/text())>0">
1407
+ <td class="{ $class }">
1408
+ <xsl:call-template name="formatted_content">
1409
+ <xsl:with-param name="text" select="$type/description/text()"/>
1410
+ </xsl:call-template>
1411
+ </td>
1412
+ </xsl:when>
1413
+ <xsl:otherwise>
1414
+ <xsl:call-template name="col_warning" >
1415
+ <xsl:with-param name="text">Return value description not defined</xsl:with-param>
1416
+ </xsl:call-template>
1417
+ </xsl:otherwise>
1418
+ </xsl:choose>
1326
1419
 
1327
1420
  <!-- verify that return value example is defined -->
1328
- <xsl:choose>
1421
+ <xsl:choose>
1329
1422
 
1330
- <xsl:when test="string($type/example/text())='-'">
1331
- <td class="tablebg_disabled" />
1332
- </xsl:when>
1423
+ <xsl:when test="string($type/example/text())='-'">
1424
+ <td class="tablebg_disabled" />
1425
+ </xsl:when>
1333
1426
 
1334
- <xsl:when test="string-length($type/example/text())>0">
1335
- <td class="{ $class }"><xsl:value-of select="$type/example/text()"/></td>
1336
- </xsl:when>
1337
- <xsl:otherwise>
1338
- <xsl:call-template name="col_warning" >
1339
- <xsl:with-param name="text">Return value example not defined</xsl:with-param>
1340
- </xsl:call-template>
1341
- </xsl:otherwise>
1342
- </xsl:choose>
1343
- </tr>
1427
+ <xsl:when test="string-length($type/example/text())>0">
1428
+ <td class="{ $class }">
1429
+ <xsl:value-of select="$type/example/text()"/>
1430
+ </td>
1431
+ </xsl:when>
1432
+ <xsl:otherwise>
1433
+ <xsl:call-template name="col_warning" >
1434
+ <xsl:with-param name="text">Return value example not defined</xsl:with-param>
1435
+ </xsl:call-template>
1436
+ </xsl:otherwise>
1437
+ </xsl:choose>
1438
+ </tr>
1344
1439
 
1345
- </xsl:template>
1440
+ </xsl:template>
1346
1441
 
1347
- <xsl:template name="row_warning">
1348
- <xsl:param name="text" />
1349
- <xsl:param name="colspan" />
1350
- <tr><td colspan="{ $colspan }" class="warning">[!!] <xsl:value-of select="$text" /></td></tr>
1351
- </xsl:template>
1442
+ <xsl:template name="row_warning">
1443
+ <xsl:param name="text" />
1444
+ <xsl:param name="colspan" />
1445
+ <tr>
1446
+ <td colspan="{ $colspan }" class="warning">[!!]
1447
+ <xsl:value-of select="$text" />
1448
+ </td>
1449
+ </tr>
1450
+ </xsl:template>
1352
1451
 
1353
- <xsl:template name="col_warning">
1452
+ <xsl:template name="col_warning">
1354
1453
 
1355
- <xsl:param name="text" />
1356
- <xsl:param name="colspan" />
1454
+ <xsl:param name="text" />
1455
+ <xsl:param name="colspan" />
1357
1456
 
1358
- <xsl:choose>
1457
+ <xsl:choose>
1359
1458
 
1360
- <xsl:when test="number($colspan)>0">
1361
- <td class="warning" colspan="{ $colspan }">[!!] <xsl:value-of select="$text" /></td>
1362
- </xsl:when>
1459
+ <xsl:when test="number($colspan)>0">
1460
+ <td class="warning" colspan="{ $colspan }">[!!]
1461
+ <xsl:value-of select="$text" />
1462
+ </td>
1463
+ </xsl:when>
1363
1464
 
1364
- <xsl:otherwise>
1365
- <td class="warning">[!!] <xsl:value-of select="$text" /></td>
1366
- </xsl:otherwise>
1465
+ <xsl:otherwise>
1466
+ <td class="warning">[!!]
1467
+ <xsl:value-of select="$text" />
1468
+ </td>
1469
+ </xsl:otherwise>
1367
1470
 
1368
- </xsl:choose>
1471
+ </xsl:choose>
1369
1472
 
1370
- </xsl:template>
1473
+ </xsl:template>
1371
1474
 
1372
- <xsl:template name="div_warning">
1373
- <xsl:param name="text" />
1374
- <div class="warning">[!!] <xsl:value-of select="$text" /></div>
1375
- </xsl:template>
1475
+ <xsl:template name="div_warning">
1476
+ <xsl:param name="text" />
1477
+ <div class="warning">[!!]
1478
+ <xsl:value-of select="$text" />
1479
+ </div>
1480
+ </xsl:template>
1376
1481
 
1377
- <xsl:template name="span_warning">
1378
- <xsl:param name="text" />
1379
- <span class="warning">[!!] <xsl:value-of select="$text" /></span>
1380
- </xsl:template>
1482
+ <xsl:template name="span_warning">
1483
+ <xsl:param name="text" />
1484
+ <span class="warning">[!!]
1485
+ <xsl:value-of select="$text" />
1486
+ </span>
1487
+ </xsl:template>
1381
1488
 
1382
- <xsl:template name="returns">
1489
+ <xsl:template name="returns">
1383
1490
 
1384
- <xsl:param name="type" />
1385
- <xsl:param name="feature_type" />
1491
+ <xsl:param name="type" />
1492
+ <xsl:param name="feature_type" />
1386
1493
 
1387
1494
  <!-- show return value types table if feature type is method, reader or accessor -->
1388
1495
  <!--<xsl:if test="@type='reader' or @type='accessor' or @type='method'"> -->
1389
1496
 
1390
- <xsl:if test="@type='reader' or @type='accessor' or @type='method'">
1497
+ <xsl:if test="@type='reader' or @type='accessor' or @type='method'">
1391
1498
 
1392
1499
  <!-- return values -->
1393
- <div class="feature_section_title">Returns:</div>
1394
- <table class="default">
1395
- <tr class="header">
1396
- <td class="header">Type</td>
1397
- <td class="header">Description</td>
1398
- <td class="header">Example</td>
1399
- </tr>
1500
+ <div class="feature_section_title">Returns:</div>
1501
+ <table class="default">
1502
+ <tr class="header">
1503
+ <td class="header">Type</td>
1504
+ <td class="header">Description</td>
1505
+ <td class="header">Example</td>
1506
+ </tr>
1400
1507
 
1401
1508
  <!-- show error message if no return values defined -->
1402
- <xsl:if test="(( count($type)=0 ) or ( count( arguments )=0 ) ) and ((@type='method') or (@type='accessor') or (@type='reader'))">
1403
- <xsl:call-template name="row_warning">
1404
- <xsl:with-param name="text">No return value type(s) defined for method, attribute reader or attribute accessor</xsl:with-param>
1405
- <xsl:with-param name="colspan">3</xsl:with-param>
1406
- </xsl:call-template>
1407
- </xsl:if>
1509
+ <xsl:if test="(( count($type)=0 ) or ( count( arguments )=0 ) ) and ((@type='method') or (@type='accessor') or (@type='reader'))">
1510
+ <xsl:call-template name="row_warning">
1511
+ <xsl:with-param name="text">No return value type(s) defined for method, attribute reader or attribute accessor</xsl:with-param>
1512
+ <xsl:with-param name="colspan">3</xsl:with-param>
1513
+ </xsl:call-template>
1514
+ </xsl:if>
1408
1515
 
1409
- <xsl:if test="count($type)>0">
1516
+ <xsl:if test="count($type)>0">
1410
1517
 
1411
- <xsl:for-each select="$type">
1518
+ <xsl:for-each select="$type">
1412
1519
 
1413
- <xsl:choose>
1520
+ <xsl:choose>
1414
1521
 
1415
- <xsl:when test="(number(position()-1) mod 2)=0">
1416
- <xsl:call-template name="returns_type" >
1417
- <xsl:with-param name="type" select="." />
1418
- <xsl:with-param name="class">tablebg_even</xsl:with-param>
1419
- </xsl:call-template>
1420
- </xsl:when>
1522
+ <xsl:when test="(number(position()-1) mod 2)=0">
1523
+ <xsl:call-template name="returns_type" >
1524
+ <xsl:with-param name="type" select="." />
1525
+ <xsl:with-param name="class">tablebg_even</xsl:with-param>
1526
+ </xsl:call-template>
1527
+ </xsl:when>
1421
1528
 
1422
- <xsl:otherwise>
1423
- <xsl:call-template name="returns_type" >
1424
- <xsl:with-param name="type" select="." />
1425
- <xsl:with-param name="class">tablebg_odd</xsl:with-param>
1426
- </xsl:call-template>
1427
- </xsl:otherwise>
1529
+ <xsl:otherwise>
1530
+ <xsl:call-template name="returns_type" >
1531
+ <xsl:with-param name="type" select="." />
1532
+ <xsl:with-param name="class">tablebg_odd</xsl:with-param>
1533
+ </xsl:call-template>
1534
+ </xsl:otherwise>
1428
1535
 
1429
- </xsl:choose>
1536
+ </xsl:choose>
1430
1537
 
1431
- </xsl:for-each>
1538
+ </xsl:for-each>
1432
1539
 
1433
- </xsl:if>
1540
+ </xsl:if>
1434
1541
 
1435
- </table>
1436
- <br />
1542
+ </table>
1543
+ <br />
1437
1544
 
1438
- </xsl:if>
1545
+ </xsl:if>
1439
1546
 
1440
- </xsl:template>
1547
+ </xsl:template>
1441
1548
 
1442
- <xsl:template name="tables">
1549
+ <xsl:template name="tables">
1443
1550
 
1444
- <xsl:for-each select="tables/table">
1551
+ <xsl:for-each select="tables/table">
1445
1552
 
1446
- <div class="feature_section_title"><a name="{ @name }"><xsl:value-of select="title/text()" />:</a></div>
1447
-
1448
- <xsl:if test="string-length(description/text())>0">
1449
- <div class="feature_description">
1450
- <xsl:call-template name="formatted_content">
1451
- <xsl:with-param name="text" select="description/text()"/>
1452
- </xsl:call-template><br />
1453
- </div>
1454
- </xsl:if>
1553
+ <div class="feature_section_title">
1554
+ <a name="{ @name }">
1555
+ <xsl:value-of select="title/text()" />:
1556
+ </a>
1557
+ </div>
1558
+
1559
+ <xsl:if test="string-length(description/text())>0">
1560
+ <div class="feature_description">
1561
+ <xsl:call-template name="formatted_content">
1562
+ <xsl:with-param name="text" select="description/text()"/>
1563
+ </xsl:call-template>
1564
+ <br />
1565
+ </div>
1566
+ </xsl:if>
1455
1567
 
1456
- <table class="default">
1568
+ <table class="default">
1457
1569
  <!-- header -->
1458
- <tr class="header_custom">
1459
- <xsl:for-each select="header/item">
1460
- <td class="header_custom"><xsl:value-of select="."/></td>
1461
- </xsl:for-each>
1462
- </tr>
1570
+ <tr class="header_custom">
1571
+ <xsl:for-each select="header/item">
1572
+ <td class="header_custom">
1573
+ <xsl:value-of select="."/>
1574
+ </td>
1575
+ </xsl:for-each>
1576
+ </tr>
1463
1577
 
1464
1578
  <!-- rows -->
1465
- <xsl:for-each select="row">
1466
- <xsl:choose>
1467
- <xsl:when test="(number(position()-1) mod 2)=0">
1468
- <tr>
1469
- <xsl:for-each select="item">
1470
- <td class="tablebg_even">
1471
- <xsl:call-template name="formatted_content">
1472
- <xsl:with-param name="text" select="."/>
1473
- </xsl:call-template><br />
1474
-
1475
- </td>
1476
- </xsl:for-each>
1477
- </tr>
1478
- </xsl:when>
1479
- <xsl:otherwise>
1480
- <tr>
1481
- <xsl:for-each select="item">
1482
- <td class="tablebg_odd">
1483
- <xsl:call-template name="formatted_content">
1484
- <xsl:with-param name="text" select="."/>
1485
- </xsl:call-template><br />
1486
- </td>
1487
- </xsl:for-each>
1488
- </tr>
1489
- </xsl:otherwise>
1490
- </xsl:choose>
1491
- </xsl:for-each>
1492
- </table>
1493
- <br />
1579
+ <xsl:for-each select="row">
1580
+ <xsl:choose>
1581
+ <xsl:when test="(number(position()-1) mod 2)=0">
1582
+ <tr>
1583
+ <xsl:for-each select="item">
1584
+ <td class="tablebg_even">
1585
+ <xsl:call-template name="formatted_content">
1586
+ <xsl:with-param name="text" select="."/>
1587
+ </xsl:call-template>
1588
+ <br />
1589
+
1590
+ </td>
1591
+ </xsl:for-each>
1592
+ </tr>
1593
+ </xsl:when>
1594
+ <xsl:otherwise>
1595
+ <tr>
1596
+ <xsl:for-each select="item">
1597
+ <td class="tablebg_odd">
1598
+ <xsl:call-template name="formatted_content">
1599
+ <xsl:with-param name="text" select="."/>
1600
+ </xsl:call-template>
1601
+ <br />
1602
+ </td>
1603
+ </xsl:for-each>
1604
+ </tr>
1605
+ </xsl:otherwise>
1606
+ </xsl:choose>
1607
+ </xsl:for-each>
1608
+ </table>
1609
+ <br />
1494
1610
 
1495
- </xsl:for-each>
1611
+ </xsl:for-each>
1496
1612
 
1497
- </xsl:template>
1613
+ </xsl:template>
1498
1614
 
1499
- <xsl:template name="description">
1615
+ <xsl:template name="description">
1500
1616
 
1501
- <div class="feature_section_title">Description:</div>
1617
+ <div class="feature_section_title">Description:</div>
1502
1618
 
1503
- <xsl:if test="string-length(description/text())>0">
1619
+ <xsl:if test="string-length(description/text())>0">
1504
1620
  <!-- display feature description (split lines with '\n') -->
1505
1621
 
1506
- <div class="feature_description">
1507
- <xsl:call-template name="formatted_content">
1508
- <xsl:with-param name="text" select="description/text()"/>
1509
- </xsl:call-template><br />
1510
- </div>
1622
+ <div class="feature_description">
1623
+ <xsl:call-template name="formatted_content">
1624
+ <xsl:with-param name="text" select="description/text()"/>
1625
+ </xsl:call-template>
1626
+ <br />
1627
+ </div>
1511
1628
 
1512
- </xsl:if>
1629
+ </xsl:if>
1513
1630
 
1514
- <xsl:if test="string-length(description/text())=0">
1515
- <xsl:call-template name="div_warning">
1516
- <xsl:with-param name="text">Description not defined</xsl:with-param>
1517
- </xsl:call-template>
1518
- </xsl:if>
1519
- <br />
1631
+ <xsl:if test="string-length(description/text())=0">
1632
+ <xsl:call-template name="div_warning">
1633
+ <xsl:with-param name="text">Description not defined</xsl:with-param>
1634
+ </xsl:call-template>
1635
+ </xsl:if>
1636
+ <br />
1520
1637
 
1521
- </xsl:template>
1638
+ </xsl:template>
1522
1639
 
1523
- <xsl:template name="deprecated">
1640
+ <xsl:template name="deprecated">
1524
1641
 
1525
- <div class="feature_section_title">Deprecated in version:</div>
1642
+ <div class="feature_section_title">Deprecated in version:</div>
1526
1643
 
1527
- <div class="feature_deprecated_version">
1528
- <xsl:value-of select="deprecated/@version"/>
1529
- </div>
1530
- <br />
1644
+ <div class="feature_deprecated_version">
1645
+ <xsl:value-of select="deprecated/@version"/>
1646
+ </div>
1647
+ <br />
1531
1648
 
1532
- </xsl:template>
1649
+ </xsl:template>
1533
1650
 
1534
- <xsl:template name="tests">
1651
+ <xsl:template name="tests">
1535
1652
 
1536
- <xsl:param name="tests" />
1653
+ <xsl:param name="tests" />
1537
1654
 
1538
1655
  <!-- examples -->
1539
- <div class="feature_section_title">Examples:</div>
1656
+ <div class="feature_section_title">Examples:</div>
1540
1657
 
1541
- <xsl:for-each select="$tests/scenario">
1658
+ <xsl:for-each select="$tests/scenario">
1542
1659
 
1543
1660
  <!-- description (splitted with '\n') -->
1544
- <div class="scenario_description">
1545
- <xsl:for-each select="str:split(description,'\n')">
1546
- <xsl:value-of select="text()" /><br />
1547
- </xsl:for-each>
1548
- </div>
1661
+ <div class="scenario_description">
1662
+ <xsl:for-each select="str:split(description,'\n')">
1663
+ <xsl:value-of select="text()" />
1664
+ <br />
1665
+ </xsl:for-each>
1666
+ </div>
1549
1667
 
1550
- <xsl:value-of select="@name"/>
1668
+ <xsl:value-of select="@name"/>
1551
1669
 
1552
- <pre class="{@status}">
1670
+ <pre class="{@status}">
1553
1671
  <!-- show status only if other than 'passed' -->
1554
- <xsl:if test="string(@status)!='passed'" >
1555
- <xsl:text># [!!] scenario </xsl:text><xsl:value-of select="@status" /><br />
1556
- </xsl:if>
1672
+ <xsl:if test="string(@status)!='passed'" >
1673
+ <xsl:text># [!!] scenario </xsl:text>
1674
+ <xsl:value-of select="@status" />
1675
+ <br />
1676
+ </xsl:if>
1557
1677
 
1558
- <xsl:for-each select="str:split(example,'\n')">
1559
- <xsl:value-of select="text()" /><br />
1560
- </xsl:for-each>
1561
- </pre>
1678
+ <xsl:for-each select="str:split(example,'\n')">
1679
+ <xsl:value-of select="text()" />
1680
+ <br />
1681
+ </xsl:for-each>
1682
+ </pre>
1562
1683
 
1563
- </xsl:for-each>
1684
+ </xsl:for-each>
1564
1685
 
1565
- <xsl:if test="count($tests/scenario)=0">
1566
- <xsl:call-template name="div_warning"><xsl:with-param name="text">No examples/test scenarios available</xsl:with-param></xsl:call-template>
1567
- </xsl:if>
1568
-
1569
- <br />
1686
+ <xsl:if test="count($tests/scenario)=0">
1687
+ <xsl:call-template name="div_warning">
1688
+ <xsl:with-param name="text">No examples/test scenarios available</xsl:with-param>
1689
+ </xsl:call-template>
1690
+ </xsl:if>
1570
1691
 
1571
- </xsl:template>
1692
+ <hr />
1693
+ <br />
1694
+ <br />
1695
+ <br />
1696
+ <br />
1697
+ <br />
1698
+ <br />
1699
+ <hr />
1700
+ </xsl:template>
1572
1701
 
1573
- <xsl:template name="info">
1702
+ <xsl:template name="info">
1574
1703
 
1575
- <xsl:if test="string-length(info/text())>0">
1704
+ <xsl:if test="string-length(info/text())>0">
1576
1705
  <!-- display feature description (split lines with '\n') -->
1577
- <div class="feature_info"><xsl:call-template name="formatted_content"><xsl:with-param name="text" select="info/text()"/></xsl:call-template></div><br />
1578
- </xsl:if>
1706
+ <div class="feature_info">
1707
+ <xsl:call-template name="formatted_content">
1708
+ <xsl:with-param name="text" select="info/text()"/>
1709
+ </xsl:call-template>
1710
+ </div>
1711
+ <br />
1712
+ </xsl:if>
1579
1713
 
1580
- </xsl:template>
1714
+ </xsl:template>
1581
1715
 
1582
- <xsl:template name="formatted_content">
1716
+ <xsl:template name="formatted_content">
1583
1717
 
1584
- <xsl:param name="text"/>
1718
+ <xsl:param name="text"/>
1585
1719
 
1586
- <xsl:variable name="text_with_linefeeds">
1587
- <xsl:call-template name="split_lines">
1588
- <xsl:with-param name="text" select="$text" />
1589
- </xsl:call-template>
1590
- </xsl:variable>
1720
+ <xsl:variable name="text_with_linefeeds">
1721
+ <xsl:call-template name="split_lines">
1722
+ <xsl:with-param name="text" select="$text" />
1723
+ </xsl:call-template>
1724
+ </xsl:variable>
1591
1725
 
1592
- <xsl:call-template name="process_tags">
1726
+ <xsl:call-template name="process_tags">
1593
1727
 
1594
- <xsl:with-param name="text" select="$text_with_linefeeds" />
1728
+ <xsl:with-param name="text" select="$text_with_linefeeds" />
1595
1729
 
1596
- </xsl:call-template>
1730
+ </xsl:call-template>
1597
1731
 
1598
- </xsl:template>
1732
+ </xsl:template>
1599
1733
 
1600
- <xsl:template name="split_lines">
1734
+ <xsl:template name="split_lines">
1601
1735
 
1602
- <xsl:param name="text"/>
1736
+ <xsl:param name="text"/>
1603
1737
 
1604
1738
  <!-- content before \n -->
1605
- <xsl:variable name="before_linefeed" select="substring-before($text, '\')"/>
1739
+ <xsl:variable name="before_linefeed" select="substring-before($text, '\')"/>
1606
1740
 
1607
1741
  <!-- content after \n -->
1608
- <xsl:variable name="after_linefeed" select="substring-after($text, '\')"/>
1742
+ <xsl:variable name="after_linefeed" select="substring-after($text, '\')"/>
1609
1743
 
1610
- <xsl:choose>
1611
- <xsl:when test="substring(substring-after($text,'\'),1,1)='n'">
1612
- <xsl:value-of select="$before_linefeed" /><xsl:text>[br]</xsl:text>
1613
- <xsl:call-template name="split_lines">
1614
- <xsl:with-param name="text" select="substring($text,string-length($before_linefeed)+3,string-length($text))" />
1615
- </xsl:call-template>
1616
- </xsl:when>
1617
- <xsl:otherwise>
1618
- <xsl:value-of select="$text" />
1619
- </xsl:otherwise>
1620
- </xsl:choose>
1744
+ <xsl:choose>
1745
+ <xsl:when test="substring(substring-after($text,'\'),1,1)='n'">
1746
+ <xsl:value-of select="$before_linefeed" />
1747
+ <xsl:text>[br]</xsl:text>
1748
+ <xsl:call-template name="split_lines">
1749
+ <xsl:with-param name="text" select="substring($text,string-length($before_linefeed)+3,string-length($text))" />
1750
+ </xsl:call-template>
1751
+ </xsl:when>
1752
+ <xsl:otherwise>
1753
+ <xsl:value-of select="$text" />
1754
+ </xsl:otherwise>
1755
+ </xsl:choose>
1621
1756
 
1622
- </xsl:template>
1757
+ </xsl:template>
1623
1758
 
1624
- <xsl:template name="replace">
1759
+ <xsl:template name="replace">
1625
1760
 
1626
- <xsl:param name="text"/>
1761
+ <xsl:param name="text"/>
1627
1762
 
1628
- <xsl:param name="string" />
1763
+ <xsl:param name="string" />
1629
1764
 
1630
- <xsl:param name="with" />
1765
+ <xsl:param name="with" />
1631
1766
 
1632
- <xsl:variable name="remaining_text" select="$text"/>
1767
+ <xsl:variable name="remaining_text" select="$text"/>
1633
1768
 
1634
1769
  <!-- content before $string -->
1635
- <xsl:variable name="content_before_string" select="substring-before($text, $string)"/>
1770
+ <xsl:variable name="content_before_string" select="substring-before($text, $string)"/>
1636
1771
 
1637
1772
  <!-- content after $string -->
1638
- <xsl:variable name="content_after_string" select="substring-after($text, $string)" />
1773
+ <xsl:variable name="content_after_string" select="substring-after($text, $string)" />
1639
1774
 
1640
- <xsl:choose>
1775
+ <xsl:choose>
1641
1776
 
1642
- <xsl:when test="contains($text, $string)">
1777
+ <xsl:when test="contains($text, $string)">
1643
1778
 
1644
1779
  <!-- $string found from $text, show leading content before $string -->
1645
- <xsl:value-of disable-output-escaping="yes" select="$content_before_string" />
1646
- <xsl:value-of disable-output-escaping="yes" select="$with" />
1780
+ <xsl:value-of disable-output-escaping="yes" select="$content_before_string" />
1781
+ <xsl:value-of disable-output-escaping="yes" select="$with" />
1647
1782
 
1648
- <xsl:choose>
1783
+ <xsl:choose>
1649
1784
 
1650
- <xsl:when test="contains($content_after_string, $string)">
1785
+ <xsl:when test="contains($content_after_string, $string)">
1651
1786
 
1652
1787
  <!-- $content_after_string contains $string, call replace template recursively -->
1653
- <xsl:call-template name="replace">
1788
+ <xsl:call-template name="replace">
1654
1789
 
1655
- <xsl:with-param name="text" select="$content_after_string" />
1656
- <xsl:with-param name="string" select="$string" />
1657
- <xsl:with-param name="with" select="$with" />
1790
+ <xsl:with-param name="text" select="$content_after_string" />
1791
+ <xsl:with-param name="string" select="$string" />
1792
+ <xsl:with-param name="with" select="$with" />
1658
1793
 
1659
- </xsl:call-template>
1794
+ </xsl:call-template>
1660
1795
 
1661
- </xsl:when>
1796
+ </xsl:when>
1662
1797
 
1663
- <xsl:otherwise>
1798
+ <xsl:otherwise>
1664
1799
 
1665
1800
  <!-- $content_after_string doesnt contain $string, return $content_after_string as is -->
1666
- <xsl:value-of disable-output-escaping="yes" select="$content_after_string" />
1801
+ <xsl:value-of disable-output-escaping="yes" select="$content_after_string" />
1667
1802
 
1668
- </xsl:otherwise>
1803
+ </xsl:otherwise>
1669
1804
 
1670
- </xsl:choose>
1805
+ </xsl:choose>
1671
1806
 
1672
- </xsl:when>
1807
+ </xsl:when>
1673
1808
 
1674
- <xsl:otherwise>
1809
+ <xsl:otherwise>
1675
1810
 
1676
1811
  <!-- $string not found from $text, return $text as is -->
1677
- <xsl:value-of select="$text" />
1812
+ <xsl:value-of select="$text" />
1678
1813
 
1679
- </xsl:otherwise>
1814
+ </xsl:otherwise>
1680
1815
 
1681
- </xsl:choose>
1816
+ </xsl:choose>
1682
1817
 
1683
- </xsl:template>
1818
+ </xsl:template>
1684
1819
 
1685
1820
  <!-- template#process_tags -->
1686
- <xsl:template name="process_tags">
1821
+ <xsl:template name="process_tags">
1687
1822
 
1688
- <xsl:param name="text"/>
1823
+ <xsl:param name="text"/>
1689
1824
 
1690
- <xsl:variable name="remainingContent" select="$text"/>
1825
+ <xsl:variable name="remainingContent" select="$text"/>
1691
1826
 
1692
1827
  <!-- content before tag start character -->
1693
- <xsl:variable name="content_before_tag" select="substring-before($text, '[')"/>
1828
+ <xsl:variable name="content_before_tag" select="substring-before($text, '[')"/>
1694
1829
 
1695
1830
  <!-- content after start tag -->
1696
1831
  <!-- content after start tag: content[/example_tag]continues-->
@@ -1698,17 +1833,17 @@
1698
1833
  -->
1699
1834
 
1700
1835
  <!-- start tag: [example_tag="abcdef"] -->
1701
- <xsl:variable name="content_after_tag">
1702
- <xsl:variable name="tmp_content_after_tag" select="substring-after(substring-after($text, '['), '&quot;]')"/>
1703
- <xsl:choose>
1704
- <xsl:when test="string-length($tmp_content_after_tag)=0">
1705
- <xsl:value-of select="substring-after(substring-after($text, '['), ']')" />
1706
- </xsl:when>
1707
- <xsl:otherwise>
1708
- <xsl:value-of select="$tmp_content_after_tag" />
1709
- </xsl:otherwise>
1710
- </xsl:choose>
1711
- </xsl:variable>
1836
+ <xsl:variable name="content_after_tag">
1837
+ <xsl:variable name="tmp_content_after_tag" select="substring-after(substring-after($text, '['), '&quot;]')"/>
1838
+ <xsl:choose>
1839
+ <xsl:when test="string-length($tmp_content_after_tag)=0">
1840
+ <xsl:value-of select="substring-after(substring-after($text, '['), ']')" />
1841
+ </xsl:when>
1842
+ <xsl:otherwise>
1843
+ <xsl:value-of select="$tmp_content_after_tag" />
1844
+ </xsl:otherwise>
1845
+ </xsl:choose>
1846
+ </xsl:variable>
1712
1847
 
1713
1848
 
1714
1849
  <!-- start tag: [example_tag="abcdef"] -->
@@ -1730,82 +1865,82 @@
1730
1865
 
1731
1866
  -->
1732
1867
 
1733
- <xsl:variable name="full_tag">
1868
+ <xsl:variable name="full_tag">
1734
1869
  <!-- start tag: [example_tag="abcdef"] -->
1735
- <xsl:variable name="tmp_full_tag" select="substring-after(substring-before($text, '&quot;]'), '[')"/>
1736
- <xsl:choose>
1737
- <xsl:when test="string-length($tmp_full_tag)=0">
1738
- <xsl:value-of select="substring-after(substring-before($text, ']'), '[')" />
1739
- </xsl:when>
1740
- <xsl:otherwise>
1741
- <xsl:value-of select="$tmp_full_tag" />
1742
- </xsl:otherwise>
1743
- </xsl:choose>
1744
- </xsl:variable>
1870
+ <xsl:variable name="tmp_full_tag" select="substring-after(substring-before($text, '&quot;]'), '[')"/>
1871
+ <xsl:choose>
1872
+ <xsl:when test="string-length($tmp_full_tag)=0">
1873
+ <xsl:value-of select="substring-after(substring-before($text, ']'), '[')" />
1874
+ </xsl:when>
1875
+ <xsl:otherwise>
1876
+ <xsl:value-of select="$tmp_full_tag" />
1877
+ </xsl:otherwise>
1878
+ </xsl:choose>
1879
+ </xsl:variable>
1745
1880
 
1746
1881
  <!-- tag: example_tag -->
1747
- <xsl:variable name="tag" select="str:split(substring-after(substring-before($text, ']'), '['), '=')[1]"/>
1882
+ <xsl:variable name="tag" select="str:split(substring-after(substring-before($text, ']'), '['), '=')[1]"/>
1748
1883
 
1749
1884
  <!-- content between tags: content-->
1750
- <xsl:variable name="tag_content" select="substring-before($content_after_tag, concat('[/', $tag, ']'))"/>
1885
+ <xsl:variable name="tag_content" select="substring-before($content_after_tag, concat('[/', $tag, ']'))"/>
1751
1886
 
1752
1887
  <!-- content after start tag: content[/example_tag]continues -->
1753
- <xsl:variable name="content_after_start_tag" select="substring-after($text, concat('[',$tag,']'))"/>
1888
+ <xsl:variable name="content_after_start_tag" select="substring-after($text, concat('[',$tag,']'))"/>
1754
1889
 
1755
1890
  <!-- content after end tag: continues-->
1756
- <xsl:variable name="content_after_end_tag" select="substring-after($content_after_tag, concat('[/', $tag, ']'))"/>
1891
+ <xsl:variable name="content_after_end_tag" select="substring-after($content_after_tag, concat('[/', $tag, ']'))"/>
1757
1892
 
1758
1893
  <!-- show leading text before tag... -->
1759
- <xsl:value-of select="$content_before_tag" />
1894
+ <xsl:value-of select="$content_before_tag" />
1760
1895
 
1761
- <xsl:choose>
1896
+ <xsl:choose>
1762
1897
 
1763
- <xsl:when test="string-length($tag)>0">
1898
+ <xsl:when test="string-length($tag)>0">
1764
1899
 
1765
- <xsl:call-template name="process_tag" >
1766
- <xsl:with-param name="tag" select="$tag" />
1767
- <xsl:with-param name="full_tag" select="$full_tag" />
1768
- <xsl:with-param name="content" select="$tag_content" />
1769
- <xsl:with-param name="content_after" select="$content_after_end_tag" />
1770
- </xsl:call-template>
1900
+ <xsl:call-template name="process_tag" >
1901
+ <xsl:with-param name="tag" select="$tag" />
1902
+ <xsl:with-param name="full_tag" select="$full_tag" />
1903
+ <xsl:with-param name="content" select="$tag_content" />
1904
+ <xsl:with-param name="content_after" select="$content_after_end_tag" />
1905
+ </xsl:call-template>
1771
1906
 
1772
- <xsl:if test="string-length($tag_content)=0">
1907
+ <xsl:if test="string-length($tag_content)=0">
1773
1908
 
1774
- <xsl:call-template name="process_tags">
1775
- <xsl:with-param name="text" select="$content_after_start_tag" />
1776
- </xsl:call-template>
1909
+ <xsl:call-template name="process_tags">
1910
+ <xsl:with-param name="text" select="$content_after_start_tag" />
1911
+ </xsl:call-template>
1777
1912
 
1778
- </xsl:if>
1913
+ </xsl:if>
1779
1914
 
1780
- </xsl:when>
1915
+ </xsl:when>
1781
1916
 
1782
- <xsl:otherwise>
1917
+ <xsl:otherwise>
1783
1918
 
1784
- <xsl:value-of select="$text" />
1919
+ <xsl:value-of select="$text" />
1785
1920
 
1786
- </xsl:otherwise>
1921
+ </xsl:otherwise>
1787
1922
 
1788
- </xsl:choose>
1923
+ </xsl:choose>
1789
1924
 
1790
- </xsl:template>
1925
+ </xsl:template>
1791
1926
 
1792
- <xsl:template name="process_tag" >
1927
+ <xsl:template name="process_tag" >
1793
1928
 
1794
- <xsl:param name="tag" />
1795
- <xsl:param name="full_tag" />
1929
+ <xsl:param name="tag" />
1930
+ <xsl:param name="full_tag" />
1796
1931
 
1797
1932
 
1798
- <xsl:param name="content" />
1799
- <xsl:param name="content_after" />
1933
+ <xsl:param name="content" />
1934
+ <xsl:param name="content_after" />
1800
1935
 
1801
- <xsl:variable name="parameter">
1936
+ <xsl:variable name="parameter">
1802
1937
  <!-- remove quotations from parameter value -->
1803
- <xsl:call-template name="replace">
1804
- <xsl:with-param name="text" select="str:split($full_tag,'=')[2]" />
1805
- <xsl:with-param name="string">"</xsl:with-param>
1806
- <xsl:with-param name="with" ></xsl:with-param>
1807
- </xsl:call-template>
1808
- </xsl:variable>
1938
+ <xsl:call-template name="replace">
1939
+ <xsl:with-param name="text" select="str:split($full_tag,'=')[2]" />
1940
+ <xsl:with-param name="string">"</xsl:with-param>
1941
+ <xsl:with-param name="with" ></xsl:with-param>
1942
+ </xsl:call-template>
1943
+ </xsl:variable>
1809
1944
 
1810
1945
  <!--
1811
1946
  <br /><b>tag:</b> <xsl:value-of select="$tag" />
@@ -1813,162 +1948,176 @@
1813
1948
  <br /><b>content_after:</b> <xsl:value-of select="$content_after" />
1814
1949
  -->
1815
1950
 
1816
- <xsl:choose>
1817
- <xsl:when test="$tag='b'">
1951
+ <xsl:choose>
1952
+ <xsl:when test="$tag='b'">
1818
1953
 
1819
- <b><xsl:call-template name="process_tags" >
1820
- <xsl:with-param name="text" select="$content" />
1821
- </xsl:call-template></b>
1954
+ <b>
1955
+ <xsl:call-template name="process_tags" >
1956
+ <xsl:with-param name="text" select="$content" />
1957
+ </xsl:call-template>
1958
+ </b>
1822
1959
 
1823
- <xsl:call-template name="process_tags" >
1824
- <xsl:with-param name="text" select="$content_after" />
1825
- </xsl:call-template>
1960
+ <xsl:call-template name="process_tags" >
1961
+ <xsl:with-param name="text" select="$content_after" />
1962
+ </xsl:call-template>
1826
1963
 
1827
- </xsl:when>
1964
+ </xsl:when>
1828
1965
 
1829
- <xsl:when test="$tag='u'">
1830
- <u><xsl:call-template name="process_tags" >
1831
- <xsl:with-param name="text" select="$content" />
1832
- </xsl:call-template></u>
1833
- <xsl:call-template name="process_tags" >
1834
- <xsl:with-param name="text" select="$content_after" />
1835
- </xsl:call-template>
1966
+ <xsl:when test="$tag='u'">
1967
+ <u>
1968
+ <xsl:call-template name="process_tags" >
1969
+ <xsl:with-param name="text" select="$content" />
1970
+ </xsl:call-template>
1971
+ </u>
1972
+ <xsl:call-template name="process_tags" >
1973
+ <xsl:with-param name="text" select="$content_after" />
1974
+ </xsl:call-template>
1836
1975
 
1837
- </xsl:when>
1976
+ </xsl:when>
1838
1977
 
1839
- <xsl:when test="$tag='i'">
1840
- <i><xsl:call-template name="process_tags" >
1841
- <xsl:with-param name="text" select="$content" />
1842
- </xsl:call-template></i>
1843
- <xsl:call-template name="process_tags" >
1844
- <xsl:with-param name="text" select="$content_after" />
1845
- </xsl:call-template>
1978
+ <xsl:when test="$tag='i'">
1979
+ <i>
1980
+ <xsl:call-template name="process_tags" >
1981
+ <xsl:with-param name="text" select="$content" />
1982
+ </xsl:call-template>
1983
+ </i>
1984
+ <xsl:call-template name="process_tags" >
1985
+ <xsl:with-param name="text" select="$content_after" />
1986
+ </xsl:call-template>
1846
1987
 
1847
- </xsl:when>
1988
+ </xsl:when>
1848
1989
 
1849
- <xsl:when test="$tag='code'">
1990
+ <xsl:when test="$tag='code'">
1850
1991
 
1851
- <pre class="block"><xsl:value-of select="$content" /></pre>
1992
+ <pre class="block">
1993
+ <xsl:value-of select="$content" />
1994
+ </pre>
1852
1995
 
1853
- <xsl:call-template name="process_tags" >
1854
- <xsl:with-param name="text" select="$content_after" />
1855
- </xsl:call-template>
1996
+ <xsl:call-template name="process_tags" >
1997
+ <xsl:with-param name="text" select="$content_after" />
1998
+ </xsl:call-template>
1856
1999
 
1857
- </xsl:when>
2000
+ </xsl:when>
1858
2001
 
1859
- <xsl:when test="$tag='img'">
2002
+ <xsl:when test="$tag='img'">
1860
2003
 
1861
- <xsl:choose>
2004
+ <xsl:choose>
1862
2005
 
1863
- <xsl:when test="string-length($parameter)>0">
2006
+ <xsl:when test="string-length($parameter)>0">
1864
2007
  <!-- found title text for image -->
1865
- <img src="{ $parameter }" title="{ $content }" />
1866
- </xsl:when>
2008
+ <img src="{ $parameter }" title="{ $content }" />
2009
+ </xsl:when>
1867
2010
 
1868
- <xsl:otherwise>
2011
+ <xsl:otherwise>
1869
2012
  <!-- no title text for image -->
1870
- <img src="{ $content }" title="" />
1871
- </xsl:otherwise>
2013
+ <img src="{ $content }" title="" />
2014
+ </xsl:otherwise>
1872
2015
 
1873
- </xsl:choose>
2016
+ </xsl:choose>
1874
2017
 
1875
- <xsl:call-template name="process_tags" >
1876
- <xsl:with-param name="text" select="$content_after" />
1877
- </xsl:call-template>
2018
+ <xsl:call-template name="process_tags" >
2019
+ <xsl:with-param name="text" select="$content_after" />
2020
+ </xsl:call-template>
1878
2021
 
1879
- </xsl:when>
2022
+ </xsl:when>
1880
2023
 
1881
- <xsl:when test="$tag='link'">
2024
+ <xsl:when test="$tag='link'">
1882
2025
 
1883
- <xsl:choose>
2026
+ <xsl:choose>
1884
2027
 
1885
- <xsl:when test="string-length($parameter)>0">
1886
- <a href="{ $parameter }" class="link" title="{ $content }">
1887
- <xsl:call-template name="process_tags" >
1888
- <xsl:with-param name="text" select="$content" />
1889
- </xsl:call-template>
1890
- </a>
1891
- </xsl:when>
2028
+ <xsl:when test="string-length($parameter)>0">
2029
+ <a href="{ $parameter }" class="link" title="{ $content }">
2030
+ <xsl:call-template name="process_tags" >
2031
+ <xsl:with-param name="text" select="$content" />
2032
+ </xsl:call-template>
2033
+ </a>
2034
+ </xsl:when>
1892
2035
 
1893
- <xsl:otherwise>
1894
- <a href="{ $content }" class="link" title="">
1895
- <xsl:call-template name="process_tags" >
1896
- <xsl:with-param name="text" select="$content" />
1897
- </xsl:call-template>
1898
- </a>
1899
- </xsl:otherwise>
2036
+ <xsl:otherwise>
2037
+ <a href="{ $content }" class="link" title="">
2038
+ <xsl:call-template name="process_tags" >
2039
+ <xsl:with-param name="text" select="$content" />
2040
+ </xsl:call-template>
2041
+ </a>
2042
+ </xsl:otherwise>
1900
2043
 
1901
- </xsl:choose>
2044
+ </xsl:choose>
1902
2045
 
1903
- <xsl:call-template name="process_tags" >
1904
- <xsl:with-param name="text" select="$content_after" />
1905
- </xsl:call-template>
2046
+ <xsl:call-template name="process_tags" >
2047
+ <xsl:with-param name="text" select="$content_after" />
2048
+ </xsl:call-template>
1906
2049
 
1907
- </xsl:when>
2050
+ </xsl:when>
1908
2051
 
1909
2052
 
1910
- <xsl:when test="$tag='name'">
2053
+ <xsl:when test="$tag='name'">
1911
2054
 
1912
- <xsl:choose>
2055
+ <xsl:choose>
1913
2056
 
1914
- <xsl:when test="string-length($parameter)>0">
1915
- <a name="{ $parameter }" title="">
1916
- <xsl:call-template name="process_tags" >
1917
- <xsl:with-param name="text" select="$content" />
1918
- </xsl:call-template>
1919
- </a>
1920
- </xsl:when>
2057
+ <xsl:when test="string-length($parameter)>0">
2058
+ <a name="{ $parameter }" title="">
2059
+ <xsl:call-template name="process_tags" >
2060
+ <xsl:with-param name="text" select="$content" />
2061
+ </xsl:call-template>
2062
+ </a>
2063
+ </xsl:when>
1921
2064
 
1922
- <xsl:otherwise>
1923
- <a name="{ $content }" title="">
1924
- <xsl:call-template name="process_tags" >
1925
- <xsl:with-param name="text" select="$content" />
1926
- </xsl:call-template>
1927
- </a>
1928
- </xsl:otherwise>
2065
+ <xsl:otherwise>
2066
+ <a name="{ $content }" title="">
2067
+ <xsl:call-template name="process_tags" >
2068
+ <xsl:with-param name="text" select="$content" />
2069
+ </xsl:call-template>
2070
+ </a>
2071
+ </xsl:otherwise>
1929
2072
 
1930
- </xsl:choose>
2073
+ </xsl:choose>
1931
2074
 
1932
- <xsl:call-template name="process_tags" >
1933
- <xsl:with-param name="text" select="$content_after" />
1934
- </xsl:call-template>
2075
+ <xsl:call-template name="process_tags" >
2076
+ <xsl:with-param name="text" select="$content_after" />
2077
+ </xsl:call-template>
1935
2078
 
1936
- </xsl:when>
2079
+ </xsl:when>
1937
2080
 
1938
2081
 
1939
2082
 
1940
- <xsl:when test="$tag='br'">
1941
- <br />
1942
- </xsl:when>
2083
+ <xsl:when test="$tag='br'">
2084
+ <br />
2085
+ </xsl:when>
1943
2086
 
1944
- <xsl:otherwise>
2087
+ <xsl:otherwise>
1945
2088
 
1946
- <xsl:choose>
2089
+ <xsl:choose>
1947
2090
 
1948
- <xsl:when test="string-length($content)>0">
1949
- <xsl:text>[</xsl:text><xsl:value-of select="$full_tag" /><xsl:text>]</xsl:text>
2091
+ <xsl:when test="string-length($content)>0">
2092
+ <xsl:text>[</xsl:text>
2093
+ <xsl:value-of select="$full_tag" />
2094
+ <xsl:text>]</xsl:text>
1950
2095
 
1951
- <xsl:call-template name="process_tags" >
1952
- <xsl:with-param name="text" select="$content" />
1953
- </xsl:call-template>
2096
+ <xsl:call-template name="process_tags" >
2097
+ <xsl:with-param name="text" select="$content" />
2098
+ </xsl:call-template>
1954
2099
 
1955
- <xsl:text>[/</xsl:text><xsl:value-of select="$tag" /><xsl:text>]</xsl:text>
1956
- </xsl:when>
2100
+ <xsl:text>[/</xsl:text>
2101
+ <xsl:value-of select="$tag" />
2102
+ <xsl:text>]</xsl:text>
2103
+ </xsl:when>
1957
2104
 
1958
- <xsl:otherwise>
1959
- <xsl:text>[</xsl:text><xsl:value-of select="$full_tag" /><xsl:text>]</xsl:text>
1960
- </xsl:otherwise>
2105
+ <xsl:otherwise>
2106
+ <xsl:text>[</xsl:text>
2107
+ <xsl:value-of select="$full_tag" />
2108
+ <xsl:text>]</xsl:text>
2109
+ </xsl:otherwise>
1961
2110
 
1962
- </xsl:choose>
2111
+ </xsl:choose>
1963
2112
 
1964
- <xsl:call-template name="process_tags" >
1965
- <xsl:with-param name="text" select="$content_after" />
1966
- </xsl:call-template>
2113
+ <xsl:call-template name="process_tags" >
2114
+ <xsl:with-param name="text" select="$content_after" />
2115
+ </xsl:call-template>
1967
2116
 
1968
- </xsl:otherwise>
2117
+ </xsl:otherwise>
1969
2118
 
1970
- </xsl:choose>
2119
+ </xsl:choose>
1971
2120
 
1972
- </xsl:template>
2121
+ </xsl:template>
1973
2122
 
1974
2123
  </xsl:stylesheet>