|
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> |
| 2 | +<xsd:schema xmlns="http://moocip.de/schema/courseware/" |
| 3 | + xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 4 | + targetNamespace="http://moocip.de/schema/courseware/" |
| 5 | + elementFormDefault="qualified"> |
| 6 | + |
| 7 | + <xsd:element name="courseware"> |
| 8 | + <xsd:complexType> |
| 9 | + <xsd:choice minOccurs="0" maxOccurs="unbounded"> |
| 10 | + <xsd:element name="chapter" type="chapter" /> |
| 11 | + <xsd:element name="file" type="file" /> |
| 12 | + </xsd:choice> |
| 13 | + <xsd:attribute name="title" type="xsd:string" use="required" /> |
| 14 | + <xsd:attribute name="progression" type="xsd:string" /> |
| 15 | + </xsd:complexType> |
| 16 | + </xsd:element> |
| 17 | + |
| 18 | + <xsd:complexType name="chapter"> |
| 19 | + <xsd:sequence> |
| 20 | + <xsd:choice minOccurs="0" maxOccurs="1"> |
| 21 | + <xsd:element name="asidesection" type="asidesection" /> |
| 22 | + </xsd:choice> |
| 23 | + <xsd:choice minOccurs="0" maxOccurs="unbounded"> |
| 24 | + <xsd:element name="subchapter" type="subchapter" /> |
| 25 | + </xsd:choice> |
| 26 | + </xsd:sequence> |
| 27 | + <xsd:attribute name="title" type="xsd:string" use="required" /> |
| 28 | + </xsd:complexType> |
| 29 | + |
| 30 | + <xsd:complexType name="subchapter"> |
| 31 | + <xsd:sequence> |
| 32 | + <xsd:choice minOccurs="0" maxOccurs="1"> |
| 33 | + <xsd:element name="asidesection" type="asidesection" /> |
| 34 | + </xsd:choice> |
| 35 | + <xsd:choice minOccurs="0" maxOccurs="unbounded"> |
| 36 | + <xsd:element name="section" type="section" /> |
| 37 | + </xsd:choice> |
| 38 | + </xsd:sequence> |
| 39 | + <xsd:attribute name="title" type="xsd:string" use="required" /> |
| 40 | + </xsd:complexType> |
| 41 | + |
| 42 | + <xsd:complexType name="section"> |
| 43 | + <xsd:choice minOccurs="0" maxOccurs="unbounded"> |
| 44 | + <xsd:element name="block" type="block" /> |
| 45 | + </xsd:choice> |
| 46 | + <xsd:attribute name="title" type="xsd:string" use="required" /> |
| 47 | + <xsd:attribute name="icon" type="xsd:string" use="required" /> |
| 48 | + </xsd:complexType> |
| 49 | + |
| 50 | + <xsd:complexType name="asidesection"> |
| 51 | + <xsd:choice minOccurs="0" maxOccurs="unbounded"> |
| 52 | + <xsd:element name="block" type="block" /> |
| 53 | + </xsd:choice> |
| 54 | + <xsd:attribute name="title" type="xsd:string" use="required" /> |
| 55 | + <xsd:attribute name="icon" type="xsd:string" use="required" /> |
| 56 | + </xsd:complexType> |
| 57 | + |
| 58 | + <xsd:complexType name="block" mixed="true"> |
| 59 | + <xsd:choice minOccurs="0" maxOccurs="unbounded"> |
| 60 | + <xsd:any /> |
| 61 | + </xsd:choice> |
| 62 | + <xsd:attribute name="title" type="xsd:string" use="required" /> |
| 63 | + <xsd:attribute name="type" type="xsd:string" use="required" /> |
| 64 | + <xsd:attribute name="sub-type" type="xsd:string" /> |
| 65 | + <xsd:attribute name="uuid" type="xsd:string" /> |
| 66 | + <xsd:anyAttribute /> |
| 67 | + </xsd:complexType> |
| 68 | + |
| 69 | + <xsd:complexType name="file"> |
| 70 | + <xsd:simpleContent> |
| 71 | + <xsd:extension base="xsd:string"> |
| 72 | + <xsd:attribute name="id" type="xsd:string" use="required" /> |
| 73 | + <xsd:attribute name="name" type="xsd:string" use="required" /> |
| 74 | + <xsd:attribute name="filename"> |
| 75 | + <xsd:simpleType> |
| 76 | + <xsd:restriction base="xsd:string"> |
| 77 | + <xsd:minLength value="1"/> |
| 78 | + </xsd:restriction> |
| 79 | + </xsd:simpleType> |
| 80 | + </xsd:attribute> |
| 81 | + <xsd:attribute name="filesize" type="xsd:integer" use="required" /> |
| 82 | + <xsd:attribute name="url" type="xsd:string" /> |
| 83 | + </xsd:extension> |
| 84 | + </xsd:simpleContent> |
| 85 | + </xsd:complexType> |
| 86 | +</xsd:schema> |
0 commit comments