Project

General

Profile

Revision 3ae8866d

ID3ae8866d21e8146a46ff385d39ce7db41c737c94
Parent 905e953b
Child 6152fc6e

Added by Sybille Bürs over 8 years ago

some changes

View differences:

cdmlib-print/src/main/resources/stylesheets/mediawiki/multipages.xsl
26 26
    <!-- create the username who changed/created the pages -->
27 27
    <xsl:variable name="username">Sybille Test </xsl:variable>
28 28

  
29
    <xsl:template name="wiki-newline-comment">
30
        <xsl:comment>
31
            <xsl:text>&#xa; </xsl:text>
32
        </xsl:comment>
29
    <xsl:template name="wiki-newline">
30
        <xsl:text>&#xa;</xsl:text>
33 31
    </xsl:template>
34 32

  
35
    <xsl:template name="wiki-two-newlines-comment">
33
    <xsl:template name="wiki-newline-comment">
36 34
        <xsl:comment>
37 35
            <xsl:text>&#xa; </xsl:text>
38
            <xsl:text>&#xa; </xsl:text>
39 36
        </xsl:comment>
40 37
    </xsl:template>
41 38

  
......
158 155
                    <xsl:value-of select="concat('#REDIRECT [[',$page-prefix,$title,']]')"/>
159 156
                    <!-- add parent categorie if exists -->
160 157
                    <xsl:if test="exists(../..) and name(../..)='TaxonNode'">
161
                        <xsl:call-template name="wiki-newline-comment"/>
158
                        <xsl:call-template name="wiki-newline"/>
162 159
                        <xsl:value-of select="concat('[[Category:',$parent-title,']]')"/>
163 160
                    </xsl:if>
164 161
                </text>
......
186 183
                    <xsl:attribute name="xml:space">preserve</xsl:attribute>
187 184
                    <!-- add table of contents -->
188 185
                    <xsl:call-template name="TOC"/>
189

  
190 186
                    <!-- add taxo tree -->
191 187
                    <xsl:value-of
192
                        select="concat('{{EDIT_Taxotree| parentTaxon=',$page-prefix,$parent-title, '}}')"/>
193
                    <xsl:call-template name="wiki-two-newlines-comment"/>
194

  
188
                        select="concat('{{EDIT_Taxotree| parentTaxon=',$page-prefix,$parent-title,'}}')"/>
189
                    <xsl:call-template name="wiki-newline"/>
190
                    <xsl:call-template name="wiki-newline"/>
195 191

  
196 192
                    <!-- add contents of taxon page -->
197 193
                    <xsl:apply-templates select="Taxon"/>
198 194
                    <xsl:call-template name="display-references"/>
199
                    <xsl:call-template name="wiki-newline-comment"/>
200

  
195
                    <xsl:call-template name="wiki-newline"/>
196
                    <xsl:call-template name="wiki-newline"/>
201 197
                    <!-- put page to corresponding tax category -->
202 198
                    <xsl:value-of select="concat('[[Category:',$title, ']]')"/>
203 199

  
......
242 238
            </xsl:when>
243 239
            <xsl:otherwise>
244 240
                <!-- for debugging --> Unformatted title for rank uuid: <xsl:value-of
245
                    select="$taxon/name/rank/uuid"/>: <xsl:value-of select="$taxon/name/titleCache"
246
                />
241
                    select="$taxon/name/rank/uuid"/>: <xsl:value-of select="$taxon/name/titleCache">
242
                    
243
                    </xsl:value-of>
247 244
            </xsl:otherwise>
248 245
        </xsl:choose>
249 246
    </xsl:template>
......
270 267
        <xsl:apply-templates select="synonymy"/>
271 268
        <xsl:apply-templates select="key"/>
272 269
        <xsl:apply-templates select="descriptions"/>
270
        <!-- A change to Figure Gallery: comment following line: -->
273 271
        <xsl:call-template name="gallery"/>
272
        <!-- TODO to change to Figure Gallery: call figure gallery in the right place
273
        what else?-->
274 274
    </xsl:template>
275 275

  
276 276
    <!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
......
278 278
    <!-- these templates provide the citations -->
279 279

  
280 280
    <xsl:template name="display-references">
281
        <xsl:call-template name="chapter">
282
            <xsl:with-param name="title">References</xsl:with-param>
283
        </xsl:call-template>
284 281
        <xsl:text>{{EDIT_Reference_Section}}</xsl:text>
285 282
    </xsl:template>
286 283

  
......
317 314
        Mohrig, W.; Menzel, F. 1992: Neue Arten europäischer Trauermücken (Diptera, Sciaridae). An International Journal of Dipterological Research, 3(1-2), 1–16.
318 315
        Authors Date: title. inReferences title in italics, Volume in bold(series), page range -->
319 316
    <xsl:template name="reference">
320

  
321 317
        <xsl:param name="reference-node"/>
322 318
        <!--TODO Do we need to sort the list of references in WikiMedia or will they just appear in numbered order as they occur in the names-->
323 319
        <!--xsl:sort select="sources/e[1]/citation/datePublished/start"/-->
324 320

  
325
        <!-- use the citation-uuid as a unique name for the reference -->
326
        <xsl:variable name="citation-uuid" select="$reference-node/uuid"/>
327

  
328
        <!-- use the citation-uuid as a unique name for the reference -->
329
        <xsl:value-of select="concat('{{EDIT_Reference|name=',$citation-uuid,'|content=')"/>
330
        <xsl:call-template name="wiki-newline-comment"/>
331
        <xsl:text>{{aut|</xsl:text>
332
        <xsl:choose>
333
            <xsl:when test="$reference-node/authorTeam/teamMembers/e[1]/lastname != ''">
334
                <xsl:for-each select="$reference-node/authorTeam/teamMembers/e">
335
                    <xsl:value-of select="lastname"/>
336
                    <xsl:choose>
337
                        <xsl:when test="position() != last()">
338
                            <xsl:text> &amp; </xsl:text>
339
                        </xsl:when>
340
                    </xsl:choose>
341
                </xsl:for-each>
342
            </xsl:when>
343
            <xsl:otherwise>
344
                <xsl:value-of select="$reference-node/authorTeam/lastname"/>
345
            </xsl:otherwise>
346

  
347
        </xsl:choose>
348
        <xsl:value-of select="$citation-uuid"/>
349
        <!-- DEBUGGING display uuid so can check references against those in Tax Editor -->
350

  
351
        <xsl:text>}} </xsl:text>
352
        <xsl:if test="$reference-node/datePublished/start != ''">
353
            <xsl:value-of select="$reference-node/datePublished/start"/>
354
            <xsl:text>: </xsl:text>
355
        </xsl:if>
321
        <!-- first of all check if any of the data we show exist: TODO remove this test, 
322
            if we modified CDM services, to export proper data -->
323
        <xsl:if
324
            test="exists($reference-node/authorTeam/teamMembers/e[1]/lastname) 
325
            or exists($reference-node/authorTeam/lastname) or exists($reference-node/datePublished/start)
326
            or exists($reference-node/title)">
356 327

  
357
        <xsl:apply-templates select="$reference-node/title"/>
328
            <!-- use the citation-uuid as a unique name for the reference -->
329
            <xsl:variable name="citation-uuid" select="$reference-node/uuid"/>
358 330

  
359
        <!-- do we need any other info from inReference node - see flore-afrique-centrale.xsl xsl -->
360
        <xsl:variable name="wiki-markup">''</xsl:variable>
331
            <!-- use the citation-uuid as a unique name for the reference -->
332
            <xsl:value-of select="concat('{{EDIT_Reference|name=',$citation-uuid,'|content=')"/>
333
            <xsl:text>{{aut|</xsl:text>
334
            <xsl:choose>
335
                <xsl:when test="exists($reference-node/authorTeam/teamMembers)">
336
                    <xsl:for-each select="$reference-node/authorTeam/teamMembers/e">
337
                        <xsl:value-of select="lastname"/>
338
                        <xsl:choose>
339
                            <xsl:when test="position() != last()">
340
                                <xsl:text> &amp; </xsl:text>
341
                            </xsl:when>
342
                        </xsl:choose>
343
                    </xsl:for-each>
344
                </xsl:when>
345
                <xsl:otherwise>
346
                    <xsl:value-of select="$reference-node/authorTeam/lastname"/>
347
                </xsl:otherwise>
348
            </xsl:choose>
349
            <!-- DEBUGGING display uuid so can check references against those in Tax Editor -->
350
            <xsl:text>}} </xsl:text>
351
            <xsl:if test="$reference-node/datePublished/start != ''">
352
                <xsl:value-of select="$reference-node/datePublished/start"/>
353
                <xsl:text>: </xsl:text>
354
            </xsl:if>
355
            <xsl:apply-templates select="$reference-node/title"/>
356
            <!-- do we need any other info from inReference node - see flore-afrique-centrale.xsl xsl -->
357
            <xsl:variable name="wiki-markup">''</xsl:variable>
361 358

  
362
        <xsl:if test="$reference-node/inReference/node()">
363
            <xsl:value-of
364
                select="concat($wiki-markup, $reference-node/inReference/title, $wiki-markup)"/>
365
        </xsl:if>
366
        <xsl:apply-templates select="$reference-node/volume"/>
367
        <xsl:apply-templates select="$reference-node/series"/>
368
        <xsl:apply-templates select="$reference-node/pages"/>
369
        <xsl:apply-templates select="$reference-node/placePublished"/>
370
        <xsl:apply-templates select="$reference-node/publisher"/>
359
            <xsl:if test="$reference-node/inReference/node()">
360
                <xsl:value-of
361
                    select="concat($wiki-markup, $reference-node/inReference/title, $wiki-markup)"/>
362
            </xsl:if>
363
            <xsl:apply-templates select="$reference-node/volume"/>
364
            <xsl:apply-templates select="$reference-node/series"/>
365
            <xsl:apply-templates select="$reference-node/pages"/>
366
            <xsl:apply-templates select="$reference-node/placePublished"/>
367
            <xsl:apply-templates select="$reference-node/publisher"/>
371 368

  
372
        <!--xsl:choose>
369
            <!--xsl:choose>
373 370
            <xsl:when test="$reference-node/inReference/node()">
374 371
                <xsl:value-of select="$reference-node/title"/>
375 372
                <xsl:text>. </xsl:text>
......
392 389
                <xsl:text>.</xsl:text>
393 390
            </xsl:if>
394 391
        </xsl:if-->
395
        <xsl:text>}}</xsl:text>
392
            <xsl:text>}}</xsl:text>
393
        </xsl:if>
396 394
        <!--</ref>-->
397 395
        <xsl:call-template name="wiki-newline-comment"/>
398 396
    </xsl:template>
......
502 500
        <xsl:call-template name="chapter">
503 501
            <xsl:with-param name="title">Synonomy</xsl:with-param>
504 502
        </xsl:call-template>
505
        <xsl:apply-templates select="../name"/>
506

  
503
        <!--<xsl:text>{{EDIT_Taxon|</xsl:text>-->
504
        <xsl:apply-templates select="../name">
505
            <xsl:with-param name="type">Taxon</xsl:with-param>
506
        </xsl:apply-templates>
507
        <!--<xsl:text>}}</xsl:text>-->
508
        <xsl:call-template name="wiki-newline"/>
507 509
        <!-- getting nomenclatural refs and citaions for this name-->
508 510
        <xsl:call-template name="reference">
509 511
            <xsl:with-param name="reference-node" select="../name/nomenclaturalReference"/>
......
513 515
                select="../descriptions/features/feature[uuid='99b2842f-9aa7-42fa-bd5f-7285311e0101']/descriptionelements"/>
514 516
            <xsl:with-param name="name-uuid" select="../name/uuid"/>
515 517
        </xsl:call-template>
516
        <xsl:call-template name="wiki-two-newlines-comment"/>
517 518
        <xsl:apply-templates select="homotypicSynonymsByHomotypicGroup"/>
518 519
        <xsl:apply-templates select="heterotypicSynonymyGroups"/>
520
        <xsl:call-template name="wiki-newline"/>
521
        <xsl:call-template name="wiki-newline"/>
519 522
        <!--xsl:call-template name="citations">
520 523
            <xsl:with-param name="descriptionelements"
521 524
                select="../descriptions/features/feature[uuid='99b2842f-9aa7-42fa-bd5f-7285311e0101']/descriptionelements"/>
......
530 533
            <xsl:text>{{EDIT Homotypic Synonym|1|</xsl:text>
531 534
            <xsl:apply-templates select="name"/>
532 535
            <xsl:text>}}</xsl:text>
533

  
536
            <xsl:call-template name="wiki-newline-comment"/>
534 537
            <!--homotypicSynonymsByHomotypicGroup/e/name/nomenclaturalReference-->
535 538
            <!--xsl:apply-templates select="name/nomenclaturalReference"/-->
536 539
            <xsl:call-template name="reference">
......
544 547
                <xsl:with-param name="name-uuid" select="name/uuid"/>
545 548
            </xsl:call-template>
546 549
        </xsl:for-each>
547
        <xsl:call-template name="wiki-two-newlines-comment"/>
548 550
    </xsl:template>
549 551

  
550 552
    <!--.............................................-->
551 553

  
552 554
    <xsl:template match="heterotypicSynonymyGroups">
553 555
        <xsl:for-each select="e">
554

  
555
            <!--do foreach for the rest-->
556
            <!--<xsl:text>==***==</xsl:text>-->
556
            <!-- take the first one to printout as the head of the homotypic group -->
557 557
            <xsl:variable name="first-element" select="e[1]"/>
558 558
            <xsl:text>{{EDIT Heterotypic Synonym|1|</xsl:text>
559 559
            <xsl:apply-templates select="$first-element/name"/>
560 560
            <xsl:text>}}</xsl:text>
561
            <!--<xsl:text>==***==</xsl:text>-->
562

  
563 561
            <!-- take the first one to printout as the head of the homotypic group -->
564

  
562
            <!--do foreach for the rest-->
565 563
            <xsl:for-each select="e[position() &gt; 1]">
566 564
                <xsl:text>{{EDIT Homotypic Synonym|2|</xsl:text>
567 565
                <xsl:apply-templates select="name"/>
568 566
                <xsl:text>}}</xsl:text>
569

  
567
                <xsl:call-template name="wiki-newline-comment"/>
570 568
                <xsl:call-template name="reference">
571 569
                    <xsl:with-param name="reference-node" select="name/nomenclaturalReference"/>
572 570
                </xsl:call-template>
......
577 575
                        select="../descriptions/features/feature[uuid='99b2842f-9aa7-42fa-bd5f-7285311e0101']/descriptionelements"/>
578 576
                    <xsl:with-param name="name-uuid" select="name/uuid"/>
579 577
                </xsl:call-template>
580
                <xsl:call-template name="wiki-two-newlines-comment"/>
581
            </xsl:for-each>        
578
            </xsl:for-each>
582 579
        </xsl:for-each>
583
        <xsl:call-template name="wiki-two-newlines-comment"/>
584 580
        <!--xsl:apply-templates select="e[1]/name[1]/homotypicalGroup[1]/typifiedNames[1]/e/taxonBases[1]/e/descriptions[1]/e/elements[1]/e[1]/media[1]/e/representations[1]/e/parts[1]/e/uri"></xsl:apply-templates-->
585 581
    </xsl:template>
586 582

  
587 583
    <!--.............................................-->
588 584

  
589
    <xsl:template match="name">
590
        <xsl:apply-templates select="taggedName"/>
585
    <xsl:template match="name" name="name">
586
        <xsl:param name="type"/>
587
        <xsl:apply-templates select="taggedName">
588
            <xsl:with-param name="type" select="$type"/>
589
        </xsl:apply-templates>
591 590
        <!--xsl:apply-templates select="nomenclaturalReference"/-->
592 591
    </xsl:template>
593 592

  
594 593
    <!--.............................................-->
595 594

  
596 595
    <xsl:template match="taggedName">
597
        <xsl:for-each select="e">
598
            <!-- TODO mybe some types don't contain font tags, we don't have to call the tmeplate  -->
599
            <!--        we could just use <xsl:value-of select="text"/>-->
600
            <xsl:choose>
601
                <xsl:when test="type='name'">
602
                    <xsl:apply-templates select="text"/>
603
                    <xsl:text> </xsl:text>
604
                </xsl:when>
605
                <xsl:when test="type='authors'">
606
                    <xsl:apply-templates select="text"/>
607
                </xsl:when>
608
                <xsl:otherwise>
596
        <xsl:param name="type"/>
597
        <xsl:choose>
598
            <xsl:when test="$type!=''">
599
                <xsl:value-of select="concat('{{EDIT_',$type,'|')"/>
600
                <xsl:for-each select="e">
601
                    <xsl:choose>
602
                        <xsl:when test="type='name'">
603
                            <xsl:apply-templates select="text"/>
604
                            <xsl:text> </xsl:text>
605
                        </xsl:when>
606
                        <xsl:when test="type='authors'">
607
                            <xsl:text>}}</xsl:text>
608
                            <xsl:value-of select="concat('{{EDIT_',$type,'_Author|')"/>
609
                            <xsl:apply-templates select="text"/>
610
                            <xsl:text>}}</xsl:text>
611
                        </xsl:when>
612
                    </xsl:choose>
613
                </xsl:for-each>
614
            </xsl:when>
615
            <xsl:otherwise>
616
                <xsl:for-each select="e">
609 617
                    <xsl:apply-templates select="text"/>
610 618
                    <xsl:text> </xsl:text>
611
                </xsl:otherwise>
612
            </xsl:choose>
613
        </xsl:for-each>
614
        <xsl:call-template name="wiki-newline-comment"/>
619
                </xsl:for-each>
620
            </xsl:otherwise>
621
        </xsl:choose>
622

  
623

  
624

  
625

  
626
        <!-- TODO mybe some types don't contain font tags, we don't have to call the tmeplate  -->
627
        <!--        we could just use <xsl:value-of select="text"/>-->
628

  
629

  
615 630
        <!--<xsl:text>&#xA;</xsl:text>-->
616 631
    </xsl:template>
617 632

  
......
649 664
    <xsl:template name="secondLevelDescriptionElements">
650 665

  
651 666
        <xsl:value-of select="concat('{{EDIT_Highlevel_Feature|',representation_L10n,'}}')"/>
652
        <xsl:call-template name="wiki-newline-comment"></xsl:call-template>
667
        <xsl:call-template name="wiki-newline"/>
653 668
        <xsl:for-each select="feature">
669
            <!-- TODO change mouseover to TermBase description - after exporting it from CDM -->
654 670
            <xsl:value-of
655
                select="concat('{{EDIT_Nested_Feature|name=',representation_L10n,'|elements=')"/>
656
            <!-- TODO create Element -->
671
                select="concat('{{EDIT_Nested_Feature|name=',representation_L10n,'|mouseover=',representation_L10n,'|elements=')"/>
672
            <xsl:call-template name="wiki-newline"/>
673
            <!-- TODO create Elements -->
657 674
            <xsl:for-each select="descriptionelements/descriptionelement">
658 675
                <xsl:value-of
659 676
                    select="concat('{{EDIT_Nested_Feature_Element|',multilanguageText_L10n/text, '}}')"/>
......
662 679
                        <xsl:text>{{EDIT_Delimiter}}</xsl:text>
663 680
                    </xsl:when>
664 681
                </xsl:choose>
682
                <xsl:if test="position() != last()">
683
                    <xsl:call-template name="wiki-newline"/>
684
                </xsl:if>
665 685
            </xsl:for-each>
666 686
            <xsl:text>}}</xsl:text>
667
            <xsl:call-template name="wiki-newline-comment"></xsl:call-template>
687
            <xsl:call-template name="wiki-newline"/>
668 688
        </xsl:for-each>
669
        <xsl:call-template name="wiki-newline-comment"></xsl:call-template>
689
        <xsl:call-template name="wiki-newline"/>
690

  
670 691
    </xsl:template>
671 692
    <!--.............................................-->
672 693

  
......
689 710
    <xsl:template name="commonTaxonName">
690 711

  
691 712
        <xsl:value-of select="concat('{{EDIT_Feature|name=',representation_L10n,'|elements=')"/>
713
        <xsl:call-template name="wiki-newline"/>
692 714
        <xsl:for-each select="descriptionelements/descriptionelement">
693 715
            <xsl:text/>
694 716
            <xsl:value-of
......
696 718
            <xsl:choose>
697 719
                <xsl:when test="position() != last()">
698 720
                    <xsl:text>{{EDIT_Delimiter}}</xsl:text>
699
                    <xsl:call-template name="wiki-newline-comment"></xsl:call-template>
721
                    <xsl:call-template name="wiki-newline"/>
700 722
                </xsl:when>
701 723
            </xsl:choose>
702 724
        </xsl:for-each>
703 725
        <xsl:text>}}</xsl:text>
704
        <xsl:call-template name="wiki-two-newlines-comment"></xsl:call-template>
726
        <xsl:call-template name="wiki-newline"/>
727
        <xsl:call-template name="wiki-newline"/>
705 728
    </xsl:template>
706 729

  
707 730
    <!--.............................................-->
708 731

  
709 732
    <xsl:template name="textData">
710

  
711
        <xsl:value-of
712
            select="concat('{{EDIT_Feature|name=',representation_L10n, '|elements={{EDIT_Feature_Text|' )"/>
713
        <xsl:call-template name="wiki-newline-comment"></xsl:call-template>
733
        <xsl:value-of select="concat('{{EDIT_Feature|name=',representation_L10n, '|elements=')"/>
734
        <xsl:call-template name="wiki-newline"/>
735
        <xsl:text>{{EDIT_Feature_Text|</xsl:text>
714 736
        <!--
715 737
        <xsl:choose>
716 738
            <xsl:when test="uuid!='9fc9d10c-ba50-49ee-b174-ce83fc3f80c6'">-->
......
723 745
        </xsl:choose>
724 746
        -->
725 747
        <xsl:text>}}}}</xsl:text>
726
        <xsl:call-template name="wiki-two-newlines-comment"></xsl:call-template>
727

  
748
        <xsl:choose>
749
            <xsl:when test="uuid='6dfb4e78-c67e-410c-8989-c1fb1295abf6'">--> <!-- feature is "Figures -->
750
                <!-- A Gallery: uncomment following line -->
751
                <!--<xsl:apply-templates
752
                    select="descriptionelements/descriptionelement[1]/multilanguageText_L10n/text"/>-->
753
                <!-- A Gallery: comment following line -->
754
                <xsl:call-template name="gallery"/>
755
            </xsl:when>
756
        </xsl:choose>
757
        <xsl:call-template name="wiki-newline"/>
758
        <xsl:call-template name="wiki-newline"/>
728 759
        <!-- LORNA TRY IMAGE HERE -->
729 760
        <!--xsl:apply-templates select="descriptionelements/descriptionelement[1]/media/e/representations/e/parts/e/uri"/-->
730 761

  
......
745 776
    <!-- image gallery -->
746 777

  
747 778
    <xsl:template name="gallery">
779
        <!-- A change to Figure Gallery: delete/comment following line-->
748 780
        <xsl:text>{{EDIT_Gallery|files=</xsl:text>
749
        <xsl:call-template name="wiki-newline-comment"></xsl:call-template>
781
        <!-- A change to Figure Gallery: uncomment following line -->
782
        <!--<xsl:text>{{EDIT_Figure_Gallery|files=</xsl:text>-->
783
        <xsl:call-template name="wiki-newline"/>
750 784
        <xsl:apply-templates select=".//media/e/representations/e/parts/e/uri"/>
751 785

  
752 786
        <xsl:text>}}</xsl:text>
753
        <xsl:call-template name="wiki-two-newlines-comment"></xsl:call-template>
787
        <xsl:call-template name="wiki-newline"/>
788
        <xsl:call-template name="wiki-newline"/>
754 789
    </xsl:template>
755 790

  
756 791

  
......
760 795

  
761 796
        <xsl:value-of
762 797
            select="concat('{{EDIT_Gallery_File|filename=',functx:substring-after-last(.,'/'), '|description=')"/>
763
        <xsl:call-template name="wiki-newline-comment"></xsl:call-template>
764 798
        <!--go back up to the description element and get the text for the Figure legend -->
765 799
        <xsl:apply-templates select="../../../../../../../multilanguageText_L10n/text"/>
766 800
        <xsl:text>}}</xsl:text>
767
        <xsl:call-template name="wiki-newline-comment"></xsl:call-template>
801
        <xsl:if test="position() != last()">
802
            <xsl:call-template name="wiki-newline"/>
803
        </xsl:if>
768 804
    </xsl:template>
769 805

  
770 806

  
......
776 812
    <!-- change here to change the look of the mediawiki output -->
777 813
    <!-- please use mediawiki templates -->
778 814
    <!-- think also of template changes in the mediawiki -->
779
    <!-- TODO: wrap TOC layout in a mediawiki template -->
780 815

  
781
    <xsl:template name="TOC"> {{EDIT_TOC}} <xsl:call-template name="wiki-two-newlines-comment"/>
782
    </xsl:template>
816
    <xsl:template name="TOC">{{EDIT_TOC}}</xsl:template>
783 817

  
784 818
    <!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
785 819
    <xsl:template name="chapter">
786 820
        <xsl:param name="title"/>
787
        <xsl:value-of select="concat('{{EDIT_Section|',$title,'}}')"/>
788
        <xsl:call-template name="wiki-two-newlines-comment"/>
821
        <xsl:value-of select="concat('{{EDIT_Section|title=',$title,'}}')"/>
822
        <xsl:call-template name="wiki-newline"/>
823
        <xsl:call-template name="wiki-newline"/>
789 824
    </xsl:template>
790 825

  
791 826
    <!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
792 827

  
793 828
    <xsl:template name="subchapter">
794 829
        <xsl:param name="title"/>
795
        <xsl:value-of select="concat('{{EDIT_Subsection|',$title,'}}')"/>
796
        <xsl:call-template name="wiki-two-newlines-comment"/>
830
        <xsl:value-of select="concat('{{EDIT_Subsection|title=',$title,'}}')"/>
831
        <xsl:call-template name="wiki-newline"/>
832
        <xsl:call-template name="wiki-newline"/>
797 833
    </xsl:template>
798 834

  
799 835
    <!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
800 836
    <!-- puts in a wiki comment -->
801 837
    <xsl:template name="wiki-comment">
802
        <xsl:param name="wiki-comment"></xsl:param>
838
        <xsl:param name="wiki-comment"/>
803 839
        <xsl:comment>
804 840
            <xsl:value-of select="concat($wiki-comment,'&#xa;')"/>
805 841
        </xsl:comment>
806 842
    </xsl:template>
807
    
843

  
808 844
    <!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
809 845

  
810 846
    <!--this template layouts and displays the name of a 
......
848 884

  
849 885
    <!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
850 886

  
851
    <!--we replace html <i> and <b> with mediawiki templates-->
852

  
853

  
887
    <!--we replace "escaped" html <i> and <b> with mediawiki markup-->
854 888
    <!--.............................................-->
855 889

  
856 890
    <xsl:template name="replace-tags">

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)