-
Notifications
You must be signed in to change notification settings - Fork 5
/
imsmd_loose_v1p3p2.xsd
1646 lines (1295 loc) · 91.1 KB
/
imsmd_loose_v1p3p2.xsd
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"?>
<xs:schema xmlns="http://ltsc.ieee.org/xsd/LOM"
targetNamespace="http://ltsc.ieee.org/xsd/LOM"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:sch="http://purl.oclc.org/dsdl/schematron"
version="IMS MD 1.3.2"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:annotation>
<xs:documentation>
XSD Data File Information
=========================
Author: Colin Smythe
Date: 30th April, 2012
Version: 1.3.2
Status: Final
Description: This is the IMS GLC Meta-data v1.3 binding of the IEEE LOMv1.0.
This is a Loose binding of LOMv1.0. The strict multiplicity of elements
has been imposed, there is no vocabulary validation and extensions are
permitted as elements and attributes.
History: Version 1.3: This replaces the IMS GLC Metadata v1.2.4 binding;
Version 1.3.1: Small bug correction i.e. change 'datetime' to 'dateTime';
Version 1.3.2: Corrects the use of the 'Type' class for the 'type' attribute in the 'OrComposite' class.
License: IPR and Distribution Notices
This machine readable file is derived from IMS Global specification IMS Meta-data (LOM) Version 1.3
found at http://www.imsglobal.org/metadata and the original IMS Global schema binding or code base
http://www.imsglobal.org/metadata.
Recipients of this document are requested to submit, with their comments, notification of any relevant
patent claims or other intellectual property rights of which they may be aware that might be infringed by
any implementation of the specification set forth in this document, and to provide supporting documentation.
IMS takes no position regarding the validity or scope of any intellectual property or other rights that might
be claimed to pertain to the implementation or use of the technology described in this document or the extent
to which any license under such rights might or might not be available; neither does it represent that it has
made any effort to identify any such rights. Information on IMS procedures with respect to rights in IMS
specifications can be found at the IMS Global Intellectual Property Rights web page: http://www.imsglobal.org/ipr/imsipr_policyFinal.pdf.
Copyright (c) IMS Global Learning Consortium 1999-2014. All Rights Reserved.
Use of this specification to develop products or services is governed by the license with IMS found on the IMS website: http://www.imsglobal.org/license.html.
Permission is granted to all parties to use excerpts from this document as needed in producing requests for proposals.
The limited permissions granted above are perpetual and will not be revoked by IMS or its successors or assigns.
THIS SPECIFICATION IS BEING OFFERED WITHOUT ANY WARRANTY WHATSOEVER, AND IN PARTICULAR, ANY WARRANTY OF NONINFRINGEMENT IS
EXPRESSLY DISCLAIMED. ANY USE OF THIS SPECIFICATION SHALL BE MADE ENTIRELY AT THE IMPLEMENTERS OWN RISK, AND NEITHER THE CONSORTIUM
NOR ANY OF ITS MEMBERS OR SUBMITTERS, SHALL HAVE ANY LIABILITY WHATSOEVER TO ANY IMPLEMENTER OR THIRD PARTY FOR ANY DAMAGES OF
ANY NATURE WHATSOEVER, DIRECTLY OR INDIRECTLY, ARISING FROM THE USE OF THIS SPECIFICATION.
Source UML File Information
===========================
The source file information must be supplied as an XMI file (without diagram layout information).
The supported UML authoring tools are:
(a) Poseidon - v6 (and later)
(b) Papyrus - v0.10.2 (and later)
Source XSLT File Information
============================
XSL Generator: Specificationv1p0_GenerationToolv1.xsl
XSLT Processor: Saxon-PE-9.5.0.2
Release: 1.0
Date: 31st July, 2014
Autogen Engineer: Colin Smythe (IMS Global, UK)
Autogen Date: 2014-12-07
IMS Global Auto-generation Binding Tool-kit (I-BAT)
===================================================
This file was auto-generated using the IMS Global Binding Auto-generation Tool-kit (I-BAT). While every
attempt has been made to ensure that this tool auto-generates the files correctly, users should be aware
that this is an experimental tool. Permission is given to make use of this tool. IMS Global makes no
claim on the materials created by third party users of this tool. Details on how to use this tool
are contained in the IMS Global "I-BAT" documentation available at the IMS Global web-site:
http://www.imsglobal.org.
Tool Copyright: 2012-2014 (c) IMS Global Learning Consortium Inc. All Rights Reserved.
</xs:documentation>
</xs:annotation>
<xs:annotation>
<xs:documentation>
Schematron Strict Selection Validation Rules
============================================
This is the set of Schematron rules that have been created to enforce the use of the "Unordered" stereotype.
These rules ensure that the number of entries in an unordered complexType of an element obey the multiplicity constraints.
This is required so that any-order/any-multiplicity complexTypes can be constructed and validated.
</xs:documentation>
<xs:appinfo>
<sch:ns uri="http://ltsc.ieee.org/xsd/LOM" prefix="lom" />
<sch:title>Schematron validation rules for the enforcement of the Unordered stereotype.</sch:title>
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="AggregationLevel.Type">
<sch:title>[RULESET] For the AggregationLevel.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:general/lom:aggregationLevel">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Annotation.Type">
<sch:title>[RULESET] For the Annotation.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:annotation">
<sch:assert test="count(lom:entity) = 0 or count(lom:entity) = 1">
[RULE for Local Attribute 1] Invalid number of "entity" elements: <sch:value-of select="count(lom:entity)" />.
</sch:assert>
<sch:assert test="count(lom:date) = 0 or count(lom:date) = 1">
[RULE for Local Attribute 2] Invalid number of "date" elements: <sch:value-of select="count(lom:date)" />.
</sch:assert>
<sch:assert test="count(lom:description) = 0 or count(lom:description) = 1">
[RULE for Local Attribute 3] Invalid number of "description" elements: <sch:value-of select="count(lom:description)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Classification.Type">
<sch:title>[RULESET] For the Classification.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:classification">
<sch:assert test="count(lom:purpose) = 0 or count(lom:purpose) = 1">
[RULE for Local Attribute 1] Invalid number of "purpose" elements: <sch:value-of select="count(lom:purpose)" />.
</sch:assert>
<sch:assert test="count(lom:description) = 0 or count(lom:description) = 1">
[RULE for Local Attribute 3] Invalid number of "description" elements: <sch:value-of select="count(lom:description)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Context.Type">
<sch:title>[RULESET] For the Context.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:educational/lom:context">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="ContributeLifeCycle.Type">
<sch:title>[RULESET] For the ContributeLifeCycle.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:lifeCycle/lom:contribute">
<sch:assert test="count(lom:role) = 0 or count(lom:role) = 1">
[RULE for Local Attribute 1] Invalid number of "role" elements: <sch:value-of select="count(lom:role)" />.
</sch:assert>
<sch:assert test="count(lom:date) = 0 or count(lom:date) = 1">
[RULE for Local Attribute 3] Invalid number of "date" elements: <sch:value-of select="count(lom:date)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="ContributeMetaMetadata.Type">
<sch:title>[RULESET] For the ContributeMetaMetadata.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:metaMetadata/lom:contribute">
<sch:assert test="count(lom:role) = 0 or count(lom:role) = 1">
[RULE for Local Attribute 1] Invalid number of "role" elements: <sch:value-of select="count(lom:role)" />.
</sch:assert>
<sch:assert test="count(lom:date) = 0 or count(lom:date) = 1">
[RULE for Local Attribute 3] Invalid number of "date" elements: <sch:value-of select="count(lom:date)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="CopyrightAndOtherRestrictions.Type">
<sch:title>[RULESET] For the CopyrightAndOtherRestrictions.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:rights/lom:copyrightAndOtherRestrictions">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Cost.Type">
<sch:title>[RULESET] For the Cost.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:rights/lom:cost">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="DateTime.Type">
<sch:title>[RULESET] For the DateTime.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:annotation/lom:date">
<sch:assert test="count(lom:dateTime) = 0 or count(lom:dateTime) = 1">
[RULE for Local Attribute 1] Invalid number of "dateTime" elements: <sch:value-of select="count(lom:dateTime)" />.
</sch:assert>
<sch:assert test="count(lom:description) = 0 or count(lom:description) = 1">
[RULE for Local Attribute 2] Invalid number of "description" elements: <sch:value-of select="count(lom:description)" />.
</sch:assert>
</sch:rule>
<sch:rule abstract="false" context="lom:lom/lom:lifeCycle/lom:contribute/lom:date">
<sch:assert test="count(lom:dateTime) = 0 or count(lom:dateTime) = 1">
[RULE for Local Attribute 1] Invalid number of "dateTime" elements: <sch:value-of select="count(lom:dateTime)" />.
</sch:assert>
<sch:assert test="count(lom:description) = 0 or count(lom:description) = 1">
[RULE for Local Attribute 2] Invalid number of "description" elements: <sch:value-of select="count(lom:description)" />.
</sch:assert>
</sch:rule>
<sch:rule abstract="false" context="lom:lom/lom:metaMetadata/lom:contribute/lom:date">
<sch:assert test="count(lom:dateTime) = 0 or count(lom:dateTime) = 1">
[RULE for Local Attribute 1] Invalid number of "dateTime" elements: <sch:value-of select="count(lom:dateTime)" />.
</sch:assert>
<sch:assert test="count(lom:description) = 0 or count(lom:description) = 1">
[RULE for Local Attribute 2] Invalid number of "description" elements: <sch:value-of select="count(lom:description)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Difficulty.Type">
<sch:title>[RULESET] For the Difficulty.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:educational/lom:difficulty">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Duration.Type">
<sch:title>[RULESET] For the Duration.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:educational/lom:typicalLearningTime">
<sch:assert test="count(lom:duration) = 0 or count(lom:duration) = 1">
[RULE for Local Attribute 1] Invalid number of "duration" elements: <sch:value-of select="count(lom:duration)" />.
</sch:assert>
<sch:assert test="count(lom:description) = 0 or count(lom:description) = 1">
[RULE for Local Attribute 2] Invalid number of "description" elements: <sch:value-of select="count(lom:description)" />.
</sch:assert>
</sch:rule>
<sch:rule abstract="false" context="lom:lom/lom:technical/lom:duration">
<sch:assert test="count(lom:duration) = 0 or count(lom:duration) = 1">
[RULE for Local Attribute 1] Invalid number of "duration" elements: <sch:value-of select="count(lom:duration)" />.
</sch:assert>
<sch:assert test="count(lom:description) = 0 or count(lom:description) = 1">
[RULE for Local Attribute 2] Invalid number of "description" elements: <sch:value-of select="count(lom:description)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Educational.Type">
<sch:title>[RULESET] For the Educational.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:educational">
<sch:assert test="count(lom:interactivityType) = 0 or count(lom:interactivityType) = 1">
[RULE for Local Attribute 1] Invalid number of "interactivityType" elements: <sch:value-of select="count(lom:interactivityType)" />.
</sch:assert>
<sch:assert test="count(lom:interactivityLevel) = 0 or count(lom:interactivityLevel) = 1">
[RULE for Local Attribute 3] Invalid number of "interactivityLevel" elements: <sch:value-of select="count(lom:interactivityLevel)" />.
</sch:assert>
<sch:assert test="count(lom:semanticDensity) = 0 or count(lom:semanticDensity) = 1">
[RULE for Local Attribute 4] Invalid number of "semanticDensity" elements: <sch:value-of select="count(lom:semanticDensity)" />.
</sch:assert>
<sch:assert test="count(lom:difficulty) = 0 or count(lom:difficulty) = 1">
[RULE for Local Attribute 8] Invalid number of "difficulty" elements: <sch:value-of select="count(lom:difficulty)" />.
</sch:assert>
<sch:assert test="count(lom:typicalLearningTime) = 0 or count(lom:typicalLearningTime) = 1">
[RULE for Local Attribute 9] Invalid number of "typicalLearningTime" elements: <sch:value-of select="count(lom:typicalLearningTime)" />.
</sch:assert>
<sch:assert test="count(lom:description) = 0 or count(lom:description) = 1">
[RULE for Local Attribute 10] Invalid number of "description" elements: <sch:value-of select="count(lom:description)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="General.Type">
<sch:title>[RULESET] For the General.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:general">
<sch:assert test="count(lom:title) = 0 or count(lom:title) = 1">
[RULE for Local Attribute 2] Invalid number of "title" elements: <sch:value-of select="count(lom:title)" />.
</sch:assert>
<sch:assert test="count(lom:structure) = 0 or count(lom:structure) = 1">
[RULE for Local Attribute 7] Invalid number of "structure" elements: <sch:value-of select="count(lom:structure)" />.
</sch:assert>
<sch:assert test="count(lom:aggregationLevel) = 0 or count(lom:aggregationLevel) = 1">
[RULE for Local Attribute 8] Invalid number of "aggregationLevel" elements: <sch:value-of select="count(lom:aggregationLevel)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Identifier.Type">
<sch:title>[RULESET] For the Identifier.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:general/lom:identifier">
<sch:assert test="count(lom:catalog) = 0 or count(lom:catalog) = 1">
[RULE for Local Attribute 1] Invalid number of "catalog" elements: <sch:value-of select="count(lom:catalog)" />.
</sch:assert>
<sch:assert test="count(lom:entry) = 0 or count(lom:entry) = 1">
[RULE for Local Attribute 2] Invalid number of "entry" elements: <sch:value-of select="count(lom:entry)" />.
</sch:assert>
</sch:rule>
<sch:rule abstract="false" context="lom:lom/lom:metaMetadata/lom:identifier">
<sch:assert test="count(lom:catalog) = 0 or count(lom:catalog) = 1">
[RULE for Local Attribute 1] Invalid number of "catalog" elements: <sch:value-of select="count(lom:catalog)" />.
</sch:assert>
<sch:assert test="count(lom:entry) = 0 or count(lom:entry) = 1">
[RULE for Local Attribute 2] Invalid number of "entry" elements: <sch:value-of select="count(lom:entry)" />.
</sch:assert>
</sch:rule>
<sch:rule abstract="false" context="lom:lom/lom:relation/lom:resource/lom:identifier">
<sch:assert test="count(lom:catalog) = 0 or count(lom:catalog) = 1">
[RULE for Local Attribute 1] Invalid number of "catalog" elements: <sch:value-of select="count(lom:catalog)" />.
</sch:assert>
<sch:assert test="count(lom:entry) = 0 or count(lom:entry) = 1">
[RULE for Local Attribute 2] Invalid number of "entry" elements: <sch:value-of select="count(lom:entry)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="IntendedEndUserRole.Type">
<sch:title>[RULESET] For the IntendedEndUserRole.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:educational/lom:intendedEndUserRole">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="InteractivityLevel.Type">
<sch:title>[RULESET] For the InteractivityLevel.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:educational/lom:interactivityLevel">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="InteractivityType.Type">
<sch:title>[RULESET] For the InteractivityType.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:educational/lom:interactivityType">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Kind.Type">
<sch:title>[RULESET] For the Kind.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:relation/lom:kind">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="LearningResourceType.Type">
<sch:title>[RULESET] For the LearningResourceType.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:educational/lom:learningResourceType">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="LifeCycle.Type">
<sch:title>[RULESET] For the LifeCycle.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:lifeCycle">
<sch:assert test="count(lom:version) = 0 or count(lom:version) = 1">
[RULE for Local Attribute 1] Invalid number of "version" elements: <sch:value-of select="count(lom:version)" />.
</sch:assert>
<sch:assert test="count(lom:status) = 0 or count(lom:status) = 1">
[RULE for Local Attribute 2] Invalid number of "status" elements: <sch:value-of select="count(lom:status)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="LOM.Type">
<sch:title>[RULESET] For the LOM.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom">
<sch:assert test="count(lom:general) = 0 or count(lom:general) = 1">
[RULE for Root Class Attribute 1] Invalid number of "general" elements: <sch:value-of select="count(lom:general)" />.
</sch:assert>
<sch:assert test="count(lom:lifeCycle) = 0 or count(lom:lifeCycle) = 1">
[RULE for Root Class Attribute 2] Invalid number of "lifeCycle" elements: <sch:value-of select="count(lom:lifeCycle)" />.
</sch:assert>
<sch:assert test="count(lom:metaMetadata) = 0 or count(lom:metaMetadata) = 1">
[RULE for Root Class Attribute 3] Invalid number of "metaMetadata" elements: <sch:value-of select="count(lom:metaMetadata)" />.
</sch:assert>
<sch:assert test="count(lom:technical) = 0 or count(lom:technical) = 1">
[RULE for Root Class Attribute 4] Invalid number of "technical" elements: <sch:value-of select="count(lom:technical)" />.
</sch:assert>
<sch:assert test="count(lom:rights) = 0 or count(lom:rights) = 1">
[RULE for Root Class Attribute 6] Invalid number of "rights" elements: <sch:value-of select="count(lom:rights)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="MetaMetadata.Type">
<sch:title>[RULESET] For the MetaMetadata.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:metaMetadata">
<sch:assert test="count(lom:language) = 0 or count(lom:language) = 1">
[RULE for Local Attribute 4] Invalid number of "language" elements: <sch:value-of select="count(lom:language)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Name.Type">
<sch:title>[RULESET] For the Name.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:technical/lom:requirement/lom:orComposite/lom:name">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="OrComposite.Type">
<sch:title>[RULESET] For the OrComposite.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:technical/lom:requirement/lom:orComposite">
<sch:assert test="count(lom:type) = 0 or count(lom:type) = 1">
[RULE for Local Attribute 1] Invalid number of "type" elements: <sch:value-of select="count(lom:type)" />.
</sch:assert>
<sch:assert test="count(lom:name) = 0 or count(lom:name) = 1">
[RULE for Local Attribute 2] Invalid number of "name" elements: <sch:value-of select="count(lom:name)" />.
</sch:assert>
<sch:assert test="count(lom:minimumVersion) = 0 or count(lom:minimumVersion) = 1">
[RULE for Local Attribute 3] Invalid number of "minimumVersion" elements: <sch:value-of select="count(lom:minimumVersion)" />.
</sch:assert>
<sch:assert test="count(lom:maximumVersion) = 0 or count(lom:maximumVersion) = 1">
[RULE for Local Attribute 4] Invalid number of "maximumVersion" elements: <sch:value-of select="count(lom:maximumVersion)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Purpose.Type">
<sch:title>[RULESET] For the Purpose.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:classification/lom:purpose">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Relation.Type">
<sch:title>[RULESET] For the Relation.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:relation">
<sch:assert test="count(lom:kind) = 0 or count(lom:kind) = 1">
[RULE for Local Attribute 1] Invalid number of "kind" elements: <sch:value-of select="count(lom:kind)" />.
</sch:assert>
<sch:assert test="count(lom:resource) = 0 or count(lom:resource) = 1">
[RULE for Local Attribute 2] Invalid number of "resource" elements: <sch:value-of select="count(lom:resource)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Requirement.Type">
<sch:title>[RULESET] For the Requirement.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:technical/lom:requirement">
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Resource.Type">
<sch:title>[RULESET] For the Resource.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:relation/lom:resource">
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Rights.Type">
<sch:title>[RULESET] For the Rights.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:rights">
<sch:assert test="count(lom:cost) = 0 or count(lom:cost) = 1">
[RULE for Local Attribute 1] Invalid number of "cost" elements: <sch:value-of select="count(lom:cost)" />.
</sch:assert>
<sch:assert test="count(lom:copyrightAndOtherRestrictions) = 0 or count(lom:copyrightAndOtherRestrictions) = 1">
[RULE for Local Attribute 2] Invalid number of "copyrightAndOtherRestrictions" elements: <sch:value-of select="count(lom:copyrightAndOtherRestrictions)" />.
</sch:assert>
<sch:assert test="count(lom:description) = 0 or count(lom:description) = 1">
[RULE for Local Attribute 3] Invalid number of "description" elements: <sch:value-of select="count(lom:description)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="RoleLifeCycle.Type">
<sch:title>[RULESET] For the RoleLifeCycle.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:lifeCycle/lom:contribute/lom:role">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="RoleMetaMetadata.Type">
<sch:title>[RULESET] For the RoleMetaMetadata.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:metaMetadata/lom:contribute/lom:role">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="SemanticDensity.Type">
<sch:title>[RULESET] For the SemanticDensity.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:educational/lom:semanticDensity">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Status.Type">
<sch:title>[RULESET] For the Status.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:lifeCycle/lom:status">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Structure.Type">
<sch:title>[RULESET] For the Structure.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:general/lom:structure">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Taxon.Type">
<sch:title>[RULESET] For the Taxon.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:classification/lom:taxonPath/lom:taxon">
<sch:assert test="count(lom:id) = 0 or count(lom:id) = 1">
[RULE for Local Attribute 1] Invalid number of "id" elements: <sch:value-of select="count(lom:id)" />.
</sch:assert>
<sch:assert test="count(lom:entry) = 0 or count(lom:entry) = 1">
[RULE for Local Attribute 2] Invalid number of "entry" elements: <sch:value-of select="count(lom:entry)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="TaxonPath.Type">
<sch:title>[RULESET] For the TaxonPath.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:classification/lom:taxonPath">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Technical.Type">
<sch:title>[RULESET] For the Technical.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:technical">
<sch:assert test="count(lom:size) = 0 or count(lom:size) = 1">
[RULE for Local Attribute 2] Invalid number of "size" elements: <sch:value-of select="count(lom:size)" />.
</sch:assert>
<sch:assert test="count(lom:installationRemarks) = 0 or count(lom:installationRemarks) = 1">
[RULE for Local Attribute 5] Invalid number of "installationRemarks" elements: <sch:value-of select="count(lom:installationRemarks)" />.
</sch:assert>
<sch:assert test="count(lom:otherPlatformRequirements) = 0 or count(lom:otherPlatformRequirements) = 1">
[RULE for Local Attribute 6] Invalid number of "otherPlatformRequirements" elements: <sch:value-of select="count(lom:otherPlatformRequirements)" />.
</sch:assert>
<sch:assert test="count(lom:duration) = 0 or count(lom:duration) = 1">
[RULE for Local Attribute 7] Invalid number of "duration" elements: <sch:value-of select="count(lom:duration)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
<!-- RULESET ******************************************************************* -->
<sch:pattern abstract="false" id="Type.Type">
<sch:title>[RULESET] For the Type.Type complexType.</sch:title>
<sch:rule abstract="false" context="lom:lom/lom:technical/lom:requirement/lom:orComposite/lom:type">
<sch:assert test="count(lom:source) = 0 or count(lom:source) = 1">
[RULE for Local Attribute 1] Invalid number of "source" elements: <sch:value-of select="count(lom:source)" />.
</sch:assert>
<sch:assert test="count(lom:value) = 0 or count(lom:value) = 1">
[RULE for Local Attribute 2] Invalid number of "value" elements: <sch:value-of select="count(lom:value)" />.
</sch:assert>
</sch:rule>
</sch:pattern>
<!-- *************************************************************************** -->
</xs:appinfo>
</xs:annotation>
<!-- Generate Global Attributes (non-assigned) ******************************************************** -->
<!-- ================================================================================================== -->
<!-- Generate Global Attributes *********************************************************************** -->
<!-- ================================================================================================== -->
<!-- Generate Global List Types *********************************************************************** -->
<!-- ================================================================================================== -->
<!-- Generate Namespaced extension Group ************************************************************* -->
<xs:group name="grpLax.any">
<xs:annotation>
<xs:documentation>
Any namespaced element from any namespace may be included within an "any" element.
The namespace for the imported element must be defined in the instance, and the schema must be imported.
The extension has a definition of "lax" i.e. they can reuse elements from the target namespace.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:any namespace = "##other" processContents = "lax" minOccurs = "0" maxOccurs = "unbounded" />
</xs:sequence>
</xs:group>
<!-- ================================================================================================== -->
<!-- Generate Special DataTypes ********************************************************************** -->
<!-- ================================================================================================== -->
<!-- Generate the enumerated simpleType declarations ************************************************** -->
<!-- ================================================================================================== -->
<!-- Generate the simpleType elements based on IMS data-types (Parameter) ***************************** -->
<!-- ================================================================================================== -->
<!-- Generate the simpleType elements based on IMS data-types (Derived) ******************************* -->
<!-- ================================================================================================== -->
<!-- Generate the simpleType elements based on IMS data-types (Union) ********************************* -->
<!-- ================================================================================================== -->
<!-- Generate the simpleType elements based on IMS data-types (Complex) ******************************* -->
<!-- ================================================================================================== -->
<!-- Generate the derived data-type elements based upon simpleType ************************************ -->
<!-- ================================================================================================== -->
<!-- Generate the derived data-type elements based upon derived simpleType **************************** -->
<!-- ================================================================================================== -->
<!-- Generate the ComplexTypes ************************************************************************ -->
<xs:complexType name="AggregationLevel.Type" abstract="false" mixed="false">
<xs:annotation>
<xs:documentation source="documentation">
The AggregationLevel complexType is the container for the information about the
functional granularity of this learning object.
</xs:documentation>
</xs:annotation>
<xs:choice minOccurs = "0" maxOccurs = "unbounded">
<xs:element name="source" type="CharacterString.Type" default="LOMv1.0" minOccurs="0" maxOccurs="1" />
<xs:element name="value" type="CharacterString.Type" minOccurs="0" maxOccurs="1" />
<xs:group ref="grpLax.any" />
</xs:choice>
</xs:complexType>
<xs:complexType name="Annotation.Type" abstract="false" mixed="false">
<xs:annotation>
<xs:documentation source="documentation">
The Annotation complexType is the container for comments on the educational use of this learning object,
and information on when and by whom the comments were created. This category enables educators to share their
assessements of learning objects suggestions for use, etc.
</xs:documentation>
</xs:annotation>
<xs:choice minOccurs = "0" maxOccurs = "unbounded">
<xs:element name="entity" type="CharacterString.Type" minOccurs="0" maxOccurs="1" />