testability-driver 1.4.4 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/tdriver-devtools/doc/xslt/template.xsl +1212 -1063
- data/lib/tdriver/base/test_object/verification.rb +1 -1
- data/lib/tdriver/version.rb +1 -1
- metadata +5 -5
@@ -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
|
-
|
14
|
-
|
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: #
|
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:
|
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:
|
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:
|
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
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
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
|
-
|
418
|
+
<xsl:apply-templates/>
|
414
419
|
|
415
|
-
|
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
|
-
|
423
|
-
|
427
|
+
<center>
|
428
|
+
<span class="toc_title">Table of contents:</span>
|
429
|
+
<br />
|
424
430
|
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
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
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
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
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
481
|
+
</xsl:for-each>
|
482
|
+
</table>
|
483
|
+
</div>
|
484
|
+
</center>
|
485
|
+
<hr />
|
451
486
|
|
452
487
|
<!-- content -->
|
453
488
|
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
489
|
+
<xsl:for-each select="feature">
|
490
|
+
<xsl:sort select="@name" />
|
491
|
+
<xsl:call-template name="feature">
|
492
|
+
</xsl:call-template>
|
458
493
|
|
459
|
-
|
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
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
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
|
-
|
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
|
-
|
524
|
+
<div class="feature_section_title">Call sequence:</div>
|
488
525
|
|
489
|
-
|
526
|
+
<div class="feature_call_sequence">
|
490
527
|
<!-- method: call example using parameters -->
|
491
|
-
|
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
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
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
|
-
|
558
|
+
<xsl:choose>
|
521
559
|
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
560
|
+
<xsl:when test="arguments/@count>0 and count(arguments/argument)<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
|
-
|
568
|
+
<xsl:when test="count(arguments/argument)=0"></xsl:when>
|
529
569
|
|
530
|
-
|
570
|
+
<xsl:when test="count(arguments/argument)>0">
|
531
571
|
|
532
572
|
<!-- do not show parenthesis if first argument is type of block -->
|
533
|
-
|
573
|
+
<xsl:if test="arguments/argument[1]/@type!='block'">
|
534
574
|
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
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
|
-
|
587
|
+
<xsl:for-each select="arguments/argument">
|
548
588
|
|
549
|
-
|
589
|
+
<xsl:if test="@type='normal' or @type='multi'">
|
550
590
|
|
551
|
-
|
591
|
+
<xsl:choose>
|
552
592
|
|
553
|
-
|
593
|
+
<xsl:when test="@optional='true'">
|
554
594
|
|
555
|
-
|
595
|
+
<span class="optional_argument" title="Optional argument">
|
556
596
|
|
557
|
-
|
558
|
-
|
559
|
-
|
597
|
+
<xsl:if test="@type='multi'">
|
598
|
+
<xsl:text></xsl:text>
|
599
|
+
</xsl:if>
|
560
600
|
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
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
|
-
|
609
|
+
<xsl:text></xsl:text>
|
570
610
|
|
571
|
-
|
611
|
+
</span>
|
572
612
|
|
573
|
-
|
613
|
+
</xsl:when>
|
574
614
|
|
575
|
-
|
576
|
-
|
577
|
-
|
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
|
-
|
621
|
+
</xsl:choose>
|
580
622
|
|
581
623
|
<!-- separate arguments with comma if next argument defintion is not type of block -->
|
582
|
-
|
583
|
-
|
584
|
-
|
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
|
-
|
628
|
+
</xsl:if>
|
587
629
|
|
588
|
-
|
630
|
+
</xsl:for-each>
|
589
631
|
<!--<xsl:text> ) </xsl:text>-->
|
590
632
|
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
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
|
-
|
643
|
+
</xsl:if>
|
602
644
|
|
603
645
|
<!-- collect arguments for example -->
|
604
|
-
|
646
|
+
<xsl:for-each select="arguments/argument">
|
605
647
|
|
606
|
-
|
648
|
+
<xsl:if test="./@type='block'">
|
607
649
|
|
608
|
-
|
650
|
+
<xsl:text>{ </xsl:text>
|
609
651
|
|
610
|
-
|
652
|
+
<xsl:for-each select="../../arguments/argument[@type='block_argument']">
|
611
653
|
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
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
|
-
|
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
|
-
|
624
|
-
|
625
|
-
|
667
|
+
<xsl:if test="position()=last()">
|
668
|
+
<xsl:text> | </xsl:text>
|
669
|
+
</xsl:if>
|
626
670
|
|
627
|
-
|
671
|
+
</xsl:for-each>
|
628
672
|
|
629
|
-
|
630
|
-
|
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
|
-
|
678
|
+
</xsl:if>
|
633
679
|
|
634
|
-
|
680
|
+
</xsl:for-each>
|
635
681
|
|
636
|
-
|
682
|
+
</xsl:when>
|
637
683
|
|
638
|
-
|
684
|
+
</xsl:choose>
|
639
685
|
|
640
686
|
<!-- describe block usage -->
|
641
|
-
|
642
|
-
|
687
|
+
<xsl:if test="count(arguments/block)>0">
|
688
|
+
<xsl:text>{ dsadsa</xsl:text>
|
643
689
|
<!-- TODO: block arguments -->
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
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
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
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
|
-
|
704
|
+
<xsl:if test="@type='writer' or @type='accessor'">
|
659
705
|
|
660
706
|
<!-- TODO: argument name from arguments array -->
|
661
|
-
|
662
|
-
|
663
|
-
|
707
|
+
<xsl:text>object.</xsl:text>
|
708
|
+
<xsl:value-of select="str:split(@name,';')[1]" />
|
709
|
+
<xsl:text> = ( </xsl:text>
|
664
710
|
|
665
|
-
|
711
|
+
<xsl:choose>
|
666
712
|
|
667
|
-
|
668
|
-
|
669
|
-
|
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
|
-
|
672
|
-
|
673
|
-
|
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
|
-
|
725
|
+
</xsl:choose>
|
676
726
|
|
677
|
-
|
678
|
-
|
679
|
-
|
727
|
+
<xsl:text> )</xsl:text>
|
728
|
+
<br />
|
729
|
+
</xsl:if>
|
680
730
|
|
681
|
-
|
731
|
+
</div>
|
682
732
|
|
683
|
-
|
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
|
-
|
740
|
+
<xsl:param name="text" />
|
691
741
|
|
692
|
-
|
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
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
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
|
-
|
762
|
+
<td class="tablebg_even" valign="top">
|
713
763
|
<!-- capitalize text() -->
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
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
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
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
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
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
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
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
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
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
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
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
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
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
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
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
|
-
|
852
|
-
|
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
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
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
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
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
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
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
|
-
|
958
|
+
</tr>
|
905
959
|
|
906
|
-
|
907
|
-
|
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
|
-
|
967
|
+
<div id="{ ./behaviour/@name }.@name">
|
914
968
|
|
915
|
-
|
969
|
+
<xsl:call-template name="feature_name" />
|
916
970
|
|
917
|
-
|
971
|
+
<xsl:if test="count(deprecated)>0">
|
918
972
|
|
919
|
-
|
973
|
+
<xsl:call-template name="deprecated" />
|
920
974
|
|
921
|
-
|
975
|
+
</xsl:if>
|
922
976
|
|
923
|
-
|
977
|
+
<xsl:call-template name="description" />
|
924
978
|
|
925
|
-
|
979
|
+
<xsl:if test="count(deprecated)>0">
|
926
980
|
|
927
|
-
|
981
|
+
<xsl:call-template name="target_details" />
|
928
982
|
|
929
|
-
|
983
|
+
</xsl:if>
|
930
984
|
|
931
|
-
|
985
|
+
<xsl:if test="count(deprecated)=0">
|
932
986
|
|
933
|
-
|
987
|
+
<xsl:call-template name="call_sequence" />
|
934
988
|
|
935
|
-
|
989
|
+
<xsl:call-template name="target_details" />
|
936
990
|
|
937
|
-
|
991
|
+
<xsl:call-template name="arguments" />
|
938
992
|
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
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
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
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
|
-
|
1003
|
+
<xsl:if test="count(tables/table)>0">
|
950
1004
|
<!-- custom tables -->
|
951
|
-
|
952
|
-
|
1005
|
+
<xsl:call-template name="tables" />
|
1006
|
+
</xsl:if>
|
953
1007
|
|
954
|
-
|
955
|
-
|
956
|
-
|
1008
|
+
<xsl:call-template name="tests">
|
1009
|
+
<xsl:with-param name="tests" select="tests" />
|
1010
|
+
</xsl:call-template>
|
957
1011
|
|
958
|
-
|
1012
|
+
</xsl:if>
|
959
1013
|
|
960
|
-
|
1014
|
+
<xsl:call-template name="info" />
|
961
1015
|
|
962
|
-
|
1016
|
+
<xsl:if test="position()!=last()-1">
|
963
1017
|
<!-- feature separator? -->
|
964
|
-
|
1018
|
+
</xsl:if>
|
965
1019
|
|
966
|
-
|
967
|
-
|
1020
|
+
<a href="#top" class="jump_to">Jump to top of page</a>
|
1021
|
+
<br />
|
1022
|
+
<br />
|
968
1023
|
|
969
|
-
|
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
|
-
|
976
|
-
|
1030
|
+
<xsl:param name="type" />
|
1031
|
+
<xsl:param name="feature_type" />
|
977
1032
|
|
978
|
-
|
1033
|
+
<xsl:if test="count($type)>0">
|
979
1034
|
|
980
1035
|
<!-- exceptions -->
|
981
|
-
|
1036
|
+
<div class="feature_section_title">Exceptions:</div>
|
982
1037
|
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
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
|
-
|
1044
|
+
<xsl:for-each select="$type">
|
990
1045
|
|
991
|
-
|
1046
|
+
<xsl:choose>
|
992
1047
|
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
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
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
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
|
-
|
1062
|
+
</xsl:choose>
|
1008
1063
|
|
1009
|
-
|
1064
|
+
</xsl:for-each>
|
1010
1065
|
|
1011
|
-
|
1012
|
-
|
1066
|
+
</table>
|
1067
|
+
<br />
|
1013
1068
|
|
1014
|
-
|
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
|
-
|
1021
|
-
|
1075
|
+
<xsl:param name="type" />
|
1076
|
+
<xsl:param name="class" />
|
1022
1077
|
|
1023
|
-
|
1024
|
-
|
1078
|
+
<tr valign="top" class="{ $class }">
|
1079
|
+
<td class="{ $class }">
|
1080
|
+
<xsl:value-of select="$type/@name"/>
|
1081
|
+
</td>
|
1025
1082
|
|
1026
1083
|
|
1027
|
-
|
1084
|
+
<xsl:choose>
|
1028
1085
|
|
1029
1086
|
|
1030
1087
|
|
1031
|
-
|
1088
|
+
<xsl:when test="string-length($type/description)=0">
|
1032
1089
|
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
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
|
-
|
1094
|
+
</xsl:when>
|
1038
1095
|
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1119
|
+
<xsl:param name="argument_name" />
|
1120
|
+
<xsl:param name="type" />
|
1121
|
+
<xsl:param name="default" />
|
1122
|
+
<xsl:param name="class" />
|
1061
1123
|
|
1062
|
-
|
1124
|
+
<xsl:choose>
|
1063
1125
|
|
1064
|
-
|
1126
|
+
<xsl:when test="count(type)>0">
|
1065
1127
|
|
1066
|
-
|
1128
|
+
<xsl:variable name="argument_types" select="count(type)" />
|
1067
1129
|
|
1068
|
-
|
1130
|
+
<xsl:for-each select="type">
|
1069
1131
|
|
1070
|
-
|
1132
|
+
<tr valign="top" class="{ $class }">
|
1071
1133
|
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
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
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
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
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
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
|
-
|
1208
|
+
<xsl:choose>
|
1137
1209
|
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
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
|
-
|
1216
|
+
<xsl:when test="string(example/text())='-'">
|
1143
1217
|
<!-- <td class="tablebg_disabled" rowspan="{ $argument_types }"><xsl:value-of select="$default"/></td> -->
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
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
|
-
|
1235
|
+
</xsl:choose>
|
1158
1236
|
|
1159
1237
|
<!-- default value -->
|
1160
|
-
|
1238
|
+
<xsl:if test="position()=1">
|
1161
1239
|
|
1162
|
-
|
1240
|
+
<xsl:choose>
|
1163
1241
|
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
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
|
-
|
1169
|
-
|
1170
|
-
|
1248
|
+
<xsl:otherwise>
|
1249
|
+
<td class="{ $class }" rowspan="{ $argument_types }">
|
1250
|
+
<xsl:value-of select="$default"/>
|
1251
|
+
</td>
|
1252
|
+
</xsl:otherwise>
|
1171
1253
|
|
1172
|
-
|
1254
|
+
</xsl:choose>
|
1173
1255
|
|
1174
|
-
|
1256
|
+
</xsl:if>
|
1175
1257
|
|
1176
|
-
|
1258
|
+
</tr>
|
1177
1259
|
|
1178
|
-
|
1260
|
+
</xsl:for-each>
|
1179
1261
|
|
1180
|
-
|
1262
|
+
</xsl:when>
|
1181
1263
|
|
1182
|
-
|
1264
|
+
<xsl:otherwise>
|
1183
1265
|
|
1184
|
-
|
1185
|
-
|
1266
|
+
<tr>
|
1267
|
+
<td class="{ $class }">
|
1268
|
+
<xsl:value-of select="$argument_name" />
|
1269
|
+
</td>
|
1186
1270
|
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
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
|
-
|
1276
|
+
<xsl:choose>
|
1193
1277
|
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
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
|
-
|
1199
|
-
|
1200
|
-
|
1284
|
+
<xsl:otherwise>
|
1285
|
+
<td class="{ $class }">
|
1286
|
+
<xsl:value-of select="$default"/>
|
1287
|
+
</td>
|
1288
|
+
</xsl:otherwise>
|
1201
1289
|
|
1202
|
-
|
1290
|
+
</xsl:choose>
|
1203
1291
|
|
1204
1292
|
|
1205
|
-
|
1293
|
+
</tr>
|
1206
1294
|
|
1207
|
-
|
1295
|
+
</xsl:otherwise>
|
1208
1296
|
|
1209
|
-
|
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
|
-
|
1303
|
+
<xsl:if test="@type='writer' or @type='accessor' or (@type='method' and number(arguments/@count)>0)">
|
1216
1304
|
|
1217
|
-
|
1305
|
+
<div class="feature_section_title">Arguments:</div>
|
1218
1306
|
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
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
|
-
|
1316
|
+
<xsl:for-each select="arguments/argument">
|
1229
1317
|
|
1230
|
-
|
1318
|
+
<xsl:choose>
|
1231
1319
|
|
1232
1320
|
<!-- table stripes: position even -->
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
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
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
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
|
-
|
1340
|
+
</xsl:choose>
|
1253
1341
|
|
1254
|
-
|
1342
|
+
</xsl:for-each>
|
1255
1343
|
|
1256
1344
|
<!-- show error message if argument is not described -->
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1345
|
+
<xsl:if test="@type='method' and (arguments/@described<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
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
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
|
-
|
1273
|
-
|
1363
|
+
</table>
|
1364
|
+
<br />
|
1274
1365
|
|
1275
|
-
|
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
|
-
|
1282
|
-
|
1372
|
+
<xsl:param name="type" />
|
1373
|
+
<xsl:param name="class" />
|
1283
1374
|
|
1284
|
-
|
1375
|
+
<tr valign="top" class="{ $class }">
|
1285
1376
|
|
1286
1377
|
<!-- verify that return value type is defined -->
|
1287
|
-
|
1378
|
+
<xsl:choose>
|
1288
1379
|
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
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
|
-
|
1296
|
-
|
1297
|
-
|
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
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
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
|
-
|
1400
|
+
<xsl:choose>
|
1308
1401
|
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1402
|
+
<xsl:when test="string($type/description/text())='-'">
|
1403
|
+
<td class="tablebg_disabled" />
|
1404
|
+
</xsl:when>
|
1312
1405
|
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
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
|
-
|
1421
|
+
<xsl:choose>
|
1329
1422
|
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1423
|
+
<xsl:when test="string($type/example/text())='-'">
|
1424
|
+
<td class="tablebg_disabled" />
|
1425
|
+
</xsl:when>
|
1333
1426
|
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
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
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
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
|
-
|
1356
|
-
|
1454
|
+
<xsl:param name="text" />
|
1455
|
+
<xsl:param name="colspan" />
|
1357
1456
|
|
1358
|
-
|
1457
|
+
<xsl:choose>
|
1359
1458
|
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
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
|
-
|
1365
|
-
|
1366
|
-
|
1465
|
+
<xsl:otherwise>
|
1466
|
+
<td class="warning">[!!]
|
1467
|
+
<xsl:value-of select="$text" />
|
1468
|
+
</td>
|
1469
|
+
</xsl:otherwise>
|
1367
1470
|
|
1368
|
-
|
1471
|
+
</xsl:choose>
|
1369
1472
|
|
1370
|
-
</xsl:template>
|
1473
|
+
</xsl:template>
|
1371
1474
|
|
1372
|
-
<xsl:template name="div_warning">
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
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
|
-
|
1379
|
-
|
1380
|
-
|
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
|
-
|
1385
|
-
|
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
|
-
|
1497
|
+
<xsl:if test="@type='reader' or @type='accessor' or @type='method'">
|
1391
1498
|
|
1392
1499
|
<!-- return values -->
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
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
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
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
|
-
|
1516
|
+
<xsl:if test="count($type)>0">
|
1410
1517
|
|
1411
|
-
|
1518
|
+
<xsl:for-each select="$type">
|
1412
1519
|
|
1413
|
-
|
1520
|
+
<xsl:choose>
|
1414
1521
|
|
1415
|
-
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
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
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
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
|
-
|
1536
|
+
</xsl:choose>
|
1430
1537
|
|
1431
|
-
|
1538
|
+
</xsl:for-each>
|
1432
1539
|
|
1433
|
-
|
1540
|
+
</xsl:if>
|
1434
1541
|
|
1435
|
-
|
1436
|
-
|
1542
|
+
</table>
|
1543
|
+
<br />
|
1437
1544
|
|
1438
|
-
|
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
|
-
|
1551
|
+
<xsl:for-each select="tables/table">
|
1445
1552
|
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
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
|
-
|
1568
|
+
<table class="default">
|
1457
1569
|
<!-- header -->
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
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
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
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
|
-
|
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
|
-
|
1617
|
+
<div class="feature_section_title">Description:</div>
|
1502
1618
|
|
1503
|
-
|
1619
|
+
<xsl:if test="string-length(description/text())>0">
|
1504
1620
|
<!-- display feature description (split lines with '\n') -->
|
1505
1621
|
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
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
|
-
|
1629
|
+
</xsl:if>
|
1513
1630
|
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
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
|
-
|
1642
|
+
<div class="feature_section_title">Deprecated in version:</div>
|
1526
1643
|
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
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
|
-
|
1653
|
+
<xsl:param name="tests" />
|
1537
1654
|
|
1538
1655
|
<!-- examples -->
|
1539
|
-
|
1656
|
+
<div class="feature_section_title">Examples:</div>
|
1540
1657
|
|
1541
|
-
|
1658
|
+
<xsl:for-each select="$tests/scenario">
|
1542
1659
|
|
1543
1660
|
<!-- description (splitted with '\n') -->
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
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
|
-
|
1668
|
+
<xsl:value-of select="@name"/>
|
1551
1669
|
|
1552
|
-
|
1670
|
+
<pre class="{@status}">
|
1553
1671
|
<!-- show status only if other than 'passed' -->
|
1554
|
-
|
1555
|
-
|
1556
|
-
|
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
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
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
|
-
|
1684
|
+
</xsl:for-each>
|
1564
1685
|
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
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
|
-
|
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
|
-
|
1704
|
+
<xsl:if test="string-length(info/text())>0">
|
1576
1705
|
<!-- display feature description (split lines with '\n') -->
|
1577
|
-
|
1578
|
-
|
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
|
-
|
1718
|
+
<xsl:param name="text"/>
|
1585
1719
|
|
1586
|
-
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
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
|
-
|
1726
|
+
<xsl:call-template name="process_tags">
|
1593
1727
|
|
1594
|
-
|
1728
|
+
<xsl:with-param name="text" select="$text_with_linefeeds" />
|
1595
1729
|
|
1596
|
-
|
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
|
-
|
1736
|
+
<xsl:param name="text"/>
|
1603
1737
|
|
1604
1738
|
<!-- content before \n -->
|
1605
|
-
|
1739
|
+
<xsl:variable name="before_linefeed" select="substring-before($text, '\')"/>
|
1606
1740
|
|
1607
1741
|
<!-- content after \n -->
|
1608
|
-
|
1742
|
+
<xsl:variable name="after_linefeed" select="substring-after($text, '\')"/>
|
1609
1743
|
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
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
|
-
|
1761
|
+
<xsl:param name="text"/>
|
1627
1762
|
|
1628
|
-
|
1763
|
+
<xsl:param name="string" />
|
1629
1764
|
|
1630
|
-
|
1765
|
+
<xsl:param name="with" />
|
1631
1766
|
|
1632
|
-
|
1767
|
+
<xsl:variable name="remaining_text" select="$text"/>
|
1633
1768
|
|
1634
1769
|
<!-- content before $string -->
|
1635
|
-
|
1770
|
+
<xsl:variable name="content_before_string" select="substring-before($text, $string)"/>
|
1636
1771
|
|
1637
1772
|
<!-- content after $string -->
|
1638
|
-
|
1773
|
+
<xsl:variable name="content_after_string" select="substring-after($text, $string)" />
|
1639
1774
|
|
1640
|
-
|
1775
|
+
<xsl:choose>
|
1641
1776
|
|
1642
|
-
|
1777
|
+
<xsl:when test="contains($text, $string)">
|
1643
1778
|
|
1644
1779
|
<!-- $string found from $text, show leading content before $string -->
|
1645
|
-
|
1646
|
-
|
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
|
-
|
1783
|
+
<xsl:choose>
|
1649
1784
|
|
1650
|
-
|
1785
|
+
<xsl:when test="contains($content_after_string, $string)">
|
1651
1786
|
|
1652
1787
|
<!-- $content_after_string contains $string, call replace template recursively -->
|
1653
|
-
|
1788
|
+
<xsl:call-template name="replace">
|
1654
1789
|
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
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
|
-
|
1794
|
+
</xsl:call-template>
|
1660
1795
|
|
1661
|
-
|
1796
|
+
</xsl:when>
|
1662
1797
|
|
1663
|
-
|
1798
|
+
<xsl:otherwise>
|
1664
1799
|
|
1665
1800
|
<!-- $content_after_string doesnt contain $string, return $content_after_string as is -->
|
1666
|
-
|
1801
|
+
<xsl:value-of disable-output-escaping="yes" select="$content_after_string" />
|
1667
1802
|
|
1668
|
-
|
1803
|
+
</xsl:otherwise>
|
1669
1804
|
|
1670
|
-
|
1805
|
+
</xsl:choose>
|
1671
1806
|
|
1672
|
-
|
1807
|
+
</xsl:when>
|
1673
1808
|
|
1674
|
-
|
1809
|
+
<xsl:otherwise>
|
1675
1810
|
|
1676
1811
|
<!-- $string not found from $text, return $text as is -->
|
1677
|
-
|
1812
|
+
<xsl:value-of select="$text" />
|
1678
1813
|
|
1679
|
-
|
1814
|
+
</xsl:otherwise>
|
1680
1815
|
|
1681
|
-
|
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
|
-
|
1823
|
+
<xsl:param name="text"/>
|
1689
1824
|
|
1690
|
-
|
1825
|
+
<xsl:variable name="remainingContent" select="$text"/>
|
1691
1826
|
|
1692
1827
|
<!-- content before tag start character -->
|
1693
|
-
|
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
|
-
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
1836
|
+
<xsl:variable name="content_after_tag">
|
1837
|
+
<xsl:variable name="tmp_content_after_tag" select="substring-after(substring-after($text, '['), '"]')"/>
|
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
|
-
|
1868
|
+
<xsl:variable name="full_tag">
|
1734
1869
|
<!-- start tag: [example_tag="abcdef"] -->
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1870
|
+
<xsl:variable name="tmp_full_tag" select="substring-after(substring-before($text, '"]'), '[')"/>
|
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
|
-
|
1882
|
+
<xsl:variable name="tag" select="str:split(substring-after(substring-before($text, ']'), '['), '=')[1]"/>
|
1748
1883
|
|
1749
1884
|
<!-- content between tags: content-->
|
1750
|
-
|
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
|
-
|
1888
|
+
<xsl:variable name="content_after_start_tag" select="substring-after($text, concat('[',$tag,']'))"/>
|
1754
1889
|
|
1755
1890
|
<!-- content after end tag: continues-->
|
1756
|
-
|
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
|
-
|
1894
|
+
<xsl:value-of select="$content_before_tag" />
|
1760
1895
|
|
1761
|
-
|
1896
|
+
<xsl:choose>
|
1762
1897
|
|
1763
|
-
|
1898
|
+
<xsl:when test="string-length($tag)>0">
|
1764
1899
|
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
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
|
-
|
1907
|
+
<xsl:if test="string-length($tag_content)=0">
|
1773
1908
|
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
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
|
-
|
1913
|
+
</xsl:if>
|
1779
1914
|
|
1780
|
-
|
1915
|
+
</xsl:when>
|
1781
1916
|
|
1782
|
-
|
1917
|
+
<xsl:otherwise>
|
1783
1918
|
|
1784
|
-
|
1919
|
+
<xsl:value-of select="$text" />
|
1785
1920
|
|
1786
|
-
|
1921
|
+
</xsl:otherwise>
|
1787
1922
|
|
1788
|
-
|
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
|
-
|
1795
|
-
|
1929
|
+
<xsl:param name="tag" />
|
1930
|
+
<xsl:param name="full_tag" />
|
1796
1931
|
|
1797
1932
|
|
1798
|
-
|
1799
|
-
|
1933
|
+
<xsl:param name="content" />
|
1934
|
+
<xsl:param name="content_after" />
|
1800
1935
|
|
1801
|
-
|
1936
|
+
<xsl:variable name="parameter">
|
1802
1937
|
<!-- remove quotations from parameter value -->
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
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
|
-
|
1817
|
-
|
1951
|
+
<xsl:choose>
|
1952
|
+
<xsl:when test="$tag='b'">
|
1818
1953
|
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
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
|
-
|
1824
|
-
|
1825
|
-
|
1960
|
+
<xsl:call-template name="process_tags" >
|
1961
|
+
<xsl:with-param name="text" select="$content_after" />
|
1962
|
+
</xsl:call-template>
|
1826
1963
|
|
1827
|
-
|
1964
|
+
</xsl:when>
|
1828
1965
|
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
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
|
-
|
1976
|
+
</xsl:when>
|
1838
1977
|
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
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
|
-
|
1988
|
+
</xsl:when>
|
1848
1989
|
|
1849
|
-
|
1990
|
+
<xsl:when test="$tag='code'">
|
1850
1991
|
|
1851
|
-
|
1992
|
+
<pre class="block">
|
1993
|
+
<xsl:value-of select="$content" />
|
1994
|
+
</pre>
|
1852
1995
|
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1996
|
+
<xsl:call-template name="process_tags" >
|
1997
|
+
<xsl:with-param name="text" select="$content_after" />
|
1998
|
+
</xsl:call-template>
|
1856
1999
|
|
1857
|
-
|
2000
|
+
</xsl:when>
|
1858
2001
|
|
1859
|
-
|
2002
|
+
<xsl:when test="$tag='img'">
|
1860
2003
|
|
1861
|
-
|
2004
|
+
<xsl:choose>
|
1862
2005
|
|
1863
|
-
|
2006
|
+
<xsl:when test="string-length($parameter)>0">
|
1864
2007
|
<!-- found title text for image -->
|
1865
|
-
|
1866
|
-
|
2008
|
+
<img src="{ $parameter }" title="{ $content }" />
|
2009
|
+
</xsl:when>
|
1867
2010
|
|
1868
|
-
|
2011
|
+
<xsl:otherwise>
|
1869
2012
|
<!-- no title text for image -->
|
1870
|
-
|
1871
|
-
|
2013
|
+
<img src="{ $content }" title="" />
|
2014
|
+
</xsl:otherwise>
|
1872
2015
|
|
1873
|
-
|
2016
|
+
</xsl:choose>
|
1874
2017
|
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
2018
|
+
<xsl:call-template name="process_tags" >
|
2019
|
+
<xsl:with-param name="text" select="$content_after" />
|
2020
|
+
</xsl:call-template>
|
1878
2021
|
|
1879
|
-
|
2022
|
+
</xsl:when>
|
1880
2023
|
|
1881
|
-
|
2024
|
+
<xsl:when test="$tag='link'">
|
1882
2025
|
|
1883
|
-
|
2026
|
+
<xsl:choose>
|
1884
2027
|
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
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
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
1898
|
-
|
1899
|
-
|
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
|
-
|
2044
|
+
</xsl:choose>
|
1902
2045
|
|
1903
|
-
|
1904
|
-
|
1905
|
-
|
2046
|
+
<xsl:call-template name="process_tags" >
|
2047
|
+
<xsl:with-param name="text" select="$content_after" />
|
2048
|
+
</xsl:call-template>
|
1906
2049
|
|
1907
|
-
|
2050
|
+
</xsl:when>
|
1908
2051
|
|
1909
2052
|
|
1910
|
-
|
2053
|
+
<xsl:when test="$tag='name'">
|
1911
2054
|
|
1912
|
-
|
2055
|
+
<xsl:choose>
|
1913
2056
|
|
1914
|
-
|
1915
|
-
|
1916
|
-
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
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
|
-
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
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
|
-
|
2073
|
+
</xsl:choose>
|
1931
2074
|
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
2075
|
+
<xsl:call-template name="process_tags" >
|
2076
|
+
<xsl:with-param name="text" select="$content_after" />
|
2077
|
+
</xsl:call-template>
|
1935
2078
|
|
1936
|
-
|
2079
|
+
</xsl:when>
|
1937
2080
|
|
1938
2081
|
|
1939
2082
|
|
1940
|
-
|
1941
|
-
|
1942
|
-
|
2083
|
+
<xsl:when test="$tag='br'">
|
2084
|
+
<br />
|
2085
|
+
</xsl:when>
|
1943
2086
|
|
1944
|
-
|
2087
|
+
<xsl:otherwise>
|
1945
2088
|
|
1946
|
-
|
2089
|
+
<xsl:choose>
|
1947
2090
|
|
1948
|
-
|
1949
|
-
|
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
|
-
|
1952
|
-
|
1953
|
-
|
2096
|
+
<xsl:call-template name="process_tags" >
|
2097
|
+
<xsl:with-param name="text" select="$content" />
|
2098
|
+
</xsl:call-template>
|
1954
2099
|
|
1955
|
-
|
1956
|
-
|
2100
|
+
<xsl:text>[/</xsl:text>
|
2101
|
+
<xsl:value-of select="$tag" />
|
2102
|
+
<xsl:text>]</xsl:text>
|
2103
|
+
</xsl:when>
|
1957
2104
|
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
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
|
-
|
2111
|
+
</xsl:choose>
|
1963
2112
|
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
2113
|
+
<xsl:call-template name="process_tags" >
|
2114
|
+
<xsl:with-param name="text" select="$content_after" />
|
2115
|
+
</xsl:call-template>
|
1967
2116
|
|
1968
|
-
|
2117
|
+
</xsl:otherwise>
|
1969
2118
|
|
1970
|
-
|
2119
|
+
</xsl:choose>
|
1971
2120
|
|
1972
|
-
</xsl:template>
|
2121
|
+
</xsl:template>
|
1973
2122
|
|
1974
2123
|
</xsl:stylesheet>
|