-
Notifications
You must be signed in to change notification settings - Fork 3
/
drama2ParlaMint.xsl
2075 lines (1982 loc) · 121 KB
/
drama2ParlaMint.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns="http://www.tei-c.org/ns/1.0"
exclude-result-prefixes="xs tei"
version="2.0">
<!-- izhodiščni dokument je vsakokratni drama/*-list.xml (mogoče naredim skupni seznam datotek?) -->
<xsl:output method="xml" indent="yes"/>
<!-- vstavi ob procesiranju nove verzije -->
<xsl:param name="edition">4.0</xsl:param>
<!-- vstavim CLARIN.SI Handle, kjer bo korpus shranjen v repozitoriju -->
<xsl:param name="clarinHandle">http://hdl.handle.net/11356/1345</xsl:param>
<!-- vstavim datum od katerega naprej se smatra, da je COVID razprava -->
<xsl:param name="covid-date">2019-11-01</xsl:param>
<xsl:decimal-format name="euro" decimal-separator="," grouping-separator="."/>
<xsl:variable name="source-united-speaker-document">
<xsl:copy-of select="document('speaker.xml')" copy-namespaces="no"/>
</xsl:variable>
<xsl:variable name="terms">
<term n="1" start="1992-12-23" end="1996-11-28">1. mandat (1992-1996)</term>
<term n="2" start="1996-11-28" end="2000-10-27">2. mandat (1996-2000)</term>
<term n="3" start="2000-10-27" end="2004-10-22">3. mandat (2000-2004)</term>
<term n="4" start="2004-10-22" end="2008-10-15">4. mandat (2004-2008)</term>
<term n="5" start="2008-10-15" end="2011-12-15">5. mandat (2008-2011)</term>
<term n="6" start="2011-12-16" end="2014-08-01">6. mandat (2011-2014)</term>
<term n="7" start="2014-08-01" end="2018-06-22">7. mandat (2014-2018)</term>
<term n="8" start="2018-06-22" end="2022-05-13">8. mandat (2018-2022)</term>
</xsl:variable>
<xsl:param name="taxonomy-legislature">
<taxonomy xml:id="parla.legislature">
<desc xml:lang="sl"><term>Zakonodajna oblast</term></desc>
<desc xml:lang="en"><term>Legislature</term></desc>
<category xml:id="parla.geo-political">
<catDesc xml:lang="sl"><term>Geopolitične ali upravne enote</term></catDesc>
<catDesc xml:lang="en"><term>Geo-political or administrative units</term></catDesc>
<category xml:id="parla.supranational">
<catDesc xml:lang="sl"><term>Nadnacionalna zakonodajna oblast</term></catDesc>
<catDesc xml:lang="en"><term>Supranational legislature</term></catDesc>
</category>
<category xml:id="parla.national">
<catDesc xml:lang="sl"><term>Nacionalna zakonodajna oblast</term></catDesc>
<catDesc xml:lang="en"><term>National legislature</term></catDesc>
</category>
<category xml:id="parla.regional">
<catDesc xml:lang="sl"><term>Regionalna zakonodajna oblast</term></catDesc>
<catDesc xml:lang="en"><term>Regional legislature</term></catDesc>
</category>
<category xml:id="parla.local">
<catDesc xml:lang="sl"><term>Lokalna zakonodajna oblast</term></catDesc>
<catDesc xml:lang="en"><term>Local legislature</term></catDesc>
</category>
</category>
<category xml:id="parla.organization">
<catDesc xml:lang="sl"><term>Organiziranost</term></catDesc>
<catDesc xml:lang="en"><term>Organization</term></catDesc>
<category xml:id="parla.chambers">
<catDesc xml:lang="sl"><term>Zbori</term></catDesc>
<catDesc xml:lang="en"><term>Chambers</term></catDesc>
<category xml:id="parla.uni">
<catDesc xml:lang="sl"><term>Enodomen</term></catDesc>
<catDesc xml:lang="en"><term>Unicameralism</term></catDesc>
</category>
<category xml:id="parla.bi">
<catDesc xml:lang="sl"><term>Dvodomen</term></catDesc>
<catDesc xml:lang="en"><term>Bicameralism</term></catDesc>
<category xml:id="parla.upper">
<catDesc xml:lang="sl"><term>Zgornji dom</term></catDesc>
<catDesc xml:lang="en"><term>Upper house</term></catDesc>
</category>
<category xml:id="parla.lower">
<catDesc xml:lang="sl"><term>Spodnji dom</term></catDesc>
<catDesc xml:lang="en"><term>Lower house</term></catDesc>
</category>
</category>
<category xml:id="parla.multi">
<catDesc xml:lang="sl"><term>Večdomen</term></catDesc>
<catDesc xml:lang="en"><term>Multicameralism</term></catDesc>
<category xml:id="parla.chamber">
<catDesc xml:lang="sl"><term>Zbor</term></catDesc>
<catDesc xml:lang="en"><term>Chamber</term></catDesc>
</category>
</category>
</category>
<category xml:id="parla.committee">
<catDesc xml:lang="sl"><term>Delovno telo</term></catDesc>
<catDesc xml:lang="en"><term>Committee</term></catDesc>
<category xml:id="parla.committee.standing">
<catDesc xml:lang="sl"><term>Stalno delovno telo</term></catDesc>
<catDesc xml:lang="en"><term>Standing committee</term></catDesc>
</category>
<category xml:id="parla.committee.special">
<catDesc xml:lang="sl"><term>Začasno delovno telo</term></catDesc>
<catDesc xml:lang="en"><term>Special committee</term></catDesc>
</category>
<category xml:id="parla.committee.inquiry">
<catDesc xml:lang="sl"><term>Preiskovalna komisija</term></catDesc>
<catDesc xml:lang="en"><term>Committee of inquiry </term></catDesc>
</category>
</category>
</category>
<category xml:id="parla.term">
<catDesc xml:lang="sl"><term>Zakonodajno obdobje</term></catDesc>
<catDesc xml:lang="en"><term>Legislative period</term>: term of the parliament between
general elections.</catDesc>
<category xml:id="parla.session">
<catDesc xml:lang="sl"><term>Parlamentaro zasedanje</term></catDesc>
<catDesc xml:lang="en"><term>Legislative session</term>: the period of time in which
a legislature is convened for purpose of lawmaking, usually being
one of two or more smaller divisions of the entire time between two
elections. A session is a meeting or series of connected meetings
devoted to a single order of business, program, agenda, or announced
purpose.</catDesc>
<category xml:id="parla.meeting">
<catDesc xml:lang="sl"><term>Seja</term></catDesc>
<catDesc xml:lang="en"><term>Meeting</term>: Each meeting may be a
separate session or part of a group of meetings constituting a
session. The session/meeting may take one or more
days.</catDesc>
<category xml:id="parla.meeting-types">
<catDesc xml:lang="sl"><term>Vrste sej</term></catDesc>
<catDesc xml:lang="en"><term>Types of meetings</term></catDesc>
<category xml:id="parla.meeting.regular">
<catDesc xml:lang="sl"><term>Redna seja</term></catDesc>
<catDesc xml:lang="en"><term>Regular meeting</term></catDesc>
</category>
<category xml:id="parla.meeting.special">
<catDesc xml:lang="sl"><term>Posebna seja</term></catDesc>
<catDesc xml:lang="en"><term>Special meeting</term></catDesc>
<category xml:id="parla.meeting.extraordinary">
<catDesc xml:lang="sl"><term>Izredna seja</term></catDesc>
<catDesc xml:lang="en"><term>Extraordinary meeting</term></catDesc>
</category>
<category xml:id="parla.meeting.urgent">
<catDesc xml:lang="sl"><term>Nujna seja</term></catDesc>
<catDesc xml:lang="en"><term>Urgent meeting</term></catDesc>
</category>
<category xml:id="parla.meeting.ceremonial">
<catDesc xml:lang="sl"><term>Slavnostna seja</term></catDesc>
<catDesc xml:lang="en"><term>Ceremonial meeting</term></catDesc>
</category>
<category xml:id="parla.meeting.commemorative">
<catDesc xml:lang="sl"><term>Žalna seja</term></catDesc>
<catDesc xml:lang="en"><term>Commemorative meeting</term></catDesc>
</category>
<category xml:id="parla.meeting.opinions">
<catDesc xml:lang="sl"><term>Javna predstavitev mnenj</term></catDesc>
<catDesc xml:lang="en"><term>Public presentation of opinions</term></catDesc>
</category>
</category>
<category xml:id="parla.meeting.continued">
<catDesc xml:lang="sl"><term>Ponovni sestanek</term></catDesc>
<catDesc xml:lang="en"><term>Continued meeting</term></catDesc>
</category>
<category xml:id="parla.meeting.public">
<catDesc xml:lang="sl"><term>Javna seja</term></catDesc>
<catDesc xml:lang="en"><term>Public meeting</term></catDesc>
</category>
<category xml:id="parla.meeting.executive">
<catDesc xml:lang="sl"><term>Zaprta seja</term></catDesc>
<catDesc xml:lang="en"><term>Executive meeting</term></catDesc>
</category>
</category>
<category xml:id="parla.sitting">
<catDesc xml:lang="sl"><term>Dan seje</term></catDesc>
<catDesc xml:lang="en"><term>Sitting</term>: sitting day</catDesc>
</category>
</category>
</category>
</category>
</taxonomy>
</xsl:param>
<xsl:param name="taxonomy-speakers">
<taxonomy xml:id="speaker_types">
<desc xml:lang="sl"><term>Vrste govornikov</term></desc>
<desc xml:lang="en"><term>Types of speakers</term></desc>
<category xml:id="chair">
<catDesc xml:lang="sl"><term>Predsedujoči</term>: predsedujoči zasedanja</catDesc>
<catDesc xml:lang="en"><term>Chairperson</term>: chairman of a meeting</catDesc>
</category>
<category xml:id="regular">
<catDesc xml:lang="sl"><term>Navadni</term>: navadni govorec na zasedanju</catDesc>
<catDesc xml:lang="en"><term>Regular</term>: a regular speaker at a meeting</catDesc>
</category>
<category xml:id="guest">
<catDesc xml:lang="sl"><term>Gost</term>: gostujoči govornik na zasedanju</catDesc>
<catDesc xml:lang="en"><term>Guest</term>: a guest speaker at a meeting</catDesc>
</category>
</taxonomy>
</xsl:param>
<xsl:param name="taxonomy-subcorpus">
<taxonomy xml:id="subcorpus">
<desc xml:lang="sl"><term>Podkorpusi</term></desc>
<desc xml:lang="en"><term>Subcorpora</term></desc>
<category xml:id="reference">
<catDesc xml:lang="sl"><term>Referenca</term>: referenčni podkorpus, do 2019-10-31</catDesc>
<catDesc xml:lang="en"><term>Reference</term>: reference subcorpus, until 2019-10-31</catDesc>
</category>
<category xml:id="covid">
<catDesc xml:lang="sl"><term>COVID</term>: COVID podkorpus, od 2019-11-01 dalje</catDesc>
<catDesc xml:lang="en"><term>COVID</term>: COVID subcorpus, from 2019-11-01 onwards</catDesc>
</category>
</taxonomy>
</xsl:param>
<xsl:variable name="persons">
<person name="Andrej Pančur" ref="https://orcid.org/0000-0001-6143-6877 http://viaf.org/viaf/305936424"/>
<person name="Tomaž Erjavec" ref="https://orcid.org/0000-0002-1560-4099 http://viaf.org/viaf/15145066459666591823"/>
<person name="Mojca Šorn" ref="https://orcid.org/0000-0002-4457-1118 http://viaf.org/viaf/61069953"/>
<person name="Mihael Ojsteršek" ref="http://viaf.org/viaf/86154440112735340300"/>
<person name="Neja Blaj Hribar" ref="https://orcid.org/0000-0003-0606-6724"/>
</xsl:variable>
<xsl:variable name="dz-pages">
<page n="SDZ1">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDrzavnegaZbora/PoDatumuSeje/!ut/p/z1/lY5NDoIwFITPwgnea0tQlkWwNLQ04SfSbgwrQ6Lowqjx9DZx40aLs5vMfJkBBwO4ebxNh_E6nefx6L11yb6Spk0zwlE0MUVJqrRTWhGsEtiFCs7H-EUcA7x488v3TUq2KHsmYqY7RE2X8T8O_rcvCpL7gpalrDlFEYd46_nVx39RI8rSKGU2Pa4ZgxZsnoF9YEO6O1xOvdfwbHkUvQAaRujE/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OGN00IHOLLOCU0833=CZ6_KIOS9B1A0GR420I1K9TLML10K6=LA0=Ejavax.servlet.include.path_info!QCPSejeSejaPoDatumuView.jsp==/#Z7_KIOS9B1A0OGN00IHOLLOCU0833</page>
<page n="SDZ2">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDrzavnegaZbora/PoDatumuSeje/!ut/p/z1/lY7NCsIwEISfpU-wm6ZUc4xat6FJA_3BJhfpSQpaPYiKT2_Aixdtndsw8zEDHjrwY38bDv11OI_9MXjn032hbC1WTCJVSYyKFaLRRjMsUthNFXyI8YskTvD05ufvW8G2qFpOCTcNoonn8T8O_rdPGduEglG5KmWMlEzxLvCLj_9UIqrcam3XLS45hxocgXtgxZo7XE5tUPesZRS9AAjWi7c!/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OGN00IHOLLOCU0833=CZ6_KIOS9B1A0GR420I1K9TLML10K6=LA0=Ejavax.servlet.include.path_info!QCPSejeSejaPoDatumuView.jsp==/#Z7_KIOS9B1A0OGN00IHOLLOCU0833</page>
<page n="SDZ3">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDrzavnegaZbora/PoDatumuSeje/!ut/p/z1/lY5LCsIwGITP0hP8k6ZUu4yvNDRpoA802UhXUtDqQlQ8vQE3brR1dsPMxwx52pEfult_6K79eeiOwTuf7gtl62zBBGSVxFCsyBptNEOR0nas4EOMLxIY4eWbn75vM7aBarlMuGkAE0_jfxz8b1-u2SoUjMpVKWLIZIx3gZ99_JcloHKrtV22mHNONbmc3AMVa-50ObVBu2ctougFSM4Raw!!/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OGN00IHOLLOCU0833=CZ6_KIOS9B1A0GR420I1K9TLML10K6=LA0=Ejavax.servlet.include.path_info!QCPSejeSejaPoDatumuView.jsp==/#Z7_KIOS9B1A0OGN00IHOLLOCU0833</page>
<page n="SDZ4">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDrzavnegaZbora/PoDatumuSeje/!ut/p/z1/lY7NCsIwEISfpU-wm6ZUc4xa06VJA_3BJhfpSQpaPYiKT2_Aixdtndsw8zEDHjrwY38bDv11OI_9MXjn031BthYrJlFVSYzECtFooxkWKeymCj7E-EUSJ3j15ufvW8G2SC1XCTcNoonn8T8O_revMrYJBUM5lTJGlUzxLvCLj_-qRKTcam3XLS45hxocgXtgxZo7XE5tUPesZRS9AIiqOXw!/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OGN00IHOLLOCU0833=CZ6_KIOS9B1A0GR420I1K9TLML10K6=LA0=Ejavax.servlet.include.path_info!QCPSejeSejaPoDatumuView.jsp==/#Z7_KIOS9B1A0OGN00IHOLLOCU0833</page>
<page n="SDZ5">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDrzavnegaZbora/PoDatumuSeje/!ut/p/z1/lY5NDoIwFITPwgnea0vQLutfqbQ0oRBpN4aVIVF0YdR4epu4caPg7CYzX2YgQAth6G79obv256E7Ru9Dti-UdXxBBMoqpahIwWttNMEig91YIcQYv0jgCC_f_PR9y8kGVcNkykyNaOg0_sfB__blmqxiwahclYKiTMd4H_nZx39ZIqrcam2XDc4ZAwd-C_6BFanvcDk1Ue3TiSR5AcgHQUU!/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OGN00IHOLLOCU0833=CZ6_KIOS9B1A0GR420I1K9TLML10K6=LA0=Ejavax.servlet.include.path_info!QCPSejeSejaPoDatumuView.jsp==/#Z7_KIOS9B1A0OGN00IHOLLOCU0833</page>
<page n="SDZ6">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDrzavnegaZbora/PoDatumuSeje/!ut/p/z1/lY6xDoIwGISfhSf4_1KCMlbF0rSlCZRIuxgmQ6LoYNT49DZxcdHibZe7L3fgoQc_DbfxMFzH8zQcg3c-30th2mJFGPImS1EQWVilFUGZwy5W8CHGL2IY4fmbn79vCrJF0VGeUW0RdTqP_3Hwv31ekk0oaFGJmqXIsxjvAr_4-M9rRFEZpcy6wyWl0IKT4B7YEHuHy6kL6p8tS5IXCGNpUg!!/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OGN00IHOLLOCU0833=CZ6_KIOS9B1A0GR420I1K9TLML10K6=LA0=Ejavax.servlet.include.path_info!QCPSejeSejaPoDatumuView.jsp==/#Z7_KIOS9B1A0OGN00IHOLLOCU0833</page>
<page n="SDZ7">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDrzavnegaZbora/PoDatumuSeje/!ut/p/z1/lY5LCsIwGITP0hP8k6ZUu4yvNDRpoA802UhXUtDqQlQ8vQE3brR1dsPMxwx52pEfult_6K79eeiOwTuf7gtl62zBBGSVxFCsyBptNEOR0nas4EOMLxIY4eWbn75vM7aBarlMuGkAE0_jfxz8b1-u2SoUjMpVKWLIZIx3gZ99_JcloHKrtV22mHNONTlN7oGKNXe6nNqg3bMWUfQCSF2wNw!!/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OGN00IHOLLOCU0833=CZ6_KIOS9B1A0GR420I1K9TLML10K6=LA0=Ejavax.servlet.include.path_info!QCPSejeSejaPoDatumuView.jsp==/#Z7_KIOS9B1A0OGN00IHOLLOCU0833</page>
<page n="SDZ8">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDrzavnegaZbora/PoDatumuSeje/!ut/p/z1/04_Sj9CPykssy0xPLMnMz0vMAfIjo8zivT39gy2dDB0N3INMjAw8Db0tQ3x8fQwNvM30wwkpiAJKG-AAjgYE9LtD9BNvv7-loZuBZ6ixu4mxb4iBga8RcfrxOJCA_oLcUCBwVAQAGc0QlQ!!/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OGN00IHOLLOCU0833=CZ6_KIOS9B1A0GR420I1K9TLML10K6=LA0=Ejavax.servlet.include.path_info!QCPSejeSejaPoDatumuView.jsp==/#Z7_KIOS9B1A0OGN00IHOLLOCU0833</page>
<page n="SDT2">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDt/poDatumu/!ut/p/z1/pY7BCoJAFEW_xS947-mguByrGQedBEfNmU24CqGsRVT09c0yiiLp7i6cc7ngoAc3DZdxN5zH4zTsfbcu3haqMmlGHOWKlqhIq1yteYiSweYFqFnogSJtSl0SFjG4f3w5169SEqjaSLJIN4g6_M3HD-E49_8b4L7PW-8nT_-7PEGVG2KmE4QLBgasyMDesKbmCqdD69PfDQ-CBx96qus!/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OVH70IHS14SVF10C4=CZ6_KIOS9B1A0GE1D0I1MIHINA20G4=LA0=Ejavax.servlet.include.path_info!QCPSejeSejeDTPoDatumuView.jsp==/#Z7_KIOS9B1A0OVH70IHS14SVF10C4</page>
<page n="SDT3">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDt/poDatumu/!ut/p/z1/pY7NCoJAFIWfxSe49-qguJx-HAcdBUfNmU3MKoSyFlHR0zfLKIqkszvwfYcDFgawk7uMO3cej5Pb-25svC1krdMFcRRrWqEkJXNZ8RAFg80L0LDQA0XalqokLGKw__hirl-nlKHsIsEi1SKq8DcfP4Tj3P9vgP0-b7yfPP3v8wRlronpPiNcMtBgKjA3bKi9wunQ-Qx3zYPgAXTf8Bo!/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OVH70IHS14SVF10C4=CZ6_KIOS9B1A0GE1D0I1MIHINA20G4=LA0=Ejavax.servlet.include.path_info!QCPSejeSejeDTPoDatumuView.jsp==/#Z7_KIOS9B1A0OVH70IHS14SVF10C4</page>
<page n="SDT4">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDt/poDatumu/!ut/p/z1/pY7NCoJAFIWfxSe49-qguJx-HAedBEfNmY3MKoSyFlHR0zfLKIqkszvwfYcDFnqwk7uMO3cej5Pb-25sPBSy0umCOIo1rVCSkrnc8BAFg-0LULPQA0XalKokLGKw__hirl-llKFsI8Ei1SCq8DcfP4Tj3P9vgP0-b7yfPP3v8gRlronpLiNcMtBgKjA3rKm5wunQ-vR3zYPgAbS72A0!/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OVH70IHS14SVF10C4=CZ6_KIOS9B1A0GE1D0I1MIHINA20G4=LA0=Ejavax.servlet.include.path_info!QCPSejeSejeDTPoDatumuView.jsp==/#Z7_KIOS9B1A0OVH70IHS14SVF10C4</page>
<page n="SDT5">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDt/poDatumu/!ut/p/z1/pY7LDoIwFES_hS-490IDYVkflKZUDAWk3RhWhkTRhVHj19ul0Wgkzm6ScyYDDjpwY38Zdv15OI793nfr4q2SpUlnxFEsaYGStMzliocoGGxegIqFHlBpXeiCUMXg_vHFVL9MKUPZRIJFukbU4W8-fgjHqf_fAPd93no_efrf5gnK3BAzbUY4Z2DArsHesKL6CqdD49PdDQ-CB7XptXg!/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OVH70IHS14SVF10C4=CZ6_KIOS9B1A0GE1D0I1MIHINA20G4=LA0=Ejavax.servlet.include.path_info!QCPSejeSejeDTPoDatumuView.jsp==/#Z7_KIOS9B1A0OVH70IHS14SVF10C4</page>
<page n="SDT6">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDt/poDatumu/!ut/p/z1/pY7BCoJAFEW_xS947-mguBwrx0EnwVFzZhOzCqGsRVT09c0yiiLp7i6cc7lgYQA7ucu4c-fxOLm978bG21LWOs2Io1jREiUpWcg1D1Ew2LwADQs9UKZtpSrCMgb7jy_m-nVKOcouEixSLaIKf_PxQzjO_f8G2O_zxvvJ0_--SFAWmpjuc8IFAw2GZ2Bu2FB7hdOh8xnumgfBA7HiE50!/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OVH70IHS14SVF10C4=CZ6_KIOS9B1A0GE1D0I1MIHINA20G4=LA0=Ejavax.servlet.include.path_info!QCPSejeSejeDTPoDatumuView.jsp==/#Z7_KIOS9B1A0OVH70IHS14SVF10C4</page>
<page n="SDT7">https://www.dz-rs.si/wps/portal/Home/deloDZ/seje/sejeDt/poDatumu/!ut/p/z1/pY7BCoJAFEW_xS947-mguBwrx0EnwVFzZhOzCqGsRVT09c0yiiLp7i6cc7lgYQA7ucu4c-fxOLm978bG21LWOs2Io1jREiUpWcg1D1Ew2LwADQs9UKZtpSrCMgb7jy_m-nVKOcouEixSLaIKf_PxQzjO_f8G2O_zxvvJ0_--SFAWmpjuc8IFAw0my8DcsKH2CqdD5zPcNQ-CB4zb9us!/dz/d5/L2dBISEvZ0FBIS9nQSEh/p0/IZ7_KIOS9B1A0OVH70IHS14SVF10C4=CZ6_KIOS9B1A0GE1D0I1MIHINA20G4=LA0=Ejavax.servlet.include.path_info!QCPSejeSejeDTPoDatumuView.jsp==/#Z7_KIOS9B1A0OVH70IHS14SVF10C4</page>
</xsl:variable>
<!-- START OF PROCESSING: -->
<xsl:template match="documentsList">
<!-- e.g.
<ref>SDT2/KPZONOJFSPD-Redna-017-1998-07-01.xml</ref>
-->
<!-- e.g. SDT2 -->
<xsl:variable name="corpus-label" select="tokenize(ref[1],'/')[1]"/>
<!-- e.g. 2 -->
<xsl:variable name="corpus-term" select="substring($corpus-label,4,4)"/>
<!-- e.g. ../ParlaMint2/SDT2.xml -->
<xsl:variable name="corpus-document" select="concat('../ParlaMint2/',$corpus-label,'.xml')"/>
<!-- e.g. drama/SDT2.xml -->
<xsl:variable name="source-corpus-document" select="concat('drama/',$corpus-label,'.xml')"/>
<!-- e.g. drama/SDT2-speaker.xml -->
<xsl:variable name="source-speaker-document" select="concat('drama/',$corpus-label,'-speaker.xml')"/>
<xsl:result-document href="{$corpus-document}">
<teiCorpus xml:id="siParl.{$corpus-label}" xml:lang="sl">
<teiHeader>
<fileDesc>
<titleStmt>
<xsl:choose>
<xsl:when test="matches($corpus-label,'^SDZ')">
<title type="main" xml:lang="sl">Dobesedni zapis sej Državnega zbora Republike Slovenije</title>
<title type="main" xml:lang="en">Verbatim record of sessions of the National Assembly of the Republic of Slovenia</title>
</xsl:when>
<xsl:when test="matches($corpus-label,'^SDT')">
<title type="main" xml:lang="sl">Dobesedni zapis sej delovnih teles Državnega zbora Republike Slovenije</title>
<title type="main" xml:lang="en">Verbatim record of sessions of the working bodies of the National Assembly of the Republic of Slovenia</title>
</xsl:when>
<xsl:otherwise>
<xsl:message>Neznana oznaka <xsl:value-of select="$corpus-label"/></xsl:message>
</xsl:otherwise>
</xsl:choose>
<title type="sub" xml:lang="sl">
<xsl:value-of select="$terms/tei:term[@n=$corpus-term]"/>
</title>
<meeting n="{number($corpus-term)}" corresp="#DZ" ana="#parla.lower #parla.term #DZ.{$corpus-term}">
<xsl:value-of select="$corpus-term"/>
<xsl:text>. mandat</xsl:text>
</meeting>
<xsl:for-each-group select="document($source-corpus-document)/tei:teiCorpus/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:respStmt" group-by="tei:persName">
<respStmt>
<persName>
<xsl:if test="$persons/tei:person[@name = current-grouping-key()]">
<xsl:attribute name="ref">
<xsl:value-of select="$persons/tei:person[@name = current-grouping-key()]/@ref"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="current-grouping-key()"/>
</persName>
<resp xml:lang="sl">Kodiranje TEI</resp>
<resp xml:lang="en">TEI corpus encoding</resp>
</respStmt>
</xsl:for-each-group>
<xsl:for-each-group select="document($source-speaker-document)/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:respStmt" group-by="tei:persName">
<respStmt>
<persName>
<xsl:if test="$persons/tei:person[@name = current-grouping-key()]">
<xsl:attribute name="ref">
<xsl:value-of select="$persons/tei:person[@name = current-grouping-key()]/@ref"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="current-grouping-key()"/>
</persName>
<resp xml:lang="sl">Urejanje seznama govornikov</resp>
<resp xml:lang="en">Editing a list of speakers</resp>
</respStmt>
</xsl:for-each-group>
<funder>
<orgName xml:lang="sl">Raziskovalna infrastruktura CLARIN</orgName>
<orgName xml:lang="en">The CLARIN research infrastructure</orgName>
</funder>
</titleStmt>
<editionStmt>
<edition>
<xsl:value-of select="$edition"/>
</edition>
</editionStmt>
<extent>
<!--<xsl:variable name="count-files" select="count(ref)"/>
<measure unit="texts" quantity="{$count-files}" xml:lang="sl">
<xsl:value-of select="format-number($count-files,'###.###','euro')"/>
<xsl:text> besedil</xsl:text>
</measure>
<measure unit="texts" quantity="{$count-files}" xml:lang="en">
<xsl:value-of select="format-number($count-files,'###,###')"/>
<xsl:text> texts</xsl:text>
</measure>-->
<!-- Štetje besed -->
<xsl:variable name="counting">
<xsl:for-each select="ref">
<string>
<xsl:apply-templates select="document(.)/tei:TEI/tei:text/tei:body"/>
</string>
</xsl:for-each>
</xsl:variable>
<xsl:variable name="compoundString" select="normalize-space(string-join($counting/tei:string,' '))"/>
<xsl:variable name="count-words" select="count(tokenize($compoundString,'\W+')[. != ''])"/>
<measure unit="words" quantity="{$count-words}" xml:lang="sl">
<xsl:value-of select="format-number($count-words,'###.###','euro')"/>
<xsl:text> besed</xsl:text>
</measure>
<measure unit="words" quantity="{$count-words}" xml:lang="en">
<xsl:value-of select="format-number($count-words,'###,###')"/>
<xsl:text> words</xsl:text>
</measure>
</extent>
<publicationStmt>
<publisher>
<orgName xml:lang="sl">Raziskovalna infrastruktura CLARIN</orgName>
<orgName xml:lang="en">CLARIN research infrastructure</orgName>
<ref target="https://www.clarin.eu/">www.clarin.eu</ref>
</publisher>
<idno type="handle">http://hdl.handle.net/XXXX</idno>
<xsl:if test="string-length($clarinHandle) gt 0">
<pubPlace>
<xsl:value-of select="$clarinHandle"/>
</pubPlace>
</xsl:if>
<availability status="free">
<licence>http://creativecommons.org/licenses/by/4.0/</licence>
<p xml:lang="en">This work is licensed under the <ref target="http://creativecommons.org/licenses/by/4.0/">Creative Commons
Attribution 4.0 International License</ref>.</p>
<p xml:lang="sl">To delo je ponujeno pod <ref target="http://creativecommons.org/licenses/by/4.0/">Creative Commons
Priznanje avtorstva 4.0 mednarodna licenca</ref>.</p>
</availability>
<date when="{tokenize(string(current-date()),'\+')[1]}"><xsl:value-of select="format-date(current-date(),'[D1].[M1].[Y0001]')"/></date>
</publicationStmt>
<sourceDesc>
<bibl>
<title type="main">Website of the National Assembly of the Republic of Slovenia</title>
<title type="sub">Hansard</title>
<idno type="URI">
<xsl:value-of select="$dz-pages/tei:page[@n=$corpus-label]"/>
</idno>
<date>
<xsl:attribute name="from">
<xsl:value-of select="$terms/tei:term[@n=$corpus-term]/@start"/>
</xsl:attribute>
<xsl:attribute name="to">
<xsl:value-of select="$terms/tei:term[@n=$corpus-term]/@end"/>
</xsl:attribute>
</date>
</bibl>
</sourceDesc>
</fileDesc>
<encodingDesc>
<editorialDecl>
<correction>
<p xml:lang="en">No correction of source texts was performed.</p>
</correction>
<normalization>
<p xml:lang="en">Text has not been normalised, except for spacing.</p>
</normalization>
<hyphenation>
<p xml:lang="en">No end-of-line hyphens were present in the source.</p>
</hyphenation>
<quotation>
<p xml:lang="en">Quotation marks have been left in the text and are not explicitly marked up.</p>
</quotation>
<segmentation>
<p xml:lang="en">The texts are segmented into utterances (speeches) and segments (corresponding to paragraphs in the source transcription).</p>
</segmentation>
</editorialDecl>
<classDecl>
<xsl:copy-of select="$taxonomy-legislature"/>
<xsl:copy-of select="$taxonomy-speakers"/>
<xsl:copy-of select="$taxonomy-subcorpus"/>
</classDecl>
</encodingDesc>
<profileDesc>
<settingDesc>
<setting>
<name type="city">Ljubljana</name>
<name type="country" key="SI">Slovenija</name>
<date ana="#parla.term">
<xsl:attribute name="from">
<xsl:value-of select="$terms/tei:term[@n=$corpus-term]/@start"/>
</xsl:attribute>
<xsl:attribute name="to">
<xsl:value-of select="$terms/tei:term[@n=$corpus-term]/@end"/>
</xsl:attribute>
</date>
</setting>
</settingDesc>
<textClass>
<catRef scheme="#parla.legislature" target="#parla.bi #parla.lower"/>
</textClass>
<particDesc>
<listOrg>
<org xml:id="DZ" role="parliament" ana="#parla.national #parla.lower">
<orgName xml:lang="sl" full="yes">Državni zbor Republike Slovenije</orgName>
<orgName xml:lang="en" full="yes">National Assembly of the Republic of Slovenia</orgName>
<event from="1992-12-23">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia">https://sl.wikipedia.org/wiki/Dr%C5%BEavni_zbor_Republike_Slovenije</idno>
<listEvent>
<head>Legislative period</head>
<!-- odstranil odvečne mandate -->
<event xml:id="DZ.7" from="2014-08-01" to="2018-06-21">
<label xml:lang="sl">7. mandat</label>
<label xml:lang="en">Term 7</label>
</event>
<event xml:id="DZ.8" from="2018-06-22" to="2022-05-12">
<label xml:lang="sl">8. mandat</label>
<label xml:lang="en">Term 8</label>
</event>
</listEvent>
<xsl:if test="matches($corpus-label,'^SDT')">
<listOrg xml:id="workingBodies">
<head xml:lang="sl">Delovna telesa Državnega zbora Republike Slovenije</head>
<head xml:lang="en">Working bodies of the National Assembly of the Republic of Slovenia</head>
<xsl:for-each-group select="document($source-corpus-document)/tei:teiCorpus/tei:TEI/tei:teiHeader/tei:profileDesc/tei:particDesc/tei:listOrg/tei:org/tei:listOrg/tei:org" group-by="tei:orgName/@key">
<xsl:sort select="normalize-space(current-group()[1]/tei:orgName)"/>
<org xml:id="{current-grouping-key()}" ana="#parla.committee">
<orgName>
<xsl:value-of select="normalize-space(current-group()[1]/tei:orgName)"/>
</orgName>
</org>
</xsl:for-each-group>
</listOrg>
</xsl:if>
</org>
<org xml:id="GOV" role="government">
<orgName xml:lang="sl" full="yes">Vlada Republike Slovenije</orgName>
<orgName xml:lang="en" full="yes">Government of the Republic of Slovenia</orgName>
<event from="1990-05-16">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Vlada_Republike_Slovenije</idno>
<listEvent>
<event xml:id="GOV.11" from="2013-03-20" to="2014-09-18">
<label>11. vlada Republike Slovenije (20. marec 2013 - 18. september
2014)</label>
</event>
<event xml:id="GOV.12" from="2014-09-18" to="2018-09-13">
<label>12. vlada Republike Slovenije (18. september 2014 - 13. september
2018)</label>
</event>
<event xml:id="GOV.13" from="2018-09-13" to="2018-03-13">
<label>13. vlada Republike Slovenije (13. september 2018 - 13. marec 2020)</label>
</event>
<event xml:id="GOV.14" from="2018-03-13" to="2022-06-01">
<label>14. vlada Republike Slovenije (13. marec 2020 - 1. junij 2022)</label>
</event>
</listEvent>
</org>
<org xml:id="party.PS" role="politicalParty">
<orgName full="yes" xml:lang="sl">Pozitivna Slovenija</orgName>
<orgName full="yes" xml:lang="en">Positive Slovenia</orgName>
<orgName full="init">PS</orgName>
<event from="2011-10-22">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Pozitivna_Slovenija</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/Positive_Slovenia</idno>
</org>
<org xml:id="party.DL" role="politicalParty">
<orgName full="yes" xml:lang="sl">Državljanska lista</orgName>
<orgName full="yes" xml:lang="en">Civic List</orgName>
<orgName full="init">DL</orgName>
<event from="2012-04-24">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Dr%C5%BEavljanska_lista</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/Civic_List_(Slovenia)</idno>
</org>
<org xml:id="party.DeSUS" role="politicalParty">
<orgName full="yes" xml:lang="sl">Demokratična stranka upokojencev
Slovenije</orgName>
<orgName full="yes" xml:lang="en">Democratic Party of Pensioners of
Slovenia</orgName>
<orgName full="init">DeSUS</orgName>
<event from="1991-05-30">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Demokrati%C4%8Dna_stranka_upokojencev_Slovenije</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/Democratic_Party_of_Pensioners_of_Slovenia</idno>
</org>
<org xml:id="party.Levica.1" role="politicalParty">
<orgName full="yes" xml:lang="sl">Združena levica</orgName>
<orgName full="yes" xml:lang="en">United Left</orgName>
<orgName full="init">Levica</orgName>
<event from="2014-03-01" to="2017-06-24">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Levica_(politi%C4%8Dna_stranka)</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/United_Left_(Slovenia)</idno>
</org>
<org xml:id="party.Levica.2" role="politicalParty">
<orgName full="yes" xml:lang="sl">Levica</orgName>
<orgName full="yes" xml:lang="en">The Left</orgName>
<orgName full="init">Levica</orgName>
<event from="2017-06-24">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Levica_(politi%C4%8Dna_stranka)</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/The_Left_(Slovenia)</idno>
</org>
<org xml:id="party.LMŠ" role="politicalParty">
<orgName full="yes" xml:lang="sl">Lista Marjana Šarca</orgName>
<orgName full="yes" xml:lang="en">The List of Marjan Šarec</orgName>
<orgName full="init">LMŠ</orgName>
<event from="2014-05-31">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Lista_Marjana_%C5%A0arca</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/List_of_Marjan_%C5%A0arec</idno>
</org>
<org xml:id="party.NeP" role="independet">
<orgName full="yes" xml:lang="sl">Nepovezani poslanci</orgName>
<orgName full="yes" xml:lang="en">Unrelated members of parliament</orgName>
<orgName full="init">NeP</orgName>
</org>
<org xml:id="party.NP" role="independet">
<orgName full="yes" xml:lang="sl">Poslanska skupina nepovezanih
poslancev</orgName>
<orgName full="yes" xml:lang="en">Parliamentary group of unrelated members of
parliament</orgName>
<orgName full="init">NP</orgName>
</org>
<org xml:id="party.IMNS" role="ethnic_communities">
<orgName full="yes" xml:lang="sl">Poslanci italijanske in madžarske narodne
skupnosti</orgName>
<orgName full="yes" xml:lang="en">Members of the Italian and Hungarian national
communities</orgName>
<orgName full="init">IMNS</orgName>
</org>
<org xml:id="party.NSi" role="politicalParty">
<orgName full="yes" xml:lang="sl">Nova Slovenija – Krščanski demokrati</orgName>
<orgName full="yes" xml:lang="en">New Slovenia – Christian Democrats</orgName>
<orgName full="init">NSi</orgName>
<event from="2000-08-04">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Nova_Slovenija</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/New_Slovenia</idno>
</org>
<org xml:id="party.SD" role="politicalParty">
<orgName full="yes" xml:lang="sl">Socialni demokrati</orgName>
<orgName full="yes" xml:lang="en">Social Democrats</orgName>
<orgName full="init">SD</orgName>
<event from="2005-04-02">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Socialni_demokrati</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/Social_Democrats_(Slovenia)</idno>
</org>
<org xml:id="party.SDS.2" role="politicalParty">
<orgName full="yes" xml:lang="sl">Slovenska demokratska stranka</orgName>
<orgName full="yes" xml:lang="en">Slovenian Democratic Party</orgName>
<orgName full="init">SDS</orgName>
<event from="2003-09-19">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Slovenska_demokratska_stranka</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/Slovenian_Democratic_Party</idno>
</org>
<org xml:id="party.SMC.1" role="politicalParty">
<orgName full="yes" xml:lang="sl">Stranka Mira Cerarja</orgName>
<orgName full="yes" xml:lang="en">Party of Miro Cerar</orgName>
<orgName full="init">SMC</orgName>
<event from="2014-06-02" to="2015-03-07">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Stranka_modernega_centra</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/Modern_Centre_Party</idno>
</org>
<org xml:id="party.SMC.2" role="political_party">
<orgName full="yes" xml:lang="sl">Stranka modernega centra</orgName>
<orgName full="yes" xml:lang="en">Modern Centre Party</orgName>
<orgName full="init">SMC</orgName>
<event from="2015-03-07" to="2021-12-04">
<label xml:lang="en">existence</label>
</event>
<idno type="wikimedia" xml:lang="sl"
>https://sl.wikipedia.org/wiki/Stranka_modernega_centra</idno>
<idno type="wikimedia" xml:lang="en"
>https://en.wikipedia.org/wiki/Modern_Centre_Party</idno>
</org>
<org xml:id="party.Konkretno" role="political_party">
<orgName full="yes" xml:lang="sl">Konkretno</orgName>
<orgName full="yes" xml:lang="en">Concretely</orgName>
<orgName full="init">Konkretno</orgName>
<event from="2021-12-04">
<label xml:lang="en">existence</label>
</event>
<idno type="wikimedia" xml:lang="sl"
>https://sl.wikipedia.org/wiki/Konkretno</idno>
<idno type="wikimedia" xml:lang="en"
>https://en.wikipedia.org/wiki/Concretely</idno>
</org>
<org xml:id="party.GAS" role="political_party">
<orgName full="yes" xml:lang="sl">Gospodarsko aktivna stranka</orgName>
<orgName full="init">GAS</orgName>
<event from="2017-06-24" to="2021-12-04">
<label xml:lang="en">existence</label>
</event>
<idno type="wikimedia" xml:lang="sl"
>https://sl.wikipedia.org/wiki/Gospodarsko_aktivna_stranka</idno>
</org>
<org xml:id="party.SNS" role="politicalParty">
<orgName full="yes" xml:lang="sl">Slovenska nacionalna stranka</orgName>
<orgName full="yes" xml:lang="en">Slovenian National Party</orgName>
<orgName full="init">SNS</orgName>
<event from="1991-03-17">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Slovenska_nacionalna_stranka</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/Slovenian_National_Party</idno>
</org>
<org xml:id="party.ZaAB" role="politicalParty">
<orgName full="yes" xml:lang="sl">Zavezništvo Alenke Bratušek</orgName>
<orgName full="yes" xml:lang="en">Alliance of Alenka Bratušek</orgName>
<orgName full="init">ZaAB</orgName>
<event from="2014-05-31" to="2016-05-21">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Stranka_Alenke_Bratu%C5%A1ek</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/Party_of_Alenka_Bratu%C5%A1ek</idno>
</org>
<org xml:id="party.ZaSLD" role="politicalParty">
<orgName full="yes" xml:lang="sl">Zavezništvo socialno-liberalnih
demokratov</orgName>
<orgName full="yes" xml:lang="en">Alliance of Social Liberal Democrats</orgName>
<event from="2016-05-21" to="2017-10-07">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Stranka_Alenke_Bratu%C5%A1ek</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/Party_of_Alenka_Bratu%C5%A1ek</idno>
</org>
<org xml:id="party.SAB" role="politicalParty">
<orgName full="yes" xml:lang="sl">Stranka Alenke Bratušek</orgName>
<orgName full="yes" xml:lang="en">Party of Alenka Bratušek</orgName>
<orgName full="init">SAB</orgName>
<event from="2017-10-07">
<label xml:lang="en">existence</label>
</event>
<idno type="URI" xml:lang="sl" subtype="wikimedia"
>https://sl.wikipedia.org/wiki/Stranka_Alenke_Bratu%C5%A1ek</idno>
<idno type="URI" xml:lang="en" subtype="wikimedia"
>https://en.wikipedia.org/wiki/Party_of_Alenka_Bratu%C5%A1ek</idno>
</org>
<listRelation>
<relation name="renaming" active="#party.SMC.2" passive="#party.SMC.1"
when="2015-03-07"/>
<relation name="successor" active="#party.Levica.2" passive="#party.Levica.1"
when="2017-06-24"/>
<relation name="renaming" active="#party.ZaSLD" passive="#party.ZaAB"
when="2016-05-21"/>
<relation name="renaming" active="#party.SAB" passive="#party.ZaSLD"
when="2017-10-07"/>
<relation name="merger" mutual="#party.SMC.2 #party.GAS" when="2021-12-04"/>
<relation name="coalition" mutual="#party.PS #party.SD #party.DL #party.DeSUS"
from="2013-03-20" to="2014-09-18" ana="#GOV.11"/>
<relation name="coalition"
mutual="#party.SMC.1 #party.SMC.2 #party.SD #party.DeSUS" from="2014-09-18"
to="2018-09-12" ana="#GOV.12"/>
<relation name="coalition" mutual="#party.LMŠ #party.SMC.2 #party.SD #party.SAB #party.DeSUS"
from="2018-09-13" to="2020-03-12" ana="#GOV.13"/>
<relation name="coalition" mutual="#party.SDS.2 #party.SMC.2 #party.Konkretno #party.NSi #party.DeSUS"
from="2020-03-13" to="2022-06-01" ana="#GOV.14"/>
</listRelation>
</listOrg>
<listPerson>
<head xml:lang="sl">Seznam govornikov</head>
<head xml:lang="en">List of speakers</head>
<xsl:for-each select="$source-united-speaker-document/tei:TEI/tei:text/tei:body/tei:div/tei:listPerson/tei:person[matches(@corresp,$corpus-label)]">
<person xml:id="{@xml:id}">
<xsl:for-each select="tei:persName">
<xsl:copy-of select="." copy-namespaces="no"/>
</xsl:for-each>
<xsl:for-each select="tei:sex">
<xsl:choose>
<xsl:when test="@value='M'">
<sex value="M">moški</sex>
</xsl:when>
<xsl:when test="@value='F'">
<sex value="F">ženski</sex>
</xsl:when>
<xsl:otherwise>
<xsl:message>Unknown sex @value: <xsl:value-of select="@value"/></xsl:message>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:for-each select="tei:birth">
<xsl:copy-of select="." copy-namespaces="no"/>
</xsl:for-each>
<!-- pazi, da daš pravilno vrednost za @ana -->
<xsl:for-each select="tei:affiliation[@ana=('#DZ.7','#DZ.8','#GOV.12','#GOV.13','#GOV.14')]">
<xsl:copy-of select="." copy-namespaces="no"/>
</xsl:for-each>
<xsl:for-each select="tei:idno">
<xsl:copy-of select="." copy-namespaces="no"/>
</xsl:for-each>
</person>
</xsl:for-each>
<!--<xsl:for-each select="document($source-speaker-document)/tei:TEI/tei:text/tei:body/tei:listPerson/tei:person">
<person xml:id="{$corpus-label}.{@xml:id}">
<xsl:for-each select="*">
<xsl:copy-of select="." copy-namespaces="no"/>
</xsl:for-each>
</person>
</xsl:for-each>-->
</listPerson>
</particDesc>
<langUsage>
<language ident="sl">Slovenian</language>
<language ident="en">English</language>
</langUsage>
</profileDesc>
</teiHeader>
<xsl:for-each select="ref">
<!-- zaradi preimenovanja datotek in s tem tudi identifikatorjev dodam: -->
<xsl:variable name="file-date">
<xsl:analyze-string select="." regex="\d{{4}}-\d{{2}}-\d{{2}}">
<xsl:matching-substring>
<xsl:value-of select="."/>
</xsl:matching-substring>
</xsl:analyze-string>
</xsl:variable>
<xsl:variable name="file-session" select="tokenize(.,'-')[2]"/>
<xsl:variable name="file-session-type" select="tokenize(tokenize(.,'-')[1],'/')[2]"/>
<xsl:variable name="file-new_name" select="concat('ParlaMint-SI_',$file-date,'_',$corpus-label,'-',$file-session-type,'-',$file-session,'.xml')"/>
<xsl:variable name="document" select="concat($corpus-label,'/',$file-new_name)"/>
<xsl:element name="include" namespace="xi:http://www.w3.org/2001/XInclude">
<xsl:attribute name="href">
<xsl:value-of select="$document"/>
</xsl:attribute>
</xsl:element>
<!-- TEI dokumenti -->
<xsl:variable name="document-path" select="concat('../ParlaMint2/',$document)"/>
<xsl:result-document href="{$document-path}">
<xsl:apply-templates select="document(.)" mode="pass0">
<xsl:with-param name="file-new_id" select="substring-before($file-new_name,'.xml')"/>
</xsl:apply-templates>
</xsl:result-document>
</xsl:for-each>
</teiCorpus>
</xsl:result-document>
</xsl:template>
<xsl:template match="/" mode="pass0">
<xsl:param name="file-new_id"/>
<xsl:variable name="var1">
<xsl:apply-templates mode="pass1">
<xsl:with-param name="file-new_id" select="$file-new_id"/>
</xsl:apply-templates>
</xsl:variable>
<xsl:variable name="var2">
<xsl:apply-templates select="$var1" mode="pass2"/>
</xsl:variable>
<xsl:variable name="var3">
<xsl:apply-templates select="$var2" mode="pass3"/>
</xsl:variable>
<xsl:variable name="var4">
<xsl:apply-templates select="$var3" mode="pass4"/>
</xsl:variable>
<xsl:variable name="var5">
<xsl:apply-templates select="$var4" mode="pass5"/>
</xsl:variable>
<xsl:variable name="var6">
<xsl:apply-templates select="$var5" mode="pass6"/>
</xsl:variable>
<xsl:variable name="var7">
<xsl:apply-templates select="$var6" mode="pass7"/>
</xsl:variable>
<xsl:variable name="var8">
<xsl:apply-templates select="$var7" mode="pass8"/>
</xsl:variable>
<xsl:variable name="var9">
<xsl:apply-templates select="$var8" mode="pass9"/>
</xsl:variable>
<xsl:variable name="var10">
<xsl:apply-templates select="$var9" mode="pass10"/>
</xsl:variable>
<xsl:variable name="var11">
<xsl:apply-templates select="$var10" mode="pass11"/>
</xsl:variable>
<xsl:variable name="var12">
<xsl:apply-templates select="$var11" mode="pass12"/>
</xsl:variable>
<!-- kopiram zadnjo variablo z vsebino celotnega dokumenta -->
<xsl:copy-of select="$var12" copy-namespaces="no"/>
</xsl:template>
<xsl:template match="@* | node()" mode="pass1">
<xsl:param name="file-new_id"/>
<xsl:copy>
<xsl:apply-templates select="@* | node()" mode="pass1">
<xsl:with-param name="file-new_id" select="$file-new_id"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
<!-- odstranim distributor -->
<xsl:template match="tei:distributor" mode="pass1">
</xsl:template>
<!-- za zadnjim respStmt dodam funder -->
<xsl:template match="tei:respStmt[position() = last()]" mode="pass1">
<respStmt>
<xsl:apply-templates mode="pass1"/>
</respStmt>
<funder>
<orgName xml:lang="sl">Raziskovalna infrastruktura CLARIN</orgName>
<orgName xml:lang="en">The CLARIN research infrastructure</orgName>
</funder>
</xsl:template>
<xsl:template match="tei:availability" mode="pass1">
<xsl:if test="string-length($clarinHandle) gt 0">
<pubPlace>
<xsl:value-of select="$clarinHandle"/>
</pubPlace>
</xsl:if>
<availability>
<xsl:apply-templates select="@*" mode="pass1"/>
<xsl:apply-templates mode="pass1"/>
</availability>
</xsl:template>
<!--<xsl:template match="tei:address" mode="pass1">
<!-\- odstranim naslov INZ na Kongresnem trgu 1 -\->
</xsl:template>-->
<!-- zamenjam celotni publisher z novimi podatki -->
<xsl:template match="tei:publisher" mode="pass1">
<publisher>
<orgName xml:lang="sl">Raziskovalna infrastruktura CLARIN</orgName>
<orgName xml:lang="en">CLARIN research infrastructure</orgName>
<ref target="https://www.clarin.eu/">www.clarin.eu</ref>
</publisher>
</xsl:template>
<xsl:template match="tei:publicationStmt/tei:date" mode="pass1">
<date when="{tokenize(string(current-date()),'\+')[1]}"><xsl:value-of select="format-date(current-date(),'[D1].[M1].[Y0001]')"/></date>
</xsl:template>
<!-- prestavim uvodne podatke iz body v front -->
<xsl:template match="tei:text" mode="pass1">
<text>
<xsl:if test="tei:body/tei:div/tei:stage[@type='title'] or tei:body/tei:div/tei:head or tei:body/tei:div/tei:stage[@type='session'] or tei:body/tei:div/tei:stage[@type='chairman']">
<front>
<div type="preface">
<xsl:apply-templates select="tei:body/tei:div/tei:stage[@type='title'] | tei:body/tei:div/tei:head | tei:body/tei:div/tei:stage[@type='session'] | tei:body/tei:div/tei:stage[@type='chairman']" mode="pass1"/>
</div>
</front>
</xsl:if>
<xsl:apply-templates mode="pass1"/>
</text>
</xsl:template>
<xsl:template match="tei:body/tei:div" mode="pass1">
<div>
<xsl:apply-templates mode="pass1"/>
</div>
</xsl:template>
<xsl:template match="tei:div/tei:stage[@type='title']" mode="pass1">
<head>
<xsl:value-of select="normalize-space(.)"/>
</head>
</xsl:template>
<xsl:template match="tei:div/tei:head" mode="pass1">
<head>
<xsl:value-of select="normalize-space(.)"/>
</head>
</xsl:template>
<xsl:template match="tei:stage[@type='session']" mode="pass1">
<head type="session">
<xsl:value-of select="normalize-space(.)"/>
</head>
</xsl:template>
<xsl:template match="tei:stage[@type='date']" mode="pass1">
<docDate>
<xsl:value-of select="normalize-space(.)"/>
</docDate>
</xsl:template>
<xsl:template match="tei:stage[@type='chairman']" mode="pass1">
<note type="chairman">
<xsl:value-of select="normalize-space(.)"/>
</note>
</xsl:template>
<xsl:template match="tei:div/tei:p" mode="pass1">
<note>
<xsl:value-of select="normalize-space(.)"/>
</note>
</xsl:template>
<xsl:template match="tei:sp" mode="pass1">
<u who="#{tokenize(@who,':')[1]}.{tokenize(@who,':')[2]}">
<xsl:apply-templates mode="pass1"/>
</u>
</xsl:template>
<xsl:template match="tei:speaker" mode="pass1">
<note type="speaker">
<xsl:apply-templates mode="pass1"/>
</note>
</xsl:template>
<xsl:template match="tei:sp/tei:p" mode="pass1">
<xsl:variable name="document-name-id" select="ancestor::tei:TEI/@xml:id"/>
<xsl:variable name="num">
<xsl:number count="tei:sp/tei:p" level="any"/>
</xsl:variable>
<!-- samo odstavki, ki niso prazni -->
<xsl:if test="string-length(normalize-space(.)) != 0">
<seg xml:id="{$document-name-id}.p{$num}">
<xsl:apply-templates mode="pass1"/>
</seg>
</xsl:if>
</xsl:template>
<xsl:template match="tei:sp/tei:p/tei:title[1]" mode="pass1">
<xsl:variable name="document-name-id" select="ancestor::tei:TEI/@xml:id"/>
<xsl:variable name="num">
<xsl:number count="tei:sp/tei:p/tei:title[1]" level="any"/>
</xsl:variable>
<title xml:id="{$document-name-id}.title{$num}">
<xsl:apply-templates mode="pass1"/>
</title>
</xsl:template>