| 1 |
<?xml version="1.0" encoding="ISO-8859-1" ?> |
|---|
| 2 |
<xs:schema version="1.0" xml:lang="en" |
|---|
| 3 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
|---|
| 4 |
targetNamespace="http://www.annodex.org/cmml4.0" |
|---|
| 5 |
xmlns="http://www.annodex.org/cmml4.0" |
|---|
| 6 |
xmlns:html="http://www.w3.org/1999/xhtml" |
|---|
| 7 |
elementFormDefault="qualified"> |
|---|
| 8 |
|
|---|
| 9 |
<xs:annotation> |
|---|
| 10 |
<xs:documentation> |
|---|
| 11 |
Continuous Media Markup Language CMML version 4.0 in XML Schema |
|---|
| 12 |
|
|---|
| 13 |
CMML is a language to describe a timed text track, i.e. a timed text codec. |
|---|
| 14 |
|
|---|
| 15 |
Namespace = http://www.annodex.org/cmml4.0 |
|---|
| 16 |
XHTML1 can be found here: http://www.w3.org/TR/xhtml1-schema/ |
|---|
| 17 |
|
|---|
| 18 |
For further information, see: http://www.annodex.net/ |
|---|
| 19 |
|
|---|
| 20 |
Copyright (c) 2008- Annodex Association, Xiph.Org. |
|---|
| 21 |
All Rights Reserved. |
|---|
| 22 |
|
|---|
| 23 |
$Revision: 4.0 $ |
|---|
| 24 |
$Date$ |
|---|
| 25 |
$Id: cmml_4_0.xsd 2008/02/01 13:00:00 ginger $ |
|---|
| 26 |
</xs:documentation> |
|---|
| 27 |
</xs:annotation> |
|---|
| 28 |
|
|---|
| 29 |
<xs:import namespace="http://www.w3.org/1999/xhtml" |
|---|
| 30 |
schemaLocation="http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd"/> |
|---|
| 31 |
|
|---|
| 32 |
<xs:annotation> |
|---|
| 33 |
<xs:documentation> |
|---|
| 34 |
================== Simple Types ==================================== |
|---|
| 35 |
</xs:documentation> |
|---|
| 36 |
</xs:annotation> |
|---|
| 37 |
|
|---|
| 38 |
<xs:annotation> |
|---|
| 39 |
<xs:documentation> |
|---|
| 40 |
Simple Types in use in this XML schema and inherited from xhtml: |
|---|
| 41 |
html:ContentType |
|---|
| 42 |
html:LinkTypes |
|---|
| 43 |
html:MediaDesc |
|---|
| 44 |
html:Text |
|---|
| 45 |
html:URI |
|---|
| 46 |
html:LanguageCode |
|---|
| 47 |
html:FrameTarget |
|---|
| 48 |
html:Length |
|---|
| 49 |
html:style |
|---|
| 50 |
html:meta |
|---|
| 51 |
html:link |
|---|
| 52 |
html:block |
|---|
| 53 |
</xs:documentation> |
|---|
| 54 |
</xs:annotation> |
|---|
| 55 |
|
|---|
| 56 |
<xs:simpleType name="TTextType"> |
|---|
| 57 |
<xs:annotation> |
|---|
| 58 |
<xs:documentation> |
|---|
| 59 |
timed text types, e.g. closed-caption, annotation, subtitle, transcript, ticker |
|---|
| 60 |
</xs:documentation> |
|---|
| 61 |
</xs:annotation> |
|---|
| 62 |
<xs:restriction base="xs:string"/> |
|---|
| 63 |
</xs:simpleType> |
|---|
| 64 |
|
|---|
| 65 |
<xs:simpleType name="Timestamp"> |
|---|
| 66 |
<xs:annotation> |
|---|
| 67 |
<xs:documentation> |
|---|
| 68 |
timestamps similar to [RFC2326] |
|---|
| 69 |
"smpte-24:" SMPTE time with a 24 fps basis |
|---|
| 70 |
"smpte-24-drop:" SMPTE time with a 24/1.001 fps basis |
|---|
| 71 |
"smpte-25:" SMPTE time with a 25 fps basis |
|---|
| 72 |
"smpte-30:" SMPTE time with a 30 fps basis |
|---|
| 73 |
"smpte-30-drop:" SMPTE time with a 30/1.001 fps basis |
|---|
| 74 |
"smpte-50:" SMPTE time with a 50 fps basis |
|---|
| 75 |
"smpte-60:" SMPTE time with a 60 fps basis |
|---|
| 76 |
"smpte-60-drop:" SMPTE time with a 60/1.001 fps basis |
|---|
| 77 |
"npt:" npt-time |
|---|
| 78 |
</xs:documentation> |
|---|
| 79 |
</xs:annotation> |
|---|
| 80 |
<xs:restriction base="xs:string" /> |
|---|
| 81 |
</xs:simpleType> |
|---|
| 82 |
|
|---|
| 83 |
<xs:annotation> |
|---|
| 84 |
<xs:documentation> |
|---|
| 85 |
=================== Generic Attributes =============================== |
|---|
| 86 |
</xs:documentation> |
|---|
| 87 |
</xs:annotation> |
|---|
| 88 |
|
|---|
| 89 |
<xs:annotation> |
|---|
| 90 |
<xs:documentation> |
|---|
| 91 |
attribute groups in use in this XML schema and inherited from xhtml: |
|---|
| 92 |
html:coreattrs |
|---|
| 93 |
html:i18n |
|---|
| 94 |
html:attrs |
|---|
| 95 |
</xs:documentation> |
|---|
| 96 |
</xs:annotation> |
|---|
| 97 |
|
|---|
| 98 |
<xs:annotation> |
|---|
| 99 |
<xs:documentation> |
|---|
| 100 |
=================== Document Structure =============================== |
|---|
| 101 |
</xs:documentation> |
|---|
| 102 |
</xs:annotation> |
|---|
| 103 |
|
|---|
| 104 |
<xs:annotation> |
|---|
| 105 |
<xs:documentation> |
|---|
| 106 |
=================== Root Element =============================== |
|---|
| 107 |
cmml tag containing sequence of one head and n clip tags |
|---|
| 108 |
i18n = the default language for the whole document including |
|---|
| 109 |
the id tag of the cmml element |
|---|
| 110 |
role = describes what type of text track this CMML file represents, |
|---|
| 111 |
such as e.g. closed-caption, annotation, subtitle, transcript, |
|---|
| 112 |
ticker |
|---|
| 113 |
basetime = time stamp offset from which to calculate the start and end |
|---|
| 114 |
times of the clip tags; allows to synchronise with a media |
|---|
| 115 |
file that does not start at time offset 0 |
|---|
| 116 |
</xs:documentation> |
|---|
| 117 |
</xs:annotation> |
|---|
| 118 |
|
|---|
| 119 |
<xs:element name="cmml"> |
|---|
| 120 |
<xs:complexType> |
|---|
| 121 |
<xs:sequence> |
|---|
| 122 |
<xs:element ref="head"/> |
|---|
| 123 |
<xs:element minOccurs="0" maxOccurs="unbounded" ref="clip"/> |
|---|
| 124 |
</xs:sequence> |
|---|
| 125 |
<xs:attributeGroup ref="html:i18n"/> |
|---|
| 126 |
<xs:attribute name="role" type="TTextType"/> |
|---|
| 127 |
<xs:attribute name="id" type="xs:ID"/> |
|---|
| 128 |
<xs:attribute name="basetime" type="Timestamp" default="0"/> |
|---|
| 129 |
</xs:complexType> |
|---|
| 130 |
</xs:element> |
|---|
| 131 |
|
|---|
| 132 |
<xs:annotation> |
|---|
| 133 |
<xs:documentation> |
|---|
| 134 |
=================== Document Head =============================== |
|---|
| 135 |
head tag containing description of a specific timed text track |
|---|
| 136 |
i18n = the base language of the head's attribute values and text |
|---|
| 137 |
content |
|---|
| 138 |
profile = space-separated list of URIs to locate meta tag schemes |
|---|
| 139 |
</xs:documentation> |
|---|
| 140 |
</xs:annotation> |
|---|
| 141 |
|
|---|
| 142 |
<!-- content model is not quite right yet --> |
|---|
| 143 |
<xs:element name="head"> |
|---|
| 144 |
<xs:annotation> |
|---|
| 145 |
<xs:documentation> |
|---|
| 146 |
Title is the title of the media file |
|---|
| 147 |
Img is an optional representative image for the full media file |
|---|
| 148 |
Base is an optional base URL for the full media file |
|---|
| 149 |
Style is an optional internal style sheet for the document |
|---|
| 150 |
Meta is a collection of meta tags for the document |
|---|
| 151 |
Link points to related documents |
|---|
| 152 |
</xs:documentation> |
|---|
| 153 |
</xs:annotation> |
|---|
| 154 |
<xs:complexType> |
|---|
| 155 |
<xs:all minOccurs="0"> |
|---|
| 156 |
<xs:element ref="html:title" /> |
|---|
| 157 |
<xs:element ref="img" /> |
|---|
| 158 |
<xs:element ref="base" /> |
|---|
| 159 |
</xs:all> |
|---|
| 160 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
|---|
| 161 |
<xs:element ref="html:style"/> |
|---|
| 162 |
<xs:element ref="html:meta"/> |
|---|
| 163 |
<xs:element ref="html:link"/> |
|---|
| 164 |
</xs:choice> |
|---|
| 165 |
<xs:attributeGroup ref="html:i18n"/> |
|---|
| 166 |
<xs:attribute name="id" type="xs:ID"/> |
|---|
| 167 |
<xs:attribute name="profile" type="html:URI"/> |
|---|
| 168 |
</xs:complexType> |
|---|
| 169 |
</xs:element> |
|---|
| 170 |
|
|---|
| 171 |
<xs:annotation> |
|---|
| 172 |
<xs:documentation> |
|---|
| 173 |
=================== Img =========================================== |
|---|
| 174 |
To avoid accessibility problems for people who aren't |
|---|
| 175 |
able to see the image, you should provide a text |
|---|
| 176 |
description using the alt and longdesc attributes. |
|---|
| 177 |
attrs = the language of the image's attribute values; |
|---|
| 178 |
the stylesheet class attribute; a short title |
|---|
| 179 |
representing the image (e.g. in tooltips) |
|---|
| 180 |
src = reference to the image |
|---|
| 181 |
alt = alternative text for the image (accessibility) |
|---|
| 182 |
</xs:documentation> |
|---|
| 183 |
</xs:annotation> |
|---|
| 184 |
|
|---|
| 185 |
<xs:element name="img"> |
|---|
| 186 |
<xs:complexType> |
|---|
| 187 |
<xs:attributeGroup ref="attrs"/> |
|---|
| 188 |
<xs:attribute name="src" use="required" type="URI"/> |
|---|
| 189 |
<xs:attribute name="alt" use="required" type="Text"/> |
|---|
| 190 |
<xs:attribute name="longdesc" type="html:URI"/> |
|---|
| 191 |
<xs:attribute name="height" type="html:Length"/> |
|---|
| 192 |
<xs:attribute name="width" type="html:Length"/> |
|---|
| 193 |
</xs:complexType> |
|---|
| 194 |
</xs:element> |
|---|
| 195 |
|
|---|
| 196 |
<xs:annotation> |
|---|
| 197 |
<xs:documentation> |
|---|
| 198 |
=================== Base URI =============================== |
|---|
| 199 |
base URI of the document (empty content) |
|---|
| 200 |
i18n = the language of the title text |
|---|
| 201 |
href = URI associated with the document; all relative URI references |
|---|
| 202 |
get interpreted relative to this base --> |
|---|
| 203 |
</xs:documentation> |
|---|
| 204 |
</xs:annotation> |
|---|
| 205 |
|
|---|
| 206 |
<xs:element name="base"> |
|---|
| 207 |
<xs:annotation> |
|---|
| 208 |
<xs:documentation> |
|---|
| 209 |
(internationalisation inherited from the parent head tag) |
|---|
| 210 |
</xs:documentation> |
|---|
| 211 |
</xs:annotation> |
|---|
| 212 |
<xs:complexType> |
|---|
| 213 |
<xs:attribute name="id" type="xs:ID"/> |
|---|
| 214 |
<xs:attribute name="href" type="html:URI"/> |
|---|
| 215 |
</xs:complexType> |
|---|
| 216 |
</xs:element> |
|---|
| 217 |
|
|---|
| 218 |
<xs:annotation> |
|---|
| 219 |
<xs:documentation> |
|---|
| 220 |
=================== Clip Elements =============================== |
|---|
| 221 |
Clip tag containing information for a specific fragment |
|---|
| 222 |
attrs = the base language of the clip's attribute values and |
|---|
| 223 |
of its content elements; the stylesheet class attribute; |
|---|
| 224 |
a short title representing the clip (e.g. in tooltips) |
|---|
| 225 |
track = defines different sets of clip tags; clip tags of same |
|---|
| 226 |
type cannot overlap temporally |
|---|
| 227 |
start = specifies the start time of the clip; specified in |
|---|
| 228 |
time relative to the basetime of the header |
|---|
| 229 |
[NOT INCLUDED IN OGG DOCUMENT] |
|---|
| 230 |
end = specifies the end time of the clip; specified in |
|---|
| 231 |
time relative to the basetime of the header |
|---|
| 232 |
[NOT INCLUDED IN OGG DOCUMENT] |
|---|
| 233 |
</xs:documentation> |
|---|
| 234 |
</xs:annotation> |
|---|
| 235 |
|
|---|
| 236 |
<!-- content model is not quite right yet --> |
|---|
| 237 |
<xs:element name="clip"> |
|---|
| 238 |
<xs:complexType> |
|---|
| 239 |
<xs:all> |
|---|
| 240 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
|---|
| 241 |
<xs:element ref="html:meta"/> |
|---|
| 242 |
<xs:element ref="html:style"/> |
|---|
| 243 |
</xs:choice> |
|---|
| 244 |
<xs:element ref="a" minOccurs="0" maxOccurs="1"/> |
|---|
| 245 |
<xs:element ref="img" minOccurs="0" maxOccurs="1"/> |
|---|
| 246 |
<xs:element ref="html:body" minOccurs="0" maxOccurs="1"/> |
|---|
| 247 |
</xs:all> |
|---|
| 248 |
<xs:attributeGroup ref="html:attrs"/> |
|---|
| 249 |
<xs:attribute name="start" type="Timestamp"/> |
|---|
| 250 |
<xs:attribute name="end" type="Timestamp"/> |
|---|
| 251 |
</xs:complexType> |
|---|
| 252 |
</xs:element> |
|---|
| 253 |
|
|---|
| 254 |
|
|---|
| 255 |
<xs:annotation> |
|---|
| 256 |
<xs:documentation> |
|---|
| 257 |
================== The Anchor Element ================================ |
|---|
| 258 |
A tag containing information for a specific clip |
|---|
| 259 |
attrs = the base language of the clip's attribute values and |
|---|
| 260 |
of its content elements; the stylesheet class attribute; |
|---|
| 261 |
a short title representing the anchor (e.g. in tooltips) |
|---|
| 262 |
href = specifies the location of a Web resource, thus defining a |
|---|
| 263 |
link between the current element (the source anchor) and the |
|---|
| 264 |
destination anchor given by this attribute |
|---|
| 265 |
rel = Specifies the relationship between the current document and |
|---|
| 266 |
the target URL |
|---|
| 267 |
rev = Specifies the relationship between the target URL and the |
|---|
| 268 |
current document |
|---|
| 269 |
</xs:documentation> |
|---|
| 270 |
</xs:annotation> |
|---|
| 271 |
|
|---|
| 272 |
<xs:element name="a"> |
|---|
| 273 |
<xs:annotation> |
|---|
| 274 |
<xs:documentation> |
|---|
| 275 |
a tag contains anchor text being a textual description of the link |
|---|
| 276 |
between the current element (the source anchor) and the destination |
|---|
| 277 |
anchor given by the href attribute |
|---|
| 278 |
</xs:documentation> |
|---|
| 279 |
</xs:annotation> |
|---|
| 280 |
<xs:complexType mixed="true"> |
|---|
| 281 |
<xs:attributeGroup ref="attrs"/> |
|---|
| 282 |
<xs:attribute name="target" type="html:FrameTarget"/> |
|---|
| 283 |
<xs:attribute name="charset" type="Charset"/> |
|---|
| 284 |
<xs:attribute name="type" type="html:ContentType"/> |
|---|
| 285 |
<xs:attribute name="name" type="xs:NMTOKEN"/> |
|---|
| 286 |
<xs:attribute name="href" type="html:URI"/> |
|---|
| 287 |
<xs:attribute name="hreflang" type="html:LanguageCode"/> |
|---|
| 288 |
<xs:attribute name="rel" type="html:LinkTypes"/> |
|---|
| 289 |
<xs:attribute name="rev" type="html:LinkTypes"/> |
|---|
| 290 |
<xs:attribute name="shape" default="rect" type="Shape"/> |
|---|
| 291 |
<xs:attribute name="coords" type="Coords"/> |
|---|
| 292 |
</xs:complexType> |
|---|
| 293 |
</xs:element> |
|---|
| 294 |
|
|---|
| 295 |
</xs:schema> |
|---|