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