/usr/share/gupnp-av/didl-lite-v2.xsd is in libgupnp-av-1.0-2 0.12.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:av="urn:schemas-upnp-org:av:av" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:didl-lite="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2-20060531">
<xsd:annotation>
<xsd:documentation xml:lang="en">
DIDL-Lite schema for UPnP A/V ContentDirectory services,
version 2.0.
</xsd:documentation>
</xsd:annotation>
<xsd:import namespace="urn:schemas-upnp-org:metadata-1-0/upnp/" schemaLocation="http://www.upnp.org/schemas/av/upnp.xsd"/>
<xsd:import namespace="urn:schemas-upnp-org:av:av" schemaLocation="http://www.upnp.org/schemas/av/av.xsd"/>
<xsd:import namespace="http://purl.org/dc/elements/1.1/" schemaLocation="http://dublincore.org/schemas/xmls/simpledc20021212.xsd"/>
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
<!--============================================================
This group defines the subset of Dublin Core elements that are
employed in DIDL-Lite.
Included Excluded
___________ ___________
title subject
rights type
description format
date identifier
language source
creator coverage
publisher
contributor
relation
============================================================-->
<xsd:group name="DublinCoreUsedExcluding-title">
<xsd:choice>
<xsd:element ref="dc:contributor"/>
<xsd:element ref="dc:creator"/>
<!-- XXX - JGR
Would like to use an extension of the dc:date element rather than an extension its data type ("dc:elementType").
As it is now, changes to the dc:date element are not propagated to the 'qualifedDate' data type. Also, the
namespace of the <date> element is no longer "dc" but rather "didl-lite" which is not exactly what we want.
<dc:date didl-lite:daylightSaving="STANDARD">datevalue</dc:date>
<xsd:element ref="dc:date"/>
<xsd:element ref="didl-lite:qualifiedDCDate"/>
<xsd:element name="dcDate" type="didl-lite:qualifiedDCDate"/>
-->
<xsd:element ref="dc:date"/>
<xsd:element ref="dc:description"/>
<xsd:element ref="dc:language"/>
<xsd:element ref="dc:publisher"/>
<xsd:element ref="dc:relation"/>
<xsd:element ref="dc:rights"/>
</xsd:choice>
</xsd:group>
<!-- XXX - JGR
<xsd:complexType name="qualifiedDCDate">
<xsd:complexContent>
<xsd:element ref="dc:date">
<xsd:attributeGroup ref="upnp:dateTime.attr.group"/>
</xsd:element>
</xsd:complexContent>
</xsd:complexType>
-->
<xsd:complexType name="qualifiedDCDate">
<xsd:simpleContent>
<xsd:extension base="dc:elementType">
<xsd:attributeGroup ref="upnp:dateTime.attr.group"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<!--============================================================
'DIDL-Lite' is the root element of DIDL-Lite documents.
Attributes:
xml:lang: optional. The 'xml:lang' attribute may optionally be
used to specify the language of text in the DIDL-Lite document.
============================================================-->
<xsd:group name="allowed-under-DIDL-Lite">
<xsd:annotation>
<xsd:documentation>
This group defines the elements allowed under the
DIDL-Lite root
</xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:element name="item" type="didl-lite:item.type"/>
<xsd:element name="container" type="didl-lite:container.type"/>
<xsd:element name="desc" type="didl-lite:desc.type"/>
</xsd:choice>
</xsd:group>
<xsd:element name="DIDL-Lite" type="didl-lite:root.type"/>
<xsd:complexType name="root.type">
<xsd:annotation>
<xsd:documentation>
DIDL-Lite is the root element
</xsd:documentation>
</xsd:annotation>
<xsd:group ref="didl-lite:allowed-under-DIDL-Lite" maxOccurs="unbounded"/>
<xsd:attribute ref="xml:lang"/>
</xsd:complexType>
<!--============================================================
Parts shared by 'container' and 'item' objects.
============================================================-->
<xsd:attributeGroup name="commonAttrs-item-container.group">
<xsd:attribute name="id" type="av:didl-lite_COLON_at_id.vd.type" use="required"/>
<xsd:attribute name="parentID" type="av:didl-lite_COLON_at_id.vd.type" use="required"/>
<xsd:attribute name="restricted" type="xsd:boolean" use="required"/>
<xsd:attribute name="neverPlayable" type="xsd:boolean"/>
</xsd:attributeGroup>
<!--============================================================
A 'container' element may contain any number of
1. Dublin Core,
2. upnp,
3. res,
4. ref,
5. item,
6. container, and
7. desc elements.
In all cases, the first element in container child element sequence
is required to be "dc:title".
The 'upnp:class' must also appear under container.
Each container is required to specify a value for the 'id' and
'parentID' attributes.
Each container is also required to specify a value for the
'restricted' attribute (true, false, 1, 0).
When restricted="true", the ability to change or delete the
Container is restricted.
Other optional container elements are:
'parentID', 'childCount', and 'searchable'.
Other optional attributes are 'childCount' and 'searchable'.
id: type: string use: required
parentID: type: string use: required
restricted: type: string use: required
searchable: type: string use: optional
childCount: type: string use: optional
The equivalent MPEG21 DIDL element is 'CONTAINER'
============================================================-->
<xsd:group name="allowed-under-container">
<xsd:annotation>
<xsd:documentation>
This group defines the elements allowed under the
'container' element
</xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:group ref="upnp:upnpForContainer"/>
<xsd:group ref="didl-lite:DublinCoreUsedExcluding-title"/>
<xsd:element name="desc" type="didl-lite:desc.type"/>
<xsd:element name="item" type="didl-lite:item.type"/>
<xsd:element name="container" type="didl-lite:container.type"/>
<xsd:element name="res" type="didl-lite:res.type"/>
</xsd:choice>
</xsd:group>
<xsd:complexType name="container.type">
<xsd:annotation>
<xsd:documentation>
'container' element may contain any number of
1. Dublin Core,
2. upnp,
3. res,
4. ref,
5 item,
6. container and
7. desc elements.
In all cases, the first element in each container child
element sequence is required to be "dc:title".
A 'upnp:class' element must also appear under container.
container is required to specify a value for the 'id' and
'parentID' attributes.
container is also required to specify a value for the
'restricted' attribute (true, false, 1, 0).
When restricted="true", the ability to change or delete the
container is restricted.
Optional container element attributes are 'childCount', and
'searchable'.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element ref="dc:title"/>
<xsd:group ref="didl-lite:allowed-under-container" minOccurs="0" maxOccurs="unbounded"/>
<xsd:group ref="upnp:class.group"/>
<xsd:group ref="didl-lite:allowed-under-container" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attributeGroup ref="didl-lite:commonAttrs-item-container.group"/>
<xsd:attribute name="searchable" type="xsd:boolean"/>
<xsd:attribute name="childCount" type="xsd:unsignedInt"/>
</xsd:complexType>
<!--============================================================
An 'item' element contains any number of
1. Dublin Core,
2. upnp,
3. res, and
4. desc elements.
In all cases, the first element in each item child element
sequence is required to be "dc:title".
The 'upnp:class' element must also appear under item.
Each item is additionally required to specify a value for the 'id'
attribute. If the item is actually a reference to another item, a
value for 'refID' is specified.
Each item is also required to specify a value for the 'parentID'
Attribute and the 'restricted' attribute (true, false, 1, 0).
When restricted="true", the ability to change or delete the item is
restricted.
Attributes:
Id: type: string use: required
parentID: type: string use: required
refID: type: string use: optional
restricted: type: boolean use: required
The equivalent MPEG21 DIDL element is 'ITEM'.
============================================================-->
<xsd:group name="allowed-under-item">
<xsd:annotation>
<xsd:documentation>
This group defines the elements allowed under the 'item'
Element
</xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:group ref="upnp:upnpForItem"/>
<xsd:group ref="didl-lite:DublinCoreUsedExcluding-title"/>
<xsd:element name="desc" type="didl-lite:desc.type"/>
<xsd:element name="res" type="didl-lite:res.type"/>
</xsd:choice>
</xsd:group>
<xsd:complexType name="item.type">
<xsd:annotation>
<xsd:documentation>
'item' element contains any number of
1. Dublin Core,
2. upnp,
3. res, and
4. desc elements.
In all cases, the first element in each item child element
sequence is required to be "dc:title".
A 'upnp:class' element must also appear under item.
Item is additionally required to specify a value for the
'id' attribute.
If the item is actually a reference to another item,
a value for 'refID' must be specified.
Item is also required to specify a value for the 'parentID'
attribute, and the 'restricted' attribute
(true, false, 1, 0).
When restricted="true", the ability to change or delete the
item is restricted.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element ref="dc:title"/>
<xsd:group ref="didl-lite:allowed-under-item" minOccurs="0" maxOccurs="unbounded"/>
<xsd:group ref="upnp:class.group"/>
<xsd:group ref="didl-lite:allowed-under-item" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attributeGroup ref="didl-lite:commonAttrs-item-container.group"/>
<xsd:attribute name="refID" type="av:didl-lite_COLON_at_id.vd.type"/>
</xsd:complexType>
<!--============================================================
A 'res' element indentifies a resource. A resource is typically
some type of asset, such as a photo, song, video, etc.
A 'res' element contains a URI that identifies the resource.
Attributes:
'importUri' type: anyURI use: optional
The 'importUri' attribute is the optional uri locator for
resource updates.
'protocolInfo' type: string use: required
The 'protocolInfo' attribute is a string that identifies the
streaming or transport protocol for transmitting the resource.
If not present then the content has not yet been fully imported by
the ContentDirectory service and is not yet accessible for playback.
'size' type: unsignedLong use: optional
size, in bytes, of the resource.
'duration' type: string use: optional
The 'duration' attribute identifies the duration of the playback of
the resource, at normal speed.
The format of the duration string is:
H+:MM:SS[.F+], or H+:MM:SS[.F0/F1]
Where:
+H one or more digits to indicate elapsed hours,
MM exactly 2 digits to indicate minutes (00 to 59),
SS exactly 2 digits to indicate seconds (00 to 59),
F+ any number of digits (including no digits) to indicate fractions of seconds,
F0/F1 a fraction, with F0 and F1 at least one digit long,
and F0 < F1.
The string may be preceded by an optional + or - sign, and the
decimal point itself may be omitted if there are no fractional seconds digits.
'bitrate' type: unsignedInt use: optional
The bitrate in bytes/second of the resource.
'sampleFrequency' type: unsignedInt use: optional
The sample frequency of the resource in Hz
'bitsPerSample' type: unsignedInt use: optional
The bits per sample of the resource.
'nrAudioChannels' type: unsignedInt use: optional
Number of audio channels of the resource, e.g. 1 for mono,
2 for stereo, 6 for Dolby surround, etc.
'resolution' type: string use: optional
X*Y resolution of the resource (image or video).
The string pattern is restricted to strings of the form:
[0-9]+x[0-9]+
(one or more digits,'x', followed by one or more digits).
'colorDepth' type: unsignedInt use: optional
The color depth in bits of the resource (image or video).
'protection' type: string use: optional
Some statement of the protection type of the resource
(not standardized).
The equivalent MPEG21 DIDL element is 'RESOURCE'.
============================================================-->
<!--=============================-=============================-->
<!-- Resource Encoding Characteristics Properties -->
<!--=============================-=============================-->
<xsd:complexType name="res.type" mixed="true">
<xsd:annotation>
<xsd:documentation>
A 'res' element indentifies a resource.
A resource is typically some type of binary asset,
such as a photo, song, video, etc.
A 'res' element contains a URI that identifies the resource
</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="xsd:anyURI">
<xsd:attribute name="importUri" type="xsd:anyURI"/>
<xsd:attribute name="protocolInfo" type="xsd:string" use="required"/>
<xsd:attribute name="size" type="xsd:unsignedLong"/>
<xsd:attribute name="duration" type="av:duration.cds1"/>
<xsd:attribute name="bitrate" type="xsd:unsignedInt"/>
<xsd:attribute name="sampleFrequency" type="xsd:unsignedInt"/>
<xsd:attribute name="bitsPerSample" type="xsd:unsignedInt"/>
<xsd:attribute name="nrAudioChannels" type="xsd:unsignedInt"/>
<xsd:attribute name="resolution">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[0-9]+x[0-9]+"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="colorDepth" type="xsd:unsignedInt"/>
<xsd:attribute name="tspec" type="av:string.len.0_256"/>
<xsd:attribute name="allowedUse" type="av:csv.1_.allowedUse"/>
<xsd:attribute name="validityStart" type="av:dateTime"/>
<xsd:attribute name="validityEnd" type="av:dateTime"/>
<xsd:attribute name="remainingTime" type="av:unsignedDuration"/>
<xsd:attribute name="updateCount" type="xsd:unsignedInt"/>
<xsd:attribute name="usageInfo" type="xsd:string"/>
<xsd:attribute name="rightsInfoURI" type="xsd:anyURI"/>
<xsd:attribute name="contentInfoURI" type="xsd:anyURI"/>
<xsd:attribute name="recordQuality" type="av:csv.1_.colonDelimPairs"/>
<xsd:attribute name="protection" type="xsd:string"/>
<xsd:attributeGroup ref="upnp:dateTime.attr.group"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<!--============================================================
A 'desc' element identifies a descriptor.
A descriptor is intended to contain a block of metadata.
The bio of a music artist is an example use of a 'desc' element.
A 'desc' element may possess child elements from any namespace
except the DIDL-Lite namespace.
Values for 'id' and 'nameSpace' are required.
An optional 'type' attribute allows designation of the metadata
type, e.g. 'ratings', 'rights', etc.
Attributes:
'id' type: string use: required
'type' type: string use: optional
'nameSpace' type: uri use: required
The equivalent MPEG21 DIDL element is 'DESCRIPTOR'.
============================================================-->
<xsd:complexType name="desc.type">
<xsd:annotation>
<xsd:documentation>
A'desc' element identifies a descriptor.
A descriptor is intended to contain a block of metadata.
The bio of a music artist is an example use of 'desc'.
A 'desc' element may possess child elements from any
namespace except the DIDL-Lite namespace.
A value for 'id' is required.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:any namespace="##other"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string" use="required"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="nameSpace" type="xsd:anyURI" use="required"/>
</xsd:complexType>
<!--===================================================================-->
<!-- -->
<!-- Vendor-Defined Component Datatypes -->
<!-- -->
<!--===================================================================-->
</xsd:schema>
|