1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!-- This file is part of the DITA learning and training content
|
---|
3 | specialization working design. It is a work-in-progress by
|
---|
4 | the OASIS DITA learning and training content specialization
|
---|
5 | sub-committee.-->
|
---|
6 | <!-- (C) Copyright OASIS Open 2007, 2009 -->
|
---|
7 | <!-- All Rights Reserved. -->
|
---|
8 | <!-- ============================================================= -->
|
---|
9 | <!-- HEADER -->
|
---|
10 | <!-- ============================================================= -->
|
---|
11 | <!-- MODULE: DITA learningContent XSD -->
|
---|
12 | <!-- VERSION: 0.1 -->
|
---|
13 | <!-- DATE: May 2007 -->
|
---|
14 | <!-- -->
|
---|
15 | <!-- ============================================================= -->
|
---|
16 | <!-- SYSTEM: Darwin Information Typing Architecture (DITA) -->
|
---|
17 | <!-- -->
|
---|
18 | <!-- PURPOSE: W3C XML Schema to describe DITA Learning Base -->
|
---|
19 | <!-- -->
|
---|
20 | <!-- ORIGINAL CREATION DATE: -->
|
---|
21 | <!-- May 2007 -->
|
---|
22 | <!-- -->
|
---|
23 | <!-- UPDATES: -->
|
---|
24 | <!-- ============================================================= -->
|
---|
25 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
---|
26 | xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" elementFormDefault="qualified"
|
---|
27 | attributeFormDefault="unqualified">
|
---|
28 | <!-- ==================== Import Section ======================= -->
|
---|
29 | <xs:import namespace="http://dita.oasis-open.org/architecture/2005/" schemaLocation="urn:oasis:names:tc:dita:xsd:ditaarch.xsd:1.2"/>
|
---|
30 |
|
---|
31 | <xs:annotation>
|
---|
32 | <xs:appinfo>
|
---|
33 | <dita:domainsModule xmlns:dita="http://dita.oasis-open.org/architecture/2005/">(topic learningBase+learningInteractionBase-d learningContent)</dita:domainsModule>
|
---|
34 | </xs:appinfo>
|
---|
35 | <xs:documentation>
|
---|
36 |
|
---|
37 | </xs:documentation>
|
---|
38 | </xs:annotation>
|
---|
39 |
|
---|
40 | <!-- Base type: univ-atts -->
|
---|
41 | <xs:attributeGroup name="univ-atts-no-importance-learningContent">
|
---|
42 | <xs:attributeGroup ref="id-atts"/>
|
---|
43 | <xs:attributeGroup ref="filter-atts"/>
|
---|
44 | <xs:attribute name="rev" type="xs:string"/>
|
---|
45 | <xs:attribute name="status" type="status-atts.class"/>
|
---|
46 | <xs:attributeGroup ref="localization-atts"/>
|
---|
47 | </xs:attributeGroup>
|
---|
48 | <!-- Base type: importance-atts.class -->
|
---|
49 | <xs:simpleType name="importance-att-nodefault-learningContent.class">
|
---|
50 | <xs:restriction base="importance-atts.class">
|
---|
51 | <xs:enumeration value="optional"/>
|
---|
52 | <xs:enumeration value="required"/>
|
---|
53 | </xs:restriction>
|
---|
54 | </xs:simpleType>
|
---|
55 | <!-- Element declarations for learningContent.mod -->
|
---|
56 | <xs:element name="learningContent">
|
---|
57 | <xs:annotation>
|
---|
58 | <xs:documentation>
|
---|
59 | The <<keyword>learningContent</keyword>> element is the top-level element
|
---|
60 | for learningContent.
|
---|
61 | </xs:documentation>
|
---|
62 | </xs:annotation>
|
---|
63 | <xs:complexType>
|
---|
64 | <xs:complexContent>
|
---|
65 | <xs:extension base="learningContent.class">
|
---|
66 | <xs:attribute ref="class"
|
---|
67 | default="- topic/topic learningBase/learningBase learningContent/learningContent "/>
|
---|
68 | </xs:extension>
|
---|
69 | </xs:complexContent>
|
---|
70 | </xs:complexType>
|
---|
71 | </xs:element>
|
---|
72 | <xs:element name="learningContentbody">
|
---|
73 | <xs:annotation>
|
---|
74 | <xs:documentation>
|
---|
75 | The <<keyword>learningContentbody</keyword>> element is the main body-level
|
---|
76 | element inside a learningContent topic.
|
---|
77 | </xs:documentation>
|
---|
78 | </xs:annotation>
|
---|
79 | <xs:complexType>
|
---|
80 | <xs:complexContent>
|
---|
81 | <xs:extension base="learningContentbody.class">
|
---|
82 | <xs:attribute ref="class"
|
---|
83 | default="- topic/body learningBase/learningBasebody learningContent/learningContentbody "
|
---|
84 | />
|
---|
85 | </xs:extension>
|
---|
86 | </xs:complexContent>
|
---|
87 | </xs:complexType>
|
---|
88 | </xs:element>
|
---|
89 | <!-- Element declarations for task.mod -->
|
---|
90 | <!-- <!ENTITY % learningContent-info-types "(concept | task | reference | topic)*, (learningAssessment)?, (learningSummary)?"> -->
|
---|
91 | <xs:group name="learningContent-info-types">
|
---|
92 | <xs:choice>
|
---|
93 | <xs:group ref="no-topic-nesting"/>
|
---|
94 | <xs:group ref="info-types"/>
|
---|
95 | </xs:choice>
|
---|
96 | </xs:group>
|
---|
97 |
|
---|
98 | <!-- Base type: topic.class -->
|
---|
99 | <xs:complexType name="learningContent.class">
|
---|
100 | <xs:sequence>
|
---|
101 | <xs:group ref="learningContent.content"/>
|
---|
102 | </xs:sequence>
|
---|
103 | <xs:attributeGroup ref="learningContent.attributes"/>
|
---|
104 | </xs:complexType>
|
---|
105 |
|
---|
106 | <xs:group name="learningContent.content">
|
---|
107 | <xs:sequence>
|
---|
108 | <xs:sequence>
|
---|
109 | <xs:group ref="title"/>
|
---|
110 | <xs:group ref="titlealts" minOccurs="0"/>
|
---|
111 | <xs:choice minOccurs="0">
|
---|
112 | <xs:group ref="shortdesc" minOccurs="0"/>
|
---|
113 | <xs:group ref="abstract" minOccurs="0"/>
|
---|
114 | </xs:choice>
|
---|
115 | <xs:group ref="prolog" minOccurs="0"/>
|
---|
116 | <xs:group ref="learningContentbody"/>
|
---|
117 | <xs:group ref="related-links" minOccurs="0"/>
|
---|
118 | <xs:group ref="learningContent-info-types" minOccurs="0" maxOccurs="unbounded"/>
|
---|
119 | </xs:sequence>
|
---|
120 | </xs:sequence>
|
---|
121 | </xs:group>
|
---|
122 |
|
---|
123 | <!-- Base type: body.class -->
|
---|
124 | <xs:complexType name="learningContentbody.class">
|
---|
125 | <xs:sequence>
|
---|
126 | <xs:group ref="learningContentbody.content"/>
|
---|
127 | </xs:sequence>
|
---|
128 | <xs:attributeGroup ref="learningContentbody.attributes"/>
|
---|
129 | </xs:complexType>
|
---|
130 |
|
---|
131 | <xs:group name="learningContentbody.content">
|
---|
132 | <xs:sequence>
|
---|
133 | <xs:sequence>
|
---|
134 | <xs:choice minOccurs="0" maxOccurs="unbounded">
|
---|
135 | <xs:group ref="lcIntro" minOccurs="0"/>
|
---|
136 | <xs:group ref="lcDuration" minOccurs="0"/>
|
---|
137 | <xs:group ref="lcObjectives" minOccurs="0"/>
|
---|
138 | </xs:choice>
|
---|
139 | <xs:group ref="lcChallenge" minOccurs="0"/>
|
---|
140 | <xs:group ref="lcInstruction" minOccurs="0"/>
|
---|
141 | <xs:group ref="section" minOccurs="0" maxOccurs="unbounded"/>
|
---|
142 | </xs:sequence>
|
---|
143 | </xs:sequence>
|
---|
144 | </xs:group>
|
---|
145 |
|
---|
146 | <xs:attributeGroup name="learningContentbody.attributes">
|
---|
147 | <xs:attribute name="outputclass" type="xs:string"/>
|
---|
148 | <xs:attributeGroup ref="univ-atts"/>
|
---|
149 | <xs:attributeGroup ref="global-atts"/>
|
---|
150 | </xs:attributeGroup>
|
---|
151 |
|
---|
152 | <xs:attributeGroup name="learningContent.attributes">
|
---|
153 | <xs:attribute name="id" type="xs:ID" use="required"/>
|
---|
154 | <xs:attributeGroup ref="conref-atts"/>
|
---|
155 | <xs:attributeGroup ref="select-atts"/>
|
---|
156 | <xs:attributeGroup ref="domains-att"/>
|
---|
157 | <xs:attribute ref="ditaarch:DITAArchVersion"/>
|
---|
158 | <xs:attribute name="outputclass" type="xs:string"/>
|
---|
159 | <xs:attributeGroup ref="localization-atts"/>
|
---|
160 | <xs:attributeGroup ref="global-atts"/>
|
---|
161 | </xs:attributeGroup>
|
---|
162 | </xs:schema>
|
---|