-
Notifications
You must be signed in to change notification settings - Fork 7
/
saxon-xforms.sef.xml
10792 lines (10792 loc) · 530 KB
/
saxon-xforms.sef.xml
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"?>
<package xmlns='http://ns.saxonica.com/xslt/export' xmlns:fn='http://www.w3.org/2005/xpath-functions' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:vv='http://saxon.sf.net/generated-variable' xmlns:java-type='http://saxon.sf.net/java-type' when='2021-04-11T09:29:38.341464+01:00' id='0' version='30' packageVersion='1' saxonVersion='9.9.1.7' target='JS' targetVersion='1' relocatable='true' implicit='true'>
<co id='0' binds='1'>
<template name='Q{}action-output' flags='os' line='3682' module='saxon-xforms.xsl' slots='3'>
<sequence role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='3683'>
<param name='Q{}action-map' slot='0' flags='tr' as='map(*)'>
<treat role='conversion' as='map(*)' jsTest='return SaxonJS.U.isMap(item)' diag='8|0|XTTE0590|action-map'>
<check card='1' diag='8|0|XTTE0590|action-map'>
<supplied slot='0'/>
</check>
</treat>
</param>
<let line='3686' var='Q{}instanceXML' as='element()' slot='1' eval='16'>
<treat as='element()' jsTest='return SaxonJS.U.isNode(item) && item.nodeType===1;' diag='3|0|XTTE0570|instanceXML'>
<check card='1' diag='3|0|XTTE0570|instanceXML'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='getInstance'/>
<arrayBlock>
<treat line='3685' as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|instance-id'>
<check card='1' diag='3|0|XTTE0570|instance-id'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|instance-id'>
<data>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='instance-context'/>
</ifCall>
</data>
</cvUntyped>
</check>
</treat>
</arrayBlock>
</ifCall>
</check>
</treat>
<let line='3688' var='Q{}ref' as='xs:string?' slot='2' eval='7'>
<choose line='3690'>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@value'/>
</ifCall>
<treat line='3691' as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|ref'>
<check card='?' diag='3|0|XTTE0570|ref'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|ref'>
<data>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@value'/>
</ifCall>
</data>
</cvUntyped>
</check>
</treat>
<ifCall line='3693' name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@ref'/>
</ifCall>
<treat line='3694' as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|ref'>
<check card='?' diag='3|0|XTTE0570|ref'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|ref'>
<data>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@ref'/>
</ifCall>
</data>
</cvUntyped>
</check>
</treat>
</choose>
<choose line='3700'>
<fn name='exists'>
<varRef name='Q{}ref' slot='2'/>
</fn>
<evaluate line='3701' as='xs:string' dxns=''>
<ufCall role='xpath' name='Q{http://www.w3.org/2002/xforms}impose' tailCall='false' bSlot='0' eval='16'>
<check card='1' diag='0|0||xforms:impose'>
<varRef name='Q{}ref' slot='2'/>
</check>
</ufCall>
<varRef role='cxt' name='Q{}instanceXML' slot='1'/>
<varRef role='nsCxt' name='Q{}instanceXML' slot='1'/>
<str role='sa' val='no'/>
<map role='options' size='0'/>
<map role='wp' size='0'/>
</evaluate>
</choose>
</let>
</let>
</sequence>
</template>
</co>
<co id='2' binds='3 1 1 1 4 5 1'>
<template name='Q{}action-insert' flags='os' line='3452' module='saxon-xforms.xsl' slots='14'>
<sequence role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='3453'>
<param name='Q{}action-map' slot='0' flags='tr' as='map(*)'>
<treat role='conversion' as='map(*)' jsTest='return SaxonJS.U.isMap(item)' diag='8|0|XTTE0590|action-map'>
<check card='1' diag='8|0|XTTE0590|action-map'>
<supplied slot='0'/>
</check>
</treat>
</param>
<let line='3455' var='Q{}instance-context' as='xs:string' slot='1' eval='16'>
<treat as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|instance-context'>
<check card='1' diag='3|0|XTTE0570|instance-context'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|instance-context'>
<data>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='instance-context'/>
</ifCall>
</data>
</cvUntyped>
</check>
</treat>
<let line='3457' var='Q{}ref' as='item()*' slot='2' eval='3'>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@ref'/>
</ifCall>
<let line='3458' var='Q{}at' as='xs:string?' slot='3' eval='7'>
<treat as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|at'>
<check card='?' diag='3|0|XTTE0570|at'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|at'>
<data>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@at'/>
</ifCall>
</data>
</cvUntyped>
</check>
</treat>
<let line='3459' var='Q{}position' as='xs:string?' slot='4' eval='7'>
<treat as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|position'>
<check card='?' diag='3|0|XTTE0570|position'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|position'>
<data>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@position'/>
</ifCall>
</data>
</cvUntyped>
</check>
</treat>
<let line='3460' var='Q{}origin-ref' as='xs:string?' slot='5' eval='7'>
<treat as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|origin-ref'>
<check card='?' diag='3|0|XTTE0570|origin-ref'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|origin-ref'>
<data>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@origin'/>
</ifCall>
</data>
</cvUntyped>
</check>
</treat>
<let line='3474' var='Q{}instanceXML2' as='element()' slot='6' eval='16'>
<treat as='element()' jsTest='return SaxonJS.U.isNode(item) && item.nodeType===1;' diag='3|0|XTTE0570|instanceXML2'>
<check card='1' diag='3|0|XTTE0570|instanceXML2'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='getInstance'/>
<arrayBlock>
<varRef name='Q{}instance-context' slot='1'/>
</arrayBlock>
</ifCall>
</check>
</treat>
<let line='3485' var='Q{}instanceXML-origin' as='element()' slot='7' eval='16'>
<treat as='element()' jsTest='return SaxonJS.U.isNode(item) && item.nodeType===1;' diag='3|0|XTTE0570|instanceXML-origin'>
<check card='1' diag='3|0|XTTE0570|instanceXML-origin'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='getInstance'/>
<arrayBlock>
<ufCall line='3484' name='Q{http://www.w3.org/2002/xforms}getInstanceId' tailCall='false' bSlot='0' eval='16'>
<check card='1' diag='0|0||xforms:getInstanceId'>
<varRef name='Q{}origin-ref' slot='5'/>
</check>
</ufCall>
</arrayBlock>
</ifCall>
</check>
</treat>
<let line='3487' var='Q{}origin-node' as='node()?' slot='8' eval='7'>
<treat line='3488' as='node()' jsTest='return SaxonJS.U.isNode(item);' diag='3|0|XTTE0570|origin-node'>
<check card='?' diag='3|0|XTTE0570|origin-node'>
<evaluate dxns=''>
<ufCall role='xpath' name='Q{http://www.w3.org/2002/xforms}impose' tailCall='false' bSlot='1' eval='16'>
<check card='1' diag='0|0||xforms:impose'>
<varRef name='Q{}origin-ref' slot='5'/>
</check>
</ufCall>
<varRef role='cxt' name='Q{}instanceXML-origin' slot='7'/>
<varRef role='nsCxt' name='Q{}instanceXML-origin' slot='7'/>
<str role='sa' val='no'/>
<map role='options' size='0'/>
<map role='wp' size='0'/>
</evaluate>
</check>
</treat>
<let line='3491' var='Q{}insert-node-location' as='node()?' slot='9' eval='7'>
<treat line='3492' as='node()' jsTest='return SaxonJS.U.isNode(item);' diag='3|0|XTTE0570|insert-node-location'>
<check card='?' diag='3|0|XTTE0570|insert-node-location'>
<evaluate dxns=''>
<ufCall role='xpath' name='Q{http://www.w3.org/2002/xforms}impose' tailCall='false' bSlot='2' eval='16'>
<check card='1' diag='0|0||xforms:impose'>
<choose line='3472'>
<and op='and'>
<fn name='exists'>
<varRef name='Q{}ref' slot='2'/>
</fn>
<gc op='!=' card='N:1' comp='GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint'>
<data>
<varRef name='Q{}ref' slot='2'/>
</data>
<str val=''/>
</gc>
</and>
<choose>
<fn name='exists'>
<varRef name='Q{}at' slot='3'/>
</fn>
<fn name='concat'>
<atomSing card='?' diag='0|0||fn:concat'>
<varRef name='Q{}ref' slot='2'/>
</atomSing>
<str val='['/>
<varRef name='Q{}at' slot='3'/>
<str val=']'/>
</fn>
<true/>
<treat as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|ref-qualified'>
<check card='?' diag='3|0|XTTE0570|ref-qualified'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|ref-qualified'>
<data>
<varRef name='Q{}ref' slot='2'/>
</data>
</cvUntyped>
</check>
</treat>
</choose>
</choose>
</check>
</ufCall>
<varRef role='cxt' name='Q{}instanceXML2' slot='6'/>
<varRef role='nsCxt' name='Q{}instanceXML2' slot='6'/>
<str role='sa' val='no'/>
<map role='options' size='0'/>
<map role='wp' size='0'/>
</evaluate>
</check>
</treat>
<let line='3495' var='Q{}context-node' as='node()' slot='10' eval='16'>
<treat line='3496' as='node()' jsTest='return SaxonJS.U.isNode(item);' diag='3|0|XTTE0570|context-node'>
<check card='1' diag='3|0|XTTE0570|context-node'>
<evaluate dxns=''>
<ufCall role='xpath' name='Q{http://www.w3.org/2002/xforms}impose' tailCall='false' bSlot='3' eval='16'>
<treat line='3461' as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|context'>
<check line='3496' card='1' diag='0|0||xforms:impose'>
<check line='3461' card='?' diag='3|0|XTTE0570|context'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|context'>
<data>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@context'/>
</ifCall>
</data>
</cvUntyped>
</check>
</check>
</treat>
</ufCall>
<varRef role='cxt' name='Q{}instanceXML2' slot='6'/>
<varRef role='nsCxt' name='Q{}instanceXML2' slot='6'/>
<str role='sa' val='no'/>
<map role='options' size='0'/>
<map role='wp' size='0'/>
</evaluate>
</check>
</treat>
<let line='3513' var='Q{}instance-with-insert' as='element()' slot='11' eval='16'>
<treat line='3514' as='element()' jsTest='return SaxonJS.U.isNode(item) && item.nodeType===1;' diag='3|0|XTTE0570|instance-with-insert'>
<check card='1' diag='3|0|XTTE0570|instance-with-insert'>
<applyT mode='Q{}insert-node' bSlot='4'>
<varRef role='select' name='Q{}instanceXML2' slot='6'/>
<withParam name='Q{}insert-node-location' flags='t' as='node()?'>
<choose line='3515'>
<fn name='exists'>
<varRef name='Q{}insert-node-location' slot='9'/>
</fn>
<varRef name='Q{}insert-node-location' slot='9'/>
<true/>
<varRef name='Q{}context-node' slot='10'/>
</choose>
</withParam>
<withParam name='Q{}node-to-insert' flags='t' as='node()?'>
<choose line='3502'>
<fn name='exists'>
<varRef name='Q{}origin-node' slot='8'/>
</fn>
<copyOf line='3503' flags='vc'>
<varRef name='Q{}origin-node' slot='8'/>
</copyOf>
<true/>
<copyOf line='3506' flags='vc'>
<varRef name='Q{}insert-node-location' slot='9'/>
</copyOf>
</choose>
</withParam>
<withParam name='Q{}position-relative' flags='t' as='xs:string?'>
<choose line='3517'>
<fn name='exists'>
<varRef name='Q{}insert-node-location' slot='9'/>
</fn>
<varRef name='Q{}position' slot='4'/>
<true/>
<str val='child'/>
</choose>
</withParam>
</applyT>
</check>
</treat>
<sequence line='3523'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='setInstance'/>
<arrayBlock>
<varRef name='Q{}instance-context' slot='1'/>
<varRef name='Q{}instance-with-insert' slot='11'/>
</arrayBlock>
</ifCall>
<choose line='3527'>
<fn name='matches'>
<varRef name='Q{}at' slot='3'/>
<str val='index\s*\('/>
<str val=''/>
</fn>
<let line='3528' var='Q{}repeat-id' as='xs:string?' slot='12' eval='7'>
<ufCall name='Q{http://www.w3.org/2002/xforms}getRepeatID' tailCall='false' bSlot='5' eval='16'>
<check card='1' diag='0|0||xforms:getRepeatID'>
<varRef name='Q{}at' slot='3'/>
</check>
</ufCall>
<let line='3529' var='Q{}at-position' as='xs:integer' slot='13' eval='16'>
<treat line='3530' as='xs:integer' jsTest='return SaxonJS.U.Atomic.integer.matches(item);' diag='3|0|XTTE0570|at-position'>
<check card='1' diag='3|0|XTTE0570|at-position'>
<cvUntyped to='xs:integer' diag='3|0|XTTE0570|at-position'>
<data>
<evaluate dxns=''>
<ufCall role='xpath' name='Q{http://www.w3.org/2002/xforms}impose' tailCall='false' bSlot='6' eval='16'>
<check card='1' diag='0|0||xforms:impose'>
<varRef name='Q{}at' slot='3'/>
</check>
</ufCall>
<empty role='cxt'/>
<str role='sa' val='no'/>
<map role='options' size='0'/>
<map role='wp' size='0'/>
</evaluate>
</data>
</cvUntyped>
</check>
</treat>
<choose line='3535'>
<fn name='exists'>
<varRef name='Q{}repeat-id' slot='12'/>
</fn>
<choose line='3537'>
<vc op='eq' onEmpty='0' comp='CCC'>
<varRef name='Q{}position' slot='4'/>
<str val='before'/>
</vc>
<ifCall line='3538' name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='setRepeatIndex'/>
<arrayBlock>
<varRef name='Q{}repeat-id' slot='12'/>
<varRef name='Q{}at-position' slot='13'/>
</arrayBlock>
</ifCall>
<true/>
<ifCall line='3541' name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='setRepeatIndex'/>
<arrayBlock>
<varRef name='Q{}repeat-id' slot='12'/>
<arith op='+' calc='i+i'>
<varRef name='Q{}at-position' slot='13'/>
<int val='1'/>
</arith>
</arrayBlock>
</ifCall>
</choose>
</choose>
</let>
</let>
</choose>
<choose line='3548'>
<vc op='eq' onEmpty='0' comp='CCC'>
<treat line='3456' as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|handler-status'>
<check card='1' diag='3|0|XTTE0570|handler-status'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|handler-status'>
<data>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='handler-status'/>
</ifCall>
</data>
</cvUntyped>
</check>
</treat>
<str val='inner'/>
</vc>
<ifCall line='3549' name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='setDeferredUpdateFlags'/>
<array size='1'>
<literal count='4'>
<str val='rebuild'/>
<str val='recalculate'/>
<str val='revalidate'/>
<str val='refresh'/>
</literal>
</array>
</ifCall>
</choose>
</sequence>
</let>
</let>
</let>
</let>
</let>
</let>
</let>
</let>
</let>
</let>
</let>
</sequence>
</template>
</co>
<co id='6' binds='1 7'>
<template name='Q{}action-delete' flags='os' line='3560' module='saxon-xforms.xsl' slots='8'>
<sequence role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='3561'>
<param name='Q{}action-map' slot='0' flags='tr' as='map(*)'>
<treat role='conversion' as='map(*)' jsTest='return SaxonJS.U.isMap(item)' diag='8|0|XTTE0590|action-map'>
<check card='1' diag='8|0|XTTE0590|action-map'>
<supplied slot='0'/>
</check>
</treat>
</param>
<let line='3563' var='Q{}instance-context' as='xs:string' slot='1' eval='16'>
<treat as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|instance-context'>
<check card='1' diag='3|0|XTTE0570|instance-context'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|instance-context'>
<data>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='instance-context'/>
</ifCall>
</data>
</cvUntyped>
</check>
</treat>
<let line='3565' var='Q{}ref' as='item()*' slot='2' eval='4'>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@ref'/>
</ifCall>
<let line='3566' var='Q{}at' as='xs:string?' slot='3' eval='7'>
<treat as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|at'>
<check card='?' diag='3|0|XTTE0570|at'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|at'>
<data>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@at'/>
</ifCall>
</data>
</cvUntyped>
</check>
</treat>
<let line='3576' var='Q{}ref-qualified' as='xs:string?' slot='4' eval='7'>
<choose>
<fn name='exists'>
<varRef name='Q{}ref' slot='2'/>
</fn>
<choose>
<fn name='exists'>
<varRef name='Q{}at' slot='3'/>
</fn>
<fn name='concat'>
<atomSing card='?' diag='0|0||fn:concat'>
<varRef name='Q{}ref' slot='2'/>
</atomSing>
<str val='['/>
<varRef name='Q{}at' slot='3'/>
<str val=']'/>
</fn>
<true/>
<treat as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|ref-qualified'>
<check card='?' diag='3|0|XTTE0570|ref-qualified'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|ref-qualified'>
<data>
<varRef name='Q{}ref' slot='2'/>
</data>
</cvUntyped>
</check>
</treat>
</choose>
</choose>
<let line='3578' var='Q{}instanceXML2' as='element()' slot='5' eval='16'>
<treat as='element()' jsTest='return SaxonJS.U.isNode(item) && item.nodeType===1;' diag='3|0|XTTE0570|instanceXML2'>
<check card='1' diag='3|0|XTTE0570|instanceXML2'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='getInstance'/>
<arrayBlock>
<varRef name='Q{}instance-context' slot='1'/>
</arrayBlock>
</ifCall>
</check>
</treat>
<let line='3580' var='Q{}delete-node' as='node()*' slot='6' eval='8'>
<choose line='3582'>
<and op='and'>
<fn name='exists'>
<varRef name='Q{}ref-qualified' slot='4'/>
</fn>
<vc op='ne' onEmpty='1' comp='CCC'>
<varRef name='Q{}ref-qualified' slot='4'/>
<str val=''/>
</vc>
</and>
<treat line='3583' as='node()' jsTest='return SaxonJS.U.isNode(item);' diag='3|0|XTTE0570|delete-node'>
<evaluate dxns=''>
<ufCall role='xpath' name='Q{http://www.w3.org/2002/xforms}impose' tailCall='false' bSlot='0' eval='16'>
<check card='1' diag='0|0||xforms:impose'>
<varRef name='Q{}ref-qualified' slot='4'/>
</check>
</ufCall>
<varRef role='cxt' name='Q{}instanceXML2' slot='5'/>
<varRef role='nsCxt' name='Q{}instanceXML2' slot='5'/>
<str role='sa' val='no'/>
<map role='options' size='0'/>
<map role='wp' size='0'/>
</evaluate>
</treat>
</choose>
<let line='3588' var='Q{}instance-with-delete' as='element()' slot='7' eval='16'>
<treat line='3589' as='element()' jsTest='return SaxonJS.U.isNode(item) && item.nodeType===1;' diag='3|0|XTTE0570|instance-with-delete'>
<check card='1' diag='3|0|XTTE0570|instance-with-delete'>
<applyT mode='Q{}delete-node' bSlot='1'>
<varRef role='select' name='Q{}instanceXML2' slot='5'/>
<withParam name='Q{}delete-node' flags='t' as='node()*'>
<varRef line='3590' name='Q{}delete-node' slot='6'/>
</withParam>
</applyT>
</check>
</treat>
<sequence line='3596'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='setInstance'/>
<arrayBlock>
<varRef name='Q{}instance-context' slot='1'/>
<varRef name='Q{}instance-with-delete' slot='7'/>
</arrayBlock>
</ifCall>
<choose line='3624'>
<vc op='eq' onEmpty='0' comp='CCC'>
<treat line='3564' as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|handler-status'>
<check card='1' diag='3|0|XTTE0570|handler-status'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|handler-status'>
<data>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='handler-status'/>
</ifCall>
</data>
</cvUntyped>
</check>
</treat>
<str val='inner'/>
</vc>
<ifCall line='3625' name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='setDeferredUpdateFlags'/>
<array size='1'>
<literal count='4'>
<str val='rebuild'/>
<str val='recalculate'/>
<str val='revalidate'/>
<str val='refresh'/>
</literal>
</array>
</ifCall>
</choose>
</sequence>
</let>
</let>
</let>
</let>
</let>
</let>
</let>
</sequence>
</template>
</co>
<co id='8' binds=''>
<globalVariable name='Q{}global-default-model-id' type='xs:string' line='87' module='saxon-xforms.xsl' visibility='PRIVATE' jsAcceptor='return SaxonJS.U.Atomic.string.cast(val);' jsCardCheck='function c(n) {return n==1;};'>
<str val='saxon-forms-default-model'/>
</globalVariable>
</co>
<co id='9' binds='10'>
<template name='Q{}action-send' flags='os' line='3748' module='saxon-xforms.xsl' slots='1'>
<sequence role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='3749'>
<param name='Q{}action-map' slot='0' flags='tr' as='map(*)'>
<treat role='conversion' as='map(*)' jsTest='return SaxonJS.U.isMap(item)' diag='8|0|XTTE0590|action-map'>
<check card='1' diag='8|0|XTTE0590|action-map'>
<supplied slot='0'/>
</check>
</treat>
</param>
<callT line='3755' name='Q{}xforms-submit' bSlot='0' flags='t'>
<withParam name='Q{}submission' flags='c' as='xs:string'>
<treat line='3753' as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|submission'>
<check card='1' diag='3|0|XTTE0570|submission'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|submission'>
<data>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@submission'/>
</ifCall>
</data>
</cvUntyped>
</check>
</treat>
</withParam>
</callT>
</sequence>
</template>
</co>
<co id='11' binds=''>
<template name='Q{}action-text' flags='os' line='3715' module='saxon-xforms.xsl' slots='1'>
<sequence role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='3716'>
<param name='Q{}action-map' slot='0' flags='tr' as='map(*)'>
<treat role='conversion' as='map(*)' jsTest='return SaxonJS.U.isMap(item)' diag='8|0|XTTE0590|action-map'>
<check card='1' diag='8|0|XTTE0590|action-map'>
<supplied slot='0'/>
</check>
</treat>
</param>
<ifCall line='3717' name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@value'/>
</ifCall>
</sequence>
</template>
</co>
<co id='12' binds=''>
<function name='Q{http://www.w3.org/2002/xforms}usesIndexFunction' line='2107' module='saxon-xforms.xsl' eval='8' flags='pU' as='xs:boolean' slots='1'>
<arg name='Q{}this' as='element()'/>
<fn role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='2143' name='exists'>
<sequence line='2118'>
<analyzeString>
<cvUntyped role='select' to='xs:string'>
<data>
<slash simple='1'>
<varRef name='Q{}this' slot='0'/>
<axis name='attribute' nodeTest='attribute(Q{}ref)' jsTest='return item.name==='ref''/>
</slash>
</data>
</cvUntyped>
<str role='regex' val='\i\c*\('/>
<str role='flags' val=''/>
<choose role='matching' line='2121'>
<vc op='eq' onEmpty='0' comp='CCC'>
<fn name='substring-before'>
<dot type='xs:string'/>
<str val='('/>
</fn>
<str val='index'/>
</vc>
<str val='i'/>
</choose>
<empty role='nonMatching'/>
</analyzeString>
<analyzeString line='2130'>
<cvUntyped role='select' to='xs:string'>
<data>
<slash simple='1'>
<varRef name='Q{}this' slot='0'/>
<axis name='attribute' nodeTest='attribute(Q{}nodeset)' jsTest='return item.name==='nodeset''/>
</slash>
</data>
</cvUntyped>
<str role='regex' val='\i\c*\('/>
<str role='flags' val=''/>
<choose role='matching' line='2133'>
<vc op='eq' onEmpty='0' comp='CCC'>
<fn name='substring-before'>
<dot type='xs:string'/>
<str val='('/>
</fn>
<str val='index'/>
</vc>
<str val='i'/>
</choose>
<empty role='nonMatching'/>
</analyzeString>
</sequence>
</fn>
</function>
</co>
<co id='13' binds='14'>
<template name='Q{}action-recalculate' flags='os' line='3795' module='saxon-xforms.xsl' slots='0'>
<sequence role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='3796'>
<message>
<valueOf role='select'>
<str val='[action-recalculate] START'/>
</valueOf>
<str role='terminate' val='no'/>
<str role='error' val='Q{http://www.w3.org/2005/xqt-errors}XTMM9000'/>
</message>
<callT line='3798' name='Q{}xforms-recalculate' bSlot='0'/>
<ifCall line='3799' name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='clearDeferredUpdateFlag'/>
<array size='1'>
<str val='recalculate'/>
</array>
</ifCall>
</sequence>
</template>
</co>
<co id='5' binds=''>
<function name='Q{http://www.w3.org/2002/xforms}getRepeatID' line='704' module='saxon-xforms.xsl' eval='7' flags='pU' as='xs:string?' slots='1'>
<arg name='Q{}string-to-parse' as='xs:string'/>
<treat role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='707' as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='5|0|XTTE0780|xforms:getRepeatID#1'>
<check card='?' diag='5|0|XTTE0780|xforms:getRepeatID#1'>
<cvUntyped to='xs:string' diag='5|0|XTTE0780|xforms:getRepeatID#1'>
<data>
<analyzeString>
<varRef role='select' name='Q{}string-to-parse' slot='0'/>
<str role='regex' val='^.*index\s*\(\s*'([^']+)'\s*\).*$'/>
<str role='flags' val=''/>
<fn role='matching' line='709' name='regex-group'>
<int val='1'/>
</fn>
<message role='nonMatching' line='712'>
<sequence role='select'>
<valueOf>
<str val='[xforms:getRepeatID] No repeat identifiable from value ''/>
</valueOf>
<valueOf>
<varRef name='Q{}string-to-parse' slot='0'/>
</valueOf>
<valueOf flags='S'>
<str val='''/>
</valueOf>
</sequence>
<str role='terminate' val='no'/>
<str role='error' val='Q{http://www.w3.org/2005/xqt-errors}XTMM9000'/>
</message>
</analyzeString>
</data>
</cvUntyped>
</check>
</treat>
</function>
</co>
<co id='15' binds=''>
<template name='Q{}action-reset' flags='os' line='3820' module='saxon-xforms.xsl' slots='1'>
<sequence role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='3821'>
<param name='Q{}action-map' slot='0' flags='tr' as='map(*)'>
<treat role='conversion' as='map(*)' jsTest='return SaxonJS.U.isMap(item)' diag='8|0|XTTE0590|action-map'>
<check card='1' diag='8|0|XTTE0590|action-map'>
<supplied slot='0'/>
</check>
</treat>
</param>
<message line='3823'>
<valueOf role='select'>
<str val='[action-reset] Reset triggered!'/>
</valueOf>
<str role='terminate' val='no'/>
<str role='error' val='Q{http://www.w3.org/2005/xqt-errors}XTMM9000'/>
</message>
<ifCall line='3825' name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='clearDeferredUpdateFlags'/>
<array size='0'/>
</ifCall>
</sequence>
</template>
</co>
<co id='16' binds='17'>
<template name='Q{}xforms-value-changed' flags='os' line='2983' module='saxon-xforms.xsl' slots='1'>
<sequence role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='2984'>
<param name='Q{}when-value-changed' slot='0' flags='t' as='map(*)*'>
<empty role='select'/>
<treat role='conversion' as='map(*)' jsTest='return SaxonJS.U.isMap(item)' diag='8|0|XTTE0590|when-value-changed'>
<supplied slot='0'/>
</treat>
</param>
<forEach line='2986'>
<varRef name='Q{}when-value-changed' slot='0'/>
<callT line='2989' name='Q{}applyActions' bSlot='0'>
<withParam name='Q{}action-map' flags='t' as='item()'>
<dot line='2987' type='map(*)'/>
</withParam>
</callT>
</forEach>
</sequence>
</template>
</co>
<co id='18' binds=''>
<template name='Q{}xforms-binding-exception' flags='os' line='3248' module='saxon-xforms.xsl' slots='1'>
<sequence role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='3249'>
<param name='Q{}message' slot='0' flags='r' as='xs:string'>
<treat role='conversion' as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='8|0|XTTE0590|message'>
<check card='1' diag='8|0|XTTE0590|message'>
<cvUntyped to='xs:string' diag='8|0|XTTE0590|message'>
<data>
<supplied slot='0'/>
</data>
</cvUntyped>
</check>
</treat>
</param>
<ifCall line='3250' name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='alert'/>
<arrayBlock>
<fn name='concat'>
<str val='[xforms-binding-exception] '/>
<varRef name='Q{}message' slot='0'/>
</fn>
</arrayBlock>
</ifCall>
</sequence>
</template>
</co>
<co id='19' binds='20'>
<template name='Q{}action-refresh' flags='os' line='3807' module='saxon-xforms.xsl' slots='0'>
<sequence role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='3808'>
<message>
<valueOf role='select'>
<str val='[action-refresh] START'/>
</valueOf>
<str role='terminate' val='no'/>
<str role='error' val='Q{http://www.w3.org/2005/xqt-errors}XTMM9000'/>
</message>
<callT line='3810' name='Q{}xforms-refresh' bSlot='0'/>
<ifCall line='3811' name='Q{http://saxonica.com/ns/interactiveXSLT}call' type='item()?'>
<check card='1' diag='0|0||ixsl:call'>
<ifCall name='Q{http://saxonica.com/ns/interactiveXSLT}window' type='item()?'/>
</check>
<str val='clearDeferredUpdateFlag'/>
<array size='1'>
<str val='refresh'/>
</array>
</ifCall>
</sequence>
</template>
</co>
<co id='21' binds='17 22'>
<template name='Q{}action-message' flags='os' line='3638' module='saxon-xforms.xsl' slots='4'>
<sequence role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='3639'>
<param name='Q{}action-map' slot='0' flags='tr' as='map(*)'>
<treat role='conversion' as='map(*)' jsTest='return SaxonJS.U.isMap(item)' diag='8|0|XTTE0590|action-map'>
<check card='1' diag='8|0|XTTE0590|action-map'>
<supplied slot='0'/>
</check>
</treat>
</param>
<let line='3646' var='Q{}message-components' as='xs:string*' slot='1' eval='8'>
<treat line='3649' as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|message-components'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|message-components'>
<data>
<forEach>
<ifCall line='3641' name='Q{http://www.w3.org/2005/xpath-functions/array}flatten' type='item()*'>
<treat as='array(map(*))' jsTest='function v(item) {return SaxonJS.U.isMap(item)};function c(n) {return n==1;};return SaxonJS.U.isArray(item) && SaxonJS.U.ForArray(item.value).every(function(seq){return c(seq.length) && SaxonJS.U.ForArray(seq).every(v)});' diag='3|0|XTTE0570|nested-actions-array'>
<check card='?' diag='3|0|XTTE0570|nested-actions-array'>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='nested-actions'/>
</ifCall>
</check>
</treat>
</ifCall>
<callT line='3650' name='Q{}applyActions' bSlot='0'>
<withParam name='Q{}action-map' flags='t' as='item()'>
<dot line='3651'/>
</withParam>
</callT>
</forEach>
</data>
</cvUntyped>
</treat>
<let line='3656' var='Q{}message-value' as='xs:string' slot='2' eval='8'>
<fn name='string-join'>
<varRef name='Q{}message-components' slot='1'/>
</fn>
<let line='3659' var='Q{}message-level' as='xs:string' slot='3' eval='16'>
<treat as='xs:string' jsTest='return SaxonJS.U.Atomic.string.matches(item);' diag='3|0|XTTE0570|message-level'>
<check card='1' diag='3|0|XTTE0570|message-level'>
<cvUntyped to='xs:string' diag='3|0|XTTE0570|message-level'>
<data>
<first>
<sequence>
<ifCall name='Q{http://www.w3.org/2005/xpath-functions/map}get' type='item()*'>
<varRef name='Q{}action-map' slot='0'/>
<str val='@level'/>
</ifCall>
<str val='modal'/>
</sequence>
</first>
</data>
</cvUntyped>
</check>
</treat>
<choose line='3665'>
<vc op='eq' onEmpty='0' comp='CCC'>
<varRef name='Q{}message-level' slot='3'/>
<str val='ephemeral'/>
</vc>
<callT line='3666' name='Q{}logToPage' bSlot='1' flags='t'>
<withParam name='Q{}message' flags='c' as='xs:string'>
<varRef line='3667' name='Q{}message-value' slot='2'/>
</withParam>
</callT>
</choose>
</let>
</let>
</let>
</sequence>
</template>
</co>
<co id='23' binds=''>
<function name='Q{http://www.w3.org/2002/xforms}resolveXPathStrings' line='769' module='saxon-xforms.xsl' eval='16' flags='pU' as='xs:string' slots='2'>
<arg name='Q{}base' as='xs:string'/>
<arg name='Q{}relative' as='xs:string'/>
<choose role='body' ns='xforms=http://www.w3.org/2002/xforms in=http://www.w3.org/2002/xforms-instance fn=~ js=~ saxon=~ xd=http://www.oxygenxml.com/ns/doc/xsl xf=http://www.w3.org/2002/xforms xhtml=http://www.w3.org/1999/xhtml xsl=~ ev=http://www.w3.org/2001/xml-events rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# array=~ sfl=http://saxonica.com/ns/forms-local ixsl=~ xs=~ math=~ sfp=http://saxon.sf.net/ns/packages map=~' line='776'>
<fn name='starts-with'>
<varRef name='Q{}relative' slot='1'/>
<str val='/'/>
</fn>
<varRef line='777' name='Q{}relative' slot='1'/>
<fn line='779' name='starts-with'>
<varRef name='Q{}relative' slot='1'/>
<str val='instance('/>
</fn>
<varRef line='780' name='Q{}relative' slot='1'/>
<fn line='782' name='not'>
<varRef name='Q{}base' slot='0'/>
</fn>
<varRef line='783' name='Q{}relative' slot='1'/>
<or line='785' op='or'>
<fn name='not'>
<varRef name='Q{}relative' slot='1'/>
</fn>
<vc op='eq' onEmpty='0' comp='CCC'>
<varRef name='Q{}relative' slot='1'/>
<str val='.'/>
</vc>
</or>
<varRef line='786' name='Q{}base' slot='0'/>
<true/>