### GitLab

- Go to group
- Project
- Activity
- Files
- Commits
- Builds 0
- Graphs
- Milestones
- Issues 0
- Merge Requests 0
- Labels
- Wiki
- Forks
- Network

- psu-canvas-lms
- lib
- canvas
- cc
- xsd
- cccv1p0.xsd

- a few changes for common cartridge validation ...
  76470f75

      IMS fixed their validator to check for the correct
      XSD documents. I made some minor changes so that
      everything will validate

      refs #3396

      Change-Id: I8337c24e7aa979bdeaf4b533bd86667336d1c49f
      Reviewed-on: https://gerrit.instructure.com/3040
      Tested-by: Hudson <hudson@instructure.com>
      Reviewed-by: Brian Palmer <brianp@instructure.com>

  Bracken Mosbacker authored
  2011-04-15 10:27:20 -0600
  Browse Files »

cccv1p0.xsd 19.4 KB
Raw Blame History Permalink
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

    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema targetNamespace="http://canvas.instructure.com/xsd/cccv1p0"
               xmlns="http://canvas.instructure.com/xsd/cccv1p0"
               xmlns:xs="http://www.w3.org/2001/XMLSchema"
               elementFormDefault="qualified">
      <!-- todo: useful comments as documentation ;) -->
      <xs:element name="course">
        <xs:complexType>
          <xs:all minOccurs="0" maxOccurs="1">
            <xs:element name="title" type="xs:string" minOccurs="1"/>
            <xs:element name="course_code" type="xs:string" minOccurs="0"/>
            <xs:element name="start_at" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="conclude_at" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="is_public" type="xs:boolean" minOccurs="0"/>
            <xs:element name="indexed" type="xs:boolean" minOccurs="0"/>
            <xs:element name="publish_grades_immediately" type="xs:boolean" minOccurs="0"/>
            <xs:element name="allow_student_wiki_edits" type="xs:boolean" minOccurs="0"/>
            <xs:element name="allow_student_assignment_edits" type="xs:boolean" minOccurs="0"/>
            <xs:element name="hashtag" type="xs:string" minOccurs="0"/>
            <xs:element name="show_public_context_messages" type="xs:boolean" minOccurs="0"/>
            <xs:element name="allow_student_forum_attachments" type="xs:boolean" minOccurs="0"/>
            <xs:element name="default_wiki_editing_roles" type="xs:string" minOccurs="0"/>
            <xs:element name="allow_student_organized_groups" type="xs:boolean" minOccurs="0"/>
            <xs:element name="show_all_discussion_entries" type="xs:boolean" minOccurs="0"/>
            <xs:element name="open_enrollment" type="xs:boolean" minOccurs="0"/>
            <xs:element name="storage_quota" type="xs:integer" minOccurs="0"/>
            <xs:element name="allow_wiki_comments" type="xs:boolean" minOccurs="0"/>
            <xs:element name="self_enrollment" type="xs:boolean" minOccurs="0"/>
            <xs:element name="turnitin_comments" type="xs:string" minOccurs="0"/>
            <xs:element name="default_view" minOccurs="0">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:enumeration value="feed"/>
                  <xs:enumeration value="wiki"/>
                  <xs:enumeration value="modules"/>
                  <xs:enumeration value="assignments"/>
                  <xs:enumeration value="syllabus"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="license" minOccurs="0">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:enumeration value="private"/>
                  <xs:enumeration value="public_domain"/>
                  <xs:enumeration value="cc_by_nc_nd"/>
                  <xs:enumeration value="cc_by_nc_sa"/>
                  <xs:enumeration value="cc_by_nc"/>
                  <xs:enumeration value="cc_by_nd"/>
                  <xs:enumeration value="cc_by_sa"/>
                  <xs:enumeration value="cc_by"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="group_weighting_scheme" minOccurs="0">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:enumeration value="percent"/>
                  <xs:enumeration value="equal"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:all>
          <xs:attribute name="identifier" type="xs:ID" use="required"/>
        </xs:complexType>
      </xs:element>

      <xs:element name="assignment" type="assignmentType"/>
      <xs:complexType name="assignmentType">
        <xs:all minOccurs="0" maxOccurs="1">
          <xs:element name="title" type="xs:string" minOccurs="1"/>
          <xs:element name="due_at" type="xs:dateTime" minOccurs="0"/>
          <xs:element name="lock_at" type="xs:dateTime" minOccurs="0"/>
          <xs:element name="unlock_at" type="xs:dateTime" minOccurs="0"/>
          <xs:element name="peer_reviews_due_at" type="xs:dateTime" minOccurs="0"/>
          <xs:element name="all_day_date" type="xs:date" minOccurs="0"/>
          <xs:element name="assignment_group_identifierref" type="xs:string" minOccurs="0"/>
          <xs:element name="grading_standard_identifierref" type="xs:string" minOccurs="0"/>
          <xs:element name="rubric_identifierref" type="xs:string" minOccurs="0"/>
          <xs:element name="quiz_identifierref" type="xs:string" minOccurs="0"/>
          <xs:element name="allowed_extensions" type="xs:string" minOccurs="0"/>
          <xs:element name="points_possible" type="xs:float" minOccurs="0"/>
          <xs:element name="min_score" type="xs:float" minOccurs="0"/>
          <xs:element name="max_score" type="xs:float" minOccurs="0"/>
          <xs:element name="mastery_score" type="xs:float" minOccurs="0"/>
          <xs:element name="grading_type" type="xs:string" minOccurs="0"/>
          <xs:element name="all_day" type="xs:boolean" minOccurs="0"/>
          <xs:element name="submission_types" type="xs:string" minOccurs="0"/>
          <xs:element name="position" type="xs:integer" minOccurs="0"/>
          <xs:element name="turnitin_enabled" type="xs:boolean" minOccurs="0"/>
          <xs:element name="peer_review_count" type="xs:integer" minOccurs="0"/>
          <xs:element name="peer_reviews_assigned" type="xs:boolean" minOccurs="0"/>
          <xs:element name="peer_reviews" type="xs:boolean" minOccurs="0"/>
          <xs:element name="automatic_peer_reviews" type="xs:boolean" minOccurs="0"/>
          <xs:element name="anonymous_peer_reviews" type="xs:boolean" minOccurs="0"/>
          <xs:element name="grade_group_students_individually" type="xs:boolean" minOccurs="0"/>
        </xs:all>
        <xs:attribute name="identifier" type="xs:ID" use="required"/>
      </xs:complexType>

      <xs:element name="topicMeta">
        <xs:complexType>
          <xs:all minOccurs="0" maxOccurs="1">
            <xs:element name="topic_id" type="xs:ID" minOccurs="1"/>
            <xs:element name="title" type="xs:string" minOccurs="1"/>
            <xs:element name="assignment" type="assignmentType" minOccurs="0"/>
            <xs:element name="posted_at" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="delayed_post_at" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="position" type="xs:integer" minOccurs="0"/>
            <xs:element name="type" minOccurs="0">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:enumeration value="announcement"/>
                  <xs:enumeration value="topic"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:all>
          <xs:attribute name="identifier" type="xs:ID" use="required"/>
        </xs:complexType>
      </xs:element>

      <xs:element name="modules">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="module" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:all minOccurs="0">
                  <xs:element name="title" type="xs:string" minOccurs="1"/>
                  <xs:element name="position" type="xs:integer" minOccurs="0"/>
                  <xs:element name="start_at" type="xs:dateTime" minOccurs="0"/>
                  <xs:element name="end_at" type="xs:dateTime" minOccurs="0"/>
                  <xs:element name="unlock_at" type="xs:dateTime" minOccurs="0"/>
                  <xs:element name="require_sequential_progress" type="xs:boolean" minOccurs="0"/>

                  <xs:element name="prerequisites" minOccurs="0">
                    <xs:complexType>
                      <xs:sequence minOccurs="0" maxOccurs="unbounded">
                        <xs:element name="prerequisite">
                          <xs:complexType>
                            <xs:all minOccurs="0">
                              <xs:element name="title" type="xs:string" minOccurs="0"/>
                              <xs:element name="identifierref" type="xs:string" minOccurs="0"/>
                            </xs:all>
                            <xs:attribute name="type" type="xs:string" use="required"/>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>

                  <xs:element name="contentTags" minOccurs="0">
                    <xs:complexType>
                      <xs:sequence minOccurs="0" maxOccurs="unbounded">
                        <xs:element name="contentTag">
                          <xs:complexType>
                            <xs:all minOccurs="0">
                              <xs:element name="content_type" type="xs:string" minOccurs="1"/>
                              <xs:element name="identifierref" type="xs:string" minOccurs="0"/>
                              <xs:element name="url" type="xs:string" minOccurs="0"/>
                              <xs:element name="position" type="xs:integer" minOccurs="0"/>
                              <xs:element name="indent" type="xs:integer" minOccurs="0"/>
                            </xs:all>
                            <xs:attribute name="identifier" type="xs:ID" use="required"/>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>

                  <xs:element name="completionRequirements" minOccurs="0">
                    <xs:complexType>
                      <xs:sequence minOccurs="0" maxOccurs="unbounded">
                        <xs:element name="completionRequirement">
                          <xs:complexType>
                            <xs:all minOccurs="0">
                              <xs:element name="identifierref" type="xs:string" minOccurs="1"/>
                              <xs:element name="min_score" type="xs:integer" minOccurs="0"/>
                              <xs:element name="max_score" type="xs:integer" minOccurs="0"/>
                            </xs:all>
                            <xs:attribute name="type" type="xs:string" use="required"/>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:all>
                <xs:attribute name="identifier" type="xs:ID" use="required"/>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

      <xs:element name="externalFeeds">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="externalFeed" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:all minOccurs="0">
                  <xs:element name="url" type="xs:anyURI" minOccurs="1"/>
                  <xs:element name="title" type="xs:string" minOccurs="0"/>
                  <xs:element name="header_match" type="xs:string" minOccurs="0"/>
                  <xs:element name="purpose" minOccurs="0" default="announcements">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:enumeration value="announcements"/>
                        <!--<xs:enumeration value="calendar"/>-->
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="feed_type" minOccurs="1">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:enumeration value="rss/atom"/>
                        <!--<xs:enumeration value="ical"/>-->
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="verbosity" minOccurs="1" default="full">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:enumeration value="full"/>
                        <xs:enumeration value="truncate"/>
                        <xs:enumeration value="link_only"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:all>
                <xs:attribute name="identifier" type="xs:ID" use="required"/>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

      <xs:element name="assignmentGroups">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="assignmentGroup" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:all minOccurs="0">
                  <xs:element name="title" type="xs:string" minOccurs="1"/>
                  <xs:element name="position" type="xs:integer" minOccurs="0"/>
                  <xs:element name="group_weight" type="xs:float" minOccurs="0"/>
                  <xs:element name="rules" minOccurs="0">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="rule" minOccurs="0" maxOccurs="unbounded">
                          <xs:complexType>
                            <xs:all minOccurs="0">
                              <xs:element name="drop_type" minOccurs="1">
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:enumeration value="drop_lowest"/>
                                    <xs:enumeration value="drop_highest"/>
                                    <xs:enumeration value="never_drop"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="identifierref" type="xs:string" minOccurs="0"/>
                              <xs:element name="drop_count" type="xs:integer" minOccurs="0"/>
                            </xs:all>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:all>
                <xs:attribute name="identifier" type="xs:ID" use="required"/>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

      <xs:element name="gradingStandards">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="gradingStandard" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:all minOccurs="0">
                  <xs:element name="title" type="xs:string" minOccurs="0"/>
                  <xs:element name="data" type="xs:string" minOccurs="1"/>
                </xs:all>
                <xs:attribute name="identifier" type="xs:ID" use="required"/>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

      <xs:complexType name="ratingsType">
        <xs:sequence>
          <xs:element name="rating" minOccurs="0" maxOccurs="unbounded">
            <xs:complexType>
              <xs:all minOccurs="0">
                <xs:element name="id" type="xs:string" minOccurs="0"/>
                <xs:element name="description" type="xs:string" minOccurs="1"/>
                <xs:element name="points" type="xs:float" minOccurs="1"/>
                <xs:element name="criterion_id" type="xs:string" minOccurs="0"/>
                <xs:element name="long_description" type="xs:string" minOccurs="0"/>
              </xs:all>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:complexType>

      <xs:element name="learningOutcomes" type="learningOutcomesType"/>
      <xs:complexType name="learningOutcomesType">
        <xs:choice  minOccurs="0" maxOccurs="unbounded">

          <xs:element name="learningOutcome">
            <xs:complexType>
              <xs:all minOccurs="0">
                <xs:element name="title" type="xs:string" minOccurs="0"/>
                <xs:element name="description" type="xs:string" minOccurs="0"/>
                <xs:element name="points_possible" type="xs:float" minOccurs="0"/>
                <xs:element name="mastery_points" type="xs:float" minOccurs="0"/>
                <xs:element name="ratings" type="ratingsType" minOccurs="0"/>
              </xs:all>
              <xs:attribute name="identifier" type="xs:ID" use="required"/>
            </xs:complexType>
          </xs:element>

          <xs:element name="learningOutcomeGroup">
            <xs:complexType>
              <xs:all minOccurs="0">
                <xs:element name="title" type="xs:string" minOccurs="0"/>
                <xs:element name="description" type="xs:string" minOccurs="0"/>
                <xs:element name="learningOutcomes" type="learningOutcomesType" minOccurs="0"/>
              </xs:all>
              <xs:attribute name="identifier" type="xs:ID" use="required"/>
            </xs:complexType>
          </xs:element>

        </xs:choice>
      </xs:complexType>

      <xs:element name="rubrics">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="rubric" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:all minOccurs="0">
                  <xs:element name="title" type="xs:string" minOccurs="0"/>
                  <xs:element name="description" type="xs:string" minOccurs="0"/>
                  <xs:element name="read_only" type="xs:boolean" minOccurs="0"/>
                  <xs:element name="reusable" type="xs:boolean" minOccurs="0"/>
                  <xs:element name="public" type="xs:boolean" minOccurs="0"/>
                  <xs:element name="points_possible" type="xs:float" minOccurs="0"/>
                  <xs:element name="hide_score_total" type="xs:boolean" minOccurs="0"/>
                  <xs:element name="free_form_criterion_comments" type="xs:boolean" minOccurs="0"/>

                  <xs:element name="criteria">
                    <xs:complexType>
                      <xs:sequence minOccurs="0">
                        <xs:element name="criterion" maxOccurs="unbounded">
                          <xs:complexType>
                            <xs:all minOccurs="0">
                              <xs:element name="criterion_id" type="xs:string" minOccurs="0"/>
                              <xs:element name="description" type="xs:string" minOccurs="0"/>
                              <xs:element name="long_description" type="xs:string" minOccurs="0"/>
                              <xs:element name="points" type="xs:float" minOccurs="0"/>
                              <xs:element name="mastery_points" type="xs:float" minOccurs="0"/>
                              <xs:element name="ignore_for_scoring" type="xs:boolean" minOccurs="0"/>
                              <xs:element name="learning_outcome_identifierref" type="xs:string" minOccurs="0"/>
                              <xs:element name="ratings" type="ratingsType" minOccurs="0"/>
                            </xs:all>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>

                </xs:all>
                <xs:attribute name="identifier" type="xs:ID" use="required"/>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

      <xs:element name="externalTools">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="externalTool" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:all minOccurs="0">
                  <xs:element name="title" type="xs:string" minOccurs="0"/>
                  <xs:element name="url" type="xs:anyURI" minOccurs="0"/>
                  <xs:element name="description" type="xs:string" minOccurs="0"/>
                  <xs:element name="domain" type="xs:string" minOccurs="0"/>

                  <xs:element name="privacy_level" minOccurs="1" default="anonymous">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:enumeration value="name_only"/>
                        <xs:enumeration value="public"/>
                        <xs:enumeration value="anonymous"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>

                </xs:all>
                <xs:attribute name="identifier" type="xs:ID" use="required"/>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

    </xs:schema>