Please refer to the errata for this document, which may include some normative corrections.
This document is also available in a non-normative format: single HTML file.
See also translations.
Copyright © 2008 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
This document specifies the third version of the Synchronized Multimedia Integration Language (SMIL, pronounced "smile"). SMIL 3.0 has the following design goals:
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
This document has been reviewed by W3C Members, by software developers, and by other W3C groups and interested parties, and is endorsed by the Director as a W3C Recommendation. It is a stable document and may be used as reference material or cited from another document. W3C's role in making the Recommendation is to draw attention to the specification and to promote its widespread deployment. This enhances the functionality and interoperability of the Web.
This SMIL 3.0 edition is a new version, it extends the functionalities contained in SMIL 2.1 [SMIL21], incorporating new features useful within the industry.
This SMIL3.0 W3C Recommendation supersedes the 13 December 2005 SMIL 21 Recommendation [SMIL21].
The SMIL 3.0 test suite along with an implementation report are publicly released and are intended solely to be used as proof of SMIL 3.0 implementability. It is only a snapshot of the actual implementation behaviors at one moment of time, as these implementations may not be immediately available to the public. The interoperability data is not intended to be used for assessing or grading the performance of any individual implementation.
This document has been produced by the SYMM Working Group as part of the W3C Synchronized Multimedia Activity, following the procedures set out for the W3C Process. The goals of the SYMM Working Group are discussed in the SYMM Working Group Charter. The authors of this document are the SYMM Working Group members. Different parts of the document have different editors.
Please report errors in this document to www-smil@w3.org - (public archives) including the prefix '[SMIL30 REC]' in the subject line.
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
This section is informative.
This document specifies the third version of the Synchronized Multimedia Integration Language (SMIL, pronounced "smile"). SMIL 3.0 has the following design goals:
SMIL 3.0 is defined as a set of markup modules, which define the semantics and an XML syntax for certain areas of SMIL functionality.
This section is informative.
This specification is structured as a set of Chapters, each defining one or more modules:
This specification also defines five Profiles that are built using the above SMIL 3.0 modules.
This section is informative.
SMIL 3.0 is a new version. It is built on top of SMIL 2.1.
A large number of SMIL 2.1 Modules [SMIL21-modules] remain the same in SMIL
3.0.
SMIL 3.0 introduces new SMIL 3.0 Modules with extended functionalities.
SMIL 3.0 also defines three new profiles that are built using the SMIL 3.0 modules specified in this specification.
If this specification is approved as a W3C Recommendation, it will supersede the 13 December 2005 version of the SMIL 2.1 Recommendation [SMIL21].
Note: SMIL document players, those applications that support playback of "application/smil+xml" documents, and host language conformant document profiles are expected to support the deprecated SMIL 2.1 functionalities as well as the new SMIL 3.0 functionalities.
This section is informative.
SMIL 3.0 specification provides three classes of changes to the SMIL 2.1 Recommendation, among the functional areas. For more details on the SMIL 3.0 Modules changes, refer to the next SMIL 3.0 Modules chapter.
1- New SMIL 3.0 functional areas
SMIL 3.0 adds the following new sections introducing new modules where new elements or attributes semantics are specified.
2- Revised SMIL 3.0 functional areas
In these sections, updated or new modules are introduced where new and updated elements or attributes semantics are specified.
3- Unchanged SMIL 3.0 functional areas
The modules, elements and attributes semantics in the following sections remain the same as in SMIL2.1 [SMIL21]. There are no major changes to the document; apart from minor issues related to wording, typos, links and references.
1- New SMIL 3.0 Profiles:
SMIL3.0 adds the following three new Profiles:
2- Updated SMIL 3.0 Profiles:
The following Profiles are updated from SMIL 2.1 [SMIL21] to include new SMIL 3.0 functionalities.
Finally, SMIL 3.0 provides a Scalability Framework, where a family of scalable SMIL profiles may be defined using a sub- or superset of the SMIL 3.0 Language, DAISY, or Unified Mobile Profile profiles, or a superset of the SMIL 3.0 Tiny profile.
This section is informative.
Throughout the document, normative and informative sections are labelled with following rules:
- a <div> section associated with a class="normative or
class="informative". These two class have different styling to ease
viewing of different sections.
- a statement "This section is normative" or "This section
is informative" which follows the <div> tag
Informative sections are color coded as follows. All other sections (without a gray background and green border) are normative.
This section is informative.
This section is normative.
The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "RECOMMENDED", "MAY", and "OPTIONAL" in the normative parts of this document are to be interpreted as described in [RFC2119].
For readability, these words do not appear in all uppercase letters in this specification.
This section is informative.
This document has been prepared by the Synchronized Multimedia Working
Group (SYMM WG) of the World Wide Web Consortium.
The SYMM WG which specified SMIL 3.0 included the following individuals:
The former SYMM WG which specified the previous SMIL versions included the following individuals:
This section is informative.
Since the publication of SMIL 1.0 [SMIL10], interest in the integration of SMIL concepts with the HTML, the HyperText Markup Language [HTML4], and other XML languages, has grown. Likewise, the W3C HTML Working Group has specified XHTML, the Extensible HyperText Markup Language [XHTML10], in preparation to subset, extend, and integrate it with other languages. The strategy considered for integrating respective functionality with other XML-based languages is based on the concepts of modularization and profiling [SMIL-MOD], [XMOD].
Modularization is an approach in which markup functionality is specified as a set of modules that contain semantically-related XML elements, attributes, and attribute values. Profiling is the creation of an XML-based language through combining these modules, in order to provide the functionality required by a particular application.
Profiling introduces the ability to tailor an XML-based language to specific needs, e.g. to optimize presentation and interaction for the client's capabilities. Profiling also adds the ability for integrating functionality from other markup languages, releasing the language designer from specifying that functionality. Moreover, it provides for consistency in markup through the use of the same model to incorporate a function. Identical constructs ease authoring, while at the user agent side there is a potential for re-use of code. For example, a scheduler supporting SMIL timing and synchronization functionality could be used for SMIL documents, XHTML+SMIL documents, and SVG documents.
Modularization enables language designers to specify dedicated markup intended for integration with other, existing, profiles. Examples of specifications intended for such integration are MathML and XForms [MathML], [XFORMS10].
Modularization and profiling use the extensibility properties of XML, and related technology like XML namespaces and XML Schema [XML11], [XML-NS], [XSCHEMA].
This part of the SMIL 3.0 specification describes the framework on which SMIL modularization and profiling is based, and specifies the SMIL 3.0 Modules, their identifiers, and the requirements for conformance within this framework.
This section is informative.
The modularization approach used in this specification derives from that set forth in XHTML Modularization [XMOD]. The framework on which SMIL modularization and profiling is based, is informally described here.
A Module is a collection of semantically-related XML elements, attributes, and attribute values that represents a unit of functionality. Modules are defined in coherent sets.
A Profile is a combination of modules. Modules are atomic, i.e. they may not be subset when included in a profile. Furthermore, a module specification may include a set of integration requirements, to which profiles that include the module must comply.
Commonly, there is a main profile that incorporates nearly all the modules associated with a single namespace. For this version of SMIL, this is the SMIL 3.0 Language profile.
Other profiles may be specified that are subsets of the larger one, or that incorporate a mixture of modules associated with different namespaces. SMIL 3.0 Tiny is an example of the first, XHTML+SMIL of the latter.
Several of SMIL's modules define features that that characterize the core of the functionality provided by SMIL. This is expressed by the notions of host language and integration set. Both of them relate to a set of conformance requirements for language profiles, which includes the requirement to incorporate at least the core set of modules. The set may be different for a host language and an integration set. A host language must incorporate the Structure module; an integration set need not. There may be other differences as well.
The main purpose of profile conformance is to enhance interoperability. Preferably, the mandatory modules for host language conformance are defined in such a way that any document interchanged in a conforming profile will yield a reasonable presentation when the document renderer, while supporting the associated mandatory module set, would ignore all other (unknown) elements and attributes. Here, "reasonable presentation" is to be understood as something intelligible, which is not necessarily a close reflection of the author's original intentions. To achieve the latter, a negotiation would have to be conducted to agree on the specific profile to be used for the document interchange.
This section is informative.
SMIL 3.0 specification provides three classes of changes to the SMIL 2.1 Recommendation, among the functional areas;
The following functional areas are affected by SMIL 3.0:
DOM
Content Control
This functional area is currently unchanged, apart from repartitioning of the content control module structure in order to support the SMIL Tiny profile. In a future version the content control mechanisms specified will be modified to better align with the expression and test logic being developed within the SMIL 3.0 State modules.Layout
SMIL 3.0 extends the Layout capabilities as follows:
Linking
SMIL 3.0 linking integrates the general features of the XHTML-2 access and role attributes as an extension and replacement for the accessKey attribute.
Media Object
SmilText
This new smilText functionality provides a new media type for use in SMIL presentations. The smilText modules provide a text container element with an explicit content model for defining in-line text, and a set of additional elements and attributes to control explicit in-line text rendering.
The following 3 modules are introduced in the new Text functional area allowing use of in-line text content:
In addition, SMIL 3.0 also defines the smilText profile, which allows timed text markup to be placed in a light-weight external container.
Metainformation
Metainformation mechanisms in SMIL 3.0 provide a general purpose approach to attaching metainformation to any element within the presentation.
Structure
The new Identity module identifies the SMIL version and the SMIL profile. This replaces the former SMIL approach of defining separate namespaces for individual modules and profiles.
Timing
The SMIL 3.0 specification leaves the basic syntax and semantics of the SMIL 2.1 timing model [SMIL21-timing] unchanged apart from the following changes:
State
The new modules in this section provide a mechanism whereby the document author may create more complex controlflow than what SMIL provides through the timing and content control modules, without having to go all the way of using a scripting language. One way to provide this is to allow a document to have some explicit state (think: variables) along with ways to modify, use and save this state.
The following 4 modules are introduced in the State functional areas:
This section is normative.
SMIL functionality is partitioned into 12 functional areas. Within each functional area a further partitioning is applied into modules. All of these modules, and only these modules, are associated with the SMIL namespace.
The functional areas and their corresponding modules are:
Note: Modules marked with (**) are new Modules added in SMIL 3.0. Modules marked with (*) are revised modules from SMIL 2.1.
Each of these modules introduces a set of semantically-related elements, properties, and attributes. Each functional area has a corresponding section in this specification document. Further details on each of the modules is specified within those sections.
The modules may be independent or complementary. For example, the SyncMaster module requires and builds upon the SyncBehavior module, but the PrefetchControl and SkipContentControl modules are independent from each other. In addition, some modules require modules from other functional areas.
Modules specify their integration requirements. When one module requires another module for basic features and as a prerequisite for integration, a profile must include the second module in order to include the first. The first module is said to be a dependent of the second module. Dependency may be nested, in that a module may be dependent on a module that is a dependent itself.
Table 1 presents the SMIL 3.0 modules and the modules they depend on.
Module | Dependencies |
AccessKeyTiming | NONE |
AlignmentLayout | BasicLayout |
AudioLayout | BasicLayout |
BackgroundTilingLayout | BasicLayout |
BasicAnimation | BasicInlineTiming |
BasicContentControl | NONE |
BasicInlineTiming | NONE |
BasicExclTimeContainers | NONE |
BasicLayout | StructureLayout |
BasicLinking | NONE |
BasicMedia | NONE |
BasicPriorityClassContainers | BasicExclTimeContiners |
BasicText | NONE |
BasicTimeContainers | NONE |
BasicTransitions | NONE |
BrushMedia | NONE |
CustomTestAttributes | BasicContentControl |
DOMTimingMethods | NONE |
EventTiming | NONE |
FillDefault | BasicTimeContainers, and/or BasicExclTimeContainers, BasicPriorityClassContainers, and/or TimeContainerAttributes |
FullScreenTransitionEffects | BasicTransitions |
Identity | NONE |
InlineTransitions | NONE |
LinkingAttributes | NONE |
MediaAccessibility | MediaDescription |
MediaClipMarkers | MediaClipping |
MediaClipping | BasicMedia |
MediaDescription | NONE |
MediaMarkerTiming | NONE |
MediaOpacity | BasicMedia |
MediaPanZoom | BasicMedia |
MediaParam | BasicMedia |
MediaRenderAtrributes | NONE |
MetaInformation | NONE |
MinMaxTiming | NONE |
MultiArcTiming | AccessKeyTiming, and/or BasicInlineTiming, and/or EventTiming,
and/or MediaMarkerTiming, and/or RepeatValueTiming, and/or SyncbaseTiming, and/or WallclockTiming |
MultiWindowLayout | BasicLayout |
ObjectLinking | BasicLinking |
OverrideLayout | BasicLayout, SubRegionLayout |
PrefetchControl | NONE |
RepeatTiming | NONE |
RepeatValueTiming | NONE |
RequiredContentControl | NONE |
RestartDefault | RestartTiming |
RestartTiming | NONE |
SkipContentControl | NONE |
SplineAnimation | BasicAnimation |
StateInterpolation | NONE |
StateSubmission | UserState |
StateTest | NONE |
Structure | BasicContentControl, and BasicInlineTiming, and BasicLayout, and BasicLinking, and BasicMedia, and BasicTimeContainers, and SkipContentControl, and SyncbaseTiming |
StructureLayout | Structure |
SubRegionLayout | BasicLayout |
SyncbaseTiming | NONE |
SyncBehavior | BasicTimeContainers, and/or BasicExclTimeContainers, BasicPriorityClassContainers, and/or TimeContainerAttributes |
SyncBehaviorDefault | SyncBehavior |
SyncMaster | SyncBehavior |
TextMotion | BasicText |
TextStyling | BasicText |
TimeContainerAttributes | NONE |
TimeManipulations | NONE |
TransitionModifiers | BasicTransitions, and/or InlineTransitions |
UserState | NONE |
WallclockTiming | NONE |
This section is normative.
This section specifies the identifiers for the SMIL 3.0 MIME Type and the SMIL 3.0 modules. The identifiers for SMIL 3.0 profiles are defined as part of the profile specification.
Documents authored in host-language conformant profiles may be associated
with the "application/smil+xml
" mime type:
"application/smil+xml
" mime type are required to be host
language conformant. The "application/smil
" mime type as
specified in SMIL 2.0 [SMIL20] is obsolete.
Each module in this specification has a unique identifier associated with it. They are intended to uniquely and consistently identify each of them. They should be used as values in a test for whether an implementation includes a specific module, as well as in other circumstances where a need to refer to a specific SMIL 3.0 module is necessary. These identifiers are to be used with the systemRequired attribute from the RequiredContentControl module.
Table 2 summarizes the identifiers for SMIL 3.0 modules.
Module name | Identifier |
AccessKeyTiming | http://www.w3.org/2008/SMIL30/AccessKeyTiming |
AudioLayout | http://www.w3.org/2008/SMIL30/AudioLayout |
BackgroundTilingLayout | http://www.w3.org/2008/SMIL30/BackgroundTilingLayout |
AlignmentLayout | http://www.w3.org/2008/SMIL30/AlignmentLayout |
BasicAnimation | http://www.w3.org/2008/SMIL30/BasicAnimation |
BasicContentControl | http://www.w3.org/2008/SMIL30/BasicContentControl |
BasicInlineTiming | http://www.w3.org/2008/SMIL30/BasicInlineTiming |
BasicExclTimeContainers | http://www.w3.org/2008/SMIL30/BasicExclTimeContainers |
BasicLayout | http://www.w3.org/2008/SMIL30/BasicLayout |
BasicLinking | http://www.w3.org/2008/SMIL30/BasicLinking |
BasicMedia | http://www.w3.org/2008/SMIL30/BasicMedia |
BasicPriorityClassContainers | http://www.w3.org/2008/SMIL30/BasicPriorityClassContainers |
BasicText | http://www.w3.org/2008/SMIL30/BasicText |
BasicTimeContainers | http://www.w3.org/2008/SMIL30/BasicTimeContainers |
BasicTransitions | http://www.w3.org/2008/SMIL30/BasicTransitions |
BrushMedia | http://www.w3.org/2008/SMIL30/BrushMedia |
CustomTestAttributes | http://www.w3.org/2008/SMIL30/CustomTestAttributes |
DOMTimingMethods | http://www.w3.org/2008/SMIL30/DOMTimingMethods |
EventTiming | http://www.w3.org/2008/SMIL30/EventTiming |
FillDefault | http://www.w3.org/2008/SMIL30/FillDefault |
FullScreenTransitionEffects | http://www.w3.org/2008/SMIL30/FullScreenTransitionEffects |
Identity | http://www.w3.org/2008/SMIL30/Identity |
InlineTransitions | http://www.w3.org/2008/SMIL30/InlineTransitions |
LinkingAttributes | http://www.w3.org/2008/SMIL30/LinkingAttributes |
MediaAccessibility | http://www.w3.org/2008/SMIL30/MediaAccessibility |
MediaClipMarkers | http://www.w3.org/2008/SMIL30/MediaClipMarkers |
MediaClipping | http://www.w3.org/2008/SMIL30/MediaClipping |
MediaDescription | http://www.w3.org/2008/SMIL30/MediaDescription |
MediaMarkerTiming | http://www.w3.org/2008/SMIL30/MediaMarkerTiming |
MediaOpacity | http://www.w3.org/2008/SMIL30/MediaOpacity |
MediaPanZoom | http://www.w3.org/2008/SMIL30/MediaPanZoom |
MediaParam | http://www.w3.org/2008/SMIL30/MediaParam |
MediaRenderAttributes | http://www.w3.org/2008/SMIL30/MediaRenderAttributes |
Metainformation | http://www.w3.org/2008/SMIL30/Metainformation |
MinMaxTiming | http://www.w3.org/2008/SMIL30/MinMaxTiming |
MultiArcTiming | http://www.w3.org/2008/SMIL30/MultiArcTiming |
MultiWindowLayout | http://www.w3.org/2008/SMIL30/MultiWindowLayout |
ObjectLinking | http://www.w3.org/2008/SMIL30/ObjectLinking |
OverrideLayout | http://www.w3.org/2008/SMIL30/OverrideLayout |
PrefetchControl | http://www.w3.org/2008/SMIL30/PrefetchControl |
RepeatTiming | http://www.w3.org/2008/SMIL30/RepeatTiming |
RepeatValueTiming | http://www.w3.org/2008/SMIL30/RepeatValueTiming |
RequiredContentControl | http://www.w3.org/2008/SMIL30/RequiredContentControl |
RestartDefault | http://www.w3.org/2008/SMIL30/RestartDefault |
RestartTiming | http://www.w3.org/2008/SMIL30/RestartTiming |
SkipContentControl | http://www.w3.org/2008/SMIL30/SkipContentControl |
SplineAnimation | http://www.w3.org/2008/SMIL30/SplineAnimation |
StateTest | http://www.w3.org/2008/SMIL30/StateTest |
StateInterpolation | http://www.w3.org/2008/SMIL30/StateInterpolation |
StateSubmission | http://www.w3.org/2008/SMIL30/StateSubmission |
Structure | http://www.w3.org/2008/SMIL30/Structure |
StructureLayout | http://www.w3.org/2008/SMIL30/StructureLayout |
SubRegionLayout | http://www.w3.org/2008/SMIL30/SubRegionLayout |
SyncbaseTiming | http://www.w3.org/2008/SMIL30/SyncbaseTiming |
SyncBehavior | http://www.w3.org/2008/SMIL30/SyncBehavior |
SyncBehaviorDefault | http://www.w3.org/2008/SMIL30/SyncBehaviorDefault |
SyncMaster | http://www.w3.org/2008/SMIL30/SyncMaster |
TextMotion | http://www.w3.org/2008/SMIL30/TextMotion |
TextStyling | http://www.w3.org/2008/SMIL30/TextStyling |
TimeContainerAttributes | http://www.w3.org/2008/SMIL30/TimeContainerAttributes |
TimeManipulations | http://www.w3.org/2008/SMIL30/TimeManipulations |
TransitionModifiers | http://www.w3.org/2008/SMIL30/TransitionModifiers |
UserState | http://www.w3.org/2008/SMIL30/UserState |
WallclockTiming | http://www.w3.org/2008/SMIL30/WallclockTiming |
In addition to the module identifiers above, there are different sets of features that may be expressed using the following identifiers:
http://www.w3.org/2008/SMIL30/NestedTimeContainers
http://www.w3.org/2008/SMIL30/SMIL20DeprecatedFeatures
http://www.w3.org/2008/SMIL30/SMIL10DeprecatedFeatures
Modules may also be identified collectively. When grouped into SMIL 3.0 profiles, the module identification string is placed in the profile specification. Profiles will also provide an identification string for their DTD specification. In addition, the following general module collections are defined:
http://www.w3.org/2008/SMIL30/
http://www.w3.org/2008/SMIL30/HostLanguage
http://www.w3.org/2008/SMIL30/IntegrationSet
Implementations must allow these as identifiers for use with the systemRequired attribute from the RequiredContentControl module.
Profiles must identify those attributes for which an implementation must return "true" (this is an integration requirement). Implementations must return "false" for modules or features which are not fully supported.
This section is normative.
The rules for host-language and SMIL 3.0 document conformance, as well as the rules for SMIL 3.0 User Agent conformance are provided as part of the SMIL Scalability Framework.
This section is informative.
This section describes how profiles could be defined using the SMIL 3.0 modular DTDs. The reader is assumed to be familiar with the mechanisms defined in "Modularization of XHTML" [XMOD], in particular Appendix D [XMOD-APPD] and Appendix E [XMOD-APPE]. In general, the SMIL 3.0 modular DTDs use the same mechanisms as the XHTML modular DTDs use. Exceptions to this are:
Below, we give a short description of the files that are used to define the SMIL 3.0 modular DTDs. See the table and the end of the section for a complete list of the filenames involved.
Following the same mechanisms as the XHTML modular DTDs, the SMIL 3.0 specification places the XML element declarations (e.g. <!ELEMENT...>) and attribute list declarations (e.g. <!ATTLIST...>) of all SMIL 3.0 elements in separate files, the SMIL module files. A SMIL module file is provided for each functional area in the SMIL 3.0 specification (that is, there is a SMIL module file for animation, layout, timing, etc).
The SMIL module files are used in the normative definitions of the specification of the SMIL 3.0 Language profile. Usage of the same module files for defining other SMIL profiles is recommended, but not required. The requirements that SMIL profiles must follow are stated in the SMIL 3.0 specification, not in the DTD code.
To make the SMIL module files independent of each other, and independent of the profiles, the element and attribute declarations make heavy use of XML entities. This provides profiles with the necessary hooks to define the actual content models and attributes of the SMIL elements.
The SMIL 3.0 Language profile provides examples of how the SMIL module files may be used. Most of the DTD files are reused across the different profiles. Reused are the SMIL module files, the files that define the data types and the common attributes, the "qname" file that takes care of adding namespace prefixes if necessary, and the framework file, which takes care of including files in the appropriate order.
The file that is different for each profile is the driver file, and possibly the document model file. To define a new profile, one has to write the extension module(s), the driver file that defines which modules are used, and a document model file that defines the extended document model. A new profile that merely reuses SMIL 3.0 modules may not need a new document model file. The driver file and document model file are described in more detail below.
The driver file.
This is the file that would be referenced by a document's DOCTYPE declaration. Its main job is to define the modules and features that are included in the DTD. The file contains the following parts.
If the SMIL element names are to be prefixed, this can be done by adding something like the following to the start of the profile:
<!ENTITY % SMIL.prefixed "INCLUDE" >
<!ENTITY % SMIL.prefix "foobar" >
Elements defined in their modules as, for example, <video> will become parsed as <foobar:video>. This also applies for SMIL attributes that appear on other elements, so, for example, "begin" becomes "foobar:begin". The default is that the qname prefix is empty -- that is, it is effectively turned off by default.
The default value of the baseProfile should be defined.
If not defined, the value defaults to #IMPLIED
. For
example:
<!ENTITY % SMIL.baseProfile.default "#FIXED
'Language'">
The modules to be included in the DTD need to be specified using entity definitions such as this, one for each included module:
<!ENTITY % SMIL.Structure.module "INCLUDE"
>
The entity names are all of the form
SMIL.ModuleName.module
. The default for all modules is that
they are not included.
For each of the optional features and variants that are to be
included, an entity needs to be defined as "INCLUDE"
. Here
is a list of all possible entities:
SMIL.animation-targetElement
SMIL.animation-XLinkTarget
SMIL.transition-targetElement
SMIL.transition-XLinkTarget
SMIL.ITS-Attributes.module
SMIL.RoleAttributes.module
SMIL.submission-post
SMIL.ContentControl.deprecated.module
SMIL.MediaClipping.deprecated.module
SMIL.RepeatTiming.deprecated.module
SMIL.BasicLinking.deprecated.module
SMIL.TextExternal.module
The default for these optional features is that they are not included.
The document model file that is to be used needs to be defined:
<!ENTITY % smil-model.mod PUBLIC
"-//W3C//ENTITIES SMIL 3.0 Document Model 1.0//EN"
"smil-profile-model-1.mod" >
All standard SMIL DTDs use the same document model file.
The framework file needs to be included. The framework file will subsequently include the data type, common attributes, qname and document model file.
The SMIL module files that are used by this profile need to be included.
The document model file.
The document model file contains the XML entities that are used by the SMIL module files to define the content models and attribute lists of the elements in that profile.
Content models generally differ from profile to profile, or contain elements from other modules. To avoid these dependencies in the SMIL module files, content models may be defined in the document model file. The (dummy) default content model as defined in the SMIL module files is "EMPTY" for all SMIL 3.0 elements.
For the same reasons, the SMIL module files only define a default attribute list for their elements. This default list only contains the SMIL 3.0 core attributes and the attributes that are defined in the same SMIL module file. All other attributes may be added to this default list by defining the appropriate XML entities. For example, the Media Objects Module file only adds the core and media related attributes on the media objects; other attributes, such as the timing attributes, are added to this list by the document model file.
Driver files for the predefined profiles | |
-//W3C//DTD SMIL 3.0 Language//EN | http://www.w3.org/2008/SMIL30/SMIL30Language.dtd |
-//W3C//DTD SMIL 3.0 Unified Mobile//EN | http://www.w3.org/2008/SMIL30/SMIL30UnifiedMobile.dtd |
-//W3C//DTD SMIL 3.0 Daisy//EN | http://www.w3.org/2008/SMIL30/SMIL30Daisy.dtd |
-//W3C//DTD SMIL 3.0 Tiny//EN | http://www.w3.org/2008/SMIL30/SMIL30Tiny.dtd |
-//W3C//DTD SMIL 3.0 smilText//EN | http://www.w3.org/2008/SMIL30/SMIL30smilText.dtd |
Document model files for the predefined profiles | |
-//W3C//ENTITIES SMIL 3.0 Document Model 1.0//EN | http://www.w3.org/2008/SMIL30/smil-profile-model-1.mod |
SMIL 3.0 module files | |
-//W3C//ELEMENTS SMIL 3.0 Animation//EN | http://www.w3.org/2008/SMIL30/SMIL-anim.mod |
-//W3C//ELEMENTS SMIL 3.0 Content Control//EN | http://www.w3.org/2008/SMIL30/SMIL-control.mod |
-//W3C//ELEMENTS SMIL 3.0 Layout//EN | http://www.w3.org/2008/SMIL30/SMIL-layout.mod |
-//W3C//ELEMENTS SMIL 3.0 Linking//EN | http://www.w3.org/2008/SMIL30/SMIL-link.mod |
-//W3C//ELEMENTS SMIL 3.0 Media Objects//EN | http://www.w3.org/2008/SMIL30/SMIL-media.mod |
-//W3C//ELEMENTS SMIL 3.0 Document Metainformation//EN | http://www.w3.org/2008/SMIL30/SMIL-metainformation.mod |
-//W3C//ELEMENTS SMIL 3.0 SMILtext//EN | http://www.w3.org/2008/SMIL30/SMIL-smiltext.mod |
-//W3C//ELEMENTS SMIL 3.0 State//EN | http://www.w3.org/2008/SMIL30/SMIL-state.mod |
-//W3C//ELEMENTS SMIL 3.0 Document Structure//EN | http://www.w3.org/2008/SMIL30/SMIL-struct.mod |
-//W3C//ELEMENTS SMIL 3.0 Timesheet//EN | http://www.w3.org/2008/SMIL30/SMIL-timesheet.mod |
-//W3C//ELEMENTS SMIL 3.0 Timing//EN | http://www.w3.org/2008/SMIL30/SMIL-timing.mod |
-//W3C//ELEMENTS SMIL 3.0 Transition//EN | http://www.w3.org/2008/SMIL30/SMIL-transition.mod |
Other utilities: data types, common attributes, qname and frame work files | |
-//W3C//ENTITIES SMIL 3.0 Common Attributes 1.0//EN | http://www.w3.org/2008/SMIL30/smil-attribs-1.mod |
-//W3C//ENTITIES SMIL 3.0 Datatypes 1.0//EN | http://www.w3.org/2008/SMIL30/smil-datatypes-1.mod |
-//W3C//ENTITIES SMIL 3.0 Modular Framework 1.0//EN | http://www.w3.org/2008/SMIL30/smil-framework-1.mod |
-//W3C//ENTITIES SMIL 3.0 Qualified Names 1.0//EN | http://www.w3.org/2008/SMIL30/smil-qname-1.mod |
This section is informative.
The SMIL 3.0 specification adds the Identity Module to the SMIL 2.1 Structure Module [SMIL21-structure]. It also adds the xml:id attribute, which should be used to assign identity to elements instead of the id attribute, which has been deprecated in SMIL 3.0.
This section is informative
This Section defines the SMIL Structure module and the Identity Module.
The Structure module provides
the base elements for structuring SMIL content. These elements act as the
root in the content model of all SMIL Host
Language conformant language profiles. The Structure module is a
mandatory module for SMIL Host Language conformant language profiles. The
SMIL Structure module is composed of the smil, head, and body elements, and is compatible with SMIL
1.0 [SMIL10]. The corresponding SMIL 1.0
elements form a subset of the Structure module, both in syntax and semantics,
as their attributes and content model is also exposed by the Structure
module. Thus, the Structure module is backwards compatible with SMIL 1.0.
The Identity Module provides attributes to identify the SMIL version and the SMIL profile.
This section is normative
This section defines the elements and attributes that make up the SMIL 3.0 Structure module.
The smil element acts as the root element for all SMIL Host Language conformant language profiles.
The smil element may have the following attributes:
The smil element may contain the following elements:
The head element contains information that is not related to the temporal behavior of the presentation. Three types of information may be contained by head. These are meta information, layout information, and author-defined content control.
The head element may have the following attributes:
The head element contains elements depending on the other modules and specific syntax included in the language profile integrating this module.
The body element contains information that is related to the temporal and linking behavior of the document. It acts as the root element of the timing tree.
The body element has the timing semantics of a time container equal to that of the seq element [BasicTimeContainers module]. Note, that in other language profiles, where a body element from another (Structure) Module is in use, that body element may have different timing semantics. For example, in the XHTML+SMIL language profile (still in progress and not yet a W3C Recommendation), the body element comes from HTML, and acts as a par time container.
The body element may have the following attributes:
The timing attributes defined in the various SMIL 3.0 Timing modules are part of the body element so far as the corresponding timing modules, such as BasicInlineTiming, are part of the language profile. When a timing module is included in a language profile, the features of that module should be supported on the body element just as they are supported on the other elements in the profile. For example, the syncMaster attribute should be supported on the body element if the SyncMaster module is included in the integrating profile.
The body element contains elements depending on the other modules and specific syntax included in the language profile integrating this module.
This section is normative
When this module is included in a language profile, the xml:id, class, and title attributes defined in this module must be included on all elements from all modules used in the profile, including those from other module families and of non-SMIL origin. The integrating profile should also consider adding the xml:lang attribute to the applicable elements.
The SMIL Structure module is the starting module when building any SMIL Host Language conformant language profile. The Structure module may not be used for building other, non-SMIL Host Language conformant language profiles. This implies that the SMIL Structure module must at least be accompanied with the other modules mandatory for SMIL Host language conformance, and the elements in the structure module must include at least the minimum content models required for SMIL Host language conformance.
When modules from outside the SMIL 3.0 namespace are integrated in the language profile, it must be specified how the elements from those non-SMIL modules fit into the content model of the used SMIL modules (and vice versa). For example, with respect to the SMIL Structure module, the Profiling Entities in the DTD should be overridden. This creates a so-called hybrid document type [XMOD]. In case of a so-called compound document type, the rules of XML namespaces must be satisfied [XML-NS].
This section is normative
This module contains two attributes, version and baseProfile, which are used to identify which version of SMIL and for which Profile the document is written for.
The Identity Module does not contain any element definitions.
This section defines the attributes that make up the SMIL 3.0 Identity
Module.
version-number ::= "3.0"
profile-name ::= "Language" | "UnifiedMobile" | "Daisy" | "Tiny"
| "smilText" | user-defined-profile-name
user-defined-profile-name ::= "x-" NMTOKEN
This section is informative
Example of version and baseProfile attribute use
<smil xml:id="root" xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Tiny" > <head xml:id="head"> ... </head> <body xml:id="body"> ... </body> </smil>
It is the responsibility of the language profile to specify which elements support the version and baseProfile attributes. All profiles should at least support these two attributes on the top-level smil element.
This section is informative.
There are three major changes to the Media Object modules for SMIL 3.0: the first is the splitting of the SMIL 2.1 MediaParam module into two modules: the MediaParam and MediaRenderAttributes modules; the second is the introduction of the MediaOpacity module, containing new rendering attributes for chroma key and opacity control; the third is the introduction of the MediaPanZoom module. The rationale for these changes is:
The MediaParam module also includes new text that explicitly discusses the behavior of adding the various media control attributes defined in that section to a SMIL layout region definition as a means of providing a global mechanism for applying default attribute settings to all content rendered within that region.
A number of editorial changes have also been integrated into the various Media Object modules descriptions; these do not impact the functionality defined in earlier versions of SMIL.
This section is informative.
This section defines the SMIL media object modules, which are composed of the BasicMedia module and nine modules with additional functionality that build on top of the BasicMedia module: the BrushMedia, MediaClipping, MediaClipMarkers, MediaParam, MediaRenderAttributes, MediaOpacity, MediaAccessibility, MediaDescription, and MediaPanZoom modules. These modules contain elements and attributes used to reference external media objects or control media object rendering behavior. Since these elements and attributes are defined in a series of modules, designers of other markup languages may reuse the SMIL media module when they wish to include media objects into their language.
The differences between current media object functionality and that provided by the SMIL 1.0 specification are explained in Appendix A.
This section is normative.
This section provides convenience definitions for common timing and resource identifier terms used in this module.
SMIL provides a number of timing-related concepts that are used to determine activation, duration and termination of media objects in a presentation. The temporal semantics of these concepts are discussed in the SMIL 3.0 Timing and Synchronization module.
The distinction between continuous and discrete media is sometimes arbitrary and may be SMIL renderer dependent. For example, animated images that do not have a well-defined duration (simply a repeating collection of frames) are classified for SMIL scheduling purposes as being discrete media; such objects have an intrinsic scheduling duration of zero seconds.
In this specification, the term URI [URI] refers to a universal resource identifier, as defined in [RFC3986] and subsequently extended under the name IRI in [RFC3987]. In some cases, the term URI has been retained in the specification to avoid using new names for concepts such as "Base URI" that are defined or referenced across a whole family of XML specifications.
This section is normative.
This module defines the baseline media functionality of a SMIL player.
SMIL defines a single generic media object element that allows the inclusion of external media objects into a SMIL presentation. Media objects are included by reference (using a IRI).
In addition to the ref element, SMIL allows the use of the following set of synonyms:
All of these media elements are semantically identical. When playing back an external media object, the player must not derive the exact type of the media object from the name of the media object element. Instead, it must rely solely on other sources about the type, such as the type information communicated by a server or the operating system, or by using type information contained in the type attribute.
This section is informative.
Authors are encouraged to use meaningful synonyms (animation, audio, img, video, text or textstream) when referencing external media objects. This is in order to increase the readability of the SMIL document. Some SMIL implementations may require the use of an element type that matches the information type of the object. When in doubt about the group of a media object, authors should use the generic "ref" element.
The animation element defined here should not be confused with the elements defined in the SMIL 3.0 Animation Module. The animation element defined in this module is used to include an external animation object file (such as a vector graphics animation) by reference. This is in contrast to the elements defined in the Animation module, which provide an in-line syntax for the animation of attributes and properties of other elements.
SMIL 3.0 also supports the smilText element for defining in-line timed text content. This functionality is described in the smilText Modules specification.
Anchors and links may be attached to visual media objects, i.e. media objects rendered on a visual abstract rendering surface.
Languages implementing the SMIL BasicMedia Module must define which attributes may be attached to media object elements. In all languages implementing the SMIL BasicMedia module, media object elements may have the following attributes:
The attribute supports fragment identifiers and the '#' connector in the IRI value. The fragment part is an id value that identifies one of the elements within the referenced media item. With this construct, SMIL 3.0 supports locators as currently used in HTML (that is, it uses locators of the form http://www.example.org/some/path#anchor1), with the difference that the values are of unique identifiers and not the values of "name" attributes. Generally speaking, this type of addressing implies that the target media is of a structured type that supports the concept of id, such as HTML or XML-based languages.
Note that this attribute is not required. A media object with no src attribute has an intrinsic duration of zero, and participates in timing just as any other media element. No media will be fetched by the SMIL implementation for a media element without a src attribute.
When the content represented by a URL is available in many data formats, implementations MAY use the type value to influence which of the multiple formats is used. For instance, on a server implementing HTTP content negotiation, the client may use the type attribute to order the preferences in the negotiation. The type attribute is not intended for use in media sub-stream selection.
For protocols not enumerated in this specification, implementations should use the following rules: When the media is encapsulated in a media file and delivered intact to the SMIL user agent via a protocol designed for delivery as a complete file, the media type as provided by this protocol should take precedence over the type attribute value. For protocols which deliver the media in a media-aware fashion, such as those delivering media in a manner using or dependent upon the specific type of media, the application of the type attribute is not defined by this specification.
Element Content
Languages utilizing the SMIL BasicMedia module must define the complete set of elements which may act as children of media object elements. There are currently no required children of a media object defined in the BasicMedia Module, but languages utilizing the BasicMedia module may impose requirements beyond this specification.
If the including profile supports the XMLBase functionality [XMLBase] , the values of the src and longdesc attributes on the media object elements must be interpreted in the context of the relevant XMLBase URI prefix.
User-agent implementations are responsible for defining the rendering
behavior when fragment addressing is used in the src attribute. Such definition should be added
to language profiles that wish to include specific media addressing features.
For example:
- User-agents should define the default behavior for when referencing a
non-existing id in the target media document.
- User-agents should define the rendering method for the selected media
fragment: in context, with or without highlighting and scrolling, or
stand-alone (selective rendering only).
- User-agents should describe the timing implication for when addressing
timed-content.
SMIL 3.0 allows but does not require user agents to be able to process XPointer values in the IRI value of the src attribute. The SMIL 3.0 Linking Module provides additional information related to XPointer.
This section is normative.
This section defines the elements and attributes that make up the SMIL MediaParam Module definition. The MediaParam module is intended to provide a uniform mechanism for media object initialization. Languages implementing elements and attributes found in the MediaParam module must implement all elements and attributes defined below, as well as BasicMedia.
The param element allows a general parameter value to be sent to a media object renderer as a name/value pair. This parameter is sent to the renderer at the time that the media object is processed by the scheduler. It is up to the media renderer to associate an action with the given param. The media renderer may choose to ignore any unknown or inappropriate param values (such as sending a font size to an audio object).
Any number of param elements may appear (in any order) in the content of a media object element or in a paramGroup element. If a given parameter is defined multiple times, the lexically last version of that parameter value should be used.
The syntax of names and values is assumed to be understood by the object's implementation. The SMIL specification does not specify how user agents should retrieve name/value pairs.
Example
This section is informative.
To illustrate the use of param, suppose that we have a facial animation plug-in that is able to accept different moods and accessories associated with characters. These could be defined in the following way:<ref src="http://www.example.com/herbert.face"> <param name="mood" value="surly" valuetype="data"/> <param name="accessories" value="baseball-cap,nose-ring" valuetype="data"/> </ref>
The paramGroup element provides a convenience mechanism for defining a collection of media parameters that may be reused with several different media objects. If present, the paramGroup element must appear in the head section of the document. The content of the paramGroup element consists of zero or more param elements. The paramGroup element may not contain nested paramGroup element definitions.
Element attributes
This element does not define any new attributes. Profiles integrating this element must specify an attribute of type ID [XML11] by which the param group is referenced in a media object reference. For SMIL 3.0, the xml:id attribute will typically be used.
Examples
This section is informative.
This section contains several fragments that illustrate uses of the paramGroup element.
In the following fragment, a paramGroup is created to define parameters that are passed to several different media objects:
<smil ... > <head> ... <paramGroup xml:id="clown"> <param name="mood" value="upBeat" valuetype="data"/> <param name="accessories" value="flowers,dunceCap"/> </paramGroup> ... </head> <body> ... <ref src="http://www.example.com/andy.face" paramGroup="clown"/> ... <ref src="http://www.example.com/sally.face" paramGroup="clown"/> ... </body> </smil>
In the following example, a media object provides an additional param value:
<smil ... > <head> ... <paramGroup xml:id="clown"> <param name="mood" value="upBeat" valuetype="data"/> <param name="accessories" value="flowers,dunceCap"/> </paramGroup> ... </head> <body> ... <ref src="http://www.example.com/andy.face" paramGroup="clown"> <param name="gender" value="male"/> </ref> ... </body> </smil>
In this final example, a media object provides a duplicate param value. The behavior in this case depends on the media renderer; all param values are passed to the renderer in the lexical order of the SMIL source file. It is expected that the lexically last value for any parameter sent to the renderer be used, if possible.
<smil ... > <head> ... <paramGroup xml:id="clown"> <param name="mood" value="upBeat" valuetype="data"/> <param name="accessories" value="flowers,dunceCap"/> </paramGroup> ... </head> <body> ... <ref src="http://www.example.com/andy.face" paramGroup="clown"> <param name="gender" value="male"/> <param name="mood" value="depressed" valuetype="data"/> </ref> ... </body> </smil>
In addition to the element attributes defined in BasicMedia, media object elements and layout regions may add the media initialization attribute defined below.
Any profile that integrates the functionality of this module is strongly encouraged to define a set of common parameter names that may be used to initialize common media object types for that profile. This can significantly increase interoperability of user agents and media rendering libraries.
The supported uses of the type and valuetype attributes on the param element must be specified by the integrating profile. If a profile does not specify this, the type and valuetype attributes will be ignored in that profile.
This section is normative.
This section defines the elements and attributes that make up the SMIL MediaRenderAttributes Module definition. Languages implementing elements and attributes found in the MediaRenderAttributes module must implement all elements and attributes defined below, as well as BasicMedia.
This module does not define any elements.
In addition to the element attributes defined in BasicMedia, media object elements and layout regions may have the attributes and attribute extensions defined below.
Values:
Example:
This section is informative.
<par> <seq> <par> <img src="image1.jpg" region="foo1" fill="freeze" erase="never" .../> <audio src="audio1.au"/> </par> <par> <img src="image2.jpg" region="foo2" fill="freeze" erase="never" .../> <audio src="audio2.au"/> </par> ... <par> <img src="imageN.jpg" region="fooN" fill="freeze" erase="never" .../> <audio src="audioN.au"/> </par> </seq> </par>
In this example, each image is successively displayed and remains displayed until the end of the presentation.
Values:
As an example of how this would be used, many animated GIFs intrinsically repeat indefinitely. The application of mediaRepeat= "strip" allows an author to remove the intrinsic repeat behavior of an animated GIF on a per-reference basis, causing the animation to display only once, regardless of the repeat value embedded in the GIF.
When mediaRepeat is used in conjunction with SMIL Timing Module attributes, this attribute is applied first, so that the repeat behavior can then be controlled with the SMIL Timing Module attributes such as repeatCount and repeatDur.
Values:
Any profile that supports the erase attribute must define what is meant by "display area" and further define the interaction. See the definition of erase for more details.
This section is normative.
This section defines the elements and attributes that make up the SMIL MediaOpacity Module definition. Languages implementing elements and attributes found in the MediaOpacity module must implement all elements and attributes defined below, as well as BasicMedia.
This module does not define any elements.
In addition to the element attributes defined in BasicMedia, media object elements and layout regions may have the attributes and attribute extensions defined below.
This section is informative.
The attributes in this module allow the opacity (that is, the degree to which a media object is transparent) to be defined. Opacity may be controlled in several ways, depending on the type of media being used. For unstructured media (that is, media that does not contain an explicitly-defined background color), the chromaKey attribute may be used to identify a particular color that will serve as the background color for purposes of opacity manipulation. If a chromaKey is used, the chromaKeyOpacity attribute may specify the degree of transparency desired. Since the color used to define a background may not be exactly preserved within a media object, the chromaKeyTolerance attribute allows a tolerance range to be defined for the chroma key color.
Some media objects, such as RealText, smilText, GIF, PNG, and Flash, define an explicit background color. In these cases, the specification of the opacity of that color can be done using the mediaBackgroundOpacity attribute. In these cases, only the defined color is manipulated.
In addition to specifying the transparency level of a particular background color, SMIL also allows the specification of the transparency level of a total media object. This is accomplished using the mediaOpacity attribute.
Note that SMIL layout also defines the backgroundOpacity attribute to control the transparency of a layout region.
This module does not introduce any special integration constraints.
This section is normative.
This section defines the attributes that make up the SMIL MediaClipping Module definition. Languages implementing the attributes found in the MediaClipping module must implement the attributes defined below, as well as BasicMedia.
Clip-value-MediaClipping ::= [ Metric "=" ] ( Clock-val | Smpte-val ) Metric ::= Smpte-type | "npt" Smpte-type ::= "smpte" | "smpte-30-drop" | "smpte-25" Smpte-val ::= Hours ":" Minutes ":" Seconds [ ":" Frames [ "." Subframes ]] Hours ::= DIGIT+ Minutes ::= DIGIT DIGIT /* range from 00 to 59 */ Seconds ::= DIGIT DIGIT /* range from 00 to 59 */ Frames ::= DIGIT DIGIT /* smpte range = 00-29, smpte-30-drop range = 00-29, smpte-25 range = 00-24 */ Subframes ::= DIGIT DIGIT /* smpte range = 00-01, smpte-30-drop range = 00-01, smpte-25 range = 00-01 */ DIGIT ::= [0-9]
The value of this attribute consists of a metric specifier, followed by a time value whose syntax and semantics depend on the metric specifier. The following formats are allowed:
The time value has the format
hours:minutes:seconds:frames.subframes. If the subframe value is
zero, it may be omitted. Subframes are measured in one-hundredths
of a frame.
Examples:
clipBegin="smpte=10:12:33"
This section is informative.
The introduction of subframe notation in SMIL 2.1 introduced an inconsistency with SMIL 1.0. As of this draft, SMIL 3.0 has deprecated the subframe notation.
clipBegin="npt=123.45s"
clipBegin="npt=12:05:35.3
"If no metric specifier is given, then a default of "npt=" is presumed.
When used in conjunction with the timing attributes from the SMIL Timing Module, this attribute is applied before any SMIL Timing Module attributes.
clipBegin may also be expressed as clip-begin for compatibility with SMIL 1.0. Software supporting the SMIL 2.1 Language Profile must be able to handle both clipBegin and clip-begin, whereas software supporting only the SMIL MediaClipping module only needs to support clipBegin. If an element contains both a clipBegin and a clip-begin attribute, then clipBegin takes precedence over clip-begin.
Example:
This section is informative.
<audio src="radio.wav" clip-begin="5s" clipBegin="10s" />
The clip begins at second 10 of the audio, and not at second 5, since the clip-begin attribute is ignored. A strict SMIL 1.0 implementation will start the clip at second 5 of the audio, since the clipBegin attribute will not be recognized by that implementation. See Changes to SMIL 1.0 Media Object Attributes for more discussion on this topic.
See Changes to SMIL 1.0 Media Object Attributes for more discussion on this topic.
This section is normative.
This section defines the attribute extensions that make up the SMIL MediaClipMarkers Module definition. Languages implementing elements and attributes found in the MediaClipMarkers module must implement all elements and attributes defined below, as well as BasicMedia and MediaClipping.
Clip-value-MediaClipMarkers ::= Clip-value-MediaClipping |
"marker" "=" URI-reference
/* "URI-reference" is defined in [URI] */
Example: Assume that a recorded radio transmission consists of a sequence of songs, which are separated by announcements by a disk jockey. The audio format supports marked time points, and the begin of each song or announcement with number X is marked as songX or djX respectively. To extract the first song using the "marker" metric, the following audio media element may be used:
<audio clipBegin="marker=#song1" clipEnd="marker=#dj1" />
This section is normative.
This section defines the elements and attributes that make up the SMIL BrushMedia Module definition. Languages implementing elements and attributes found in the BrushMedia module must implement all elements and attributes defined below.
The brush element is a lightweight media object element which allows an author to paint a solid color in place of a media object. Attributes associated with media objects may also be applied to brush element. (A specific profile will determine the attribute set applied to this element.)
Profiles including the BrushMedia module must provide semantics for using a color attribute value of inherit on the brush element. Because inherit doesn't make sense in all contexts, the value of inherit is prohibited on the color attribute of the brush element for profiles that do not otherwise define these semantics.
This section is normative.
This section defines the elements and attributes that make up the SMIL MediaAccessibility Module definition. Languages implementing elements and attributes found in the MediaAccessibility module must implement all elements and attributes defined below, as well as MediaDescription.
It is strongly recommended that all media object elements have an "alt" attribute with a brief, meaningful description. Authoring tools should ensure that no element may be introduced into a SMIL document without this attribute.
The value of this attribute is a CDATA text string.
Elements that contain alt, title or longdesc attributes are read by the assistive technology according to the following rules:
Example
This section is informative.
<par> <video xml:id="carvideo" src="car.rm" region="videoregion" title="Car video" alt="Illustration of relativistic time dilation and length contraction." longdesc="carvideodesc.html" readIndex="3"/> <audio xml:id="caraudio" src="caraudio.rm" region="videoregion" title="Car presentation voiceover" begin="bar.begin"/> <animation xml:id="cardiagram" src="car.svg" region="animregion" title="Diagram of the car" readIndex="2"/> <img xml:id="scvad" src="scv.png" region="videoregion" title="Advertisement for Sugar Coated Vegetables" readIndex="1"/> </par>
In this example, an assistive device that is presenting titles should present the "scvad" element title first (having the lowest readIndex value of "1"), followed by the "cardiagram" title, followed by the "carvideo" element title, and finally present the "caraudio" element title (having an implicit readIndex value of "0").
Note that not all examples in this specification use all media accessibility attributes because the purpose of the sample code is to illustrate specific language features.
This section is normative.
This section defines the elements and attributes that make up the SMIL MediaDescription Module definition. Languages implementing elements and attributes found in the MediaDescription module must implement all elements and attributes defined below.
This attribute is deprecated in favor of using appropriate SMIL metadata markup in RDF. For example, this attribute maps well to the "description" attribute as defined by the Dublin Core Metadata Initiative [DC] .
The value of this attribute is a CDATA text string.
The value of this attribute is a CDATA text string.
xml:lang differs from the systemLanguage test attribute in one important respect. xml:lang provides information about the content's language independent of what implementations do with the information, whereas systemLanguage is a test attribute with specific associated behavior (see systemLanguage in SMIL Content Control Module for details)
This section is informative.
SMIL 3.0 also supports the use of the element within the MetaInformation Module to supply additional or alternative forms of metainformation for any media object.
This section is normative.
This section is informative.
The SMIL MediaPanZoom module integrates the functionality of the SVG viewBox attribute and adapts it for use within the SMIL media framework. The SMIL panZoom attribute allows a SMIL author to define a two-dimensional extent over the visible surface of a media object and to subsequently project the contents within the panZoom area into a SMIL presentation.
Most of SMIL's layout elements and attributes provide the ability to define and manage a two-dimensional rendering space. This space is defined relative to a root-layout (or topLayout) specification. All of the coordinate and size specifications are in terms of the coordinate space defined for the layout root. In contrast, the panZoom attribute allows users to define an area in terms of the coordinate space used by the media object that is associated with the panZoom area. The panZoom area may be smaller, equal to, or larger than the related media object.
The following illustration shows three views of a 300x200 pixel image. In the left view, a panZoom area is shown that is the same size as the media object; in the middle view, a panZoom area is defined that covers the middle part of the image only; in the right view, a panZoom area is illustrated that is positioned (in both dimensions) partially outside the media object. Note that while this illustration shows the panZoom area projected onto an image, similar illustrations could be defined for videos or text objects, or any other object that may be mapped to a particular media bounding box.
Once a portion of a media object's visible area is defined with a panZoom area, the portion within the panZoom area is processed further as if it defined the full native view of the media object. The content within the panZoom area is projected into a region in a manner that is dependent on the region element associated with that object, including any scaling dictated by the fit attribute or (if appropriate), sub-region positioning and alignment directives.
If the region and the panZoom area have the same aspect ratios, then the panZoom area will, by default, fill the entire region. If the effective pixel dimensions of the region are larger than that of the panZoom area, the effect will be an enlargement of the media content. If the effective pixel dimensions of the window are smaller than that of the panZoom area, the effect will be a reduction in size of the media object. Other effects may be obtained by manipulating the fit attribute of the region.
If supported by the profile implementing this module, a dynamic pan-and-zoom effect may be obtained by applying standard SMIL animation primitives to the dimensions of the panZoom area. A pan effect may be obtained by varying the X and Y positioning values, and a zoom effect may be obtained by changing the size dimensions of the panZoom area. Examples of these effects are given later in this module description. Given the nature of independently animating collections of attribute values, care should be taken when specifying animation behavior.
If a panZoom area extends past the viewable extents of a media object (such as in the rightmost illustration, above), then the effective contents of these extended areas will be transparent.
This module does not define any new elements. It provides extensions to the ref element (and its synonyms), and to the region element.
The panZoom attribute is added to media object references.
The panZoom area is processed on the media object before any other SMIL layout processing occurs. The actual visual rendering of the content resulting from the processed panZoom area will be determined by, among other factors: the size of the target region, the application of sub-region positioning in that region (if supported by the profile), the value of the fit attribute on the region, and the effect of SMIL alignment attributes (if supported by the profile).
This section is informative.
If the profile integrating the panZoom element allows each of the attribute values to be animated, care should be taken to choose an animation calculation mode that will yield predictable results (such as using a linear mode). The animation of mixed percentage/pixel values for height and width is not recommended.
Note that the specification of negative values for left and top is not an error; this allows placing (a portion of) the panZoom area outside of the media.
The SMIL MediaPanZoom module does not extend the content model for the ref element integrating these attributes.
The panZoom attribute is added to regions definitions.
The SMIL MediaPanZoom module does not extend the content model for the region element integrating these attributes.
This section is informative.
Assume the following SMIL example:
<smil ...> <head> ... <layout> <root-layout height="200" width="300" backgroundColor="red" /> <region xml:id="I" top="0" left="0" height="200" width="300" backgroundColor="blue" /> </layout> </head> <body> <seq> <ref xml:id="R1" src="table.jpg" panZoom="0,0,300,200" dur="5s" region="I" /> <ref xml:id="R2" src="table.jpg" panZoom="80,50,160,125" dur="5s" region="I" fit="meet"/> <ref xml:id="R3" src="table.jpg" panZoom="80,50,160,125" dur="5s" region="I" fit="meetBest"/> <ref xml:id="R4" src="table.jpg" panZoom="240,120,85,110" dur="5s" region="I" fit="meet"/> </seq> </body> </smil>
In this example, a single region is defined that is used to display four instances of the same image. Each media reference within the sequence S contains a different panZoom area definition, each of which will result in the following behavior:
Note that the origin of the sub-image defined by the panZoom area is placed at the origin of the top-left of the region. Note also that the value of the fit attribute determines that the image is scaled (while maintaining the aspect ratio), resulting in the zoom effect.
All of the previous examples illustrate how a panZoom area operates on a media object that contains a media-defined viewable extent. The panZoom attribute may also be applied to visual objects that do not have predefined extents. Consider the following example, in which an unstructured text object is placed in a region:
<smil ...> <head> ... <layout> <root-layout height="200" width="300" backgroundColor="red" /> <region xml:id="T" top="0" left="0" height="50" width="300" backgroundColor="blue" /> </layout> </head> <body> <seq> <ref xml:id="R0" src="short_story.txt" panZoom="0,10,50,200" dur="10s" region="T" /> </seq> </body> </smil>
In this example, a single region is defined that is used to display a undimensioned text object. In SMIL 3.0, the text object would first be rendered to an off-screen bitmap based on the default settings for the media object (font, font size, font color) and then a panZoom area of the defined size would be overlaid on this text representation. This facility is especially useful when combined with SMIL Animation, as discussed in the next example.
The ability to define a panZoom area, when combined with SMIL animation primitives, provides a simple mechanism for doing pan/zoom animations over a visual object. (These pan/zoom animations are often called 'Ken Burns' animations.) The following example illustrates how a pan window may be positioned and moved over an image area:
<smil ...> <head> ... <layout> <root-layout height="200" width="300" backgroundColor="red" /> <region xml:id="B" top="0" left="0" height="50" width="75" backgroundColor="blue" /> </layout> </head> <body> <seq> <ref xml:id="R0" src="table_233x150.jpg" panZoom="0,0,50,75" dur="20s" region="B" fit="meet" > <animate attributeName="panZoom" values="25,20,50,75; 45,55,50,75; 140,40,50,75; 35,0,100,150; 0,0,100,150" dur="20s" /> </ref> ... </seq> </body> </smil>
In this example, an image with intrinsic size of 233x150 pixels is rendered into a region of size 50x75. An initial panZoom area is defined that displays a 50x75 portion of that image, positioned in its top-left corner. During the following 20 seconds, the panZoom area is moved across the image according to the behavior of the animate element; the panZoom area changes are scheduled at equal points across the animation timeline (in this case, every 5 seconds). During the final animation, the panZoom area is extended to implement a zoom-out across the entire image. An illustration of the rendering results is shown below:
This module does not define any SMIL events.
The MediaPanZoom module allows individual media object references to override the default values for certain attributes. In all cases, the attributes will apply only to the (sub-)region referenced by the media object. Changes will not propagate to child sub-regions or to parent regions.
The functionality in this module builds on top of the functionality in the Media module, which is a required prerequisite for inclusion of the MediaPanZoom module.
The functionality in this module builds on the viewBox definition of SVG. Unlike SVG, the SMIL panZoom attribute defines a logical sub-image that contains only content within the panZoom area; SVG uses the viewBox to define a minimum viewing dimension for content, but allowing content outside the viewBox to be displayed in the region.
The MediaPanZoom module does not define a preserveAspectRatio attribute, since this functionality is already provided by the SMIL fit and registration/alignment attributes.
See the full DTD for the SMIL Layout modules.
This section is informative.
With regards to the clipBegin/clip-begin and clipEnd/clip-end elements, SMIL 3.0 defines the following changes to the syntax defined in SMIL 1.0:
Using attribute names with hyphens such as clip-begin and clip-end is problematic when using a scripting language and the DOM to manipulate these attributes. Therefore, this specification adds the attribute names clipBegin and clipEnd as an equivalent alternative to the SMIL 1.0 clip-begin and clip-end attributes. The attribute names with hyphens are deprecated.
Authors may use two approaches for writing SMIL 3.0 presentations that use the new clipping syntax and functionality ("marker", default metric) defined in this specification, but can still can be handled by SMIL 1.0 software. First, authors may use non-hyphenated versions of the new attributes that use the new functionality, and add SMIL 1.0 conformant clipping attributes later in the text.
Example:
<audio src="radio.wav" clipBegin="marker=song1" clipEnd="marker=moderator1" clip-begin="npt=0s" clip-end="npt=3:50" />
SMIL 1.0 players implementing the recommended extensibility rules of SMIL 1.0 [SMIL10] will ignore the clip attributes using the new functionality, since they are not part of SMIL 1.0. SMIL 3.0 players, in contrast, will ignore the clip attributes using SMIL 1.0 syntax, because the SMIL 3.0 syntax takes precedence over the SMIL 1.0 syntax.
The second approach is to use the following steps:
Example:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <switch> <audio src="radio.wav" clipBegin="marker=song1" clipEnd="marker=moderator1" system-required="smil2" /> <audio src="radio.wav" clip-begin="npt=0s" clip-end="npt=3:50" /> </switch>
This section is informative.
The SMIL 3.0 specification leaves the basic syntax and semantics of the SMIL 2.1 timing model unchanged [SMIL21-timing]. The only change for SMIL 3.0 are that the four DOM method calls which were reserved in SMIL 2.1 have now been defined. A new module, DOMTimingMethods, was added which contains these DOM methods.
In addition to these changes, various typos were corrected and some clarifications were added.
This section is informative
SMIL 1.0 solved fundamental media synchronization problems and defined a powerful way of choreographing multimedia content. SMIL 2.0 extends the timing and synchronization support, adding capabilities to the timing model and associated syntax. SMIL 3.0 adds Document Object Model support. Some SMIL 1.0 syntax has been changed or deprecated. This section of the document specifies the Timing and Synchronization module.
There are two intended audiences for this module: implementers of SMIL 3.0 document viewers or authoring tools, and authors of other XML languages who wish to integrate timing and synchronization support. A language with which this module is integrated is referred to as a host language. A document containing SMIL Timing and Synchronization elements and attributes is referred to as a host document.
As this module is used in different profiles (i.e. host languages), the associated syntax requirements may vary. Differences in syntax should be minimized as much as is practical.
SMIL 3.0 Timing and Synchronization support is broken down into 17 modules, allowing broad flexibility for language designers integrating this functionality. These modules are described in Appendix A: SMIL Timing and Synchronization modules.
This section is informative
SMIL Timing defines elements and attributes to coordinate and synchronize the presentation of media over time. The term media covers a broad range, including discrete media types such as still images, text, and vector graphics, as well as continuous media types that are intrinsically time-based, such as video, audio and animation.
Three synchronization elements support common timing use-cases:
These elements are referred to as time containers. They group their contained children together into coordinated timelines.
SMIL Timing also provides attributes that may be used to specify an element's timing behavior. Elements have a begin, and a simple duration. The begin may be specified in various ways - for example, an element may begin at a given time, or based upon when another element begins, or when some event (such as a mouse click) happens. The simple duration defines the basic presentation duration of an element. Elements may be defined to repeat the simple duration, a number of times or for an amount of time. The simple duration and any effects of repeat are combined to define the active duration. When an element's active duration has ended, the element may either be removed from the presentation or frozen (held in its final state), e.g. to fill any gaps in the presentation.
An element becomes active when it begins its active duration, and becomes inactive when it ends its active duration. Within the active duration, the element is active, and outside the active duration, the element is inactive.
Figure 1 illustrates the basic support of a repeating element within a simple <par> time container. The corresponding syntax is included with the diagram.
<par begin="0s" dur="33s"> <video begin="1s" dur="10s" repeatCount="2.5" fill="freeze" .../> </par>
Figure 1 - Strip diagram of basic timing support. The starred "Simple*" duration indicates that the simple duration is partial (i.e. it is cut off early).
The attributes that control these aspects of timing may be applied not only to media elements, but to the time containers as well. This allows, for example, an entire sequence to be repeated, and to be coordinated as a unit with other media and time containers. While authors may specify a particular simple duration for a time container, it is often easier to leave the duration unspecified, in which case the simple duration is defined by the contained child elements. When an element does not specify a simple duration, the time model defines an implicit simple duration for the element. For example, the implicit simple duration of a sequence is based upon the sum of the active durations of all the children.
Each time container also imposes certain defaults and constraints upon the contained children. For example in a <seq>, elements begin by default right after the previous element ends, and in all time containers, the active duration of child elements is constrained not to extend past the end of the time container's simple duration. Figure 2 illustrates the effects of a repeating <par> time container as it constrains a <video> child element.
<par begin="0s" dur="12s" repeatDur="33s" fill="freeze" > <video begin="1s" dur="5s" repeatCount="1.8" fill="freeze" .../> </par>
Figure 2 - Strip diagram of time container constraints upon child elements. The starred "Simple*" durations indicate that the simple duration is partial (i.e. it is cut off early).
The SMIL Timing Model defines how the time container elements and timing attributes are interpreted to construct a time graph. The time graph is a model of the presentation schedule and synchronization relationships. The time graph is a dynamic structure, changing to reflect the effect of user events, media delivery, and DOM control of the presentation. At any given instant, the time graph models the document at that instant, and the semantics described in this module. However, as user events or other factors cause changes to elements, the semantic rules are re-evaluated to yield an updated time graph.
When a begin or end value refers to an event, or to the begin or active end of another element, it may not be possible to calculate the time value. For example, if an element is defined to begin on some event, the begin time will not be known until the event happens. Begin and end values like this are described as unresolved. When such a time becomes known (i.e. when it can be calculated as a presentation time), the time is said to be resolved. A resolved time is said to be definite if it is not the value "indefinite". See also the discussion of Unifying scheduled and interactive timing.
In an ideal environment, the presentation would perform precisely as specified. However, various real-world limitations (such as network delays) may influence the actual playback of media. How the presentation application adapts and manages the presentation in response to media playback problems is termed runtime synchronization behavior. SMIL includes attributes that allow the author to control the runtime synchronization behavior for a presentation.
This section is normative
This section is informative
This section remains largely unchanged for SMIL 3.0 except for the relaxation of the restrictions on the begin attributes of children of a seq time container. Also, a number of examples have been added.
This section is informative
The timing model is defined by building up from the simplest to the most complex concepts: first the basic timing and simple duration controls, followed by the attributes that control repeating and constraining the active duration. Finally, the elements that define time containers are presented.
The time model depends upon several definitions for the host document: A host document is presented over a certain time interval.
This section defines the set of timing attributes that are common to all of the SMIL synchronization elements.
Unless otherwise specified below, if there is any error in the argument value syntax for an attribute, the attribute will be ignored (as though it were not specified).
This section is informative
The basic timing for an element is described using the begin and dur attributes. Authors may specify the begin time of an element in a variety of ways, ranging from simple clock times to the time that an event (e.g. a mouse click) happens. The simple duration of an element is specified as a simple time value. The begin attribute syntax is described below.
The normative syntax rules for each attribute value variant are described in Timing attribute value grammars; an attribute value syntax summary is provided here as an aid to the reader.
id(Id-value)(begin)
is equivalent to
Id-value.begin
id(Id-value)(end)
is equivalent to
Id-value.end
id(Id-value)(Clock-value)
is equivalent
to Id-value.begin+ Clock-value
This section is informative
Children of a par begin by default
when the par begins (equivalent to
begin="0s"
). Children of a seq begin by default when the previous child
ends its active duration (equivalent to begin="0s"
); the first
child begins by default when the parent seq begins. Children of an excl default to a begin value of "indefinite".
The begin value may specify a list of times. This can be used to specify multiple "ways" or "rules" to begin an element, e.g. if any one of several events is raised. A list of times may also define multiple begin times, allowing the element to play more than once (this behavior can be controlled, e.g. to only allow the earliest begin to actually be used - see also the restart attribute).
In general, the earliest time in the list determines the begin time of the element. There are additional constraints upon the evaluation of the begin time list, detailed in Evaluation of begin and end time lists.
Note that while it is legal to include "indefinite" in a list of values for begin, "indefinite" is only really useful as a single value. Combining it with other values does not impact begin timing, as DOM begin methods may be called with or without specifying "indefinite" for begin.
When a begin time is specified as a syncbase variant, a marker value or a wallclock value, the defined time must be converted by the implementation to a time that is relative to the parent time container (i.e. to the equivalent of an offset value). This is known as timespace conversion, and is detailed in the section Converting between local and global times.
The computed begin time defines the scheduled synchronization relationship of the element, even if it is not possible to begin the element at the computed time. The time model uses the computed begin time, and not the observed time of the element begin.
This section is informative
The use of negative offsets to define begin times merely defines the synchronization relationship of the element. It does not in any way override the time container constraints upon the element, and it cannot override the constraints of presentation time.
If an element has a begin time that resolves to a time before the parent time container begins, the parent time container constraint still applies. For example:
<par> <video xml:id="vid" begin="-5s" dur="10s" src="movie.mpg" /> <audio begin="vid.begin+2s" dur="8s" src="sound.au" /> </par>
The video element cannot begin before the par begins. The begin is simply defined to occur "in the past" when the par begins. The viewer will observe that the video begins 5 seconds into the media, and ends after 5 seconds. Note that the audio element begins relative to the video begin, and that the computed begin time is used, and not the observed begin time as constrained by the parent. Thus the audio begins 3 seconds into the media, and also lasts 5 seconds.
The behavior can be thought of as a clipBegin value applied to the element, that only applies to the first iteration of repeating elements. In the example above, if either element were defined to repeat, the second and later iterations of the media would play from the beginning of the media (see also the repeatCount, repeatDur, and repeat attributes: repeating elements).
This section is informative
The behavior can be thought of as a clipBegin value applied to the element, that only applies to the first iteration of repeating elements.
The element will actually begin at the time computed according to the following algorithm:
Let o be the offset value of a given begin value, d be the associated simple duration, AD be the associated active duration. Let rAt be the time when the begin time becomes resolved. Let rTo be the resolved sync-base or event-base time without the offset Let rD be rTo - rAt. If rD < 0 then rD is set to 0. If AD is indefinite, it compares greater than any value of o or ABS(o). REM( x, y ) is defined as x - (y * floor( x/y )). If y is indefinite or unresolved, REM( x, y ) is just x. Let mb = REM( ABS(o), d ) - rD
If ABS(o) >= AD then the element does not begin. Else if mb >= 0 then the media begins at mb. Else the media begins at mb + d.
If the element repeats, the Iteration value of the repeat
event has the calculated value based upon the above computed begin time, and
not the observed number of repeats.
This section is informative
Thus for example:
<smil ...> ... <ref begin="foo.activateEvent-8s" dur="3s" repeatCount="10" .../> ... </smil>
The element begins when the user activates (for example, clicks on) the
element "foo". Its calculated begin time is actually 8 seconds earlier, and
so it begins to play at 2 seconds into the 3 second simple duration, on the
third repeat iteration. One second later, the fourth iteration of the element
will begin, and the associated repeat
event will have the
Iteration value set to 3 (since it is zero based). The element will end 22
seconds after the activation. The beginEvent
event is raised
when the element begins, but has a time stamp value that corresponds to the
defined begin time, 8 seconds earlier. Any time dependents are activated
relative to the computed begin time, and not the observed begin time.
Note: If script authors wish to distinguish between the computed repeat
iterations and observed repeat iterations, they can count actual
repeat
events in the associated event handler.
This section is informative
A begin time specifies a synchronization relationship between the element and the parent time container. Syncbase variants, eventbase, marker and wallclock timing are implicitly converted to an offset on the parent time container, just as an offset value specifies this directly. For children of a seq, the result is always a positive offset from the begin of the seq time container. However, for children of par and excl time containers the computed offset relative to the parent begin time may be negative.
Note that an element cannot actually begin until the parent time container begins. An element with a negative time delay behaves as if it had begun earlier.
The presentation effect for the element (e.g. the display of visual media) is equivalent to that for a clipBegin value (with the same magnitude) for the first -- and only the first -- iteration of a repeated element. If no repeat behavior is specified, the element presentation effect of a negative begin offset is equivalent to a clipBegin specification with the same magnitude as the offset value. Nevertheless, the timing side effects are not equivalent to a clipBegin value as described. Time dependents of the begin value will behave as though the element had begun earlier.
The length of the simple duration is specified using the dur attribute. The dur attribute syntax is described below.
If there is any error in the argument value syntax for dur, the attribute will be ignored (as though it were not specified).
If the "media
" attribute value is used on an element that
does not define media (e.g. on the SMIL 3.0 time container elements par, seq
and excl), the attribute will be
ignored (as though it were not specified). Contained media such as the
children of a par are not considered
media directly associated with the element.
If the element does not have a (valid) dur attribute, the simple duration for the element is defined to be the implicit duration of the element.
This section is informative
The implicit duration depends upon the type of an element. The primary distinction is between different types of media elements and time containers. If the media element has no timed children, it is described as a simple media element.
This comment is informative.
Note that clipBegin and clipEnd attributes on a media element may override the intrinsic media duration, and will define the implicit duration. See also the Media Object module.This comment is informative.
For par, seq and excl time containers, and media elements that are also time containers, the implicit simple duration is a function of the type of the time container and of its endsync attribute. For details see the section Time container durations.
If the author specifies a value for dur that is shorter than the implicit duration for an element, the implicit duration will be cut short by the specified simple duration.
If the author specifies a simple duration that is longer than the implicit duration for an element, the implicit duration of the element is extended to the specified simple duration:
This section is informative
Note that when the simple duration is "indefinite", some simple use cases can yield surprising results. See the related example #4 in Appendix B.
This section is informative
The following example shows simple offset begin timing. The <audio> element begins 5 seconds after the <par> time container begins, and ends 4 seconds later.
<par> <audio src="song1.au" begin="5s" dur="4s" /> </par>
The following example shows syncbase begin timing. The <img> element begins 2 seconds after the <audio> element begins.
<par> <audio xml:id="song1" src="song1.au" /> <img src="img1.jpg" begin="song1.begin+2s" /> </par>
Elements may also be specified to begin in response to an event. In this example, the image element begins (appears) when the user clicks on element "show". The image will end (disappear) 3 and a half seconds later.
<smil ...> ... <text xml:id="show" ... /> <img begin="show.activateEvent" dur="3.5s" ... /> ... </smil>
SMIL 3.0 provides an additional control over the active duration. The end attribute allows the author to constrain the active duration by specifying an end value using a simple offset, a time base, an event-base, a syncbase, or DOM methods calls. The rules for combining the attributes to compute the active duration are presented in the section, Computing the active duration.
The normative syntax rules for each attribute value variant are described in the section Timing attribute value grammars; a syntax summary is provided here as an aid to the reader.
endElement()
method call.This section is informative
If an end attribute is specified but none of dur, repeatCount and repeatDur are specified, the simple duration is defined to be indefinite, and the end value constrains this to define the active duration. The behavior of the simple duration in this case is defined in Dur value semantics, as though dur had been specified as "indefinite".
If the end value becomes resolved while the element is still active, and the resolved time is in the past, the element should end the active duration immediately. Time dependents defined relative to the end of this element should be resolved using the computed active end (which may be in the past), and not the observed active end.
The deprecated SMIL-1-syncbase-values are semantically equivalent to the following SMIL 3.0 End-value types:
id(Id-value)(begin)
is equivalent to
Id-value.begin
id(Id-value)(end)
is equivalent to
Id-value.end
id(Id-value)(Clock-value)
is equivalent to
Id-value.begin+Clock-value
This section is informative
The end value may specify a list of times. This can be used to specify multiple "ways" or "rules" to end an element, e.g. if any one of several events is raised. A list of times may also define multiple end times that may correspond to multiple begin times, allowing the element to play more than once (this behavior can be controlled - see also the restart attribute).
In the following example, the dur attribute is not specified, and so the simple duration is defined to be the implicit media duration. In this case (and this case only) the value of end will extend the active duration if it specifies a duration greater than the implicit duration. The video will be shown for 8 seconds, and then the last frame will be shown for 2 seconds.
<video end="10s" src="8-SecondVideo.mpg" .../>
If an author wishes to specify the implicit duration as well as an end
constraint, the dur attribute may be
specified as "media
". In the following example, the element will
end at the earlier of the intrinsic media duration, or a mouse click:
<smil ...> ... <video dur="media" end="activateEvent" src="movie.mpg" .../> ... </smil>
These cases arise from the use of negative offsets in the sync-base and event-base forms, and authors should be aware of the complexities this can introduce. See also Handling negative offsets for end.
In the following example, the active duration will end at the earlier of 10 seconds, or the end of the "foo" element. This is particularly useful if "foo" is defined to begin or end relative to an event.
<audio src="foo.au" dur="2s" repeatDur="10s" end="foo.end" .../>
In the following example, the active duration will end at 10 seconds, and will cut short the simple duration defined to be 20 seconds. The effect is that only the first half of the element is actually played. For a simple media element, the author could just specify this using the dur attribute. However in other cases, it is sometimes important to specify the simple duration independent of the active duration.
<par> <audio src="music.au" dur="20s" end="10s" ... /> </par>
In the following example, the element begins when the user activates (e.g., clicks on) the "gobtn" element. The active duration will end 30 seconds after the parent time container begins.
<smil ...> ... <par> <audio src="music.au" begin="gobtn.activateEvent" repeatDur="indefinite" end="30s" ... /> <img src="foo.jpg" dur="40s" ... /> </par> ... </smil>
Note that if the user has not clicked on the target element before 30 seconds elapse, the element will never begin. In this case, the element has no active duration and no active end.
The defaults for the event syntax make it easy to define simple interactive behavior. The following example stops the image when the user clicks on the element.
<smil ...> ... <img src="image.jpg" end="activateEvent" /> ... </smil>
Using end with an event value enables authors to end an element based on either an interactive event or a maximum active duration. This is sometimes known as lazy interaction.
In this example, a presentation describes factory processes. Each step is a video, and set to repeat 3 times to make the point clear. Each element may also be ended by clicking on the video, or on some element "next" that indicates to the user that the next step should be shown.
<smil ...> ... <seq> <video dur="5s" repeatCount="3" end="activateEvent; next.activateEvent" .../> <video dur="5s" repeatCount="3" end="activateEvent; next.activateEvent" .../> <video dur="5s" repeatCount="3" end="activateEvent; next.activateEvent" .../> <video dur="5s" repeatCount="3" end="activateEvent; next.activateEvent" .../> <video dur="5s" repeatCount="3" end="activateEvent; next.activateEvent" .../> </seq> ... </smil>
In this case, the active end of each element is defined to be the earlier of 15 (5s dur * 3 repeats) seconds after it begins, or a click on "next". This lets the viewer sit back and watch, or advance the presentation at a faster pace.
The min/max attributes provide the author with a way to control the lower and upper bound of the element active duration.
If there is any error in the argument value syntax for min, the attribute will be ignored (as though it were not specified).
The default value for min is "0". This does not constrain the active duration at all.
If there is any error in the argument value syntax for max, the attribute will be ignored (as though it were not specified).
The default value for max is "indefinite". This does not constrain the active duration at all.
If the "media
" argument value is specified for either min or max on an element that does not define media
(e.g. on the SMIL 3.0 time container elements par, seq
and excl), the respective attribute
will be ignored (as though it were not specified). Contained media such as
the children of a par are not considered
media directly associated with the element.
If both min and max attributes are specified then the max value must be greater than or equal to the min value. If this requirement is not fulfilled then both attributes are ignored.
The rule to apply to compute the active duration of an element with min or max specified is the following: Each time the active duration of an element is computed (i.e. for each interval of the element if it begins more than once), this computation is made without taking into account the min and max attributes (by applying the algorithm described in Computing the active duration). The result of this step is checked against the min and max bounds. If the result is within the bounds, this first computed value is correct. Otherwise two situations may occur:
if the first computed duration is greater than the max value, the active duration of the element is defined to be equal to the max value (see the first example below).
if the first computed duration is less than the min value, the active duration of the element becomes equal to the min value and the behavior of the element is as follows :
if the repeating duration (or the simple duration if the element doesn't repeat) of the element is greater than min then the element is played normally for the (min constrained) active duration. (see the second and third examples below).
otherwise the element is played normally for its repeating duration (or simple duration if the element does not repeat) and then is frozen or not shown depending on the value of the fill attribute (see the fourth and fifth examples below).
This section is informative
The following examples illustrate some simple use cases for min and max attributes:
Example 1. In the following example, the video will only play for 10 seconds.
<smil ...> ... <par > <video xml:id="video_of_15s" max="10s".../> </par> ... </smil>
Example 2. In the following example, if an activate event happens before 10 seconds, this activation (e.g. click) does not interrupt the video immediately, but the video plays until 10 seconds and then stops. If a click event happens after 10 seconds, the video plays (repeating) until the click happens. Note, the endEvent is only raised if a click occurs after 10 seconds, not at the simple end of each repeat.
<smil ...> ... <par > <video xml:id="video_of_15s" repeatDur="indefinite" end="activateEvent" min="10s".../> </par> ... </smil>
Example 3. In the following example, if an activate event happens on element "foo" at 5 seconds, this event does not end the time container immediately, but rather at 12 seconds. The simple duration is defined to be "indefinite" (because an end attribute is specified with no dur attribute), and so the time container plays normally until it ends at 12 seconds.
<smil ...> ... <par end="foo.activateEvent" min="12s" > <video xml:id="video_of_15s" .../> <video xml:id="video_of_10s" .../> </par> ... </smil>
Example 4. In the following example, if a click event happens on the first video at 5 seconds, then the simple duration of the time container is computed as 5 seconds. Respecting the fill attribute in the time between the end of the simple duration and the end of the active duration, the two videos are frozen between 5 seconds and 12 seconds.
<smil ...> ... <par endsync="first" min="12s" fill="freeze" > <video xml:id="video_of_15s" end="activateEvent" ...> <video xml:id="video_of_10s" .../> </par> ... </smil>
Example 5. In the following example, the time container simple duration is
defined to be 5 seconds, and the min constraint defines the active duration
to be 12 seconds. Since the default value of fill in this case is "remove"
,
nothing is shown for the time container between 5 seconds and 12 seconds.
<par dur="5s" min="12s" > <video xml:id="video_of_15s" .../> <video xml:id="video_of_10s" .../> </par>
This section is informative
If an element is defined to begin before its parent (e.g. with a simple negative offset value), the min duration is measured from the calculated begin time not the observed begin (see example 1 below). This means that the min value may have no observed effect (as in example 2 below).
Example 1. In the following example, the image will be displayed from the beginning of the time container for 2 seconds.
<par> <img xml:id="img" begin="-5s" min="7s" dur="5s" .../> </par>
Example 2. In the following example, the image will not be displayed at all.
<par> <img xml:id="img" begin="-5s" min="4s" dur="2s" .../> </par>
See also the sections The min attribute and restart and Time container constraints on child durations.
The syntax specifications are defined using EBNF notation as defined in XML 1.1 [XML11]
In the syntax specifications that follow, allowed white space is indicated as "S", defined as follows (taken from the [XML11] definition for 'S'):
S ::= (#x20 | #x9 | #xD | #xA)+
A Begin-value-list is a semi-colon separated list of timing specifiers:
Begin-value-list ::= Begin-value (S? ";" S? Begin-value-list )? Begin-value ::= (Offset-value | Syncbase-value | Event-value | Repeat-value | Accesskey-value | Media-Marker-value | Wallclock-sync-value | "indefinite" )
An End-value-list is a semi-colon separated list of timing specifiers:
End-value-list ::= End-value (S? ";" S? End-value-list )? End-value ::= (Offset-value | Syncbase-value | Event-value | Repeat-value | Accesskey-value | Media-Marker-value | Wallclock-sync-value | "indefinite" )
Several of the timing specification values have a similar syntax. To
parse an individual item in a value-list, the following approach defines the
correct interpretation. In addition, Id-values and Event-symbols are XML NMTOKEN values and
as such are allowed to contain the full stop '.
' and
hyphen-minus '-' characters. The reverse solidus character '\' must be used
to escape these characters within Id-values and Event-symbols, otherwise these characters
will be interpreted as the full stop separator and hyphen-minus sign,
respectively. Once these rules are interpreted, but before Id-values in
syncbase values, event values, or media-marker values are further handled,
all leading and embedded escape characters should be removed.
'+'
or '-'
), the value should be parsed as an
offset value..
'
characters preceded by a reverse solidus '\
' escape
character should not be treated as a separator, but as a normal token
character.
.
' separator character, then
the value should be parsed as an Event-value with an unspecified
(i.e. default) eventbase-element..begin
" or ".end
", then the value should
be parsed as a Syncbase-value..marker(
", then the value should be parsed as a Media-Marker-value.This section is informative
This approach allows implementations to treat the
tokens wallclock and
indefinite
as reserved element IDs, and begin, end and marker as reserved event names, while retaining an
escape mechanism so that elements and events with those names may be
referenced.
Clock values have the following syntax:
Clock-value ::= ( Full-clock-value | Partial-clock-value | Timecount-value ) Full-clock-value ::= Hours ":" Minutes ":" Seconds ("." Fraction)? Partial-clock-value ::= Minutes ":" Seconds ("." Fraction)? Timecount-value ::= Timecount ("." Fraction)? (Metric)? Metric ::= "h" | "min" | "s" | "ms" Hours ::= DIGIT+ /* any positive number */ Minutes ::= 2DIGIT /* range from 00 to 59 */ Seconds ::= 2DIGIT /* range from 00 to 59 */ Fraction ::= DIGIT+ Timecount ::= DIGIT+ 2DIGIT ::= DIGIT DIGIT DIGIT ::= [0-9]
For Timecount values, the default metric suffix is "s" (for seconds).
This section is informative
No embedded white space is allowed in clock values, although leading and trailing white space characters will be ignored.
The following are examples of legal clock values:
02:30:03
= 2 hours, 30 minutes and 3 seconds 50:00:10.25
= 50 hours, 10 seconds and 250
milliseconds
02:33
= 2 minutes and 33 seconds 00:10.5
= 10.5 seconds = 10 seconds and 500
milliseconds 3.2h
= 3.2 hours = 3 hours and 12 minutes 45min
= 45 minutes 30s
= 30 seconds 5ms
= 5 milliseconds 12.467
= 12 seconds and 467 millisecondsFractional values are just (base 10) floating point definitions of seconds. The number of digits allowed is unlimited (although actual precision may vary among implementations).
This section is informative
For example:
00.5s = 500 milliseconds 00:00.005 = 5 milliseconds
This section is informative
Offset values are used to specify when an element should begin or end relative to its syncbase.
An offset value has the following syntax:
Offset-value ::= ( S? ("+" | "-") S? )? ( Clock-value )
The implicit syncbase for an offset value is dependent upon the time container:
This section is informative
Deprecated.
SMIL-1-syncbase-value ::= SMIL-1-Id-value ( "(" ( "begin" | "end" | Clock-value) ")" )? SMIL-1-Id-value ::= "id(" Idref ")"
ID reference values are references to the value of an "id" attribute of another element in the document.
Id-value ::= Id-ref-value Id-ref-value ::= Idref | Escaped-Id-ref-value Idref ::= Name Escaped-Id-ref-value ::= Escape-Char? NameStartChar (Escape-Char? NameChar)* Escape-Char ::= "\"
Name
, NameStartChar
and NameChar
are defined in XML 1.1 [XML11].Idref
is a legal XML identifier.If the element referenced by the Idref is ignored as described in the Content Control modules (e.g. if it specifies test attributes that evaluate false), the associated time value (i.e.. the syncbase value or the eventbase value that specifies the Id-value) will be considered invalid.
This section is informative
The semantics of ignored elements may change in a future version of SMIL. One possible semantic is that the associated sync arc arguments will not be invalid, but will instead always be "unresolved". When this behavior needs to be simulated in this version of SMIL Timing and Synchronization, an author may include the value "indefinite" in the list of values for the begin or end attribute.
A syncbase value starts with a Syncbase-element term defining the value of an "id" attribute of another element referred to as the syncbase element.
A syncbase value has the following syntax:
Syncbase-value ::= ( Syncbase-element "." Time-symbol ) ( S? ("+"|"-") S? Clock-value )? Syncbase-element ::= Id-value Time-symbol ::= "begin" | "end"
The syncbase element is qualified with one of the following time symbols:
This section is informative
Examples
begin="x.end-5s"
: Begin 5 seconds before "x"
ends
begin=" x.begin "
: Begin when "x" begins
end="x.begin + 1min"
: End 1 minute after "x" begins
An Event value starts with an Eventbase-element term that specifies the event-base element. The event-base element is the element on which the event is observed. Given DOM event bubbling, the event-base element may be either the element that raised the event, or it may be an ancestor element on which the bubbled event may be observed. Refer to DOM-Level2-Events [DOM2Events] for details.
An event value has the following syntax:
Event-value ::= ( Eventbase-element "." )? Event-symbol ( S? ("+"|"-") S? Clock-value )? Eventbase-element ::= Id-value Event-symbol ::= Nmtoken
The symbol Nmtoken
is defined in XML 1.1 [XML11].
The eventbase-element must be another element contained in the host document.
If the Eventbase-element term is missing, the event-base element defaults to the element on which the eventbase timing is specified (the current element). A host language designer may override the definition of the default eventbase element. As an example of this, the SMIL 3.0 Animation modules describe Timing integration requirements for the animation elements (animate, animateMotion, etc.). These requirements specify that the default eventbase element is the target element of the animation. See the section Common Animation Integration Requirements.
The event value must specify an Event-symbol. This term is an XML NMTOKEN that specifies the name of the event that is raised on the Event-base element. The host language designer must specify which events may be specified.
If an integrating language specifies no supported events, the event-base time value is effectively unsupported for that language.
A host language may choose not to include support for offsets with event values. The language must specify if this support is omitted.
If the host language allows dynamically created events (as supported by DOM-Level2-Events [DOM2Events]), all possible Event-symbol names cannot be specified and so unrecognized names may not be considered errors.
Unless explicitly specified by a host language, it is not considered an error to specify an event that cannot be raised on the Event-base element (such as activateEvent or click for audio or other non-visual elements). Since the event will never be raised on the specified element, the event-base value will never be resolved.
The last term specifies an optional Offset-value that is an offset from the time of the event.
This section is informative
This module defines several events that may be included in the supported
set for a host language, including beginEvent
and
endEvent
. These should not be confused with the syncbase time
values. See the section on
Events and event model.
The semantics of event-based timing are detailed in Unifying Scheduling and Interactive Timing. Constraints on event sensitivity are detailed in Event sensitivity.
Examples:
begin=" x.load "
: Begin when "load" is observed on
"x"
begin="x.focus+3s"
: Begin 3 seconds after a "focus" event
on "x"
begin="x.endEvent+1.5s"
: Begin 1 and a half seconds after an
"endEvent" event on "x"
begin="x.repeat"
: Begin each time a repeat
event is observed on "x"
The following example describes a qualified repeat eventbase value:
<smil ...> ... <video xml:id="foo" repeatCount="10" end="endVideo.activateEvent" ... /> <img xml:id="endVideo" begin="foo.repeat(2)" .../> ... </smil>
The "endVideo" image will appear when the video "foo" repeats the second time. This example allows the user to stop the video after it has played though at least twice.
Repeat values are a variant on event values that
support a qualified repeat event. The repeat
event defined in Events and event model allows an additional
suffix to qualify the event based upon an Iteration value.
A repeat value has the following syntax:
Repeat-value ::= ( Eventbase-element "." )? "repeat(" Iteration ")" ( S? ("+"|"-") S? Clock-value )? Iteration ::= DIGIT+
If this qualified form is used, the eventbase value will only be resolved when a repeat is observed that has an Iteration value that matches the specified iteration.
This section is informative
The qualified repeat event syntax allows an author to respond only to an individual repeat of an element.
Accesskey values allow an author to tie a begin or end time to a particular key press, independent of focus issues. It is modeled on the HTML accesskey support. Unlike with HTML, user agents should not require that a modifier key (such as "ALT") be required to activate an access key.
An access key value has the following syntax:
Accesskey-value ::= "accesskey(" Char ")" ( S? ("+"|"-") S? Clock-value )?
The Char
symbol is defined in XML 1.1 [XML11].
The time value is defined as the time that the access key character is input by the user.
This section is informative
Certain types of media can have associated marker values that associate a name with a particular point (i.e. a time) in the media. The media marker value provides a means of defining a begin or end time in terms of these marker values. Note that if the referenced id is not associated with a media element that supports markers, or if the specified marker name is not defined by the media element, the associated time may never be resolved.
Media-Marker-value ::= Id-value ".marker(" S? Marker-name S? ")" Marker-name ::= (Char - ")")+
Char
symbol is defined in XML 1.1 [XML11].Marker-name
symbol is a string that must conform to the definition of
marker names for the media associated with the Id-value.Wallclock-sync values have the following syntax. The values allowed are based upon several of the "profiles" described in [DATETIME], which is based upon [ISO8601].
Wallclock-sync-value ::= "wallclock(" S? (DateTime | WallTime | Date) S? ")" DateTime ::= Date "T" WallTime Date ::= Years "-" Months "-" Days WallTime ::= (HHMM-Time | HHMMSS-Time)(TZD)? HHMM-Time ::= Hours24 ":" Minutes HHMMSS-Time ::= Hours24 ":" Minutes ":" Seconds ("." Fraction)? Years ::= 4DIGIT; Months ::= 2DIGIT /* range from 01 to 12 */ Days ::= 2DIGIT /* range from 01 to 31 */ Hours24 ::= 2DIGIT /* range from 00 to 23 */ 4DIGIT ::= DIGIT DIGIT DIGIT DIGIT TZD ::= "Z" | (("+" | "-") Hours24 ":" Minutes )
This section is informative
Complete date plus hours and minutes:
YYYY-MM-DDThh:mmTZD (e.g. 1997-07-16T19:20+01:00)
Complete date plus hours, minutes and seconds:
YYYY-MM-DDThh:mm:ssTZD (e.g. 1997-07-16T19:20:30+01:00)
Complete date plus hours, minutes, seconds and a decimal fraction of a second
YYYY-MM-DDThh:mm:ss.sTZD (e.g. 1997-07-16T19:20:30.45+01:00)
Note that the Minutes
, Seconds
, Fraction
, 2DIGIT
and DIGIT
syntax is as
defined for Clock-values. Note that
white space is not allowed within the date and time specification.
There are three ways of handling time zone offsets:
This section is informative
The presentation engine must be able to convert wallclock-values to a time within the document.
This section is informative
Note that the resulting begin or end time may be before the begin, or after end of the parent time container. This is not an error, but the time container constraints still apply. In any case, the semantics of the begin and end attribute govern the interpretation of the wallclock value.
This section is informative
The following examples all specify a begin at midnight on January 1st 2000, UTC:
begin="wallclock( 2000-01-01T00:00Z )" begin="wallclock( 2000-01-01T00:00:00Z )" begin="wallclock( 2000-01-01T00:00:00.0Z )" begin="wallclock( 2000-01-01T00:00:00.0Z )" begin="wallclock( 2000-01-01T00:00:00.0-00:00 )"
The following example specifies a begin at 3:30 in the afternoon on July 28th 1990, in the Pacific US time zone:
begin="wallclock( 1990-07-28T15:30-08:00 )"
The following example specifies a begin at 8 in the morning wherever the document is presented:
begin="wallclock( 08:00 )"
The endsync attribute controls the implicit duration of time containers, as a function of the children. The endsync attribute is only valid for par and excl time container elements, and media elements with timed children (e.g. animate or area elements). Integrating languages may allow the endsync attribute on any element with time container semantics.
This section is informative
The endsync attribute is particularly useful with children that have "unknown" duration, e.g. an MPEGmovie, that must be played through to determine the duration, or elements with event-based end timing.
Elements may have an unresolved or indefinite begin time when the parent begins. If an element's unresolved begin time becomes resolved (and definite) before the parent time container ends the simple duration, the element must be considered by the endsync="last" semantics.
This comment is informative.
This may chain, so that only one element is running at one point, but before it ends its active duration another interactive element is resolved. It may even yield "dead time" (where nothing is playing), if the resolved begin is after the other elements active end.
If the endsync semantics consider any child that has an unresolved active duration, then the implicit duration of the time container is also unresolved.
For the Id-value arg-value variant, the referenced child may have an unresolved begin time. If this causes the active end time to be unresolved as well, the implicit duration of the time container is also unresolved.
If the endsync semantics consider any child that has a (resolved) indefinite active duration, then the implicit duration of the time container is also indefinite.
Media element time containers define an intrinsic duration equal to the duration of the referenced media.
This comment is informative.
If the referenced media is not continuous, the duration is 0 (endsync="media" will not generally be useful on discrete media).
If the media argument value is used for an element that does not declare media, the attribute is ignored (as though endsync had not been specified).
If the Id-value arg-value variant is not an immediate child of the time container, it is as if endsync is not specified.
For the purpose of parsing the endsync argument value, first, last, all, and media are reserved words and must be escaped with a backslash in order to be used as Id-value's.
Semantics of endsync and dur and end:
Semantics of endsync and restart:
Semantics of endsync and paused elements:
Note that child elements of an excl that are currently paused (by the
excl semantics) have not ended
their active duration. Similarly, any element paused via the DOM
pause()
method has not completed its active duration. Paused
elements (that have not already completed the active duration at least
once) must be considered in the evaluation of endsync.
This comment is informative.
For example, if a time container with endsync=
"last" has paused child elements, the simple
duration of the time container will not end until the paused children
resume or otherwise end.
This section is informative
Semantics of endsync and unresolved child times:
=
"first" means that the element must wait for any
child element to actually end its active duration. It does not matter
whether the first element to end was scheduled or interactive.=
"last" means that the element must wait for all
child elements that have a resolved begin, to end the respective active
durations. =
"all" means that the element must wait for the end
of every child element's active duration. =
[Id-value] means that the element must
wait for the referenced element to actually end its active duration.The following pseudo-code describes the endsync algorithm:
// // boolean timeContainerHasEnded() // // method on time containers called to evaluate whether // time container has ended, according to the rules of endsync. // Note: Only supported on par and excl // // A variant on this could be called when a child end is updated to // create a scheduled (predicted) end time for the container. // // Note that we never check the end time of children - it doesn't matter. // // Assumes: // child list is stable during evaluation // isActive state of children is up to date for current time. // [In practice, this means that the children must all be // pre-visited at the current time to see if they are done. // If the time container is done, and repeats, the children // may be resampled at the modified time.] // // Uses interfaces: // on TimedNode: // isActive() tests if node is currently active // hasStarted() tests if node has (ever) begun // begin and end begin and end TimeValues of node // // on TimeValue (a list of times for begin or end) // is Resolved(t) true if there is a resolved time // at or after time t // boolean timeContainerHasEnded() { TimeInstant now = getCurrentTime(); // normalized for time container boolean assumedResult; // For first or ID, we assume a false result unless we find a child that has ended // For last and all, we assume a true result unless we find a disqualifying child if( ( endsyncRule == first ) || ( endsyncRule == ID ) ) assumedResult = false; else assumedResult = true; // Our interpretation of endsync == all: // we're done when all children have begun, and none is active // // loop on each child in collection of timed children, // and consider it in terms of the endsyncRule foreach ( child c in timed-children-collection ) { switch( endsyncRule ) { case first: // as soon as we find an ended child, return true. if( c.hasStarted() & !c.isActive() ) return true; // else, keep looking (assumedResult is false) break; case ID: // if we find the matching child, just return result if( endsyncID == c.ID ) return( c.hasStarted() & !c.isActive() ); // else, keep looking (we'll assume the ID is valid) break; case last: // we just test for disqualifying children // If the child is active, we're definitely not done. // If the child has not yet begun but has a resolved begin, // then we're not done. if( c.isActive() || c.begin.isResolved(now) ) return false; // else, keep checking (the assumed result is true) break; case all: // we just test for disqualifying children // all_means_last_done_after_all_begin // If the child is active, we're definitely not done. // If the child has not yet begun then we're not done. // Note that if it has already begun, // then we still have to wait for any more resolved begins if( c.isActive() || !c.hasStarted() || c.begin.isResolved(now) ) return false; // else, keep checking (the assumed result is true) break; } // close switch } // close foreach loop return assumedResult; } // close timeContainerHasEnded()
This section is informative
SMIL 1.0 introduced the repeat attribute, which is used to repeat a media element or an entire time container. SMIL 2.0 introduces two new controls for repeat functionality that supersede the SMIL 1.0 repeat attribute. The new attributes, repeatCount and repeatDur, provide a semantic that more closely matches typical use-cases, and the new attributes provide more control over the duration of the repeating behavior.
Repeating an element causes the simple duration to be "played" several times in sequence. This will effectively copy or loop the contents of the element media (or an entire timeline in the case of a time container). The author may specify either how many times to repeat, using repeatCount, or how long to repeat, using repeatDur. Each repeat iteration is one instance of "playing" the simple duration.
This section is informative
This section is informative
In the following example, the implicit duration of the audio is constrained by repeatCount. Only the first half of the clip will play; the active duration will be 1.5 seconds.
<audio src="3second_sound.au" repeatCount="0.5" />
In this example, the 3 second (implicit) simple duration will be played three times through and then is constrained by the dur attribute on the parent par; the active duration will be 9 seconds.
<par dur="9s"> <audio src="3second_sound.au" repeatCount="100" /> </par>
In the following example, the 2.5 second simple duration will be repeated twice; the active duration will be 5 seconds.
<audio src="background.au" dur="2.5s" repeatCount="2" />
In the following example, the 3 second (implicit) simple duration will be repeated two full times and then the first half is repeated once more; the active duration will be 7.5 seconds.
<audio src="3second_sound.au" repeatCount="2.5" />
In the following example, the audio will repeat for a total of 7 seconds. It will play fully two times, followed by a fractional part of 2 seconds. This is equivalent to a repeatCount of 2.8.
<audio src="music.mp3" dur="2.5s" repeatDur="7s" />
Note that if the simple duration is indefinite, repeat behavior is not defined (but repeatDur still contributes to the active duration). In the following example the simple duration is 0 and indefinite respectively, and so the repeatCount is ignored. Nevertheless, this is not considered an error. The active duration is equal to the simple duration: for the first element, the active duration is 0, and for the second element, the active duration is indefinite.
<img src="foo.jpg" repeatCount="2" /> <img src="bar.png" dur="indefinite" repeatCount="2" />
In the following example, the simple duration is 0 for the image and indefinite for the text element, and so repeat behavior is not meaningful. The active duration is 0 for the first element, however for the second element, the active duration is determined by the repeatDur value, and so is 10 seconds. The effect is that the text is shown for 10 seconds.
<img src="foo.jpg" repeatDur="10s" /> <text src="intro.html" dur="indefinite" repeatDur="10s" />
In the following example, if the audio media is longer than the 5 second repeatDur, then the active duration will effectively cut short the simple duration.
<audio src="8second_sound.au" repeatDur="5s" />
The repeatCount and repeatDur attributes may also be used to repeat an entire timeline (i.e. a time container simple duration), as in the following example. The sequence has an implicit simple duration of 13 seconds. It will begin to play after 5 seconds, and then will repeat the sequence of three images 3 times. The active duration is thus 39 seconds long.
<seq begin="5s" repeatCount="3" > <img src="img1.jpg" dur="5s" /> <img src="img2.jpg" dur="4s" /> <img src="img3.jpg" dur="4s" /> </seq>
This section is informative
The min attribute does not prevent an element from restarting before the minimum active duration is reached. If in the following example, the "user.activateEvent" occurs once at 2 seconds, then again at 5 seconds, the "image" element will begin at 2 seconds, play for 3 seconds, and then be restarted at 5 seconds. The restarted interval (beginning at 5 seconds) will display the image until 12 seconds.
<smil ...> ... <par> <img xml:id="image" begin="user.activateEvent" min="7s" dur="5s" restart="always" fill="freeze".../> </par> ... </smil>
This section is informative
The SMIL 1.0 repeat attribute behaves in a manner similar to repeatCount, but it defines the functionality in terms of a sequence that contains the specified number of copies of the element without the repeat attribute. This definition has caused some confusion among authors and implementers. See also the SMIL 1.0 specification [SMIL10].
In particular, there has been confusion concerning the behavior of the SMIL 1.0 end attribute when used in conjunction with the repeat attribute. SMIL 3.0 complies with the common practice of having the end attribute define the element's simple duration when the deprecated repeat attribute is used. Only SMIL document user agents must support this semantic for the end attribute. Only a single SMIL 1.0 "end" value (i.e. an Offset-value or a SMIL-1-syncbase-value, but none of the new SMIL 2.0 timing) is permitted when used with the deprecated repeat attribute. If repeat is used with repeatCount or repeatDur on an element, or if repeat is used with an illegal end value, the repeat value is ignored.
This section is informative
When an element's active duration ends, it may be frozen at the final state, or it may no longer be presented (i.e., its effect is removed from the presentation). Freezing an element extends it, using the final state defined in the last instance of the simple duration. This may be used to fill gaps in a presentation, or to extend an element as context in the presentation (e.g. with additive animation - see the SMIL 3.0 Animation chapter).
The fill attribute allows an author to specify that an element should be extended beyond the active duration by freezing the final state of the element. The fill attribute is also used to determine the behavior when the active duration is less than the duration specified in the min attribute. For this reason, rather than referring to the end of the active duration, this description refers to the "last instance of the simple duration".
The last instance of the simple duration is the last frame or value that was played during the last instance (see The instance times lists) of the simple duration of the element before it finished or was stopped because of an end attribute.
This section is informative
The syntax of the fill attribute is the same as in SMIL 1.0, with two extensions. In addition, the fill attribute may now be applied to any timed element, including time containers.
=
"hold") will refresh their display area
when a layer is added on top then later removed.This section is informative.
Note that given the default values for fill and fillDefault attributes, if the fill attribute is not specified for an element, and if the fillDefault attribute is not specified for any ascendant of the element, the behavior uses "auto" semantics.
An element with "freeze" behavior is extended according to the parent time container:
=
"freeze"
is equivalent to fill=
"hold".When applied to media, fill only has a presentation effect on visual media. Non-visual media (audio) will simply be silent (although they are still frozen from a timing perspective).
The effects of the fill attribute apply only to the timing semantics. If an element is still visible while frozen, it behaves normally with respect to other semantics such as user event processing. In particular, elements such as a and area are still sensitive to user activation (e.g. clicks) when frozen. See also the SMIL 1.0 specification [SMIL10].
This section is informative
The fill attribute may be used to maintain the value of a media element after the active duration of the element ends:
<par endsync="last"> <video src="intro.mpg" begin= "5s" dur="30s" fill="freeze" /> <audio src="intro.au" begin= "2s" dur="40s"/> </par>
The video element ends 35 seconds after the parent time container began, but the video frame at 30 seconds into the media remains displayed until the audio element ends. The attribute "freezes" the last value of the element for the remainder of the time container's simple duration.
This functionality is also useful to keep prior elements on the screen while the next item of a seq time container prepares to display as in this example:
<seq> <video xml:id="v1" fill="freeze" src.../> <video xml:id="v2" begin="2s" src.../> </seq>
The first video is displayed and then the last frame is frozen for 2 seconds, until the next element begins. Note that if it takes additional time to download or buffer video "v2" for playback, the first video "v1" will remain frozen until video "v2" actually begins.
This section is informative
Note that there are several ways that an element may be restarted. The behavior (i.e. to restart or not) in all cases is controlled by the restart attribute. The different restart cases are:
As with any begin time, if an element is scheduled to restart after the end of the parent time container simple duration, the element will not restart.
For the precise definition of when restart semantics apply, see the section Evaluation of begin and end time lists.
=
"never" will be reset, and the element may begin
again normally. See also Resetting element state.The restartDefault attribute may be used to control the default behavior of the restart attribute. This is described below in Controlling the default behavior of restart.
This section is informative.
For details on when and how the restart attribute is evaluated, see Evaluation of begin and end time lists.
This section is informative
A common use-case requires that the same UI event is used to begin an element and to end the active duration of the element. This is sometimes described as "toggle" activation, because the UI event toggles the element "on" and "off". The restart attribute can be used to author this, as follows:
<smil ...> ... <img xml:id="foo" begin="bar.activateEvent" end="bar.activateEvent" restart="whenNotActive" ... /> </smil>
If "foo" were defined with the default restart behavior "always", a second activateEvent on the "bar" element would simply restart the element. However, since the second activateEvent cannot restart the element when restart is set to "whenNotActive", the element ignores the "begin" specification of the activateEvent event. The element may then use the activateEvent event to end the active duration and stop the element.
Note that in SMIL Language documents, a SMIL element cannot be visible
before it begins so having a begin=
"activateEvent" means it won't ever begin. In languages
with timeAction
support, this may not be the case. For example,
the following is reasonable:
<html xmlns:smil="http://www.w3.org/ns/SMIL" ...> ... <span smil:begin="click" smil:end="click" smil:timeAction="class:highlight" smil:restart="whenNotActive"> Click here to highlight. Click again to remove highlight. </span> ... </html>
This is based upon the event sensitivity semantics described in Event sensitivity and Unifying Scheduling and Interactive Timing.
The following attribute is provided to specify the default behavior for restart:
This section is informative.
Given the default values of this attribute
("inherit")
and of the restart attribute
("default"), a document that does not specify these attributes will have
restart=
"always" behavior for all timed elements.
When a time container repeats or restarts, all descendant children are "reset" with respect to certain state:
This section is informative
Thus, for example if an element specifies restart=
"never", the element may begin again after a reset. The
restart=
"never" setting is only defined for the extent of the
parent time container simple duration.
When an element restarts, rules 1 and 2 are also applied to the element itself, although rule 4 (controlling restart behavior) is not applied.
Note that when any time container ends its simple duration (including when it repeats), all timed children that are still active are ended. See also Time container constraints on child durations.
When an excl time container restarts or repeats, in addition to ending any active children, the pause queue for the excl is cleared.
This section is informative
New support in SMIL 2.0 introduces finer grained control over the runtime synchronization behavior of a document. The syncBehavior attribute allows an author to describe for each element whether it must remain in a hard sync relationship to the parent time container, or whether it may be allowed slip with respect to the time container. Thus, if network congestion delays or interrupts the delivery of media for an element, the syncBehavior attribute controls whether the media element may slip while the rest of the document continues to play, or whether the time container must also wait until the media delivery catches up.
The syncBehavior attribute may also be applied to time containers. This controls the sync relationship of the entire timeline defined by the time container. In this example, the audio and video elements are defined with hard or "locked" sync to maintain lip sync, but the "speech" par time container is allowed to slip:
<par> <animation src="..." /> ... <par xml:id="speech" syncBehavior="canSlip" > <video src="speech.mpg" syncBehavior="locked" /> <audio src="speech.au" syncBehavior="locked" /> </par> ... </par>
If either the video or audio must pause due to delivery problems, the entire "speech" par will pause, to keep the entire timeline in sync. However, the rest of the document, including the animation element will continue to play normally. Using the syncBehavior attribute on elements and time containers, the author can effectively describe the "scope" of runtime sync behavior, defining some portions of the document to play in hard sync without requiring that the entire document use hard synchronization.
This functionality also applies when an element first begins, and the media must begin to play. If the media is not yet ready (e.g. if an image file has not yet downloaded), the syncBehavior attribute controls whether the time container must wait until the element media is ready, or whether the element begin may slip until the media is downloaded.
An additional extension allows the author to specify that a particular element should define or control the synchronization for a time container. This is similar to the default behavior of many user agents that "slave" video and other elements to audio, to accommodate the audio hardware inaccuracies and the sensitivity of listeners to interruptions in the audio playback. The syncMaster attribute allows an author to explicitly define that an element defines the playback "clock" for the time container, and all other elements should be held in sync relative to the syncMaster element.
In practice, linear media often need to be the syncMaster, where non-linear media can more easily be adjusted to maintain hard sync. However, a user agent cannot always determine which media behaves in a linear fashion and which media behaves in a non-linear fashion. In addition, when there are multiple linear elements active at a given point in time, the user agent cannot always make the "right" decision to resolve sync conflicts. The syncMaster attribute allows the author to specify the element that has linear media, or that is "most important" and should not be compromised by the syncBehavior of other elements.
The argument value independent is
equivalent to setting syncBehavior=
"canSlip" and syncMaster=
"true" so that the element is scheduled within
the timegraph, but is unaffected by any other runtime synchronization
issues. Setting syncBehavior=
"canSlip" and syncMaster=
"true" declares the element as being the
synchronization master clock and that the element may slip against its
parent time line
=
"locked", the syncMaster will also define sync
for the ancestor timeContainer. The syncMaster will define sync for
everything within the closest ancestor time container that is defined
with syncBehavior=
"canSlip".=
"canSlip". See also The accumulated synchronization
offset.This section is informative
Note that the semantics of syncBehavior do not describe or require a particular approach to maintaining sync; the approach will be implementation dependent. Possible means of resolving a sync conflict may include:
Additional control is provided over the hard sync model using the syncTolerance attribute. This specifies the amount of slip that may be ignored for an element. Small variance in media playback (e.g. due to hardware inaccuracies) can often be ignored, to allow the overall performance to appear smoother.
When any element is paused (including the cases described above for runtime sync behavior), the computed end time for the element may change or even become resolved, and the time model must reflect this. This is detailed in Paused elements and the active duration.
Two attributes are defined to specify the default behavior for runtime synchronization:
If an element slips synchronization relative to its parent, the amount of this slip at any point is described as the accumulated synchronization offset. This offset is used to account for pause semantics as well as performance or delivery related slip. This value is used to adjust the conversion between element and parent times, as described in Converting between local and global times. The offset is computed as follows:
Let tc(tps) be the computed element active time for an element at the parent simple time tps, according to the defined synchronization relationship for the element.Let to(tps) be the observed element active time for an element at the parent simple time tps.
The accumulated synchronization offset O is:
O = to(tps) - tc(tps)This offset is measured in parent simple time.
This section is informative.
Thus an accumulated synchronization offset of 1 second corresponds to the element playing 1 second "later" than it was scheduled. An offset of -0.5 seconds corresponds to the element playing a half second "ahead" of where it should be.
This section is informative
The modularization of SMIL 3.0 functionality allows language designers to integrate SMIL Timing and Synchronization support into any XML language. In addition to just scheduling media elements as in SMIL language documents, timing may be applied to the elements of the host language. For example, the addition of timing to HTML (i.e. XHTML) elements will control the presentation of the HTML document over time, and to synchronize text and presentation with continuous media such as audio and video.
Two attributes are introduced to support these integration cases. The
timeContainer attribute allows
the author to specify that any XML language element has time container
behavior. E.g., an HTML <ol>
ordered list element may be
defined to behave as a sequence time container. The timeAction attribute allows the author
to specify what it means to apply timing to a given element.
XML language elements may be declared to have time container semantics by adding the timeContainer attribute. The syntax is:
Constraints upon the use of the timeContainer attribute are:
The timeAction attribute provides control over the effect of timing upon an attribute. A host language must specify which values are allowed for each element in the language. A host language must specify the intrinsic timing behavior of each element to which timeAction may be applied. In addition, a host language may specify additional timeAction values. The syntax is:
display
" property should be controlled over
time.visibility
" property should be controlled over
time.style
" attribute.class
attribute value
list).The intrinsic behavior is defined by a host language. For example in the SMIL language, the intrinsic behavior of media elements is to schedule and control the visibility of the media. For some elements or some languages, the intrinsic behavior may default to one of the other behaviors.
Additional timeAction semantics and constraints:
visibility
property should be set to "hidden" when the
element is not active or frozen. If the original value of the
visibility
property was not "hidden", the original value should be used when the
element is active or frozen. If the original value of the
visibility
property was "hidden", the property should be set to "visible" when the element is active or frozen.style
" attribute, the
style value for timeAction should not be
allowed.class
attribute), the class name should be removed from the class list of the
element when the element is not active or frozen.Certain special elements may have specific intrinsic semantics. For example, linking elements like a and area may have an intrinsic behavior that controls the sensitivity of the elements to actuation by the user. This may have presentation side-effects as well. In XHTML for example, making these elements insensitive also has the effect that the default styling (e.g. a color and underline) that is applied to sensitive links is removed when the element is not active or frozen.
Host language designers should carefully consider and define the behavior
associated with applying timing to an element. For example,
script
elements could be defined to execute when the element
begins, or the language could disallow the timeAction attribute on the element.
Similarly, link
elements could apply a linked stylesheet when
the element begins or the language could disallow the timeAction attribute on
link
.
For details of the CSS properties visibility
and
display
, see [CSS2].
This section is informative.
These examples assume that the namespace declaration
xmlns:smil="http://www.w3.org/ns/SMIL"
is in scope.
The following example shows a simple case of controlling visibility over time. The text is hidden from 0 to 3 seconds, shown normally for 5 seconds, and then hidden again.
<span smil:timeAction="visibility" smil:begin="3s" smil:dur="5s"> Show this text for a short period. </span>
The following example shows a simple case of controlling display over time. Each list element is shown for 5 seconds, and is removed from the layout when not active or frozen. The ordered list element is set to be a sequence time container as well (note that each list element retains its ordinal number even though the others are not displayed):
<ol smil:timeContainer="seq" smil:repeatDur="indefinite"> <li smil:timeAction="display" smil:dur="5s"> This is the first thing you will see. </li> <li smil:timeAction="display" smil:dur="5s"> You will see this second. </li> <li smil:timeAction="display" smil:dur="5s"> Last but not least, you will see this. </li> </ol>
The following example shows how an element specific style may be applied
over time. The respective style is applied to each HTML label
for 5 seconds after a focus event is raised on the element:
<form ...> ... <label for="select_red" smil:begin="focus" smil:dur="5s" smil:timeAction="style" style="color:red; font-weight:bold" > Make things RED. </label> <input xml:id="select_red" .../> <label for="select_green" smil:begin="focus" smil:dur="5s" smil:timeAction="style" style="color:green; font-weight:bold" > Make things GREEN. </label> <input xml:id="select_green" .../> ... </form>
This section is informative
SMIL 3.0 specifies three types of time containers. These may be declared with the elements par, seq, and excl, or in some integration profiles with a timeContainer attribute. Media elements with timed children are defined to be "media time containers", and have semantics based upon the par semantics (see also Attributes for timing integration: timeContainer and timeAction and Implicit duration of media element time containers).
This document refers in general to time containers by reference to the elements, but the same semantics apply when declared with an attribute, and for media time containers.
The implicit syncbase of the child elements of a par is the begin of the par. The default value of begin for children of a par is "0".
This section is informative.
This is the same element introduced with SMIL 1.0.
The par element supports all element timing.
The implicit duration of a par is controlled by endsync. By default, the implicit duration
of a par is defined by the endsync=
"last"
semantics. The implicit duration ends with the last active end of the child
elements.
This section is informative.
This is the same element introduced with SMIL 1.0, but the semantics (and allowed syntax) for child elements of a seq are clarified.
The seq element itself supports all element timing except endsync.
When a hyperlink traversal targets a child of a seq, and the target child is not currently active, part of the seek action must be to enforce the basic semantic of a seq that only one child may be active at a given time. For details, see Hyperlinks and timing and specifically Implications of beginElement() and hyperlinking for seq and excl time containers.
This section is informative.
SMIL 3.0 defines a time container, excl, that allows the interactive (or a-temporal) activation of child elements.
The implicit syncbase of the child elements of the excl is the begin of the excl. The default value of begin for children of excl is "indefinite". This means that the excl has 0 duration unless a child of the excl has been added to the timegraph.
The excl element itself supports all element timing.
This section is informative
With the excl time container, common use cases that were either difficult, or impossible, to author are now easier and possible to create. The excl time container is used to define a mutually exclusive set of clips, and to describe pausing and resuming behaviors among these clips. Examples include:
The interactive playlist use case above could be accomplished using a par whose sources have interactive begin times and end events for all other sources. This would require a prohibitively long list of values for end to maintain. The excl time container provides a convenient short hand for this - the element begin times are still interactive, but the end events do not need to be specified because the excl, by definition, only allows one child element to play at a time.
The audio descriptions use case is not possible without the pause/resume behavior provided by excl and priorityClass. This use case would be authored with a video and each audio description as children of the excl. The video element would be scheduled to begin when the excl begins and the audio descriptions, peers of the video element, would start at scheduled begin times or in response to stream events raised at specific times.
The dynamic video sub-titles use case requires the "play only one at a time" behavior of excl. In addition, the child elements are declared in such a way so as to preserve the sync relationship to the video:
<smil ...> ... <par endsync="vid1"> <video xml:id="vid1" .../> <excl dur="indefinite"> <par begin="englishBtn.activateEvent" > <audio begin="vid1.begin" src="english.au" /> </par> <par begin="frenchBtn.activateEvent" > <audio begin="vid1.begin" src="french.au" /> </par> <par begin="swahiliBtn.activateEvent" > <audio begin="vid1.begin" src="swahili.au" /> </par> </excl> </par> ... </smil>
The three par elements are children of the excl, and so only one can play at a time. The audio child in each par is defined to begin when the video begins. Each audio can only be active when the parent time container (par) is active, but the begin still specifies the synchronization relationship. This means that when each par begins, the audio will start playing at some point in the middle of the audio clip, and in sync with the video.
The excl time container is useful in many authoring scenarios by providing a declarative means of describing complex clip interactions.
=
"last" semantics. However, since the default timing
for children of excl is
interactive, the implicit duration for excl time containers with only default
timing on the children will be 0.This section is informative
Using priority classes to control the pausing behavior of children of the excl allows the author to group content into categories of content, and then to describe rules for how each category will interrupt or be interrupted by other categories. Attributes of the new grouping element priorityClass describe the intended interactions.
Each priorityClass element describes a group of children, and the behavior of those children when interrupted by other time-children of the excl. The behavior is described in terms of peers, and higher and lower priority elements. Peers are those elements within the same priorityClass element.
When one element within the excl begins (or would normally begin) while another is already active, several behaviors may result. The active element may be paused or stopped, or the interrupting element may be deferred, or simply blocked from beginning.
The careful choice of defaults makes common use cases very simple. See the examples below.
If no priorityClass element is used, all the children of the excl are considered to be peers, with the default peers behavior "stop".
This section is informative
Note that the rules define the behavior of the currently active element and the interrupting element. Any elements in the pause queue are not affected (except that their position in the queue may be altered by new queue insertions).
excl
time
container). The paused element is added to the pause queue.When an element begin is blocked (ignored) because of the "never" attribute value, the blocked element does not begin in the time model. The time model should not propagate begin or end activations to time dependents, nor should it raise begin or end events.
This section is informative
The pauseDisplay attribute controls the behavior when paused of the children of a priorityClass element. When a child of a priorityClass element is paused according to excl and priorityClass semantics, the pauseDisplay attribute controls whether the paused element will continue to show or apply the element (i.e. the state of the element for the time at which it is paused), or whether it is removed altogether from the presentation (i.e. disabled) while paused.
="pause"
or higher="pause"
.This section is informative
Note that because of the defaults, the simple cases work without any additional syntax. In the basic case, all the elements default to be peers, and stop one another:
<excl dur="indefinite"> <audio xml:id="song1" .../> <audio xml:id="song2" .../> <audio xml:id="song3" .../> ... <audio xml:id="songN" .../> </excl>
is equivalent to the following with explicit settings:
<excl dur="indefinite"> <priorityClass peers="stop"> <audio xml:id="song1" .../> <audio xml:id="song2" .../> <audio xml:id="song3" .../> ... <audio xml:id="songN" .../> </priorityClass> </excl>
If the author wants elements to pause rather than stop, the syntax is:
<excl dur="indefinite"> <priorityClass peers="pause"> <audio xml:id="song1" .../> <audio xml:id="song2" .../> <audio xml:id="song3" .../> ... <audio xml:id="songN" .../> </priorityClass> </excl>
The audio description use case for visually impaired users would look very similar to the previous example:
<excl dur="indefinite"> <priorityClass peers="pause"> <video xml:id="main_video" .../> <audio xml:id="scene1_description" begin="20s" dur="30s".../> <audio xml:id="scene2_description" begin="2min" dur="30s" .../> ... <audio xml:id="sceneN_description" .../> </priorityClass> </excl>
This example shows a more complex case of program material and several commercial insertions. The program videos will interrupt one another. The ads will pause the program, but will not interrupt one another.
<excl dur="indefinite"> <priorityClass xml:id="ads" peers="defer"> <video xml:id="advert1" .../> <video xml:id="advert2" .../> </priorityClass> <priorityClass xml:id="program" peers="stop" higher="pause"> <video xml:id="program1" .../> <video xml:id="program2" .../> <video xml:id="program3" .../> <video xml:id="program4" .../> </priorityClass> </excl>
The following example illustrates how defer semantics and priority groups can interact. When "alert1" tries to begin at 5 seconds, the "program" priorityClass will force "alert1" to defer, and so "alert1" will be placed upon the queue. When "alert2" tries to begin at 6 seconds, the same semantics will force "alert2" onto the queue. Note that although the "alerts" priorityClass defines the peers rule as "never", "alert1" is not active at 6 seconds, and so the interrupt semantics between "alert1" and "alert2" are not evaluated. The resulting behavior is that when "prog1" ends at 20 seconds, "alert1" will play, and then when "alert1" ends, "alert2" will play.
<excl dur="indefinite"> <priorityClass xml:id="program" lower="defer"> <video xml:id="prog1" begin="0" dur="20s" .../> </priorityClass> <priorityClass xml:id="alerts" peers="never"> <video xml:id="alert1" begin="5s" .../> <video xml:id="alert2" begin="6s" .../> </priorityClass> </excl>
This example illustrates pauseDisplay control. When an element is interrupted by a peer, the interrupted element pauses and is shown in a disabled state. It is implementation dependent how the disabled video is rendered. Disabled elements do not respond to mouse events.
<excl dur="indefinite"> <priorityClass peers="pause" pauseDisplay="disable"> <video xml:id="video1" .../> <video xml:id="video2" .../> <video xml:id="video3" .../> ... <video xml:id="videoN" .../> </priorityClass> </excl>
In this example, when a child of a higher priorityClass element interrupts a child of the "program" priorityClass, the child of "program" pauses and remains onscreen. If a peer of the "program" priorityClass interrupts a peer, the element that was playing stops and is no longer displayed.
<excl dur="indefinite"> <priorityClass xml:id="ads" peers="defer"> <video xml:id="advert1" .../> <video xml:id="advert2" .../> </priorityClass> <priorityClass xml:id="program" peers="stop" higher="pause" pauseDisplay="show"> <video xml:id="program1" .../> <video xml:id="program2" .../> <video xml:id="program3" .../> <video xml:id="program4" .../> </priorityClass> </excl>
Elements that are paused or deferred are placed in a priority-sorted queue of waiting elements. When an active element ends its active duration and the queue is not empty, the first (i.e. highest priority) element in the queue is pulled from the queue and resumed or activated.
The queue semantics are described as a set of invariants and the rules for insertion and removal of elements. For the purposes of discussion, the child elements of a priorityClass element are considered to have the priority of that priorityClass, and to have the behavior described by the peers, higher and lower attributes on the priorityClass parent.
Note that if an element is active and restarts (subject to the restart rule), it does not interrupt itself in the sense of a peer interrupting it. Rather, it simply restarts and the queue is unaffected.
The runtime synchronization behavior of an element (described in the syncBehavior, syncTolerance, and syncMaster attributes: controlling runtime synchronization) does not affect the queue semantics. Any element that is paused or deferred according to the queue semantics will behave as described. When a paused element is resumed, the synchronization relationship will be reestablished according to the runtime synchronization semantics. The synchronization relationship for a deferred element will be established when the element actually begins.
When an element is paused, the calculated end time for the element may change or even become resolved, and the time model must reflect this. This is detailed in Paused elements and the active duration. In some cases, the end time is defined by other elements unaffected by the pause queue semantics.
This section is informative.
In the following example, the "foo" element will be paused at 8 seconds, but it will still end at 10 seconds (while it is paused):
<img "joe" end="10s" .../> <excl dur="indefinite"> <priorityClass peers="pause"> <img xml:id="foo" end="joe.end" .../> <img xml:id="bar" begin="8s" dur="5s" .../> </priorityClass> </excl>
If an element ends while it is in the pause queue, it is simply removed from the pause queue. All time dependents will be notified normally, and the end event will be raised at the end time, as usual.
When an element is deferred, the begin time is deferred as well. Just as described in Paused elements and the active duration, the begin time of a deferred element may become unresolved, or it may simply be delayed.
This section is informative.
In the following example, the "bar" element will initially have an unresolved begin time. If the user clicks on "foo" at 8 seconds, "bar" would resolve to 8 seconds, but will be deferred until 10 seconds (when "foo" ends):
<smil ...> ... <excl dur="indefinite"> <priorityClass peers="defer"> <img xml:id="foo" begin="0s" dur="10s" .../> <img xml:id="bar" begin="foo.click" .../> </priorityClass> </excl> ... </smil>
If there is enough information to determine the new begin time (as in the example above), an implementation must compute the correct begin time when an element is deferred. The change to the begin time that results from the element being paused must be propagated to any sync arc time dependents (i.e. other elements with a begin or end defined relative to the begin of the deferred element). See also the Propagating changes to times section.
This section is informative.
One exception to normal processing is made for deferred elements, to simplify the model: a deferred element ignores propagated changes to its begin time. This is detailed in the Deferred elements and propagating changes to begin section.
Although the default begin value for children of an excl is indefinite, scheduled begin times are permitted. Scheduled begin times on children of the excl cause the element to begin at the specified time, pausing or stopping other siblings depending on the priorityClass settings (and default values).
If children of an excl attempt to begin at the same time, the evaluation proceeds in document order. For each element in turn, the priorityClass semantics are considered, and elements may be paused, deferred or stopped.
This section is informative
The following examples both exhibit this behavior (it can result from any combination of scheduled times, interactive timing, hyperlink or DOM activation):
<smil ...> ... <excl> <img src="image1.jpg" begin="0s" dur="5s"/> <img src="image2.jpg" begin="0s" dur="5s"/> <img src="image3.jpg" begin="0s" dur="5s"/> </excl> <excl dur ="indefinite"> <img xml:id="img1" src="image1.jpg" begin="foo.activateEvent" dur="5s"/> <img xml:id="img2" src="image2.jpg" begin="img1.begin" dur="5s"/> <img xml:id="img3" src="image3.jpg" begin="img2.begin" dur="5s"/> </excl> ... </smil>
In the first example, the images are scheduled to begin immediately, where in the second, they will all begin once the user activates the "foo" element. The end result of the two (other than the begin time) is the same. Given the default interrupt semantics for excl, the first image will begin and then be immediately stopped by the second image, which will in turn be immediately stopped by the third image. The net result is that only the third image is seen, and it lasts for 5 seconds. Note that the begin and end events for the first two images are raised and propagated to all time dependents. If the behavior is set to "pause" as in this example, the declared order is effectively reversed:
<excl> <priorityClass peers="pause"> <img src="image1.jpg" begin="0s" dur="5s"/> <img src="image2.jpg" begin="0s" dur="5s"/> <img src="image3.jpg" begin="0s" dur="5s"/> </priorityClass> </excl>
In this case, the first image will begin and then be immediately paused by the second image, which will in turn be immediately paused by the third image. The net result is that the third image is seen for 5 seconds, followed by the second image for 5 seconds, followed by the first image for 5 seconds. Note that the begin events for the first two images are raised and propagated to all time dependents when the excl begins.
In the following slideshow example, images begin at the earlier of their scheduled begin time or when activated by a user input event:
<smil ...> ... <excl> <img src="image1.jpg" begin="0s".../> <img src="image2.jpg" begin="10s; image1.activateEvent".../> <img src="image3.jpg" begin="20s; image2.activateEvent".../> </excl> ... </smil>
Note, some surprising results may occur when combining scheduled and interactive timing within an excl. If in the above example, the user clicks on image1 and then on image2 before ten seconds have elapsed, image 2 will re-appear at the ten second mark. Image 3 will appear at twenty seconds. The likely intent of this particular use-case would be better represented with a seq time container.
This section is informative
Children of the excl may be activated by scheduled timing, hyperlinks, events or DOM methods calls. For all but hyperlink activation, the excl time container must be active for child elements of the excl to be activated. With hyperlink activation, the document may be seeked to force the parent excl to be active, and a seek may occur to the begin time target child if it has a resolved begin time. That is, the normal hyperlink seek semantics apply to a timed child of an excl.
With activation via a DOM method call (e.g. the
beginElement()
method), the element will be activated at the
current time (subject to the priorityClass semantics), even if
the element has a scheduled begin time. The exclusive semantics of the time
container (allowing only one active element at a time) and all priorityClass semantics are
respected nevertheless.
This section is informative.
See also Hyperlinks and timing and specifically Implications of beginElement() and hyperlinking for seq and excl time containers.
The implicit duration of a media time container combines the intrinsic duration of the media with the children to define the implicit simple duration. For the "ID-REF" value of endsync, the semantics are the same as for a normal time container. For the "media" value of endsync, implicit simple duration is equal to the intrinsic duration of the media directly associated with the element. For the values "first", "last" and "all", the media element acts as a par time container, but treats the element's associated media as an additional condition as far as determining when the criteria for "first", "last" and "all" endsync values have been satisfied.
=
{"media" or "ID-REF"}: This is defined as
for par elements.=
{"last" or "all"}: The time children and the
intrinsic media duration of the associated media define the implicit
duration of the media element time container. If the associated media
duration is longer than the extent of all the time children, the media
duration defines the implicit duration for the media element time
container. If the associated media is discrete, this is defined as for
par elements.=
"first": The time children and the intrinsic media
duration define the implicit duration of the media element time
container. The element ends when the first active duration ends, as
defined above for endsync on a
par. If the media is discrete, this
is defined as for par elements.If the implicit duration defined by endsync is longer than the intrinsic duration for a continuous media element, the ending state of the media (e.g. the last frame of video) will be shown for the remainder of the implicit duration. This only applies to visual media - aural media will simply stop playing.
This section is informative
This semantic is similar to the case in which the author specifies a simple duration that is longer than the intrinsic duration for a continuous media element. Note that for both cases, although the media element is effectively frozen for the remainder of the simple duration, the time container simple time is not frozen during this period, and any children will run normally without being affected by the media intrinsic duration.
This section is informative.
Assume that "vid1" is 10 seconds long in the following examples.
The default value of endsync for media elements is "media", and so the simple duration in the following example is 10 seconds. This will cut short the animate child 8 seconds into its simple duration:
<video src="vid1.mpg" > <animate begin="2s" dur="12s" .../> </video>
Specifying endsync=
"first" in the example below causes the simple duration
of the video element to be 10 seconds, since the media finishes before the
animate child.
<video src="vid1.mpg" endsync="first" > <animate begin="2s" dur="12s" .../> </video>
Specifying endsync=
"last" in the following example causes the simple
duration of the video element to be 14 seconds. The video will show a still
frame (the last frame) for the last 4 seconds of this:
<video src="vid1.mpg" endsync="last" > <set dur="8s" .../> <animate begin="2s" dur="12s" .../> </video>
Specifying endsync=
"all" in the following example causes the simple
duration of the video element to last at least 10 seconds (the intrinsic
duration of the video), and at most until 5 seconds after the user clicks on
the video. The video will show a still frame (the last frame) for any
duration in excess of 10 seconds:
<smil ...> ... <video src="vid1.mpg" endsync="all" > <set dur="8s" .../> <animate begin="activateEvent" dur="5s" .../> </video> ... </smil>
Thus if the user clicks on the video after 1 second, the simple duration is 10 seconds. If the user does not click until 15 seconds, the simple duration is 20 seconds, and the last frame will be shown between 10 and 20 seconds. The video can still be clicked even though it stops normal play at 10 seconds.
This section is informative.
In some language integrations, it will be possible to declare a media time container to have sequence or exclusive semantics, in addition to the default parallel semantics described above. For example:
<html ...> ... <video xmlns="http://www.w3.org/ns/SMIL" src="vid1.mpg" timeContainer="seq" endsync="first" > <animate dur="4s" .../> <animate end="click" .../> </video> ... </html>
The animate children of the video will act in sequence. The endsync semantics define a simple duration for the video that is no more than 10 seconds (the intrinsic duration of the video) but may be just over 4 seconds, if the user clicks on the video as soon as the last animate begins.
A begin or end time is said to be unresolved when either an associated begin or end event has not yet occurred (within the constraints of Event sensitivity), or the begin or end time is dependent upon another element's begin or end time that is unresolved. The begin or end time becomes resolved as soon as the syncbase element's time is resolved, or when the event occurs (within the constraints of Event sensitivity).
If a begin or end value resolves to a time in the past, this value is propagated to other synchronization dependents. Similarly, a simple or active duration may be unresolved but may become resolved when end conditions are met or the parent time container constrains the element's duration.
A resolved time is said to be definite if it is not the value "indefinite".
The simple duration of an element is determined by the dur attribute, the implicit duration of the element, and one special-case rule to ensure SMIL 1.0 backward compatibility. Apply the first rule in the table that matches the given criteria.
Computation of the simple duration is based on the information available at the time the calculation is made. Unresolved quantities may require the simple duration to be recomputed when an unresolved quantity becomes resolved.
dur | implicit element duration | repeatDur and repeatCount | Simple Duration |
unspecified | (ignored) | unspecified, end specified | indefinite |
Clock-value | (ignored) | (ignored) | dur or Clock-value |
indefinite | (ignored) | (ignored) | indefinite |
unspecified | resolved | (ignored) | implicit element duration or Clock-value |
unspecified | unresolved | (ignored) | unresolved |
media | resolved or unresolved | (ignored) | implicit element duration |
When repeatCount is specified, it is understood to represent a count of iterations of simple duration. Each iteration of the simple duration may be different, and so a simple multiplication of the repeatCount and a given simple duration may not yield an accurate active duration. In the case of a partial repeatCount and a simple duration that is not resolved, the most recent simple duration should be multiplied by the fractional part of the repeatCount to constrain the last simple duration. If the last iteration of the simple duration otherwise ends before this time, the repeatCount should be considered to be complete. If a repeatCount is less than 1 and the simple duration is unresolved, the repeatCount cannot be correctly respected, and will behave as though a repeatCount of "1" were specified.
This section is informative
If an element specifying audio media has a simple duration of 0 (e.g.,
because of clipBegin
and clipEnd
values), nothing
should be played even if the repeatDur specifies an active duration.
The time model behaves according to the description, but no audio should be
played.
If a repeatDur is shorter than the simple duration, or if repeatCount is less than 1, the active duration may cut short the defined simple duration.
If repeatDur is "indefinite" and neither of repeatCount or end are specified, the active duration is indefinite. If repeatCount is indefinite, the simple duration is greater than 0 and neither of repeatDur or end are specified, then the active duration is indefinite.
Note that unlike in SMIL 1, when an element defines a begin offset and repeat behavior with repeatCount or repeatDur, the begin offset is not included in each repeat.
The active duration of an element defines the entire period that an element's timeline is active. It takes into account the element simple duration evaluated above, the end attribute, and any repeat behavior defined by the repeatDur and repeatCount attributes.
Computing the active duration requires defining arithmetic operations on all of the possible values that simple duration may have.
Where anything means zero value, non-zero value, indefinite, or unresolved.
In this section, references to begin and end values should be understood as the current effective values in each respective value list. These values are determined by the rules described in Evaluation of begin and end time lists.
The following symbols are used in the algorithm as a shorthand:
Computation of the active duration is based on the information available at the time the calculation is made. Unresolved quantities may require the active duration to be recomputed when an unresolved quantity becomes resolved.
To compute the active duration, use the following algorithm:
If end is specified, and none of dur, repeatDur, and repeatCount are specified, then the simple duration is indefinite from the simple duration table above, and the active duration is defined by the end value, according to the following cases:
If end is resolved to a value, then PAD = end - B,else, if end is indefinite, then PAD = indefinite,
else, if end is unresolved, then PAD is unresolved, and needs to be recomputed when more information becomes available.
Else, if no end value is specified, or the end value is specified as indefinite, then the active duration is determined from the Intermediate Active Duration computation given below:
PAD = Result from Intermediate Active Duration Computation
Otherwise, an end value not equal to indefinite is specified along with at least one of dur, repeatDur, and repeatCount. Then the PAD is the minimum of the result from the Intermediate Active Duration Computation given below and duration between end and the element begin:
PAD = MIN( Result from Intermediate Active Duration Computation, end - B)
Finally, the computed active duration AD is obtained by applying min and max semantics to the preliminary active duration PAD. In the following expression, if there is no min value, substitute a value of 0, and if there is no max value, substitute a value of "indefinite":
AD = MIN( max, MAX( min, PAD ))
We define three intermediate quantities, p0, p1, and p2, and produce an intermediate result, the Intermediate Active Duration (IAD) to be used in the computation above.
p0 is the simple duration from the Simple Duration Table, given above.
If repeatCount is not specified, p1 has the value indefinite. Otherwise, p1 is the accumulated sum of the specified number of simple durations of the iterations of this element. p1 will have a value of unresolved until the simple duration for each iteration is resolved. Partial iterations will contribute the specified fraction of the simple duration to the sum. This product can be based on either the known fixed simple duration of the media, or if unknown, the simple duration from the previous iteration of the current set of repetitions. In general for media without a fixed simple duration, p1 will not be resolved until the specified integral number of simple durations has passed.
p2 is the value of repeatDur. If repeatDur is unspecified, then p2 will have a value of indefinite.
Then IAD is given by:
If p0 equals 0, then
IAD = 0
Else if repeatDur and repeatCount are unspecified then:
IAD = p0
else:
IAD = MIN( p1, p2, indefinite)
This section is informative
As an example, if an element specifies:
<smil ...> ... <audio dur="5s" end="foo.activateEvent" .../> ... </smil>
The active duration is initially defined as 5 seconds, based upon the specified simple duration. If the user activates "foo" before 5 seconds, the end value becomes resolved and the active duration is re-evaluated. This causes the element to end at the time of the activation.
Some of the rules and results that are implicit in the algorithm, and that should be noted in particular are:
It is possible to combine scheduled and interactive timing. For example:
<smil ...> ... <par dur="30s"> <img xml:id="mutebutton" src="mute.jpg"/> <text src="description.html" /> <audio src="audio.au" end="mutebutton.activateEvent"/> </par> ... </smil>
The image and the text appear for the specified duration of the par (30 seconds). The active duration of the audio is initially defined to be indefinite because its end time is unresolved. The audio will stop early if the image is activated (e.g., clicked) before the implicit end of the audio. If the image is not activated, the dur attribute on the parent time container will constrain playback.
It is possible to declare both a scheduled duration, as well as an event-based active end. This facilitates what are sometimes called "lazy interaction" use-cases, such as a slideshow that will advance in response to user clicks, or on its own after a specified amount of time:
<smil ...> ... <seq> <img src="slide1.jpg" dur="10s" end="activateEvent" /> <img src="slide2.jpg" dur="10s" end="activateEvent" /> <img src="slide3.jpg" dur="10s" end="activateEvent" /> <!-- etc., etc. --> </seq> ... </smil>
In this case, the active end of each element is defined to be the earlier of the specified duration, or a click on the element. This lets the viewer sit back and watch, or advance the slides at a faster pace.
An element may be paused while it is active. This may happen in a number of ways, including via a DOM method call or because of excl semantics. When an element is paused, a resolved end time for the element may change, or it may become unresolved. The synchronization relationship between the paused element and its parent time container is re-established when the paused element is resumed. If for example the element below is paused with a DOM method call, there is no way to know when the element will end, and so the end time must be considered unresolved:
<img dur="30s" .../>
However, in the following case, the "bar" element will still end at 10 seconds, even if it is paused at 8 seconds. In this case, the end time does not change:
<img xml:id="foo" dur="10s" .../> <img xml:id="bar" end="foo.end" .../>
Finally, in the following case the "foo" element will initially be computed to end at 10 seconds. If the "bar" element begins (i.e. if the user activates or clicks on "foo"), at 8 seconds, "foo" will be paused. However, since the duration of "bar" is known, and the semantics of the excl pause queue are well defined, the end of "foo" can be computed to be 15 seconds:
<smil ...> ... <excl dur="indefinite"> <priorityClass peers="pause"> <img xml:id="foo" dur="10s" .../> <img xml:id="bar" begin="foo.activateEvent" dur="5s" .../> </priorityClass> </excl> ... </smil>
If there is enough information to determine the new end time (as in the example above), an implementation must compute the correct end time when an element is paused. Any change to the end time that results from the element being paused must be propagated to any sync arc time dependents (i.e. other elements with a begin or end defined relative to the active end of the paused element). See also the Propagating changes to times section.
In addition, when an element is paused, the accumulated synchronization offset will increase to reflect the altered sync relationship. See also The accumulated synchronization offset.
Finally, when an element is paused it may end because the parent time container ends., any fill behavior is interpreted using the element active time when the element ends (that is, it will use the element active time at which it was paused to determine what to display).
This section is informative
Children of par and excl time containers may have multiple begin and end values. We need to specify the semantics associated with multiple begin and end times, and how a dynamic timegraph model works with these multiple times.
The model is based around the idea of intervals for each element. An interval is defined by a begin and an end time. As the timegraph is played, more than one interval may be created for an element with multiple begin and end times. At any given moment, there is one current interval associated with each element. Intervals are created by evaluating a list of begin times and a list of end times, each of which is based upon the conditions described in the begin and end attributes for the element.
The list of begin times and the list of end times used to calculate new intervals are referred to as lists of "instance times". Each instance time in one of the lists is associated with the specification of a begin or end condition defined in the attribute syntax. Some conditions - for example Offset-values - only have a single instance in the list. Other conditions may have multiple instances if the condition can happen more than once. For example a Syncbase-value may have multiple instance times if the syncbase element has played several intervals, and an Event-value may have multiple instance times if the event has happened more than once.
The instance times lists for each element are initialized when the timegraph is initialized, and exist for the entire life of the timegraph. Some instance times such as those defined by Offset-values remain in the lists forever, while others may come and go. For example, times associated with Event-values are only added when the associated event happens, and are removed when the element resets, as described in Resetting element state. Similarly, Instance times for Syncbase-values are added to the list each time a new interval is created for the syncbase element, but these instance times are not removed by a reset, and remain in the list.
When the timegraph is initialized, each element attempts to create a first current interval. The begin time will generally be resolved, but the end time may often be unresolved. If the element can restart while active, the current interval may end (early) at the next begin time. This interval will play, and then when it ends, the element will review the lists of begin and end instance times. If the element should play again, another interval will be created and this new interval becomes the current interval. The history of an element can be thought of as a set of intervals.
Because the begin and end times may depend on other times that can change, the current interval is subject to change, over time. For example, if any of the instance times for the end changes while the current interval is playing, the current interval end will be recomputed and may change. Nevertheless, once a time has happened, it is fixed. That is, once the current interval has begun, its begin time can no longer change, and once the current interval has ended, its end time can no longer change. For an element to restart, it must end the current interval and then create a new current interval to effect the restart.
When a begin or end condition defines a time dependency to another element (e.g. with a Syncbase-value), the time dependency is generally thought of as a relationship between the two elements. This level of dependency is important to the model when an element creates a new current interval. However, for the purposes of propagating changes to individual times, time dependencies are more specifically a dependency from a given interval of the syncbase element to a particular instance time in one of the dependent element's instance time lists. Since only the current interval's begin and end times can change, only the current interval will generate time-change notices and propagate these to the dependent instance times.
When this section refers to the begin and end times for an element, the times are described as being in the space of the parent simple duration. All sync-arcs, event arcs, wallclock values, etc. must be converted to this time space for easy comparison. This is especially important when referring to begin times "before 0", which assumes that "0" is the beginning of the parent simple duration. The model does not depend upon this definition - e.g. an implementation could do everything in global document time.
Cycles in the timegraph must be detected and broken to ensure reasonable functioning of the implementation. A model for how to do this in the general case is described (it is actually an issue that applies even to SMIL 1.0). A mechanism to support certain useful cyclic dependencies falls out of the model.
The rest of this section details the semantics of the instance times lists, the element life cycle, and the mechanisms for handling dependency relationships and cycles.
Instance lists are associated with each element, and exist for the duration of the document (i.e. there is no life cycle for instance lists). Instance lists may change, and some times may be added and removed, but the begin and end instance times lists are persistent.
Each element may have a begin attribute that defines one or more conditions that may begin the element. In addition, the timing model describes a set of rules for determining the end of the element, including the effects of an end attribute that may have multiple conditions. In order to calculate the times that should be used for a given interval of the element, we must convert the begin times and the end times into parent simple time, sort each list of times (independently), and then find an appropriate pair of times to define an interval.
The instance times may be resolved or unresolved. In the case of the end list, an additional special value "indefinite" is allowed. The lists are maintained in sorted order, with "indefinite" sorting after all other resolved times, and unresolved times sorting to the end.
For begin, the list interpretation is straightforward, since begin times are based only upon the conditions in the attribute or upon the default begin value if there is no attribute. However, when a begin condition is a Syncbase-value, the syncbase element may have multiple intervals, and we must account for this in the list of begin times associated with the conditions.
For end, the case is somewhat more complex, since the end conditions are only one part of the calculation of the end of the active duration. The instance times list for end are used together with the other SMIL Timing semantics to calculate the actual end time for an interval.
If an instance time was defined as Syncbase-values, the instance time will maintain a time dependency relationship to the associated interval for the syncbase element. This means that if the associated begin or end time of the syncbase current interval changes, then the dependent instance time for this element will change as well.
When an element creates a new interval, it notifies time dependents and provides the begin and end times that were calculated according to the semantics described in "Computing the active duration". Each dependent element will create a new instance time tied to (i.e. with a dependency relationship to) the new syncbase current interval.
The translation of begin or end conditions to instance times depends upon the type of condition:
If no attribute is present, the default begin values must be evaluated. For children of par, this is equivalent to an Offset-value of 0, and yields one persistent instance value. For children of excl, this is equivalent to "indefinite", and so does not yield an instance value.
If a DOM method call is made to begin or end the element
(beginElement()
, beginElementAt()
,
endElement()
or endElementAt()
), each method call
creates a single instance time (in the appropriate instance times list).
These time instances are cleared upon reset just as for event times. See Resetting element state.
When a new time instance is added to the begin list, the current interval will evaluate restart semantics and may ignore the new time or it may end the current interval (this is detailed in Interaction with restart semantics). In contrast, when an instance time in the begin list changes because the syncbase (current interval) time moves, this does not invoke restart semantics, but may change the current begin time: If the current interval has not yet begun, a change to an instance time in the begin list will cause a re-evaluation of the begin instance lists, which may cause the interval begin time to change. If the interval begin time changes, a time-change notice must be propagated to all dependents, and the current interval end must also be re-evaluated.
When a new instance time is added to the end list, or when an instance time in the end list changes, the current interval will re-evaluate its end time. If it changes, it must notify dependents.
If an element has already played all intervals, there may be no current interval. In this case, additions to either list of instance times, as well as changes to any instance time in either list cause the element to re-evaluate the lists just as it would at the end of each interval (as described in End of an interval below). This may or may not lead to the creation of a new interval for the element.
When times are added to the instance times lists, they may or may not be resolved. If they are resolved, they will be converted to parent simple time. If an instance time changes from unresolved to resolved, it will be similarly converted.
There is a difference between an unresolved instance time, and a begin or end condition that has no associated instance. If, for example, an event value condition is specified in the end attribute, but no such event has happened, there will be no associated instance time in the end list. However, if a syncbase value condition is specified for end, and if the syncbase element has a current interval, there will be an associated instance time in the end list. Since the syncbase value condition may be relative to the end of the syncbase element, and since the end of the syncbase current interval may not be resolved, the associated instance time in the end list may be unresolved. Once the syncbase current interval actually ends, the dependent instance time in the end list will get a time-change notification for the resolved syncbase interval end. The dependent instance time will convert the newly resolved syncbase time to a resolved time in parent simple time. If the instance lists did not include the unresolved instance times, some additional mechanism would have to be defined to add the end instance time when the syncbase element's current interval actually ended, and resolved its end time.
The list of resolved times includes historical times defined relative to sync base elements, and so can grow over time if the sync base has many intervals. Implementations may filter the list of times as an optimization, so long as it does not affect the semantics defined herein.
This section is informative
The following set of principles underlie the interval model. This is not a complete model - it is just meant provide an additional view of the model.
First we define the terms pruning and cutting off an interval - these concepts should not be confused.
In some cases, after an interval has been created, it must later be pruned (deleted/removed from the timegraph) as more information becomes known and semantic constraints must be applied. When an interval is pruned, it will not be shown, it will not raise begin or end events, and any associated instance times for syncbase time dependents must be removed from the respective instance times lists. It is as though the pruned interval had not been specified.
In other cases, especially related to negative begin times on parent time containers, a valid interval for a child may not be shown, even though it is otherwise legal with respect to the parent time constraints. For example:
<par begin="-10s" dur="20s"> <img xml:id="slide1" src="slide1.jpg" dur="3s" /> <img xml:id="slide2" src="slide2.jpg" begin="slide1.end+3s" dur="10s" /> <img xml:id="note1" src="note1.jpg" begin="slide1.beginEvent" dur="20s" /> </par>
The "slide1" image will be cut off, but is not pruned. It is cut off because the par could not have been started 10s before its parent time container, and instead will be started at 0s into its parent time synced at 10s into its simple duration. The "slide1" image begins and ends before 10s into the par, and so cannot be shown and is cut off, Intervals that are cut off are not shown and do not raise begin or end events, but still create valid instance times for any syncbase time dependents. Thus, "slide2" will be shown (the interval is from minus 4 seconds to 6 seconds, document time, and so will be shown for 6 seconds, from 0 seconds to 6 seconds), but "note1" will not be shown.
The principles underlying the interval life cycle model are:
An implication of principle 5 is that we will get no intervals with unresolved begin times, since these will necessarily compare >= the parent simple end.
The life cycle of an element can be thought of as the following basic steps:
Steps 2 to 5 can loop for as many intervals as are defined before the end of the parent simple duration. At any time during step 2, the begin time for the current interval may change, and at any time during steps 2 or 3, the end time for the current interval may change. When either happens, the changes are propagated to time dependents.
When the document and the associated timegraph are initialized, the instance lists are empty. The simple offset values and any "indefinite" value in an end attribute can be added to the respective lists as part of initialization, as they are independent of the begin time of parent simple time.
When an element has played all allowed instances, it can be thought of as stuck in step 5. However any changes to the instance lists during this period cause the element to jump back to step 4 and consider the creation of a new current interval.
An element life cycle begins with the beginning of the simple duration for the element's parent time container. That is, each time the parent time container (or more generally any ascendant time container) repeats or restarts, the element resets (see also Resetting element state) and starts "life" anew.
Three things are important about the beginning of the life-cycle:
Action 1) is also described in Resetting element state. This action also happens each time the element restarts, although in that case the element must not clear an event time that defined the current begin of the interval.
Action 2) Simply updates values to reflect the current sync relationship of the parent simple duration to the rest of the document.
The third action requires some special consideration of the lists of times, but is still relatively straightforward. It is similar to, but not the same as the action that applies when the element ends (this is described in End of an interval). The basic idea is to find the first interval for the element, and make that the current interval. However, the model should handle three edge cases:
Thus the strict definition of the first acceptable interval for the element is the first interval that ends after the parent simple begin, and begins before the parent simple end. Here is some pseudo-code to get the first interval for an element. It assumes an abstract type "Time" that supports a compare function. It may be a resolved numeric value, the special value INDEFINITE (only used with end), and it may be the special value UNRESOLVED. Indefinite compares "greater than" all resolved values, and UNRESOLVED is "greater than" both resolved values and INDEFINITE. The code uses the instance times lists associated with the begin and end attributes, as described in the previous section.
// Utility function that returns true if the end attribute specification // includes conditions that describe Event-values, Repeat-values or Accesskey-values. boolean endHasEventConditions(); // Calculates the first acceptable interval for an element // Returns: // Interval if there is such an interval // FAILURE if there is no such interval Interval getFirstInterval() { Time beginAfter=-INFINITY; while( TRUE ) // loop till return { If (currentInterval.end > currentInterval.begin)
Set tempBegin = the first value in the begin list that is >= beginAfter.
Else
Set tempBegin = the first value in the begin list that is > beginAfter.
If there is no such value // No interval return FAILURE; If tempBegin >= parentSimpleEnd // Can't begin after parent ends return FAILURE; If there was no end attribute specified // this calculates the active end with no end constraint tempEnd = calcActiveEnd( tempBegin ); else { // We have a begin value - get an end Set tempEnd = the first value in the end list that is >= tempBegin. // Allow for non-0-duration interval that begins immediately // after a 0-duration interval. If tempEnd == tempBegin && tempEnd has already been used in an interval calculated in this method call { set tempEnd to the next value in the end list that is > tempEnd } If there is no such value { // Events leave the end open-ended. If there are other conditions // that have not yet generated instances, they must be unresolved. if endHasEventConditions() OR if the instance list is empty tempEnd = UNRESOLVED; // if all ends are before the begin, bad interval else return FAILURE; } // this calculates the active dur with an end constraint tempEnd = calcActiveEnd( tempBegin, tempEnd ); } // We have an end - is it after the parent simple begin? // Handle the zero duration intervals at the parent begin time as a special case if( tempEnd > 0 || (tempBegin==0 && tempEnd==0)) return( Interval( tempBegin, tempEnd ) ); else // Change beginAfter to find next interval, and loop beginAfter = tempEnd; } // close while loop } // close getFirstInterval
Note that while we might consider the case of restart=
"always"
separately from restart=
"whenNotActive", it would just be busy
work since we need to find an interval that begins after
tempEnd
.
If the model yields no first interval for the element, it will never begin, and so there is nothing more to do at this point. However if there is a valid interval, the element must notify all time dependents that there is a new interval of the element. This is a notice from this element to all elements that are direct time dependents. This is distinct from the propagation of a changed time.
When a dependent element gets a "new interval" notice, this includes a reference to the new interval. The new interval will generally have a resolved begin time and may have a resolved end time. An associated instance time will be added to the begin or end instance time list for the dependent element, and this new instance time will maintain a time dependency relationship to the syncbase interval.
This period only occurs if the current interval does not begin immediately when (or before) it is created. While an interval is waiting to begin, any changes to syncbase element current interval times will be propagated to the instance lists and may result in a change to the current interval.
If the element receives a "new interval" notice while it is waiting to begin, it will add the associated time (i.e. the begin or end time of the syncbase interval) to the appropriate list of resolved times.
When an instance time changes, or when a new instance time is added to one of the lists, the element will re-evaluate the begin or end time of the current interval (using the same algorithm described in the previous section). If this re-evaluation yields a changed interval, time change notice(s) will be sent to the associated dependents.
It is possible during this stage that the begin and end times could change such that the interval would never begin (e.g. the interval end is before the interval begin). In this case, the interval must be pruned and all dependent instance times must be removed from the respective instance lists of dependent elements. These changes to the instance lists will cause re-evaluation of the dependent element current intervals, in the same manner as a changed instance time does.
This section is informative.
One exception to normal processing is made for elements that are deferred according to excl interrupt semantics: a deferred element ignores propagated changes to its begin time. This is detailed in the Deferred elements and propagating changes to begin section.
This period occurs when the current interval is active (i.e. once it has begun, and until it has ended). During this period, the end time of the interval may change, but the begin time cannot. If any of the instance times in the begin list change after the current interval has begun, the change will not affect the current interval. This is different from the case of adding a new instance time to the begin list, which can cause a restart.
If the element receives a "new interval" notice while it is active, it will add the associated time (i.e. the begin or end time of the syncbase interval) to the appropriate list of resolved times. If the new interval adds a time to the begin list, restart semantics are considered, and this may end the current interval.
If restart is set to "always", then the current interval will end early if there is an instance time in the begin list that is before (i.e. earlier than) the defined end for the current interval. Ending in this manner will also send a changed time notice to all time dependents for the current interval end. See also Interaction with restart semantics.
If an element specifies restart=
"never" then no further
action is taken at the end of the interval, and the element sits in the "post
interval" state unless and until an ascendant time container repeats or
restarts.
If an element specifies other values for restart, when it ends the current interval the element must reconsider the lists of resolved begin and end times. If there is another legal interval defined to begin at or after the just completed end time, a new interval will be created. When a new interval is created it becomes the current interval and a new interval notice is sent to all time dependents.
The algorithm used is very similar to that used in step 1, except that we are interested in finding an interval that begins after the most recent end.
// Calculates the next acceptable interval for an element // Returns: // Interval if there is such an interval // FAILURE if there is no such interval Interval getNextInterval() { // Note that at this point, the just ended interval is still the "current interval" Time beginAfter=currentInterval.end; Set tempBegin = the first value in the begin list that is >= beginAfter. If there is no such value // No interval return FAILURE; If tempBegin >= parentSimpleEnd // Can't begin after parent ends return FAILURE; If there was no end attribute specified // this calculates the active end with no end constraint tempEnd = calcActiveEnd( tempBegin ); else { // We have a begin value - get an end Set tempEnd = the first value in the end list that is >= tempBegin. // Allow for non-0-duration interval that begins immediately // after a 0-duration interval. If tempEnd == currentInterval.end { set tempEnd to the next value in the end list that is > tempEnd } If there is no such value { // Events leave the end open-ended. If there are other conditions // that have not yet generated instances, they must be unresolved. if endHasEventConditions() OR if the instance list is empty tempEnd = UNRESOLVED; // if all ends are before the begin, bad interval else return FAILURE; } // this calculates the active dur with an end constraint tempEnd = calcActiveEnd( tempBegin, tempEnd ); } return( Interval( tempBegin, tempEnd ) ); } // close getNextInterval
This period can extend from the end of an interval until the beginning of the next interval, or until the end of the parent simple duration (whichever comes first). During this period, any fill behavior is applied to the element. The times for this interval can no longer change. Implementations may as an optimization choose to break the time dependency relationships since they can no longer produce changes.
There are two cases in which restart semantics must be considered:
=
"always"
then any instance time (call it T
) in the
begin list that is after (i.e. later than) the current interval begin but
earlier than the current interval end will cause the current interval to
end at time T
. This is the first step in
restarting the element: when the current interval ends, that in turn will
create any following interval.=
"never" then nothing more is done. It
is possible (if the new instance time is associated with a
syncbase value condition) that the new instance time will be used
the next time the element life cycle begins.=
"whenNotActive"then nothing more is
done. If the time falls within the current interval, the element
cannot restart, and if it falls after, then the normal processing
at the end of the current interval will handle it. If the time
falls before the current interval, as can happen if the time
includes a negative offset, the element does not restart (the new
instance time is effectively ignored).=
"always" then case 1 above applies, and
will cause the current interval to end.There are two types of cycles that can be created with SMIL 3.0, closed cycles and open or propagating cycles. A closed cycle results when a set of elements has mutually dependent time conditions, and no other conditions on the affected elements can affect or change this dependency relationship, as in examples 1 and 2 below. An open or propagating cycle results when a set of elements has mutually dependent time conditions, but at least one of the conditions involved has more than one resolved condition. If any one of the elements in the cycle can generate more than one interval, the cycle can propagate. In some cases such as that illustrated in example 3, this can be very useful.
Times defined in a closed cycle are unresolved, unless some external mechanism resolves one of the element time values (for example a DOM method call or the traversal of a hyperlink that targets one of the elements). If this happens, the resolved time will propagate through the cycle, resolving all the associated time values.
Closed cycles are an error, and may cause the entire document to fail. In some implementations, the elements in the cycle may just not begin or end correctly. Examples 1 and 2 describe the most forgiving behavior, but implementations may simply reject a document with a closed cycle.
Implementations can detect cycles in the timegraph using a visited flag on each element as part of the processing that propagates changes to time dependents. As a changed time notice is propagated, each dependent element is marked as having been visited. If the change to a dependent instance time results in a change to the current interval for that element, this change will propagate in turn to its dependents. This second chained notice happens in the context of the first time-change notice that caused it. The effect is like a stack that builds as changes propagate throughout the graph, and then unwinds when all changes have propagated. If there is a dependency cycle, the propagation path will traverse an element twice during a given propagation chain. This is a common technique used in graph traversals.
A similar approach can be used when building dependency chains during initialization of the timegraph, and when propagating new interval notices - variations on the theme will be specific to individual implementations.
When a cycle is detected, the change propagation is ignored. The element that detected the second visit ignores the second change notice, and so breaks the cycle.
This section is informative.
Example 1: In the following example, the 2 images define begin times that are mutually dependent. There is no way to resolve these, and so the images will never begin.
<img xml:id="foo" begin="bar.begin" .../> <img xml:id="bar" begin="foo.begin" .../>
Example 2: In the following example, the 3 images define a less obvious cycle of begin and end times that are mutually dependent. There is no way to resolve these. The image "joe" will begin but will never end, and the images "foo" and "bar" will never begin.
<img xml:id="foo" begin="joe.end" .../> <img xml:id="bar" begin="foo.begin" dur="3s" .../> <img xml:id="joe" begin="0" end="bar.end" .../>
Example 3: In the following example, the 2 images define begin times that are mutually dependent, but the first has multiple begin conditions that allow the cycle to propagate forwards. The image "foo" will first be displayed from 0 to 3 seconds, with the second image "bar" displayed from 2 to 5 seconds. As each new current interval of "foo" and "bar" are created, they will add a new instance time to the other element's begin list, and so the cycle keeps going forward. As this overlapping "ping-pong" behavior is not otherwise easy to author, these types of cycles are not precluded. Moreover, the correct behavior will fall out of the model described above.
<img xml:id="foo" begin="0; bar.begin+2s" dur="3s" .../> <img xml:id="bar" begin="foo.begin+2s" dur="3s" .../>
Example 4: In the following example, an open cycle is described that propagates backwards. The intended behavior does not fall out of the model, and is not supported. In this example, however, each time the parent time container repeats, the video elements will begin two seconds earlier than they did in the previous parent iteration. This is because the begin instance times associated with syncbase value conditions are not cleared when the parent repeats. By the last iteration of the parent time container, both video elements would begin so early that they will be completely cut off by the parent begin constraint.
<par dur="10s" repeatCount="11" > <video xml:id="foo" begin="0; bar.begin-1s" dur="10s" .../> <video xml:id="bar" begin="foo.begin-1s" dur="10s" .../> </par>
This section is informative
In this specification, elements are described as having local "time". In particular, many offsets are computed in the simple time of a parent time container. However, simple durations may be repeated, and elements may begin and restart in many ways.
This section is informative
The SMIL timing model assumes the most common model for interval timing.
This section is informative
This is also referred to as end-point exclusive timing. This model makes arithmetic for intervals work correctly, and provides sensible models for sequences of intervals.
This section is informative.
In the real world, this is equivalent to the way that seconds add up to minutes, and minutes add up to hours. Although a minute is described as 60 seconds, a digital clock never shows more than 59 seconds. Adding one more second to "00:59" does not yield "00:60" but rather "01:00", or 1 minute and 0 seconds. The theoretical end time of 60 seconds that describes a minute interval is excluded from the actual interval.
In the world of media and timelines, the same applies: Let "A" be a video, a clip of audio, or an animation. Assume "A" begins at 10 and runs until 15 (in any units - it does not matter). If "B" is defined to follow "A", then it begins at 15 (and not at 15 plus some minimum interval). When a runtime actually renders out frames (or samples for audio), and must render the time "15", it should not show both a frame of "A" and a frame of "B", but rather should only show the new element "B". This is the same for audio, or for any interval on a timeline. If the model does not use endpoint-exclusive timing, it will draw overlapping frames, or have overlapping samples of audio, of sequenced animations, etc.
Note that transitions from "A" to "B" also adhere to the interval timing model. They do require that "A" not actually end at 15, and that both elements actually overlap. Nevertheless, the "A" duration is simply extended by the transition duration (e.g. 1 second). This new duration for "A" is also endpoint exclusive - at the end of this new duration, the transition will be complete, and only "B" should be rendered - "A" is no longer needed.
This section is informative.
For the time model, several results of this are important: the definition of repeat, and the state of the element applied or displayed when the element is "frozen".
When repeating an element's simple duration, the arithmetic follows the end-point exclusive model. Consider the example:
<video dur="4s" repeatCount="4" .../>
At time 0, the simple duration is also at 0, and the first frame of video is presented. This is the inclusive begin of the interval. The simple duration proceeds normally up to 4 seconds.
simpleTime = REMAINDER( t, d )
where t
is within the active duration
Note: REMAINDER( t, d )
is defined as t -
(d*floor(t/d))
This section is informative.
Using this, a time of 4 (or 8 or 12) maps to the time of 0 on the simple duration. The endpoint of the simple duration is excluded from (i.e. not actually sampled on) the simple duration.
For most continuous media, this aligns to the internal media model, and so no frames (or audio samples) are ever excluded. However for sampled timeline media (like animation), the distinction is important, and requires a specific semantic for elements that are frozen.
This section is informative.
The effect of this semantic upon animation functions is detailed in the SMIL 3.0 Animation chapter.
This section is informative
The SMIL 3.0 timing model supports synchronization based upon unpredictable events such as DOM events or user interface generated events. The model for handling events is that the notification of the event is delivered to the timing element, and the timing element uses a set of rules to resolve any synchronization dependent upon the event.
Note:
The semantics of element sensitivity to events are described by the following set of rules:
=
"always", then a new begin time is resolved for
the element based on the event time. Any specification of the event
in end is ignored for this event
instance.=
"never" or restart=
"whenNotActive", then any begin specification of the event is
ignored for this instance of the event. If end specifies the event, an end value
is resolved based upon the event time, and the active duration is
re-evaluated (according to the rules in Computing the active
duration).It is important to notice that in no case is a single event occurrence used to resolve both a begin and end time on the same element.
This section is informative
Rule 1a discourages the use of cases such as the following:
<smil ...> ... <par xml:id="bad_example" begin="link9.activateEvent"> <img begin="link9.activateEvent" .../> </par> ... </smil>
Various alternative approaches can be used. One possible approach is to define the descendant element to begin relative to the ascendant begin, as in the following example (the begin rule for the image could be simpler, but this illustrates the general point):
<smil ...> ... <par xml:id="better_example" begin="link9.activateEvent"> <img begin="better_example.begin" .../> </par> ... </smil>
The event sensitivity rules may be used with the restart attribute to describe "toggle" activation use cases, as described in the section: Using restart for toggle activation.
Since the same event instance cannot be used to resolve both the begin and end time on a single element, uses like the following will have behavior that may seem non-intuitive to some people:
<smil ...> ... <audio src="bounce.wav" begin="foo.activateEvent" end="foo.activateEvent+3s" restart="whenNotActive"/> ... </smil>
This example will begin repeating the audio clip when "foo" is clicked, and stop the audio clip 3 seconds after "foo" is clicked a second time. It is incorrect to interpret this example as playing the audio clip for 3 seconds after "foo" is clicked. For that behavior, the following markup should be used:
<smil ...> ... <audio src="bounce.wav" begin="foo.activateEvent" dur="3s" restart="whenNotActive"/> ... </smil>
The timing model and the user event model are largely orthogonal. While the timing model does reference user events, it does not define how these events are generated, and in particular does not define semantics of keyboard focus, mouse containment, "clickability", and related issues. Because timing can affect the presentation of elements, it may impact the rules for user event processing, however it only has an effect to the extent that the presentation of the element is affected.
In particular, many user event models will make no distinction between an element that is "playing" and one that is "frozen". The effects of the fill attribute apply only to the timing semantics. If an element is still visible while frozen, it behaves normally with respect to other semantics such as user event processing. In particular, elements such as a and area are still sensitive to user activation (e.g. clicks) when frozen.
This section is informative.
Related to event-activation is
link-activation. Hyperlinking has defined semantics in SMIL 1.0 to
seek a document to a point in time. When combined with interactive timing
(e.g. begin=
"indefinite"), hyperlinking yields a variant on
user-interactive content.
This section is informative.
The details of when hyperlinks activate an element, and when they seek the document timeline are presented in the section Hyperlinks and timing.
To convert a document time to an element local time, the original time is converted to a simple time for each time container from the root time container down to the parent time container for the element. This recursive algorithm allows for a simple model of the conversion from parent simple time to element active and element simple time. The first step calculates element active time, and the second step calculates element simple time.
The steps below assume that the associated times are resolved and not indefinite. If a required time is not resolved or is indefinite, then the conversion is not defined, and cannot be performed.
The input time is a time in parent simple time. This is normalized to the element active duration, adjusting for the accumulated synchronization offset (described in The accumulated synchronization offset).
Let tps be a time in parent simple time, B be the begin time for an element, and O be the accumulated synchronization offset for an element, measured in parent simple time.The element active time ta for any child element is:
ta = tps - B - O
The element simple time is the time that is used to establish runtime synchronization for a media element, or to compute an animation function's input value or sampling time. If the element is a time container, this is also the time that is seen by all children of a time container (as the time container element's simple time).
To compute the element simple time ts from an element active time ta, accounting for any repeat behavior:
If there is no repeating behavior:ts = taElse, the element simple time is just computed from the begin time of the most recent iteration - call this tlast-repeat. Some other mechanism (such as endsync logic or a media player) must note when the simple duration ends, and reset the value of tlast-repeat. If the element has not yet repeated, a value of 0 is used in place of tlast-repeat.
ts = ta - tlast-repeat
Note that the above semantic covers the special (ideal) case when the simple duration dur is fixed and does not vary. In this case (and this case only) tlast-repeat may be obtained directly for the simple duration dur and so the expression may be reduced to:
ts = REMAINDER( ta, dur )where REMAINDER( t, d ) is defined as (t - d*floor(t/d)).
When the document begins, the current wall-clock time is noted and saved as twallclock-begin. To convert a wall-clock value twc to an element active simple time ts, first convert twc to a document global time tra (i.e. an element active time for the root time container):
tra = twc - twallclock-begin
This may yield a negative time if the wallclock value is a time before the document began. Nevertheless, this is a legal value.
The time tra is then converted normally to element active time or element local time as needed.
Event times are generally stamped with a time relative to system time or when the document began. The conversion is as for wallclock values, in that the event time is converted to an active time for the root time container, and then converted normally to an element time.
To convert from one element timespace to another, the time for the first element te1 must first be converted to a simple time on the closest ascendant time container that contains both elements. Converting from an element time to the parent time reverses the process described above. Again, it is recursive, and so the conversions are described generically from element simple to element active time, and from element active to parent simple time.
To convert from element simple time to element active time requires the begin time of the most recent iteration, tlast-repeat. If the element does not repeat or has not yet repeated, a value of 0 is used in place of tlast-repeat.
ta = ts + tlast-repeat
Conversion from element active time to parent simple time uses the associated begin of the element and the accumulated synchronization offset.
tps = ta + B + O
This section is informative.
Note that the pure conversions do not take into account the clamping of active durations, nor the effects of fill (where time is frozen).
Global to local time conversions used to translate between timespaces must ignore these issues, and so may yield a time in the destination local timespace that is well before or well after the simple duration of the element.
This section is informative.
An alternate form of the conversion is used when actually sampling the time graph.
A time container is only sampled if it is active or frozen, and so no times will be produced that are before a time container begins. If the global to local time conversion for a time container yields a time during which the time container is frozen, the time is clamped to the value of the active end.
This section is informative
Hyperlinking semantics must be specifically defined within the time model in order to ensure predictable behavior. Earlier hyperlinking semantics, such as those defined by SMIL 1.0 are insufficient because they do not handle unresolved times, nor do they handle author-time restart restrictions. Here we extend SMIL 1.0 semantics for use in presentations using elements with unresolved timing (including interactive timing) and author-time restart restrictions.
A hyperlink may be targeted at an element by specifying the value of the id attribute of an element in the fragment part of the link locator. Traversing a hyperlink that refers to a timed element will behave according to the following rules:
In the above rules, the following additional constraint must also be respected:
This section is informative
Note that the first constraint means that a hyperlink to a child of a time container will never seek to a time earlier than the beginning of the time container. The second constraint implies that a hyperlink to a child that begins after the end of the parent simple duration will seek to the end of the parent, and proceed from there. While this may produce surprising results, it is the most reasonable fallback semantic for what is essentially an error in the presentation.
If a seek of the presentation time is required, it may be necessary to seek either forward or backward, depending upon the resolved begin time of the element and the presentation current time at the moment of hyperlink traversal.
beginEvent
,
endEvent
and any repeatEvent
events are not
raised.endEvent
is raised. The associated time for the event is
the document time before the seek.repeatEvents
are not raised.The net effect is that seeking forward to a presentation time puts the
document into a state largely identical to that as if the document
presentation time advanced undisturbed to reach the seek time. If the
presentation is authored with no beginEvent
,
endEvent
or repeatEvent
based timing and no
automatic hyperlinks, then state of the document after a seek should be
identical to that had the document presentation time advanced undisturbed to
reach the seeked-to time.
If the resolved activation time for an element that is the target of a hyperlink traversal occurs in the past, the presentation time must seek backwards. Seeking backwards will rewind any elements active at the time of hyperlinking.
beginEvent
, endEvent
or repeatEvent
events.endEvent
is raised. The associated time for the
event is the document time before the seek. This action does not resolve
any times in the instance times list for end times.repeatEvents
are not raised.=
"never" setting for an element; once the
begin time is resolved, it cannot be changed or restarted.This section is informative
These hyperlinking semantics assume that a record is kept of the resolved begin time for all elements, and this record is available to be used for determining the correct presentation time to seek to. For example:
<smil ...> ... <par begin="0"> <img xml:id="A" begin="10s" .../> <img xml:id="B" begin="A.begin+5s" .../> <img xml:id="C" begin="B.activateEvent" .../> <img xml:id="D" begin="C.begin+5s" .../> ... <a href="#D">Begin image D</a> </par> ... </smil>
The begin time of elements A and B can be immediately resolved to be at 10 and 15 seconds respectively. The begin of elements C and D are unresolved when the document starts. Therefore activating the hyperlink will resolve the begin of D but have no effect upon the presentation time for element C.
Now, assume that B is clicked at 25 seconds into the presentation. The click on B resolves the begin of C; this in turn resolves D to begin at 30 seconds. From this point on, traversing the hyperlink will cause the presentation time to be seeked to 30 seconds.
If at 60 seconds into the presentation, the user again clicks on B, D will become re-resolved to a presentation time of 65 seconds. Subsequent activation of the hyperlink while D is active will result in the seeking the presentation to 65 seconds. If the hyperlink is activated when D is no longer active, the presentation will seek to the earliest resolved begin time of D, at 30 seconds.
For a child of a sequence time container, if a hyperlink targeted to the child is traversed, this seeks the sequence to the beginning of the child.
endEvent
event is raised, with the current time as the associated event time.beginElement()
or beginElementAt()
is
called for the child of a sequence time container (subject to restart
semantics), any currently active or frozen child is stopped and the new
child is begun at the current time (even if the element has a scheduled
begin time). Unlike hyperlinking, no seek is performed. The sequence will
play normally following the child that is begun with the method call
(i.e. as though the child had begun at its normal time).This section is informative
Note that if a hyperlink targets (or if beginElement()
or
beginElementAt()
is called for) an element A
defined to begin when another element B ends, and the other
element B has (e.g.) an event-base or syncbase end, the
hyperlink or method call will not end element B. It will
only activate element A. If the two elements are siblings
within a seq or excl time container, the parent time
container enforces its semantics and stops (or pauses) the running
element.
If a hyperlink targets a child of an excl time container, activating the link will seek to the earliest computed begin. This means that pause/defer stack semantics do not need to be accounted for when linking to an element. Instead the document timeline will simply be seeked to the first resolved time for the element, or seeked to the start of the time container and the target element simply started if there is no resolved begin time.
This section is informative
There are several cases in which times may change as the document is presented. In particular, when an element time is defined relative to an event, the time (i.e. the element begin or active end) is resolved when the event occurs. Another case arises with restart behavior - the element gets a new begin and active end time when it restarts. Since the begin and active end times of one element may be defined relative to the begin or active end of other elements, any changes to times must be propagated throughout the document.
When an element "foo" has a begin or active end time that specifies a syncbase element (e.g. "bar" as below):
<img xml:id="foo" begin="bar.end" .../>
we say that "foo" is a time-dependent of "bar" - that is, the "foo" begin time depends upon the active end of "bar". Any changes to the active end time of "bar" must be propagated to the begin of "foo" so that "foo" begins properly when "bar" ends. The effect on "foo" of the propagated change depends upon the state of "foo" when the change happens.
This section is informative.
One exception to normal processing is made for elements that are deferred according to excl interrupt semantics. This exception is made to simplify the model: once an element is deferred, it will stop normal handling of time change notices that are propagated to the element begin conditions, as time dependents of syncbase elements. That is, with respect to the behavior of the element as a time dependent, the element behaves as though it had already begun. This exception is made so that the deferred element cannot change its begin time due to syncbase element changes, while it is deferred. In effect, the element should have begun at the time it was deferred, and so it should no longer handle changed time notices.
This section is informative
In some cases, the semantics of restart may preclude the correct propagation of changes to time, as in the following example:
<smil ...> ... <par> <img xml:id="img1" dur="10s" end="activateEvent" .../> <video begin="img1.end-3s" restart="whenNotActive" .../> </par> ... </smil>
If the user clicks the image at 8 seconds, the image will end at that point, and the changed end time will propagate to the video. However, the video will have begun at 7 seconds (3 seconds before the calculated end of 10 seconds), and cannot restart. The propagated change will be ignored. See also Interaction with restart semantics in the section on Evaluation of begin and end time lists.
This section is informative
The implicit duration of a time container is defined in terms of the children of the container. The children can be thought of as the "media" that is "played" by the time container element. The semantics are specific to each of the defined time container variants, and are described in the respective sections: The par element, the seq element, and the excl element.
Note that the term "computed values" should not be confused with the values of times that are dynamic within the time graph. In the following example, the video will be cut short if the user activates (e.g., clicks on) it before 10 seconds. If the user does not click, the par has a simple duration of 10 seconds. If the user activates the video at 5 seconds, the par has a simple duration of 8 seconds. Although the original end time for the video could be computed by an implementation as 10 seconds, the endsync semantics must be evaluated with the updated times that account for the user events.
<smil ...> ... <par endsync="last" > <audio dur="8s" .../> <video begin="0" dur="10s" end="click" .../> </par> ... </smil>
Time containers place certain overriding constraints upon the child elements. These constraints may cut short the active duration of any child element.
All time containers share the basic overriding constraint:
This section is informative
While the child may define a sync relationship that places the begin before the parent begin, the child is not active until the parent begins. This is equivalent to the semantic described in Negative begin delays.
If the child defines an active duration (or by the same token a simple duration) that extends beyond the end of the parent simple duration, the active duration of the child will be cut short when the parent simple duration ends. Note that this does not imply that the child duration is automatically shortened, or that the parent simple duration is "inherited" by the child.
For example:
<par dur="10s" repeatDur="25s"> <video dur="6s" repeatCount="2" .../> <text xml:id="text1" begin="5s" dur="indefinite" .../> <audio begin="text1.end" .../> </par>
The video will play once for 6 seconds, and then a second time but only for 4 seconds - the last 2 seconds will get cut short and will not be seen. The text shows up for the last 5 seconds of the par, and the indefinite duration is cut short at the end of the simple duration of the par. The audio will not show up at all, since it is defined to begin at the end of the active duration of the previous element (the text element). Since the text element ends when the time container ends, the audio would begin after the time container has ended, and so never is heard. When the par repeats the first time, everything happens just as it did the first time. However the last repeat is only a partial repeat (5 seconds), and so only the video will be seen, but it will not be seen to repeat, and the last second of the video will be cut off.
In addition, excl time containers allow only one child to play at once. Subject to the priorityClass semantics, the active duration of an element may be cut short when another element in the time container begins.
This section is informative.
The fill attribute is also used to extend the active duration if it is less than the duration specified in the min attribute.
<par dur="5s"> <img xml:id="img" min="7s" dur="4s" fill="freeze".../> </par>
This section is informative
SMIL 1.0 defined constraints on sync-arc definition (e.g., begin="id(image1)(begin)"), allowing references only to qualified siblings. SMIL 2.0 explicitly removes this constraint. SMIL 2.0 also adds event-based timing. Both sync-arcs and event-timing are constrained by the parent time container of the associated element as described above.
While a sync-arc is explicitly defined relative to a particular element, if this element is not a sibling element, then the sync is resolved as a sync-relationship to the parent (i.e. to an offset from the parent begin).
This section is informative
Note that in particular, an element defined with a sync-arc begin will not automatically force the parent or any ancestor time container to begin.
For the case that an element with a sync-arc is in a parent (or ancestor) time container that repeats: for each iteration of the parent or ancestor, the element is played as though it were the first time the parent timeline was playing. With each repeat of the parent, the sync-arc will be recalculated to yield a begin time relative to the parent time container. See also the section Resetting element state.
This section is informative
The specifics for event-based timing are discussed in the Event Sensitivity section.
Whether or not media with zero duration and no fill period is retrieved and/or briefly rendered is implementation dependent.
This section is informative
When an element begins, any event-based begin times are cleared. In the following example, if an activate event occurs and then one second later bar ends, then foo begins immediately and the element does not restart four seconds later regardless of the restart setting. However, if an activate event occurs and bar does not end during the next five seconds, the element will restart at the end of that time.
<audio xml:id="foo" begin="bar.end; activateEvent+5s".../>
This section is normative.
This section is informative
This section describes what a language designer must actually do to specify the integration of SMIL Timing and Synchronization support into a host language. This includes basic definitions, constraints upon specification, and allowed/supported events.
The host language designer must define some basic concepts in the context of the particular host language. These provide the basis for timing and presentation semantics.
application/smil+xml
" or
"application/smil
").This section is informative
A typical example for "presenting a document" is displaying it on a screen. Possible definitions for the document begin are that the document begins when the complete document has been received by a client over a network, or that the document begins when certain document parts have been received. A typical example of the document end is when the associated application exits or switches context to another document.
media
" argument value
to the dur attribute.This section is normative.
This section is informative
In SMIL 2.1 four DOM methods for controlling the timing of elements were reserved. These methods are now defined. The definition is essentially the same as the definition in SMIL Animation [SMIL-ANIMATION].
This section is informative.
Any XML-based language that integrates SMIL Timing will inherit the basic interfaces defined in DOM [DOM2] (although not all languages may require a DOM implementation). SMIL Timing specifies the interaction of timing functionality and DOM. SMIL Timing also defines constraints upon the basic DOM interfaces, and specific DOM interfaces to support SMIL Timing. The DOM Modules chapter has more information about DOM support in SMIL.
No syntax support is required to make use of the defined interfaces, although the "indefinite" argument value on the begin and end attributes may be used to describe timing that will be initiated by DOM methods. In any case, the actions of DOM timing methods are subject to the constraints of the time model, as described in this document.
A language integrating SMIL Timing and Synchronization need not require a DOM implementation.
This section is informative
SMIL event-timing assumes that the host language supports events, and that the events can be bound in a declarative manner. DOM Level 2 Events [DOM2Events] describes functionality to support this.
The specific events supported are defined by the host language. If no events are defined by a host language, event-timing is effectively omitted.
This module defines a set of events that may be included by a host language. These include:
This section is informative.
If an element is restarted while it is currently
playing, the element will raise an endEvent
and then a
beginEvent
, as the element restarts.
In order to make the model operate consistently and
remove the effects of synchronization slew in a chain of event times, the
timestamp value associated with events such as the beginEvent
,
endEvent
, and repeat
events is not (necessarily)
the actual time that the event is raised, nor is it the time when a time
dependent is actually notified of the event. Rather the event timestamp is
the earliest time that the event could be raised (given the
timing model semantics, and assuming that elements would begin and end
precisely when they are defined to). There are three basic cases
corresponding to begin and end conditions with zero, positive, and negative
offsets respectively:
This section is informative.
These examples assume video and audio media that are recorded to be in exact sync with one another.
<par dur="indefinite"> <img xml:id="foo" end="click" .../> <video xml:id="bar" begin="foo.endEvent" .../> <audio xml:id="copy" begin="foo.end" .../> </par>
The image "foo" will end when the user clicks on it. The defined time of
the end is actually the time of the click event (even if it takes a while to
propagate the click event through the presentation mechanism). The "foo"
element will raise an endEvent
with a timestamp equal to the
time of the click event. The behavior in this example is that "bar" and
"copy" will be in precise synchronization (although "bar" may actually begin
very slightly later, since it can take a while to propagate the events
through a system).
This section is informative.
<par dur="indefinite"> <img xml:id="foo" .../> <video xml:id="bar" begin="foo.click+3s" .../> <audio xml:id="copy" begin="bar.beginEvent" .../> </par>
The video "bar" will begin 3 seconds after the user clicks on "foo". The
beginEvent
for "bar" will have a timestamp equal to the
"foo.click" event timestamp plus 3 seconds. The behavior is that in the
example above, "bar" and "copy" will be in precise synchronization (although
"copy" may actually begin slightly later, since it can take a while to
propagate the events through a system).
This section is informative.
<par dur="indefinite"> <img xml:id="foo" .../> <video xml:id="bar" begin="foo.click-3s" .../> <audio xml:id="copy" begin="bar.beginEvent" .../> </par>
The video "bar" will begin when the user clicks on "foo". The video will
begin to play at a 3 second offset into the actual content, because it is
defined to begin 3 seconds before the click. However, since "bar" cannot
begin any sooner than "now" when the event is raised, it will raise a
beginEvent
that has the same time as the "foo.click" event. Thus
in this case, the audio element "copy" will be precisely three seconds behind
(out of sync with) the video.
Additional time model constraints can cause the beginEvent
(or endEvent
) event timestamp to differ from the calculated
begin (or end) time for an element. For example the element can specify a
begin time before the beginning of its parent time container (either with a
negative offset value, or with a syncbase time that resolves to a time before
the parent begin). In this case, a time dependent of the begin syncbase time will be defined relative
to the calculated begin time. However, the element is constrained to not
actually begin before the parent time container. The beginEvent
will be raised when the element actually begins - in the example case when
the parent time container begins. Similarly, the endEvent
is
raised when the element actually ends, which may differ from the calculated
end time (e.g. when the end is specified to be after the end of the parent
simple duration).
The distinction between syncbase and event times can be useful in certain situations. Consider the following example:
<par> <par begin="5s"> <par begin="-5s"> <img xml:id="foo" begin="1s; 8s" dur="3s" .../> </par> </par> <img xml:id="bar" begin="foo.begin" dur="1s" .../> <audio xml:id="beep" begin="foo.beginEvent" dur="1s" .../> </par>
The "foo" element defines two intervals. The inner par cuts off - but does not prune - the first interval, because the innermost par is constrained by the middle par and cannot actually begin until 5s into the document. However the inner par is still synchronized to the document time of 0s. As such, "bar" will play twice: once at 1 second, and again at 8 seconds, because syncbase values use calculated interval times. However the "beep" audio will only play once at 8 seconds which is when "foo" is actually displayed, because intervals that are cut off do not raise events.
While authors are unlikely to author the above example, similar cases can
easily arise using syncbase timing. When it is important to distinguish the
observed begin time from the scheduled begin time, Event-value timing with
the beginEvent
or endEvent
can be used. However,
the author must be aware of the constraints on Event-value timing. These
include the event sensitivity
constraints, and the fact that many implementations will not optimize
scheduling and media preparation for elements with Event-value timing as well
as for elements with scheduled Syncbase-value timing. See also the discussion
Propagating changes to times.
This section is informative.
SMIL Timing supports several methods for controlling the behavior of
animation: beginElement()
, beginElementAt(),
endElement(),
and endElementAt()
. These methods are
used to begin and end the active duration of an element. Authors may (but are
not required to) declare the timing to respond to the DOM using the following
syntax:
<img begin="indefinite" end="indefinite" .../>
If a DOM method call is made to begin or end the element (using
beginElement()
, beginElementAt()
,
endElement()
or endElementAt()
), each method call
creates a single instance time (in the appropriate instance times list).
These times are then interpreted as part of the semantics of lists of times,
as described in Evaluation of
begin and end time lists.
beginElement()
or
endElement()
call is the current presentation time at the
time of the DOM method call.beginElementAt()
or
endElementAt()
call is the current presentation time at the
time of the DOM method call, plus or minus the specified offset.beginElement()
is subject to the restart attribute in the same manner
that event-based begin timing is. Refer also to the section The restart attribute.The expectation of the following interface is that an instance of the
ElementTimeControl interface can be obtained by using binding-specific
casting methods on an instance of an animate element. A DOM application may
use the hasFeature
method of the DOMImplementation interface to determine
whether the ElementTimeControl
interface is supported or not. The feature string for this interface is
"TimeControl".
interface ElementTimeControl { void beginElement(); void beginElementAt(in float offset)); void endElement(); void endElementAt(in float offset); };
beginElement
void |
beginElementAt
float |
offset |
The offset in seconds at which to begin the element. |
void |
endElement
void |
endElementAt
float |
offset |
The offset in seconds at which to end the element. Must be >= 0. |
void |
TimeEvent
interface provides specific contextual
information associated with Time events.
interface TimeEvent : events::Event { readonly attribute views::AbstractView view; readonly attribute long detail; void initTimeEvent(in DOMString typeArg, in views::AbstractView viewArg, in long detailArg); };
view
of type
views::AbstractView
, readonlyview
attribute identifies the
AbstractView
from which the event was
generated.
detail
of type
long
, readonlyEvent
, depending on the type of event.
initTimeEvent
initTimeEvent
method is used to initialize
the value of a TimeEvent
created through the
DocumentEvent
interface. This method may only
be called before the TimeEvent
has been
dispatched via the dispatchEvent
method,
though it may be called multiple times during that phase if
necessary. If called multiple times, the final invocation
takes precedence.
DOMString |
typeArg |
Specifies the event type. | ||
views::AbstractView |
viewArg |
Specifies the Event 's
AbstractView . |
||
long |
detailArg |
Specifies the Event 's detail. |
The different types of events that may occur are:
// File: smil.idl #ifndef _SMIL_IDL_ #define _SMIL_IDL_ #include "dom.idl" #pragma prefix "dom.w3c.org" module smil { typedef dom::DOMString DOMString; interface ElementTimeControl { void beginElement(); void beginElementAt(in float offset); void endElement(); void endElementAt(in float offset); }; interface TimeEvent : events::Event { readonly attribute views::AbstractView view; readonly attribute long detail; void initTimeEvent(in DOMString typeArg, in views::AbstractView viewArg, in long detailArg); }; }; #endif // _SMIL_IDL_
package org.w3c.dom.smil; import org.w3c.dom.DOMException; public interface ElementTimeControl { public void beginElement(); public void beginElementAt(float offset); public void endElement(); public void endElementAt(float offset); }
package org.w3c.dom.smil; import org.w3c.dom.events.Event; import org.w3c.dom.views.AbstractView; public interface TimeEvent extends Event { public AbstractView getView(); public int getDetail(); public void initTimeEvent(String typeArg, AbstractView viewArg, int detailArg); }
This section is normative.
This section is informative
The following concepts are the basic terms used to describe the timing model.
A synchronization relationship is defined by the author to express that two or more elements' playback is synchronized.
A time graph is used to represent the temporal relations of elements in a document with SMIL timing. Nodes of the time graph represent elements in the document. Parent nodes may "contain" children, and children have a single parent. Siblings are elements that have a common parent. The links or "arcs" of the time graph represent synchronization relationships between the nodes of the graph.
The time model description uses a set of adjectives to describe particular concepts of timing:
Global time is defined relative to the common reference for all elements, the document root. This is sometimes also referred to as document time.
Within a document, when a given element is active or "plays", the contents of that element progress from the beginning of the active duration to the end of the active duration. There will also be a progression from the beginning to the end of each simple duration (the distinction is clearest when the element repeats). It is often convenient to talk about times in terms of a given element's simple duration or its active duration. Generically, this is referred to as local time, meaning that times are relative to an element-local reference.
The following terms are used to more precisely qualify local times:
To be meaningful, these terms are described relative to some element. For example, when describing timing semantics, element active time refers to active time for the element under discussion, and parent simple time refers to simple time for that element's parent.
Conversion from global (document) time to an element time, or from one element time to another element time, is described in Converting between local and global times.
When measuring or calculating time, a reference element and the local time form (active, simple or media time) are specified. The measured time or duration is defined in terms of the element time progress. E.g. if the reference element pauses, this may impact the semantics of times or durations measured relative to the element.
Linear media is continuous media that cannot be played in a random-access manner. For example, most Internet streaming video and audio are linear.
Non-linear media can be played in a random access manner. For example, algorithmic animation is non-linear. Discrete media may behave in a non-linear manner.
The linear or non-linear behavior of the media is not a function of the media type, but rather of the renderer or playback engine, and often depends upon the delivery mechanism for the media.
An element is considered to have scheduled timing if the element's start time is given relative to the begin or active end of another element. A scheduled element can be inserted directly into the time graph.
The start of the interval in which the document is presented is referred to as the document begin.
The end of the interval in which the document is presented is referred to as the document end.
The difference between the end and the begin is referred to as the document duration.
This section is informative
Begin and active end times in SMIL 3.0 may be specified to be relative to
events that are raised in the document playback environment. This supports
declarative, interactive timing. Interactive in this sense includes
user events such as mouse clicks, events raised by media players like a
mediaComplete
event, and events raised by the presentation
engine itself such as a pause
event.
In scheduled timing, elements are timed relative to other elements. The syncbase for an element A is the other element B to which element A is relative. More precisely, it is the begin or active end of the other element. The syncbase is not simply a scheduled point in time, but rather a point in the time graph.
"Sync-arc" is an abbreviation for "synchronization arc". Sync-arcs are used to relate nodes in the time graph, and define the timing relationship between the nodes. A sync-arc relates an element to its syncbase. The sync-arc may be defined implicitly by context, explicitly by Id-value or event name, or logically with special syntax.
A Clock is a particular timeline reference that may be used for synchronization. A common example that uses real-world local time is referred to as wall-clock timing (e.g. specifying 10:30 local time). Other clocks may also be supported by a given presentation environment.
Coordinated Universal Time (UTC) is the universal time scale on which time zones the world over are based. UTC is based on International Atomic Time (TAI) with leap seconds added at irregular intervals to compensate for irregularities in the Earth's rotation, so that when averaged, the Sun crosses the Greenwich meridian at noon UTC to within 0.9s. Times given in UTC are almost always given in terms of a 24-hour clock. Thus, 14:42 is 2:42 p.m., and 21:17 is 9:17 p.m.
A hyperlink into or within a timed document may cause a seek of the current presentation time or may activate an element (if it is not in violation of any timing model rules).
During playback, an element may be activated automatically by the
progression of time, via a hyperlink, or in response to an event. When an
element is activated, playback of the element begins.
SMIL includes support for declaring media, using element syntax defined in "The SMIL Media Object Module". The media that is described by these elements is described as either discrete or continuous:
Time containers group elements together in time. They define common, simple synchronization relationships among the grouped child elements. In addition, time containers constrain the time that children may be active. Several containers are defined, each with specific semantics and constraints on its children.
SMIL timing and synchronization support ultimately controls a set of content or media elements. The content includes things like video and audio, images and vector graphics, as well as text or HTML content. SMIL documents use the SMIL media elements to reference this content. XML and HTML documents that integrate SMIL 3.0 functionality may use SMIL media elements and/or content described by the integrated language (e.g. paragraphs in HTML).
All elements - content/media as well as time containers - support timing markup to describe a begin time and a duration, as well as the ability to play repeatedly. There are several ways to define the begin time. The semantics vary somewhat depending upon an element's time container.
The time model defines two concepts of duration for each element - the simple duration and the active duration. These definitions are closely related to the concept of playing something repeatedly.
The constraints of a parent time container may override the duration of its children. In particular, a child element may not play beyond the simple end of the time container.
The terms for these durations may be modified with the Descriptive Terms for Times, to further distinguish aspects of the time graph.
SMIL 1.0 introduced the notion of synchronization behavior, describing user agent behavior as implementing either "hard synchronization" or "soft synchronization". Using hard sync, the entire presentation would be constrained to the strict description of sync relationships in the time graph. Soft sync allowed for a looser (implementation dependent) performance of the document.
While a document is playing, network congestion and other factors will sometimes interfere with normal playback of media. In a SMIL 1.0 hard sync environment, this will affect the behavior of the entire document. In order to provide greater control to authors, SMIL 2.0 extends the hard and soft sync model to individual elements. This support allows authors to define which elements and time containers must remain in strict or "hard" sync, and which elements and time containers may have a "soft" or slip sync relationship to the parent time container.
See also the section: The syncBehavior, syncTolerance, and syncMaster attributes: controlling runtime synchronization.
The concepts of interval pruning and cutting off are distinct and should not be confused.
In some cases, after an interval has been created, it must later be pruned (deleted/removed from the timegraph) as more information becomes known and semantic constraints must be applied. When an interval is pruned, it will not be shown, it will not raise begin or end events, and any associated instance times for syncbase time dependents must be removed from the respective instance times lists. It is as though the pruned interval had not been specified.
In other cases, especially related to negative begin times on parent time containers, a valid interval for a child may not be shown, even though it is otherwise legal with respect to the parent time constraints. These intervals are said to be cut off.
For example:
<par begin="-10s" dur="20s"> <img xml:id="slide1" src="slide1.jpg" dur="3s" /> <img xml:id="slide2" src="slide2.jpg" begin="slide1.end+3s" dur="10s" /> <img xml:id="note1" src="note1.jpg" begin="slide1.beginEvent" dur="20s" /> </par>
The "slide1" image will be cut off, but is not pruned. It is cut off because the par could not have been started 10s before its parent time container, and instead will be started at 0s into its parent time synced at 10s into its simple duration. The "slide1" image begins and ends before 10s into the par, and so cannot be shown and is cut off, Intervals that are cut off are not shown and do not raise begin or end events, but still create valid instance times for any syncbase time dependents. Thus, "slide2" will be shown (the interval is from minus 4 seconds to 6 seconds, document time, and so will be shown for 6 seconds, from 0 seconds to 6 seconds), but "note1" will not be shown.
This section is normative.
This section defines the seventeen SMIL 3.0 Timing Modules, which include the BasicInlineTiming module and sixteen other modules that combine to provide full SMIL 3.0 timing support. The separation of the SMIL 3.0 Timing modules is based on the inclusion of the syntactic expression of features using elements, attributes, and attribute values. Including a module in a profile adds both the syntax and associated semantics defined elsewhere in this specification to that profile.
fill=transition
is only supported when
BasicTransitions or InlineTransitions is included in the language
profile. If FillDefault is not included in the profile,
fill=default
is interpreted the same as
fill=auto
.fill="transition
" is only supported when
BasicTransitions or InlineTransitions is included in the language
profile. If FillDefault is not included in the profile,
fill="default
" is interpreted the same as
fill="auto"
.fill=transition
is only supported when
BasicTransitions or InlineTransitions is included in the language
profile.fill=transition
is only supported when
BasicTransitions or InlineTransitions is included in the language
profile. If FillDefault is not included in the profile,
fill=default
is interpreted the same as
fill=auto
.This section is informative.
This section includes a set of examples that illustrate both the usage of the SMIL syntax, as well as the semantics of specific constructs. This section is informative.
Note: In the examples below, the additional syntax related to layout and other issues specific to individual document types is omitted for simplicity.
All the children of a par begin by default when the par begins. For example:
<par> <img xml:id="i1" dur="5s" src="img.jpg" /> <img xml:id="i2" dur="10s" src="img2.jpg" /> <img xml:id="i3" begin="2s" dur="5s" src="img3.jpg" /> </par>
Elements "i1" and "i2" both begin immediately when the par begins, which is the default begin time. The active duration of "i1" ends at 5 seconds into the par. The active duration of "i2" ends at 10 seconds into the par. The last element "i3" begins at 2 seconds since it has an explicit begin offset, and has a duration of 5 seconds which means its active duration ends 7 seconds after the par begins.
Each child of a seq begins by default when the previous element ends. For example:
<seq> <img xml:id="i1" begin="0s" dur="5s" src="img1.jpg" /> <img xml:id="i2" dur="10s" src="img2.jpg" /> <img xml:id="i3" begin="1s" dur="5s" src="img3.jpg" /> </seq>
The element "i1" begins immediately, with the start of the seq, and ends 5 seconds later. Note: specifying a begin time of 0 seconds is optional since the default begin offset is always 0 seconds. The second element "i2" begins, by default, 0 seconds after the previous element "i1" ends, which is 5 seconds into the seq. Element "i2" ends 10 seconds later, at 15 seconds into the seq. The last element, "i3", has a begin offset of 1 second specified, so it begins 1 second after the previous element "i2" ends, and has a duration of 5 seconds, so it ends at 21 seconds into the seq.
<par> <excl> <par xml:id="p1"> ... </par> <par xml:id="p2"> ... </par> </excl> <a href="p1"><img src="Button1.jpg"/></a> <a href="p2"><img src="Button2.jpg"/></a> </par>
This example models jukebox-like behavior. Activating the first image
hyperlink activates the media items of parallel container "p1". If the
link on the second image is traversed, "p2" is started (thereby
deactivating "p1" if it would still be active) from time 0.
<smil ...> ... <par> <excl> <par begin="btn1.activateEvent"> ... </par> <par begin="btn2.activateEvent"> ... </par> </excl> <img xml:id="btn1" src=... /> <img xml:id="btn2" src=... /> </par> ... <smil>
The same jukebox example, using event-based activation.
<excl> <ref xml:id="a" begin="0s" ... /> <ref xml:id="b" begin="5s" ... /> </excl>
In the example above, the beginning of "b" deactivates "a" (assuming that a is still active after 5 seconds). Note that this could also be modeled using a sequence with an explicit duration on the children. While the scheduled syntax is allowed, this is not expected to be a common use-case scenario.
For simple media elements (i.e., media elements that are not time containers) that reference discrete media, the implicit duration is defined to be 0. This can lead to surprising results, as in this example:
<seq> <img src="img1.jpg" /> <video src="vid2.mpg" /> <video src="vid3.mpg" /> </seq>
The implicit syncbase of a sequence is defined to be the effective active end of the previous element in the sequence. In the example, the implicit duration of the image is used to define the simple and active durations. As a result, the default begin of the second element causes it to begin at the same time as the image. Thus, the image will not show at all! Authors will generally specify an explicit duration for any discrete media elements.
There is an important difference between the semantics of end and dur. The dur attribute, in conjunction with the begin time, specifies the simple duration for an element.
This is the duration that is repeated when the element also has a repeat behavior specified. The attribute end on the other hand overrides the active duration of the element. If the element does not have repeat behavior specified, the active duration is the same as the simple duration. However, if the element has a repeat behavior specified, then the end will override the repeat, but will not affect the simple duration. For example:
<smil ...> ... <seq repeatCount="10" end="stopBtn.activateEvent"> <img src="img1.jpg" dur="2s" /> <img src="img2.jpg" dur="2s" /> <img src="img3.jpg" dur="2s" /> </seq> ... </smil>
The sequence will play for 6 seconds on each repeat iteration. It will play through 10 times, unless the user clicks on a "stopBtn" element before 60 seconds have elapsed.
When an implementation supports the DOM methods described in this document, it will be possible to make an element begin or end the active duration using script or some other browser extension. When an author wishes to describe an element as interactive in this manner, the following syntax can be used:
<audio src="song1.au" begin="indefinite" />
The element will not begin until the beginElement()
method is
called.
This section is informative.
SMIL 1.0 defines the model for timing, including markup to define element timing, and elements to define parallel and sequence time containers. This version introduces some syntax variations and additional functionality, including:
The complete syntax is described here, including syntax that is unchanged from SMIL 1.0.
This section is informative.
A significant motivation for SMIL 2.0 is the desire to integrate declarative, determinate scheduling with interactive, indeterminate scheduling. The goal is to provide a common, consistent model and a simple syntax.
Note that "interactive" content does not refer simply to hypermedia with support for linking between documents, but specifically to content within a presentation (i.e. a document) that is activated by some interactive mechanism (often user-input events, but including local hyperlinking as well).
SMIL 3.0 describes extensions to SMIL 1.0 to support interactive timing of elements. These extensions allow the author to specify that an element should begin or end in response to an event (such as a user-input event like "activateEvent" or "click"), or to a hyperlink activation, or to a DOM method call.
The syntax to describe this uses Event-value specifications and the
special argument value "indefinite" for the begin and end attribute values. Event values describe
user interface and other events. If an element should only begin (or end)
with a DOM method call, the begin and
end attributes allow the special value
"indefinite" to indicate this. Setting begin="
indefinite"
can also be used when a
hyperlink will be used to begin the element. The element will begin when the
hyperlink is actuated (usually by the user clicking on the anchor). It is not
possible to control the active end of an element using hyperlinks.
SMIL 2.0 represents an evolution from earlier multimedia runtimes. These were typically either pure, static schedulers or pure event-based systems. Scheduler models present a linear timeline that integrates both discrete and continuous media. Scheduler models tend to be good for storytelling, but have limited support for user-interaction. Event-based systems, on the other hand, model multimedia as a graph of event bindings. Event-based systems provide flexible support for user-interaction, but generally have poor scheduling facilities; they are best applied to highly interactive and experiential multimedia.
The SMIL 1.0 model is primarily a scheduling model, but with some flexibility to support continuous media with unknown duration. User interaction is supported in the form of timed hyperlinking semantics, but there was no support for activating individual elements via interaction.
To integrate interactive content into SMIL timing, the SMIL 1.0 scheduler model is extended to support several new concepts: indeterminate timing and event-activation.
With indeterminate timing, an element has an undefined begin or end time. The element still exists within the
constraints of the document, but the begin or end time is determined by some external
activation. Activation may be event-based (such as by a user-input
event), hyperlink based (with a hyperlink targeted at the element), or DOM
based (by a call to the beginElement()
or
beginElementAt()
methods). From a scheduling perspective, the
time is described as unresolved.
The event-activation support provides a means of associating an event with the begin or end time for an element. When the event is raised (e.g. when the user clicks on something), the associated time is resolved to a determinate time. begin or end time is computed as the time the event is raised plus or minus any specified offset.
The computed time defines the synchronization for the element relative to the parent time container. It is possible for the computed begin or end time to occur in the past, e.g. when a negative offset value is specified, or if there is any appreciable delay between the time the event is raised and when it is handled by the SMIL implementation. See also the section Handling negative offsets for begin.
Note that an event based end will not be activated until the element has already begun. Any specified end event is ignored before the element begins.
The constraints imposed on an element by its time container are an important aspect of the event-activation model. In particular, when a time container is itself inactive (e.g. before it begins or after it ends), no events are handled by the children. If the time container is frozen, no events are handled by the children. No event-activation takes place unless the time container of an element is active. For example:
<smil ...> ... <par begin="10s" dur="5s"> <audio src="song1.au" begin="btn1.activateEvent" /> </par> ... </smil>
If the user activates (e.g., clicks on) the "btn1" element before 10 seconds, or after 15 seconds, the audio element will not play. In addition, if the audio element begins but would extend beyond the specified active end of the par container, it is effectively cut off by the active end of the par container.
See also the discussion of Event sensitivity.
This section is informative.
The SMIL 3.0 specification extends the functionality SMIL 2.1 Content Control Modules [SMIL21-content-control] by introducing three new attributes: allowReorder, systemBaseProfile, and systemVersion. In addition, the new module RequiredContentControl has been defined that allows the systemRequired attribute to be specified in profiles that do not otherwise use SMIL content control. There are no new elements or other attributes provided in this version because, with the introduction of SMIL State functionality in SMIL 3.0, it is expected that new developments for managing control of content and control flow will migrate to the State-based notation. The editorial changes for SMIL 3.0 are (1) a clarification in a Normative section on expected behaviour for user agents that support dynamic evaluation and system- and/or custom-test variables, and (2) a repartitioning of the content control module structure in order to support the SMIL Tiny profile.
This section is normative.
This section defines the SMIL 3.0 content control modules. These modules contain elements and attributes which provide for runtime content choices and optimized content delivery. SMIL content control functionality is partitioned across five modules:
Since all of the content control elements and attributes are defined in modules, designers of other markup languages may reuse this functionality on a module by module basis when they wish to include media content control in their language.
The functionality in the CustomTestAttributes module builds on the functionality of the BasicContentControl module; profiles implementing the CustomTestAttributes module must also implement the BasicContentControl and RequiredContentControl modules. The PrefetchControl and SkipContentControl modules have no prerequisites.
This section is informative.
In some of the module descriptions for content control, the concept of "user preference" may be present. User preferences are usually set by the playback engine using a preferences dialog box, but this specification does not place any restrictions on how such preferences are communicated from the user to the SMIL player.
It is implementation dependent when content control attributes are evaluated. Attributes may be evaluated multiple times. Dynamic reevaluation is allowed but not required. When dynamic reevaluation is supported by a user agent, it is expected that any system- or custom-test variable will be evaluated at the beginning of a node's execution (either at its initial begin time or each time a repeated element restarts). For situations in which more explicit control over reevaluation is required, the use of the SMIL 3.0 State modules is encouraged.
This section is normative.
SMIL 1.0 provides a "test-attribute" mechanism to process an element only when certain conditions are true, for example when the language preference specified by the user matches that of a media object. One or more test attributes may appear on media object references or timing structure elements; if the attribute evaluates to true, the containing element is played, and if the attribute evaluates to false the containing element is ignored. SMIL 1.0 also provides the switch element for expressing that a set of document parts are alternatives, and that the first one fulfilling certain conditions should be chosen. This is useful to express that different language versions of an audio file are available, and that the client may select one of them.
The SMIL 3.0 BasicContent module includes the test attribute functionality from SMIL 1.0 and extends it by supporting new system test attributes. This section will describe the use of the predefined system test attributes, the switch element and test attribute in-line placement. A mechanism for extending test attributes is presented in the CustomTestAttributes module.
This specification defines a list of test attributes that can be added to language elements, as allowed by the language designer. In SMIL 1.0, these elements are synchronization and media elements. Conceptually, these attributes represent Boolean tests. When any of the test attributes specified for an element evaluates to false, the element carrying this attribute is ignored.
SMIL 3.0 supports the full set of SMIL 2.1 system attributes. The SMIL 2.1 compatible system test attributes are:
- systemBitrate
- systemCaptions
- systemLanguage
- (note: this attribute has been deprecated in favor of systemCaptions or systemOverdubOrSubtitle)
- systemScreenDepth
- systemScreenSize
Note that, with the exception of , the names of these attributes have been changed to reflect SMIL 3.0's camelCase conventions. The SMIL 1.0 hyphenated names are deprecated in this release.
SMIL 3.0 also supports system test attributes that define additional characteristics of the system environment. These are:
Finally, SMIL 3.0 supports system test attributes that define characteristics of the SMIL version (starting with version 3.0) and base profile supported by the system environment. These are:
The complete definition of each attribute is given in the attributes definition section.
The switch element allows an author to specify a set of alternative elements from which only the first acceptable element is chosen.
This section is informative.
An example of the use of the switch is:
... <par> <video src="anchor.mpg" ... /> <switch> <audio src="dutchHQ.aiff" systemBitrate="56000" ... /> <audio src="dutchMQ.aiff" systemBitrate="28800" ... /> <audio src="dutchLQ.aiff" ... /> </switch> </par> ...
In this example, one audio object is selected to accompany the video object. If the system bitrate is 56000 or higher, the object dutchHQ.aiff is selected. If the system bitrate is at least 28800 but less than 56000, the object dutchMQ.aiff is selected. If no other objects are selected, the alternative dutchLQ.aiff is selected, since it has no test attribute (thus is always acceptable) and no other test attributes evaluated to true.
Authors should order the alternatives from the most desirable to the least desirable. Furthermore, authors may wish to place a relatively fail-safe alternative as the last item in the switch so that at least one item within the switch is chosen (unless this is explicitly not desired). If all alternatives are equivalent an author should signal this through the allowReorder attribute on the switch, this gives the user agent the freedom to pick the best match (as opposed to the first match).
Note that some network protocols, e.g. HTTP and RTSP, support content-negotiation, which may be an alternative to using the switch element in some cases.
It is the responsibility of the SMIL user agent to determine the setting for system test attribute values. Such settings may be determined statically based on configuration settings, or they may be determined (and re-evaluated) dynamically, depending on the player implementation. When dynamic reevaluation is supported by a user agent, it is expected that any system- or custom-test variable will be evaluated at the beginning of a nodes execution (either at its initial begin time or each time a repeated element restarts). For situations in which more explicit control over reevaluation is required, the use of the SMIL 3.0 State modules is encouraged. Players may not select members of a switch at random.
To allow more flexibility in element selection, test attributes may also be used outside of the switch element.
This section is informative.
In the following example of in-line test attribute use, captions are shown only if the user wants captions on.
... <par> <audio src="audio.rm"/> <video src="video.rm"/> <textstream src="stockticker.rt"/> <textstream src="closed-caps.rt" systemCaptions="on"/> </par> ...
The alternatives indicated by the in-line construct could be represented as a set of switch statements, although the resulting switch could become explosive in size. Use of an in-line test mechanism significantly simplifies the specification of adaptive content, especially in those cases where many independent alternatives exist. Note, however, that there is no fail-safe alternative mechanism (such as defining an element without a test attribute inside of a switch) when using test attributes in-line.
This section is informative.
In a common scenario, implementations may wish to allow for selection via a systemBitrate attribute on elements. The SMIL 3.0 player evaluates each of the elements within the switch one at a time, looking for an acceptable bitrate value.
... <par> <text .../> <switch> <par systemBitrate="40000"> ... </par> <par systemBitrate="24000"> ... </par> <par systemBitrate="10000"> ... </par> </switch> </par> ...
In this example, if the system bitrate has been determined to be less than 10000 (in mobile telephone cases, for example), then none of the par constructs would be included.
The elements within the switch may be any combination of elements. For instance, one could specify an alternate audio track:
... <switch> <audio src="joe-audio-better-quality" systemBitrate="16000" /> <audio src="joe-audio" /> </switch> ...
If the system bitrate was less than 16000, the standard-quality audio would be presented by default.
In the following example, an audio resource is available both in Dutch and in English. Based on the user's preferred language, the player can choose one of these audio resources.
... <switch> <audio src="joe-audio-nederlands" systemLanguage="nl"/> <audio src="joe-audio-english" systemLanguage="en"/> </switch> ...
In this example, if the system language setting was anything other than Dutch or English, no audio would be presented. To make a choice the default, it should appear as the last item in the list and not contain a test attribute. In the following fragment, English is used as the default:
... <switch> <audio src="joe-audio-nederlands" systemLanguage="nl"/> <audio src="joe-audio-english" /> </switch> ...
If the alternatives are equivalent an author may specify this through the allowReorder attribute, which gives the user agent the freedom to select the second alternative for someone who speaks both German and Dutch but prefers German:
... <switch allowReorder="yes"> <audio src="joe-audio-nederlands" systemLanguage="nl"/> <audio src="joe-audio-deutsch" systemLanguage="de"/> <audio src="joe-audio-english" /> </switch> ...
Note that none of these examples show the full power of language tag matching, please refer to BCP47 [BCP47] for more elaborate examples.
In the following example, the presentation contains alternative parts designed for screens with different resolutions and bit-depths. Depending on the particular characteristics of the screen, the player must use the first alternative in which all of the test attributes evaluate to true.
... <par> <text .../> <switch> <par systemScreenSize="1024X1280" systemScreenDepth="16"> ... </par> <par systemScreenSize="480X640" systemScreenDepth="32"> ... </par> <par systemScreenSize="480X640" systemScreenDepth="16"> ... </par> </switch> </par> ...
This example shows a video that is accompanied by zero or more media objects. If the system language has been set to either Dutch or English, then the appropriate audio object will play. In addition, if the system language has been set to either Dutch or English and systemCaptions has also been set to on, the appropriate text files will also be displayed.
... <par> <video src="anchor.mpg" ... /> <audio src="dutch.aiff" systemLanguage="nl" ... /> <audio src="english.aiff" systemLanguage="en" ... /> <text src="dutch.html" systemLanguage="nl" systemCaption="on"... /> <text src="english.html" systemLanguage="en" systemCaption="on"... /> </par> ...
If system language is set to something other than Dutch or English, no objects will be rendered (except the video). Note that there is no catch-all default mechanism when using test attributes for in-line evaluation.
In the following example, a French-language movie is available with English, German, and Dutch overdub and subtitle tracks. The following SMIL segment expresses this, and switches on the alternatives that the user prefers.
... <par> <switch> <audio src="movie-aud-en.rm" systemLanguage="en" systemOverdubOrSubtitle="overdub"/> <audio src="movie-aud-de.rm" systemLanguage="de" systemOverdubOrSubtitle="overdub"/> <audio src="movie-aud-nl.rm" systemLanguage="nl" systemOverdubOrSubtitle="overdub"/> <!-- French for everyone else --> <audio src="movie-aud-fr.rm"/> </switch> <video src="movie-vid.rm"/> <switch> <textstream src="movie-sub-en.rt" systemLanguage="en" systemOverdubOrSubtitle="subtitle"/> <textstream src="movie-sub-de.rt" systemLanguage="de" systemOverdubOrSubtitle="subtitle"/> <textstream src="movie-sub-nl.rt" systemLanguage="nl" systemOverdubOrSubtitle="subtitle"/> <!-- French captions for those that really want them --> <textstream src="movie-caps-fr.rt" systemCaptions="on"/> </switch> </par> ...
SMIL 3.0 BasicContentControl defines the switch element, the allowReorder attribute and a set of predefined system test attributes.
The switch element allows an author to specify a set of alternative elements. An element is selected as follows: the player evaluates the elements in the order in which they occur in the switch element. The first acceptable element is selected at the exclusion of all other elements within the switch. Implementations must NOT arbitrarily pick an object within a switch when test attributes for all child elements fail.
This element allows the allowReorder attribute, in addition to those required of all elements in the profile.
The content of the element is language implementation dependent.
In the SMIL 3.0 language profile, if the switch is used as a direct or indirect child of a body element, it may contain any media object or timing structure container, or it may contain nested switch elements. All of these elements may appear multiple times inside the switch. If the switch is used as a direct or indirect child of a head element, it may contain one or more layout elements.
The allowReorder attribute signals whether a user agent may reorder the direct descendents of the switch element, based on user preferences, if it thinks this could lead to a better user experience.
The possible values are no, the default, disallowing reordering and yes, allowing reordering.
This section is informative.
User agents are free to ignore the allowReorder attribute, but if they implement prioritized language ranges as defined in BCP47 [BCP47] they are expected to use that prioritization to reorder children with systemLanguage attributes. The effect should be that the users are presented with the alternative that best matches their language preferences. Any final child without systemLanguage attribute should retain its place as the default item to present.
Authors should add the allowReorder attribute if all items in the switch are equivalent.
SMIL 3.0 defines the following system test attributes. When any of the test attributes specified for an element evaluates to false, the element carrying this attribute is ignored. Note that most hyphenated test attribute names from SMIL 1.0 have been deprecated in favor of names using the current SMIL camelCase convention. For these, the deprecated SMIL 1.0 name is shown in parentheses after the preferred name.
Profile-name ::= "Language" | "UnifiedMobile" | "Daisy" | "Tiny"
| "smilText" |User-defined-profile-name
User-defined-profile-name ::= "x-" NMTOKEN
These values come from the _PR_SI_ARCHITECTURE constants defined by the mozilla project.
The syntax of the systemLanguage and the deprecated system-language attributes are defined using EBNF notation (as defined in [XML11]) as list of XML namespace prefixes [XML-NS], separated by the ',' character:
SystemLanguageArgumentValue ::= (LanguageTag (S? "," S? LanguageTag)*)?
Where allowed white space is indicated as 'S', defined as follows (taken from the [XML11] definition for 'S'):
S ::= (#x20 | #x9 | #xD | #xA)+
This section is informative.
BCP47: This is actually an active document that can, over time, refer to newer RFCs as technology progresses. As of this writing BCP47 consists of RFC4646 for defining language tags and RFC4647 for defining the matching algorithm.
Implementation: When making the choice of linguistic preference available to the user, implementers should take into account the fact that most users are not familiar with the details of RFC4647 language matching, and should provide appropriate guidance. As an example, users may mistakenly assume that on selecting "en-gb", they will be served any kind of English document if British English is not available. The user interface for setting user preferences should guide the user to add "en" to get the best matching behavior.
This section is informative.
These values come from the _PR_SI_SYSNAME constants defined by the mozilla project.
It is the responsibility of the SMIL 3.0 Player to determine the settings for each predefined test variable. These values may be determined by static configuration settings, or they may be evaluated dynamically during runtime. Such setting and (re)evaluation behavior is implementation dependent. When dynamic reevaluation is supported by a user agent, it is expected that any system- or custom-test variable will be evaluated at the beginning of a nodes execution (either at its initial begin time or each time a repeated element restarts). For situations in which more explicit control over reevaluation is required, the use of the SMIL 3.0 State modules is encouraged.
For this version of SMIL elements with specified test attributes that evaluate to false, or elements within a switch that are not selected, are considered to be ignored and will behave as though they were not specified in the document. Any references to these elements will be as if the elements were not in the document. In particular, any ID references to the element will act as if there was no element with that ID. Languages that integrate this module must specify any additional behavior related to these ignored elements. In the SMIL 3.0 Language profile, timing attributes that reference invalid IDs are treated as being indefinite.
This section is informative.
Authors should be aware that this model for handling ignored elements may be revised in a future version of SMIL, and the related semantics may well change. These changes should not affect implementations that only support parse-time (or equivalent) evaluation of test attributes and/or the switch element. However, the semantics of dynamic re-evaluation (i.e. re-evaluation during document presentation) of test attributes and/or switch elements are not defined in this version of SMIL; this will be addressed in a future version.
Authors should realize that if several alternative elements are enclosed in a switch, and none of them evaluate to true, this may lead to situations such as a media object being shown without one or more companion objects. It is thus recommended to include a "catch-all" choice at the end of a switch which is acceptable in all cases.
The functionality in this module does not build on functionality defined in other SMIL 3.0 modules.
See the full DTD for the SMIL Content Control modules.
This section is normative.
The use of predefined system test attributes in the SMIL BasicContentControl module provides a selection mechanism based on attributes that are fixed within the module's definition. The CustomTestAttribute module extends this facility with the definition of author-defined custom test attributes. Custom test attributes allow presentation authors to define their own test attributes for use in a specific document. Custom test attributes may be shared among application documents using the uid attribute.
As with system test attributes, custom test attributes may be used within timing structure and media object elements; if they evaluate to true, the containing element is activated and if they evaluate to false, the containing element is ignored. In this version of SMIL, an ignored element will be treated as if it were not part of the source document. As a result, any element referencing the ID of the ignored node will, in effect, reference an invalid ID. Languages that integrate this module must specify any additional behavior related to these ignored elements.
Since custom test attributes are application/document specific, they need a mechanism to allow attribute definition and attribute setting. Attribute definition is done via the customAttributes and customTest elements. The initial state of any custom test attribute may be set at author-time with the defaultState attribute, which takes a value of either true or false. This module provides an override attribute with a value hidden that gives an author the ability to discourage runtime resetting of any attributes using these mechanisms.
The state of the attribute can be changed in one of three ways:
The exact rules for setting and modifying the values associated with custom test attributes are given below.
An implementation may support either, both, or none of methods 2 and 3. If method 2 is supported, the URI value in uid is simply a unique identifier and does not imply that the runtime value must be fetched over the Web. The value may be stored and retrieved locally, and simply identified by the uid. The precise manner in which this is done is implementation dependent. If method 3 is supported, the custom test attribute facility does not require any specific UI support for direct user manipulation of the custom test attributes.
This section is informative.
The following example shows one way in which custom test attributes may be applied within a SMIL 3.0 Language profile document:
<smil> <head> <layout> <!-- define projection regions --> </layout> <customAttributes> <customTest xml:id="west-coast" title="West Coast Edition" defaultState="false" override="visible" uid="http://defs.example.org/user-settings/west-coast" /> <customTest xml:id="east-coast" title="East Coast Edition" defaultState="false" override="visible" uid="http://defs.example.org/user-settings/east-coast" /> <customTest xml:id="far-north" title="Northern Edition" defaultState="false" override="visible" uid="http://defs.example.org/user-settings/far-north" /> <customTest xml:id="the-rest" title="National Edition" defaultState="true" override="hidden" /> </customAttributes> </head> <body> ... <par> <img src="background.png" region="a"/> <video src="story_1v.rm" region="b" /> <switch> <audio src="story_1w.rm" region="c" customTest="west-coast"/> <audio src="story_1e.rm" region="c" customTest="east-coast"/> <audio src="story_1n.rm" region="c" customTest="far-north"/> <audio src="story_1r.rm" region="c" customTest="the-rest"/> </switch> </par> ... </body> </smil>
The customAttributes element in the header contains the definition of the available custom test attributes. Each custom test attribute, defined by the customTest element, contains an identifier and a title (which may be used by a user agent, if available, to label the attribute), as well as an (optional) initial state definition, a UID that contains a unique identifier for the value setting for this attribute and an override flag.
The custom test variables named "west-coast", "east-coast" and "far-north" are defined with a default rendering state of false. They each contain a reference to a URI which is used to define local settings for the respective variables.
The custom test variable "the-rest" is defined with a default rendering setting of true.
Inside the body, a SMIL switch construct is used to select media objects for inclusion in a presentation depending on the values of the various custom test attributes. The first object that contains a value of true will be rendered, and since in this example the last option will always resolve true, it will be rendered if no other objects resolve to true.
While this example shows switch-based use of custom test attributes, the facility could also be applied as test attributes in in-line use.
The setting of the value associated with a custom test attribute proceeds as follows:
Note that a user setting of the custom test attribute will take precedence over a URI setting. If the user has not specified a value for the attribute then the URI setting takes precedence. As with predefined system test attributes, this evaluation will occur in an implementation-defined manner. The value may be (re)evaluated dynamically, but this is not required. When dynamic reevaluation is supported by a user agent, it is expected that any system- or custom-test variable will be evaluated at the beginning of a nodes execution (either at its initial begin time or each time a repeated element restarts). For situations in which more explicit control over reevaluation is required, the use of the SMIL 3.0 State modules is encouraged. Note also that not all implementations need support uid or UI setting of attributes.
This section defines the elements and attributes that make up the functionality in the SMIL CustomTestAttributes module. The customAttributes and customTest elements are used to define custom test attribute variables and the customTest attribute is used in-line on media object and timing structure references to control evaluation of the containing elements.
The customAttributes element contains definitions of each of the custom test attributes. The contained elements define a collection of author-specified test attributes that may be used in switch statements or as in-line test attributes in the document.
This element does not have attributes beyond those required of all elements in the profile.
The customAttributes element may contain one or more customTest elements.
The customTest element defines an author-specified name that will be used as the test argument in the switch element or in-line on media object and timing structure elements. The customTest elements are defined within the section delineated by the customAttributes elements that make up part of the document header.
This section is informative.
The actual evaluation mechanism associated with the URI is implementation dependent. It may vary from a simple lookup in a local file or registry, to a secure reference via a capabilities database, and may be influenced by other configuration settings provided by the implementation.
None.
In addition to the customAttributes and customTest elements, this module provides a customTest attribute that can be applied by language designers to media objects and timing structure elements requiring selection. In all operational aspects, the custom test attribute is similar to the predefined system test attribute facility of the BasicContentControl module.
The syntax of the customTest is defined using EBNF notation (as defined in [XML11]) as list of customTest element identifier references, separated by the '+' character:
CustomTestArgumentValue ::= Idref (S? "+" S? Idref)*
Idref ::= Name
Where allowed white space is indicated as 'S', defined as follows (taken from the [XML11] definition for 'S'):
S ::= (#x20 | #x9 | #xD | #xA)+
and Idref
is a Name
as defined in
[XML11] is a reference to a customTest element.
The functionality in this module builds on functionality defined in the BasicContentControl module, which is a required prerequisite for inclusion of the CustomTestAttribute module.
The profile implementing the custom test elements and attributes must provide a means of associating a unique XML identifier with a customTest element, so that it can be used by the customTest attribute. And the profile should provide a means of associating descriptive text with a customTest element, which may be used in a GUI or other selection mechanism that may be presented to the user. For the SMIL 3.0 Language Profile, the element's id and title attributes serve this purpose.
See the full DTD for the SMIL Content Control modules.
This section is normative.
This module defines an element and attributes that may be used to control the fetching of content from a server in a manner that will improve the rendering performance of the document.
This element will give a suggestion or hint to a user agent that a media resource will be used in the future and the author would like part or all of the resource fetched ahead of time to make the document playback smoother. User-agents may ignore prefetch elements, though doing so may cause an interruption in the document playback when the resource is needed. It gives authoring tools or savvy authors the ability to schedule retrieval of resources when they think that there is available bandwidth or time to do it. A prefetch element is contained within the body of an XML document, and its scheduling is based on its lexical order unless explicit timing is present.
This section is informative.
Prefetching data from a URL that changes the content dynamically is potentially dangerous: if the entire resource isn't prefetched, a subsequent request for the remaining data may yield data from a newer resource. A user agent should respect any appropriate caching directives applied to the content, e.g. no-cache 822 headers in HTTP. More specifically, content marked as non-cacheable would have to be refetched each time it was played, where content that is cacheable could be prefetched once, with the results of the prefetch cached for future use.
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> <body> <seq> <par> <prefetch xml:id="endimage" src="http://www.example.org/logo.gif"/> <text xml:id="interlude" src="http://www.example.org/pleasewait.html" fill="freeze"/> </par> <video xml:id="main-event" src="rtsp://www.example.org/video.mpg"/> <img src="http://www.example.org/logo.gif" dur="5s"/> </seq> </body> </smil>
The example starts with a prefetch in parallel with the rendering of a text object. The text is discrete media so it ends immediately, the prefetch is defaulted to prefetch the entire image at full available bandwidth and the prefetch element ends when the image is downloaded. That ends the <par> and the video begins playing. When the video ends the image is shown.
<html> <body> <prefetch xml:id="upimage" src="http://www.example.org/up.gif"/> <prefetch xml:id="downimage" src="http://www.example.org/down.gif"/> .... <!-- script will change the graphic on rollover --> <img src="http://www.example.org/up.gif"/> </body> </html>
The prefetch gives authors a mechanism to influence the scheduling of media object transfers from a server to the player.
Documents must still playback even when the prefetch elements are ignored, although rebuffering or pauses in presentation of the document may occur. If the prefetch for a prefetch element is ignored, any timing on the element is still respected, e.g. if a prefetch element has a dur="5s", elements that depend on the prefetch element's timing behave as if the prefetch took 5 seconds.
The intrinsic duration of a prefetch element is either the duration of the media fetch, if the prefetch operation is supported by the implementation, or zero if prefetch is not supported.
If a prefetch element is repeated, due to restart or repeat on a parent element the prefetch operation should occur again. This insures appropriately "fresh" data is displayed if, for example, the prefetch is for a banner ad to a URL whose content changes with each request.
The prefetch element supports the following attributes:
Any attribute with a value of "0%" is ignored and treated as if the attribute wasn't specified.
If both mediaSize and mediaTime are specified, mediaSize is used and mediaTime is ignored.
If the clipBegin or clipEnd in the media object are different from the prefetch, an implementation can use any data that was fetched but the result may not be optimal.
Bytes-value ::= DIGIT+ /* any positive number */
Percent-value ::= DIGIT+ "%" /* any positive number in the
range 0 to 100 */
Clock-value ::= ( Hms-val | Smpte-val )
Smpte-val ::= ( Smpte-type )? Hours ":" Minutes ":" Seconds
( ":" Frames ( "." Subframes )? )?
Smpte-type ::= "smpte" | "smpte-30-drop" | "smpte-25"
Hms-val ::= ( "npt=" )? (Full-clock-val | Partial-clock-val
| Timecount-val)
Full-clock-val ::= Hours ":" Minutes ":" Seconds ("." Fraction)?
Partial-clock-val ::= Minutes ":" Seconds ("." Fraction)?
Timecount-val ::= Timecount ("." Fraction)? (Metric)?
Metric ::= "h" | "min" | "s" | "ms"
Hours ::= DIGIT+ /* any positive number */
Minutes ::= 2DIGIT /* range from 00 to 59 */
Seconds ::= 2DIGIT /* range from 00 to 59 */
Frames ::= 2DIGIT /* smpte range = 00-29, smpte-30-drop range = 00-29, smpte-25 range = 00-24 */
Subframes ::= 2DIGIT /* smpte range = 00-01, smpte-30-drop range = 00-01, smpte-25 range = 00-01 */
Fraction ::= DIGIT+
Timecount ::= DIGIT+
2DIGIT ::= DIGIT DIGIT
DIGIT ::= [0-9]
For Timecount values, the default metric suffix is "s" (for seconds).
This note is informative
A value of three sets of colon-separated digits can be produced both by Hms-val and Smpte-val. This is however not aproblem since in both cases the values are interpreted as Hours, Minutes and Seconds.
Bitrate-value ::= DIGIT+ /* any positive number */
A profile integrating the PrefetchControl module must add the attributes necessary to specify the media to be fetched. In general, these will be the same resource specifying attributes as those on the media elements themselves. In addition, the profile must add any necessary attributes to control the timing of the prefetch element.
See the full DTD for the SMIL Content Control modules.
This section is normative.
This module contains one attribute, skip-content attribute, that can be used to selectively control the evaluation of the element on which this attribute appears. This attribute is introduced for future extensibility of SMIL. The functionality is unchanged from SMIL 1.0.
The SkipContentControl module does not contain any element definitions.
It is the responsibility of the language profile to specify which elements have skip-content attributes to enable this expansion mechanism.
This section is normative.
This module contains one attribute, systemRequired, which is used to identify one or more namespace prefixes. These prefixes may be used to define a minimum set of modules that a user agent must support to process a given SMIL file. This attribute is a critical component of the SMIL Scalability Framework.
The RequiredContentControl module does not contain any element definitions.
SystemRequiredArgumentValue := Nmtoken (S? "+" S? Nmtoken)*
Where allowed white space is indicated as 'S', defined as follows (taken from the [XML11] definition for 'S'):
S ::= (#x20 | #x9 | #xD | #xA)+
It is the responsibility of the language profile to specify which elements support the systemRequired attribute. In order to support the SMIL Scalability Framework, all profiles are expect to at least support this attribute on the top-level SMIL element.
This section is informative.
In order to provide better support for multiple layout processors and to meet the needs of the new SMIL 3.0 Tiny profile, SMIL 3.0 Layout defines the StructureLayout module. This module defines the layout element, which can now be used to identify the layout mechanism used by a SMIL profile independently of the SMIL basic layout architecture.
SMIL 3.0 Layout also extends the BasicLayout module with the backgroundOpacity attribute, which specifies the background opacity of a region. This attribute applies to both the background color of a SMIL layout region and to the opacity of background images specified for a region (if supported by the profile). This attribute complements new features defined in the Media Objects module to control media opacity for media types that support opacity control.
SMIL 3.0 Layout now restricts the functionality in the OverrideLayout module to be dependent on the ability to define dynamic subregions on media objects in the SubRegionLayout module. This removes a functional conflict with overriding behavior on base region values when subregion positioning is not supported.
SMIL 3.0 changes the value of the soundLevel attribute to now contain a relative sound level definition. This provides a logarithmic/exponential volume control mechanism for audio.
This version of the SMIL 3.0 Layout modules also provides minor editorial changes to the text of all of the module descriptions and it provides an expanded set of informative examples of layout element and attribute use.
This section is normative.
This section defines the SMIL Layout Modules, which contain elements and attributes that allow positioning of media elements on visual and audio rendering surfaces and to control of audio volume. Since these elements and attributes are defined in modules, designers of other markup languages can choose the appropriate level of functionality to be included in their languages. Language designers incorporating other SMIL modules may include all, some or none of the modules described in this section.
SMIL 3.0 Layout functionality is partitioned across the following eight modules:
This section is informative.
Note that the SMIL 2.0 HierarchicalLayout module was deprecated in SMIL 2.1; all of this module's functionality was partitioned across other layout modules and thus it is not part of SMIL 3.0 Layout.
The SMIL layout architecture allows support for multiple layout models within a presentation. Media layout may be described using the SMIL layout syntax described in this chapter or by using another layout mechanism, such as CSS2 syntax [CSS2]. Other layout types are possible as well.
Support for multiple layout models is implementation profile dependent. A given profile may support multiple layout models simultaneously (with selection performed using the SMIL switch element), or it may dictate that only a single layout model is supported (such as the use of CSS2 layout within the XHTML+SMIL candidate profile[XHTMLplusSMIL].
The remainder of this chapter defines the mechanism to identify the layout model used by a presentation and then describes the features of the SMIL 3.0 smil-basic layout semantics.
This section is normative.
The SMIL StructureLayout module defines the layout element, which is used to indicate the layout model to be used with a given SMIL document. The layout element is used in the document head section.
This section defines the elements and attributes that make up the functionality in the SMIL StructureLayout module.
The layout element contains the elements that define a particular layout model to be used within a SMIL presentation. If present, the layout element must appear in the head section of the document.
If a document contains no layout element, no SMIL-defined default values are assigned and the positioning of the body elements is totally implementation-dependent.
SMIL-defined default layout semantics can be assigned to all renderable elements by selecting the empty layout element <layout></layout>.
If the type attribute of the layout element has the value "text/smil-basic-layout", (or if no type attribute is defined) the layout element may contain the elements of the BasicLayout module, plus any additional layout modules defined by the profile incorporating these modules. Profiles incorporating the BasicLayout module may define additional elements that are allowed as children of the layout element.
If the type attribute of the layout element has a value other than "text/smil-basic-layout", the element contains character data.
This module does not define any SMIL events.
This module provides a wrapper for a particular layout model. A given SMIL rendering agent may support all, some or none of the layout models defined for use with SMIL 3.0.
The functionality in this module builds on top of the functionality in the Structure module, which is a required prerequisite for inclusion of the StructureLayout module.
See the full DTD for the SMIL Layout modules.
This section is normative.
SMIL BasicLayout module defines a layout model for organizing media elements into regions on the visual rendering surface. The regions are declared within the layout element in the document head. Media elements declare which region they are to be rendered into with the region attribute.
Each region has a set of CSS2 compatible properties such as top, left, height, width, and backgroundColor. These properties may be declared using a syntax defined by the type attribute of the layout element. In this way, media layout can be described using the either SMIL basic layout syntax or CSS2 [[CSS2 - absolute-positioning]] syntax (note that these are not functionally identical). Other layout types are possible as well.
This section is informative.
An example declaration to define a region with the id "r" at location 15,20 that is 100 pixels wide by 50 pixels tall using the SMIL BasicLayout module is:
<layout> <region xml:id="r" top="15px" left="20px" width="100px" height="50px"/> </layout>
To display a media element in the region declared above, specify the region's id as the region attribute of the media element:
<ref region="r" src="http://..." />
This section defines the elements and attributes that make up the functionality in the SMIL BasicLayout module.
The region element controls the position, size and scaling of media object elements that are placed within its rendering space.
The position of a region, as specified by its top, bottom, left, and right attributes, is always relative to the parent geometry, which is defined by the parent element. For the SMIL BasicLayout module, all region elements must have as their immediate parent a layout element, and the region position is defined relative to the root window declared in the sibling root-layout element. The root-layout element is considered to be the logical parent of all region elements in SMIL BasicLayout. The intrinsic size of a region is equal to the size of the logical parent's geometry.
When region sizes, as specified by width and height attributes are declared relative with the "%" notation, the size of a region is relative to the size of the parent geometry. Sizes declared as absolute pixel values maintain those absolute values.
Conflicts between the region size and position attributes width, height, bottom, left, right, and top are resolved according to the rules for placeholder elements as detailed below. The default values of region position and size attributes is specified as auto. This attribute value has the same meaning here that it does in [CSS2], when there is no distinction drawn between replaced and non-replaced element.
A placeholder element is one which has no intrinsic width or height, but does have a bounding-box which has a width and height. SMIL BasicLayout regions are placeholder elements. Placeholder elements are clipped to the bounding box.
The governing equation for the horizontal dimension is:
bbw (bounding-box-width) = left + width + right
Given that each of these three parameters may have either a value of "auto" or a defined value not "auto", then there are 8 possibilities:
Attribute values |
Result before clipping to the bounding box |
||||
left | width | right | left | width | right |
auto | auto | auto | 0 | bbw | 0 |
auto | auto | defined | 0 | bbw - right | right |
auto | defined | auto | 0 | width | bbw - width |
auto | defined | defined | bbw - right - width | width | right |
defined | auto | auto | left | bbw - left | 0 |
defined | auto | defined | left | bbw - right - left | right |
defined | defined | auto | left | width | bbw - left - width |
defined | defined | defined | left | width | bbw - left - width |
The vertical attributes height, bottom, and top are resolved similarly. The governing equation for the vertical dimension is:
bbh (bounding-box-height) = top + height + bottom
Given that each of these three parameters may have either a value of "auto" or a defined value not "auto", then there are 8 possibilities:
Attribute values |
Result before clipping to the bounding box |
||||
top | height | bottom | top | height | bottom |
auto | auto | auto | 0 | bbh | 0 |
auto | auto | defined | 0 | bbh - bottom | bottom |
auto | defined | auto | 0 | height | bbh - height |
auto | defined | defined | bbh - bottom - height | height | bottom |
defined | auto | auto | top | bbh - top | 0 |
defined | auto | defined | top | bbh - bottom - top | bottom |
defined | defined | auto | top | height | bbh - top - height |
defined | defined | defined | top | height | bbh - top - height |
The region element may have the following visual attributes:
The default value of fit is hidden.
Note that the fit attribute applies to visual media once it has an intrinsic two-dimensional size, such as images and video. It does not apply to visual media that is rendered and adapted to varying circumstances, such as the visual display of HTML, until its two-dimensional spatial dimensions have been determined, such as after an HTML page has been laid out to specific size.
A profile integrating the SMIL BasicLayout module must provide a means of declaring an XML identifier on region elements.
This section is informative.
In the following example fragment, the position of a text element is set to a 5 pixel distance from the top border of the rendering window:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language">
<head>
...
<layout>
...
<region xml:id="a" top="5" />
...
</layout>
</head>
<body>
...
<text region="a" src="text.html" dur="10s" />
...
</body>
</smil>
The root-layout element determines the value of the layout properties of the root element, which in turn determines the size of the window in which the SMIL presentation is rendered.
If more than one root-layout element is parsed within a single layout element, this is an error, and the document should not be displayed. This does not include root-layout elements skipped by the user agent (e.g. because the enclosing layout element was skipped due to an unrecognized type or because a test attribute evaluated to false).
The semantics of the root-layout element are as in SMIL 1.0: the attributes of the root-layout element determine the size of the top level presentation window, and the declared sibling regions are arranged within this top level window. If either the height or width of the root-layout element is not specified, the value of the attribute is implementation-dependent.
The root-layout element is an empty element. This element supports the SMIL 1.0 syntax where the root-layout element is an empty sibling of the top level region elements.
This section is informative.
The following example extends the fragment above with a specification of the root-layout element:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language">
<head>
<layout>
<root-layout width="320" height="480" />
<region xml:id="a" top="5" />
</layout>
</head>
<body>
<text region="a" src="text.html" dur="10s" />
</body>
</smil>
Note that the root-layout element is placed at a peer-level within the layout section. SMIL Layout also supports a nested containment model using the topLayout element defined in the MultiWindowLayout module.
The region attribute is added to the ref element (and its synonyms). The target of this attribute will be one or more regions with a regionName declared that matches the value of this attribute, or a single region element with a region attribute that matches this value. For processing rules, see the section Implementation details.
SMIL BasicLayout module is consistent with the visual rendering model defined in CSS2, it reuses the formatting properties defined by the CSS2 specification, and newly introduces the fit attribute [CSS2]. The reader is expected to be familiar with the concepts and terms defined in CSS2.
SMIL layout regions influence the propagation of user interface events (such as a mouse click, or hyperlink activation) to underlying visible elements. When the location of an event corresponds to the background of a region rather than the media that is displayed in that region, a region background color of transparent allows user interface events to pass through to elements lower in the display stacking order. Conversely, regions with non-transparent background colors will capture user interface events, not allowing the event to pass through to elements lower in the display stacking order. This behavior is separate from that of a language profile's ability to make use of user interface events captured by region elements.
An element that does not refer to a valid region element will display in the default region. If not otherwise specified by the profile, the default region is defined as filling and aligned to the upper-left corner of the presentation window. This default region takes on default values for all other region attributes.
The region attribute is applied to an element in order to specify which rendering region is assigned to the element. The attribute refers to the abstract rendering region (either visual or acoustic) defined within the layout section of the document. The referenced abstract rendering region is determined by applying the following rules, in order:
If this process selects no rendering surface defined in the layout section, the values of the formatting properties of this element are defined by the default layout values, which is described in the section on integration requirements for this module.
The definition of backgroundOpacity and the value transparent for backgroundColor are independent. For example, a combination of backgroundOpacity=100% and backgroundColor=transparent results in a transparent background.
A profile integrating the SMIL BasicLayout module must define the content models for the layout element if any elements beyond those specified here are to be allowed as children.
A profile integrating the SMIL BasicLayout module must provide a means of declaring an XML identifier on region elements if the profile intends on referring to region elements by XML identifier. This value is used as the argument value to the region attribute. This is not required if the profile will only use the regionName method of referring to a region element.
A profile integrating the SMIL BasicLayout module must specify which elements have a region attribute and any inheritance of the attribute.
If not otherwise defined by the profile, the default values of the layout attributes listed in the SMIL layout modules will apply to presented elements not otherwise specifying layout semantics.
The functionality in this module builds on top of the functionality in the StructureLayout module, which is a required prerequisite for inclusion of the BasicLayout module.
See the full DTD for the SMIL Layout modules.
This section is normative.
In SMIL AudioLayout, one attribute is supported that allows the relative sound intensity of an audio object to be specified via the soundLevel attribute. When used in conjunction with SMIL 3.0 Animation (and if supported by the profile), the value of the attribute may be varied over time.
This section is informative.
The following region defines an audio sound level that is set to -6dB relative to its normal recorded value:
<layout> ... <region xml:id="a" soundLevel="-6dB"/> ... </layout>
The same approximate effect could be obtained by using the attribute's percentage notation:
<layout> ... <region xml:id="a" soundLevel="50%"/> ... </layout>
SMIL AudioLayout module supports control of aural media volumes via a property on the region element, soundLevel. Multimedia assigned to a region with an explicit soundLevel attribute will have its audio rendered at the given relative sound intensity. If the profile integrating this module also include the OverrideLayout module, the soundLevel attribute may also be placed as modifiers on individual media references.
This section defines the soundLevel attribute that makes up the SMIL AudioLayout module.
The region element defined in the BasicLayout module is extended with the addition of the soundLevel attribute.
The region element may have the following aural attribute:
Valid values are either non-negative CSS2 percentage values [CSS2], (section 4.3.3) or signed ("+" or "-") CSS2 numbers [CSS2] (section 4.3.1), immediately followed by the suffix "dB".
Percentage values are interpreted relative to the recorded volume of the media. A setting of '0%' plays the media silently. A value of '100%' will play the media at its recorded volume (0 dB). Similarly, a value of '200%' will play the media nearly twice as loud (6 dB) as its recorded volume (subject to hardware limitations). The default value is '100%'.
Decibel values are interpreted relative to the recorded volume of the media. The values are interpreted as a ratio of the squares of the new signal amplitude (a1) and the recorded amplitude (a0), and are defined in terms of dB:
soundLevel(dB) = 10 log10 (a1*a1 / a0*a0) = 20 log10 (a1 / a0)
A setting of a large negative value effectively plays the media silently. A value of '-6.0dB' will play the media at approximately half the amplitude of its recorded signal amplitude, and is equivalent to a percentage value of 50%. Similarly, a value of '+6dB' will play the media at approximately twice the amplitude of its recorded signal amplitude (subject to hardware limitations), and is equivalent to a percentage notation of 200%. The default value is '+0.0dB', which specifies no change to the recorded signal amplitude.
The absolute sound level of media perceived is further subject to system volume settings, which cannot be controlled with this attribute.
The functionality in this module builds on top of the functionality in the BasicLayout module, which is a required prerequisite for inclusion of the AudioLayout module.
See the full DTD for the SMIL Layout modules.
This section is normative.
This section defines the functionality in the SMIL MultiWindowLayout module. This level contains elements and attributes providing for creation and control of multiple top level windows on the rendering device.
In the architecture of the SMIL BasicLayout module, each presentation is rendered into a single root window of a specific size/shape. The root window contains all of the regions used to manage the rendering of specific media objects and is defined by a peer-level root-layout element.
The SMIL Layout specification extends the root container level with the notion of a top-level rendering window, called a topLayout window. A SMIL layout section may support one or more topLayout windows. The assignment of the regions to individual top level windows allows independent placement and resizing of each top-level window, if supported by the including profile and implementation. The initial placement of the top level windows on the display device and any available means of relocating the top level windows is implementation-dependent.
The top-level windows function as rendering containers only, that is, they do not carry temporal significance. In other words, each window does not define a separate timeline or any other time-container properties. There is still a single master timeline for the SMIL presentation, no matter how many top-level windows have been created. This is important to allow synchronization between media displayed in separate top-level windows.
The display of top level windows can be controlled automatically by the player, or manually by the user of the application. If a window is closed (by the user) while any of the elements displayed in that window are active, there is no effect on the timeline (if any) of those elements. However, a player may choose not to decode content as a performance improvement. The means provided to a user to close top level windows is implementation-dependent.
For SMIL 1.0 compatibility, the root-layout element will continue to support SMIL 1.0 layout semantics. The new topLayout element will support the extension semantics and the improved, nested syntax.
Note also that any one region may belong to at most one top-level (or root-level) window. Regions not declared as children of a topLayout element belong to the root-layout window. If no root-layout element has been declared, the region is assigned to an additional window according to the semantics in the BasicLayout module.
This section defines the elements and attributes that make up the SMIL MultiWindowLayout module.
The topLayout element determines the size of the a window in which the SMIL presentation is rendered, as well as serving as a top level window in which to place child region elements.
Multiple topLayout elements may appear within a single layout element, each declaring an independent top-level window.
Each instance of a topLayout element determines the size of a separate top-level presentation window, and the descendant regions are arranged within this top-level window and relative to the coordinate system of this window.
This module also provides control over when topLayout windows open and close in a presentation. Note that the precise mapping of topLayout windows on to the host environment is implementation-dependent. It is expected that implementations will "pop up" independent desktop windows if they can, but other means of supporting multiple topLayouts, such as by using frames, are allowed. When automatically opening and closing windows, applications should try to comply with the WAI User Agent Guidelines [UAAG] and allow the user to choose whether to be warned that windows are being opened and closed, and give a method for disabling automatic opening and closing of windows.
The topLayout element may contain any number of region elements, or be empty.
This section is informative.
The following example provides a restatement of the root-layout example:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> <head> <layout> <topLayout width="320" height="480" /> <region xml:id="a" top="5" /> </topLayout/> </layout> </head> <body> <text region="a" src="text.html" dur="10s" /> </body> </smil>
Multiple instances of the topLayout element may occur within a single layout element:
<layout> <topLayout xml:id="WinV" title="Video" width="320" height="240"/> <region xml:id="pictures" title="pictures" height="100%" fit="meet"/> </topLayout> <topLayout xml:id="WinC" title="Captions" width="320" height="60"> <region xml:id="captions" title="caption text" top="90%" fit="meet"/> </topLayout> </layout>
In this example, two top-level windows are defined ("WinV" and "WinC"), and two regions are defined with one region ("pictures") assigned to WinV and the other ("captions") to WinC. These windows may be opened and closed independently by the presentation or by a user.
The MultiWindowLayout module does not redefine the BasicLayout layout element. Instead, it simply extends the content model for that element, as described in the following subsection.
The layout element defined in the SMIL BasicLayout module is extended by adding topLayout element to the content model of the layout element if the type attribute of the layout element has the value "text/smil-basic-layout".
This module includes two events that may be included in the integrating language profile.
Allowing multiple topLayout elements within a single layout element implies support for multiple top level windows. If an implementation does not support multiple top level windows (because of device or processing restrictions), only content in the first top-level window defined in the layout will be rendered. Non-rendered objects will still participate in all SMIL timing and scheduling operations.
If used together with the root-layout element, any direct peer-level regions to the root-layout will be contained within the extents of the root-layout.
The functionality in this module builds on top of the functionality in the BasicLayout module, which is a required prerequisite for inclusion of the MultiWindowLayout module.
The language profile must specify the declarative names for binding the topLayoutOpenEvent and topLayoutCloseEvent events described in the MultiWindowLayout Module Events section, as well as the bubbling behavior of the events.
See the full DTD for the SMIL Layout modules.
This section is normative.
The SubRegionLayout module defines two mechanisms for defining regions that are logically contained within a parent region (these are SMIL's sub-regions). First, the SubRegionLayout module extends the definition of the region element to allow for the specification of sub-regions within the layout section as hierarchical content of regions. Second, the SubRegionLayout module extends the attributes allowed on (media) object references to allow a dynamic sub-region to be defined in-line by that object instance only. All values given for placement within sub-regions are defined in terms of the parent region's placement attributes. The ability to define sub-regions may be exploited for authoring convenience or when changing the location of a group of related regions using SMIL Animation.
This section is informative.
In the following fragment, a parent region (CaptionedVideo) is defined that contains two hierarchical sub-regions: image and captions. The placement of the image and caption content is specified as relative to the dimensions of the parent region. This is an example of a statically-defined hierarchy of sub-regions.
<layout> ... <region xml:id="CaptionedVideo" top="10px" left="20px" width="320" height="300"> <region xml:id="image" title="image content" width="100%" height="240px" fit="meet"/> <region xml:id="captions" title="caption text" top="240px" height="60px" fit="meet"/> </region> ... </layout>
A presentation using the above layout specification could also create a dynamic sub-region that is defined for use by this single object:
<body> ... <img xml:id="Title" region="image" top="5%" left="3" bottom="10%" right="15%" src="TitleImage.png"/> ... </body>
This statement creates a sub-region with the named region "image" with the given extents. In the example above, the effective boundaries of the sub-region for the placement of this object are defined by declaring the top, bottom, left and right edges of the region to the values shown, and then filling the resulting sub-region with the specified image as directed by the fit attribute. If the size of the media object being displayed is smaller than that of the resulting sub-region, the display will be similar to:
The use of in-line sub-region placement is intended as a light-weight alternative to defining a large number of single-use regions. Often, the dimensions used for the sub-region will match the dimensions of the media object being placed, but in all cases the values of the fit attribute will govern rendering of the object in the sub-region. The other attributes on the media element that would have been applied to a referenced region are applied to the sub-region instead. Note that the default values for the sub-region attributes are all 'auto', meaning that, by default, a sub-region is created having the same size and position as the parent region.
The use of sub-region positioning leads to authoring convenience and SMIL file compactness, since many separate regions do not need to be defined to handle incidental layout needs. The support for a hierarchy of sub-regions also allows multiple layout objects to be animated in concert by moving the parent region using SMIL Animation facilities.
This section defines extensions to the region and ref elements (and its synonyms) to support sub-region functionality.
This module extends the definition of the region element to include the definition of hierarchical sub-regions.
In the SubRegionLayout module, the region element has no additional attributes beyond that provided in the other included layout modules. However, the semantics of the z-index attribute are extended to support hierarchical sub-regions.
Just as with simple non-hierarchical regions, the stacking order of hierarchical regions may be affected by temporal activation. A region becomes active either when media begins rendering into it, or when one of its child regions becomes active. If two sibling regions have the same z-index, the region most recently made active is in front of the other region.
The SMIL SubRegionLayout module extends the region element content model to include region elements.
The SubRegionLayout module extends the ref element to allow a separate, unnamed sub-region to be defined for the media object reference containing the sub-region positioning attributes.
The ref element defined in the MediaObject module and its synonyms are extended to include the following positioning attributes.
Conflicts between the region size attributes bottom,height, left, right, top, and width are resolved according to the rules for placeholder elements described in the section on the region element.
The sub-region positioning attributes will be ignored if they are used on an element without a region attribute (or, if supported, the regionName attribute) that resolves to a region element in the layout section.
This module does not define any SMIL events.
The position of a region, as specified by its top and left attributes, is always relative to the parent geometry, which is defined by the parent element. For the SMIL SubRegionLayout module, all hierarchical region elements must have as their immediate parent a region or topLayout element. The position of the hierarchical region is defined relative to that parent element. The intrinsic size of a region is equal to the size of the parent geometry.
When region sizes, as specified by width and height attributes are declared relative with the "%" notation, the size of the hierarchical region is relative to the size of the parent region. Sizes declared as absolute pixel values are absolute values even when used with a child region.
Note that a (hierarchical) region may be defined in such a way as to extend beyond the limits of its parent. In this case the child region must be clipped to the parent boundaries.
If a z-index attribute is defined on the hierarchical region, it is evaluated as a local index within that of the parent.
If the fit attribute and alignment attributes regPoint and regAlign are relevant to the placement of a particular media object, the interaction is the same as described in the definition of regPoint. If sub-region positioning attributes are used on a media object along with fit or the alignment attributes regPoint and regAlign, these attributes apply to the sub-region. In this case the fit setting on the referenced region element does not apply to the sub-region.
For both sub-region positioning and registration point use (as defined in the module), the value of the z-index attribute on the associated region is used. If media objects overlap spatially, existing rules for resolving z-index conflicts are applied.
Note that placement within the region may be defined in such a way as to extend the media object beyond the limits of the region. In this case the media object must be clipped to the region boundaries.
If two hierarchical regions with the same z-index attribute value overlap, the existing rules for z-index processing defined in the BasicLayout module are applied. Specifically, the rule concerning time priority is maintained, meaning that in the case of a z-index conflict, the media visible in the overlap will be determined by the region that is rendering the media that has most recently begun in time. If the conflicting media began at the same time, then the rule using the textual order of the media elements in the SMIL document is applied.
This section is informative.
For example:
<layout> <root-layout width="640px" height="480px" /> <region xml:id="whole" top="0px" left="0px" width="640px" height="480px" z-index="5"/> <region xml:id="right" top="0px" left="320px" width="320px" height="480px" z-index="4"> <region xml:id="inset" top="140px" left="80" width="160px" height="200px" z-index="6"/> <region xml:id="inset2" top="140px" left="80" width="160px" height="200px" z-index="6"/> <region xml:id="inset3" top="140px" left="80" width="160px" height="200px" z-index="7"/> </region> </layout> ... <par> <img xml:id="A" region="whole" src="imageA.jpg" dur="10s"/> <img xml:id="B" region="inset" src="imageB.jpg" dur="10s"/> </par> <par> <img xml:id="D" region="inset2" src="imageD.jpg" begin="1s" dur="10s"/> <img xml:id="C" region="inset" src="imageC.jpg" begin="0s" dur="10s"/> </par> <par> <img xml:id="E" region="inset2" src="imageE.jpg" dur="10s"/> <img xml:id="F" region="inset3" src="imageF.jpg" dur="10s"/> </par>
The functionality in this module builds on top of the functionality in the BasicLayout module and the MediaObject module, which are required prerequisites for inclusion of the SubRegionLayout module. If the functionality in this module is to be used with the topLayout construct, the MultiWindowLayout module is a prerequisite.
See the full DTD for the SMIL Layout modules.
This section is normative.
A registration element is an element defined within this module that is used to define a point within a region and a default object alignment algorithm about that point. The element may be used in a media object element, where it is associated with a region and an optional override alignment algorithm. The placement values within registration elements can be either percentages or pixels.
The use of registration points allows for consistent relative placement across regions. As such, registration points are defined outside of any single region.
Registration points may be used to coordinate the placement of a set of media objects that do not share the same sizes. (For example, a set of images may be aligned to the center of a region.) They can also be used to coordinate the display of images about a particular point in a region.
For authoring convenience, SMIL AlignmentLayout module provides several pre-defined region registration points including topLeft, topMid, topRight, midLeft, center, midRight, bottomLeft, bottomMid, and bottomRight.
As a further convenience, SMIL AlignmentLayout module provides the mediaAlign attribute, which defines a combination of regAlign and regPoint attributes. For example, media objects may be centered in any region using mediaAlign as follows:
<ref ... mediaAlign="center" />
If the mediaAlign attribute and either (or both) of the regPoint and regAlign attributes are used together, the regPoint and/or regAlign value(s) will override the corresponding effective regPoint/regAlign value(s) defined by the mediaAlign value.
The default value of regAlign for a region is topLeft. If the regAlign attribute is used without a regPoint attribute, the alignment operation is relative to the upper left point of the region containing this object, that is, the behavior is the same as if the regPoint were to be specified as topLeft.
Rules for handling clipping of objects within regions based on the regPoint and regAlign attributes are defined below.
This section is informative.
An example is given in the following code of two registration points (with id values "midPoint" and "topMargin"), one of which is defined as a relative location and one at a fixed pixel location, using the SMIL AlignmentLayout syntax:
<layout>
<regPoint xml:id="midPoint" top="50%" left="50%" regAlign="center" />
<regPoint xml:id="topMargin" top="10" left="15" regAlign="topLeft" />
<region xml:id="a" ... />
<region xml:id="b" ... />
</layout>
In this example, the registration point with the id value "midPoint" has a default alignment algorithm that centers the media object about the defined point, while the registration point with the id value "topMargin" has a default alignment algorithm that places the top-left point of the media object at the registration point.
Various media elements could be displayed in the regions using the alignment points as follows:
<ref region="a" src="rtsp://..." dur="2s" regPoint="midPoint" />
<ref region="b" src="http://..." dur="2s"
regPoint="midPoint" regAlign="bottomRight"/>
<ref region="a" src="http://..." dur="2s" regPoint="topMargin" />
<ref region="b" src="http://..." dur="2s"
regPoint="topMargin" regAlign="center"/>
In the first example, a media object is centered in the middle of regiona. In the second example, a media object has its bottom right corner centered in the middle of region b. Similarly, in the third example, a media object has its top left corner placed at a point 10,15 within region a, and in the fourth example, an object is centered around the point 10,15 in region b.
The following example illustrates how images may be aligned at a particular point in a region:
<layout>
<regPoint xml:id="middle" top="50%" left="50%" regAlign="center" />
<region xml:id="a" ... />
</layout>
...
<seq>
<ref region="a" src="rtsp://..." dur="2s" regPoint="middle"
regAlign="bottomRight"/>
<ref region="a" src="http://..." dur="2s" regPoint="middle"
regAlign="bottomLeft"/>
<ref region="a" src="http://..." dur="2s" regPoint="middle"
regAlign="topLeft"/>
<ref region="a" src="http://..." dur="2s" regPoint="middle"
regAlign="topRight"/>
</seq>
In this example, four objects are aligned over time to the middle of region. If any media element extends outside the bounds of a region, it will be clipped to the region.
In the following example, media objects may be centered in any region using pre-defined registration and alignment points:
<ref ... regPoint="center" regAlign="center" />
Note that registration points are global within the context of a layout, and are not tied to a particular region, but can be reused across regions. As such, pixel-based offsets should be used with care.
This section defines the elements and attributes that make up the SMIL AlignmentLayout module.
This element extends the content model of the layout element to support the registration point functionality described in this section.
If the type attribute of the layout element has the value "text/smil-basic-layout", it is extended to contain the following elements:
The regPoint element determines the (x, y) coordinates of a point relative to a region upper-left corner for use in aligning elements in the document's body on regions within a visual rendering surface. A regPoint may be defined using absolute (pixel) or relative (percentage) based values. The regPoint functionality is not defined and may not be used for media without intrinsic size.
For the purposes of regPoint functionality, media and regions are defined to be rectangular, with perpendicular sides, with the sides ordered clockwise top, right, bottom, and left. The top side is the edge closest to the point or edge of the display device considered "up".
None.
This module extends the definition of the region element to include the definition of default alignment policies for content in that region.
SMIL AlignmentLayout module does not extend the region element content model.
The AlignmentLayout module extends the ref element to allow the positioning of media content within a region based on the an alignment registration point and an alignment policy.
The ref element defined in the MediaObject module is extended to include the mediaAlign and regPoint attributes, both in conjunction with the regPoint element. If a regPoint attribute is missing or refers to a non-existent regPoint element the value of the regAlign attributes are applied to the top-left point of the region containing the media object.
SMIL AlignmentLayout module does not extend the ref element content model.
This module does not define any SMIL events.
If an implementation cannot support the soundLevel attribute, it may be ignored. Even when processing is ignored, the attribute must be correctly parsed.
The regPoint element may only appear as an immediate child of a layout element.
If the registration point functionality is used on a media object that also uses sub-region positioning, the registration point applies to the subregion.
For registration point use, the value of the z-index attribute on the associated region is used. If media objects overlap spatially, existing rules for resolving z-index conflicts are applied.
Note that placement within the region may be defined in such a way as to extend the media object beyond the limits of the region. In this case the media object must be clipped to the region boundaries.
The default value of regAlign for a region is topLeft. If the regAlign attribute is used without a regPoint attribute, the alignment operation is relative to the upper left point of the region containing this object, that is, the behavior is the same as if the regPoint were to be specified as topLeft.
If the registration point or alignment functionality is used on a media object, the interaction between the regPoint attribute value, the regAlign attribute value, and the fit attribute value of the region in which the media object is displayed is as follows:
For example, a wide-screen video may be made to play in "letterbox" mode in a region, whose width-to-height ratio is smaller, by using regPoint ="center" and regAlign="center" and setting the region's fit value to "meet". The result is the video will touch the left and right edges of the region and will be centered vertically with the gaps above and below filled in with the region's background color.
The functionality in this module builds on top of the functionality in the BasicLayout module and the MediaObject module, which are required prerequisites for inclusion of the AlignmentLayout module.
See the full DTD for the SMIL Layout modules.
This section is normative.
The SMIL BackgroundTilingLayout module defines a backgroundImage attribute that allows an image to be placed onto the background of a layout region. It also provides the same capability for the root-layout and any of the topLayout element(s), if supported by the language profile. This module also defines the backgroundRepeat attribute to control tiling of the background image. These facilities are provided as a convenience extension to SMIL's use of a background color in a region. Although similar functionality can be defined by using a combination of the image media object, the z-index attribute and subregions positioning, this would require substantially more authoring effort.
The BackgroundTilingLayout module allows simple convenience tiling support in a manner that is consistent with CSS2 [CSS2]. For more complex background image operations such as support for animated images or non-image background content, users are expected to use the standard media placement and alignment facilities available in SMIL Layout.
The opacity of the background images, whether or not tiled, is defined by the value of the backgroundOpacity attribute.
If a backgroundImage is defined along with a backgroundColor attribute, the background color will be used to color any part of the background left exposed after processing the background image.
When used with the showBackground attribute. the background image behaves as if it were a simple background color.
This section defines the backgroundImage and backgroundRepeat attributes that make up the SMIL BackgroundTilingLayout module.
This module extends the attribute set for the region, root-layout and topLayout elements.
The SMIL BackgroundTilingLayout module does not extend the content model for elements integrating these attributes.
This module does not define any SMIL events.
For purposes of establishing an inheritance default value, the root-layout element defined in SMIL BasicLayout is considered the root of the background image inheritance tree. In this case, both backgroundImage and backgroundRepeat may be used with the root-layout and region elements.
For profiles implementing the SMIL MultiWindowLayout module, each top-level layout element is considered to define a separate root of the background image inheritance tree. In this case, both backgroundImage and backgroundRepeat may be used with any topLayout elements.
The functionality in this module builds on top of the functionality in the BasicLayout module, which is a required prerequisite for inclusion of the BackgroundTilingLayout module. If this functionality is to be applied to multiple top-level windows, the MultiWindowLayout module must be included.
See the full DTD for the SMIL Layout modules.
This section is normative.
The SMIL OverrideLayout module includes the ability to override the default values of the fit, z-index, backgroundColor and backgroundOpacity attributes on objects displayed in a (dynamically created) sub-region. This functionality may only be used in conjunction with sub-region positioning.
For languages and profiles integrating the AlignmentLayout module, the ability to specify override behavior for the regAlign, regPoint, mediaAlign, and soundAlign, attributes are defined as part of that module's specification and do not need to be explicitly specified in the OverrideLayout module.
This module does not define any new elements. It provides extensions to the ref element (and its synonyms).
The backgroundColor, backgroundOpacity, fit, soundLevel and z-index attributes are added to media object references.
The SMIL OverrideLayout module does not extend the content model for the ref element integrating these attributes.
This module does not define any SMIL events.
The OverrideLayout module allows individual media object references to override the default values for certain attributes. In all cases, the attributes will apply only to a dynamically created sub-region that is created by the the activation of the media object reference. Changes will not propagate to child sub-regions or to parent regions.
The functionality in this module builds on top of the functionality in the SubRegionLayout module, which is a required prerequisite for inclusion of the OverrideLayout module.
See the full DTD for the SMIL Layout modules.
This section is informative.
This module defines new functionality for SMIL 3.0. It extends the media types available for SMIL, but does not alter any other existing functionality from SMIL 2.1 or earlier versions.
This section is normative.
The functionality described in these modules provide a new media type for use in SMIL presentations. This functionality is called smilText. Unlike other media types defined in the media object module, all of which are synonyms of the ref element, the smilText modules provide a text container element with an explicit content model for defining timed text. The smilText modules also define a set of additional elements and attributes to control timed text rendering. All smilText content is processed in a manner consistent with other SMIL media. This means, among other aspects, that smilText respects SMIL timing and layout behavior, including the semantics of the fit and fill attributes of SMIL Layout.
The smilText Modules are composed of a BasicText module and two modules with additional functionality that build on top of the BasicText module: the TextStyling and TextMotion modules. These modules contain elements and attributes used to define in-line text content. The SmilText profile allows smilText to be used as an external format; this is described informally in Appendix B.
Since the smilText elements and attributes are defined in a series of modules, designers of other markup languages may reuse these modules when they wish to include a simple form of timed text functionality into their language.
This section is informative.
The purpose of including text content functionality into SMIL 3.0 is to allow authors to define small amounts of lightly-formatted text containing embedded temporal markup within the context of a SMIL presentation. Such text may be used for labels within a presentation or for incidental captions or foreign-language subtitles. Users who wish to use large amounts of structured text (with or without temporal markup) should consider the use of smilText as an text media object, or the use of objects encoded in formats such as XHTML or the "Distribution Format Exchange Profile" (DFXP) of Timed Text [DFXP].
All versions of SMIL have had support for the text element, which is defined as an alias of the generic SMIL ref media reference element. A typical use of the text element is:
<text region="Title" src="Headline.html" dur="10s" >
Users new to SMIL are often surprised that the text element does not have a content model -- that is, an ability to specify the content text along with the element, such as in:
<text region="Title" dur="10s" > Willemijn's 11th Birthday Party </text>
More advanced users of SMIL found that they were able to insert in-line text content into the SMIL file using a data URL, such as:
<text src="data:,Willemijn's%2011th%20Birthday%20Party" region="Title" dur="10s" >
However, the strict syntax of this approach, plus the limited styling options available, make it a less-than-optimal way of including incidental text content into a SMIL presentation. A more author-friendly approach to text inclusion was a requirement for SMIL 3.0.
The implementation of SMIL on a wide range of devices, from set-top boxes and mobile devices to conventional desktop computers, means that care needed to be taken in defining the complexity of the smilText modules. The motivation of the SMIL's in-line text facility was not to provide complete support for all types of text, but to provide a balance between authoring convenience and player complexity. smilText was also designed to differentiate text styling from general layout and positioning so that smilText could be used efficiently with SMIL Layout. Both of these motivations, plus the desire to define a media facility that could be used across all of SMIL's implementation platforms, has resulted in a simple text specification that meet many of the requirements for incidental text within a SMIL document.
smilText has been designed as a functional subset of the W3C Timed Text Distribution Format Exchange Profile (DFXP) of TimedText. While users familiar with DFXP will recognize the functionality included in this specification, the differences in temporal and layout specifications between SMIL and DFXP have resulted in a slightly different syntax in the two languages. The SYMM working group has striven to minimize these differences. A complete list of differences between smilText and DFXP is presented in Appendix A.
In order for text content to be compatible with the SMIL timing semantics, a general text processing model has been defined for smilText. In this model, text is classified as a continuous media type, with the inherent duration defined by timing mark-up within the smilText definition. All text content is processed as if it were first rendered to an off-screen bitmap; this bitmap is then used as the basis for inclusion into a SMIL presentation much as if it were a video object. If the smilText contains no internal timing mark-up, the processing model treats it as if it were a logical image.
The dimensions used in constructing the off-screen bitmap representation of smilText will depend on a number of factors. In general, the layout model used to define a drawing area for the text content will provide initial values for the extents of the text area. The default text-wrap behavior for smilText is to wrap the text content based on region width. In this case, the region will determine the text-area width and the text content will determine the effective off-screen bitmap height. If the wrap behavior is set to disallow automatic text wrapping (which is only possible if the TextStyle module is supported by the profile implementing smilText), the effective height is determined based on the number of lines of text (which in turn is determined by the number of manual line breaks created via the br element) and constrained by the region height, while the text content determines the off-screen bitmap width.
In most cases, content defined in a smilText element will define a new off-screen bitmap pseudo-image that will replace any existing content in the target region. If multiple smilText elements are active simultaneously and target the same layout region, the behavior is fully defined by the semantics of the SMIL timing and layout models. Users of smilText are encouraged to study the examples at the end of each module description to better understand the impact of SMIL timing on text rendering with smilText.
When used as an external format, a smilText object consists of a smil host-level identifier with a smilText base profile, and a set of dimensioning and temporal parameters. With the exception of event processing, the functionality of embedding a smilText object as an in-line element in a SMIL presentation and storing it in an external object in a separate file is identical.
This section is normative.
This section defines the elements and attributes that make up the functionality in the SMIL 3.0 BasicText module. Languages implementing elements and attributes found in the BasicText Module must implement all elements and attributes defined in this section.
The SMIL 3.0 BasicText module defines four elements and four attributes which, together, provide basic support for in-line text within a SMIL presentation. The functionality provided by these elements and attributes represent the minimum level of text processing that is required by a user agent implementing smilText.
The elements defined in this module are:
The attributes defined in this module are:
In addition, this module extends the definition of the SMIL Layout region element to include the textWrapOption attribute.
Note that unless overridden by the profile integrating these modules, all smilText elements will also reference the xml:id, xml:lang and ITS attributes to specify the identity and the language used in a particular text fragment.
For profiles that support only the BasicText module, all in-line text content styling and processing is defined and controlled by the SMIL user agent rendering the text. Additional content styling elements and attributes are defined in the TextStyling and TextMotion modules; support for this extended functionality is profile dependent.
For implementations that support the use of smilText as an external object, a separate rendering agent will control the processing of smilText content. Depending on the implementation of this agent, functionality in the TextStyling and TextMotion modules may be available. Functionality defined in the BasicText module must be supported.
The smilText element functions as a logical and temporal structuring element that allows the inclusion of in-line text content into a SMIL presentation.
When rendering in-line text, the smilText element provides a top-level container for timing semantics. Additional timing semantics may be defined on the content within the smilText element. When rendering text specified in an external file, the smil element together with the smilText baseProfile attribute value provides a top-level container for text content. As defined within the SmilText profile, default timing and spatial characteristics may be defined on the external smilText encoding; when embedded as a media object in a SMIL presentation, these default characteristics will be overridden by the effective values of identical attributes specified on the media object reference in the SMIL presentation.
When text is rendered into an associated region, the existing content of the region is replaced by the element content. The properties of the region will determine the extents of the rendering area and the clipping behavior of text placed in the region. The effective value of the textWrapOption attribute will determine if lines wrap if they are wider than the space provided. In-line text is considered to be rendered instantaneously at the beginning of the simple duration of the text element unless temporal markup using the tev or clear elements is defined within the text. In smilText, extra white space between characters is processed according to the xml:space model defined in XML 1.1 [XML11]. The xml:space attribute is reused in smilText, with the conventional semantics described in the section xml:space, below.
Anchors and links, if supported by the profile integrating this module, may be attached to content within the smilText element. In these cases, the syntax and semantics of SMIL Linking will be expected, including temporal attributes on anchors.
This element accepts the textWrapOption and xml:space attributes, which will override the effective value for these attribute defined on the layout region.
Profiles including the smilText element must define which other SMIL attributes may be attached to this element. At a minimum, the definition of an associated layout region (for in-line use) or the definition of a height/width of the rendering area (for external use), and basic SMIL timing control, including the definition of a begin and end or duration, will be expected.
The smilText element contains mixed content. The profile integrating this element will define a content model. If character content is present, it will be rendered as text in a manner consistent with other elements and attributes in this module. The intrinsic duration of a smilText element ends as soon as the last resolved tev or clear element is processed. If a smilText element does not contain any internal timing, then the simple duration will be determined by timing markup on the element itself. If no content is present, the smilText element must still observe all SMIL timing properties.
The tev element defines a "temporal moment" within a block of smilText content. Depending on the values of the begin or next attributes, it determines a scheduling time at which the associated text content (up to the following tev or clear element or the end of the smilText element) is rendered. The tev element does not define a content container, but is simply a temporal marker within a text fragment.
This element accepts the begin and next attributes. Profiles including the tev element must define which other SMIL attributes will be attached to this element.
This element has no content.
The clear element defines a "temporal moment" within a block of smilText content at which the full contents of the rendering area are cleared. Depending on the values of the begin or next attributes, it also determines a scheduling time at which the associated text content (up to the following tev or clear element or the end of the smilText element) is rendered. This element is functionally equivalent to the tev element, except that it has a side-effect of clearing the rendering area before any new content is rendered. This element does not define a content container, but is simply a temporal marker within a text fragment.
This element accepts the begin and next attributes. Profiles including the clear element must define which other SMIL attributes will be attached to this element.
This element has no content.
The br element functions as a forced line break within in-line content defined in a smilText element. The br element is only valid within as content of a smilText element and has no temporal semantics other than those of its parent smilText element.
This element does not accept any attributes beyond those specified by the profile.
This element has no content.
When used as an external container format, the attribute value is a
single clock valued, defined as follows:
The general semantics of this element are the same as the SMIL begin attribute defined within the timing module, with the restriction that only the subset of potential time values defined above are supported.
If both a begin and next attribute are defined on any tev/clear elements, only the begin attribute will be recognized.
If both a begin and next attribute are defined on any tev/clear elements, only the begin attribute will be recognized.
Values:
The initial value is set to wrap.
Unless otherwise defined by the profile integrating this attribute, it may be used on the smilText element or as a default on the region element.
This section is informative.
Since smilText is expected to be supported by a wide range of rendering agents, the behavior associated with text wrapping is defined to be best-effort. In general, rendering agents are encouraged to support text wrapping as defined by DFXP [DFXP].
Values:
As with DFXP, smilText processing with an effective value for xml:space of default must occur as if the following XSL 1.1 [XSL11] properties were specified:
suppress-at-line-break="auto"
linefeed-treatment="treat-as-space"
white-space-collapse="true"
white-space-treatment="ignore-if-surrounding-linefeed"
As with DFXP, smilText processing with an effective value for xml:space of preserve must occur as if the following XSL 1.1 [XSL11] properties were specified:
suppress-at-line-break="retain"
linefeed-treatment="preserve"
white-space-collapse="false"
white-space-treatment="preserve"
This attribute may be used on the smilText element or as a default on the region element. In general, smilText does not add white space into a text string unless explicitly authored.
A smilText object is defined as a collection of text characters that may have one or more timing markers inserted in the text. The markers allow incremental appearance of text fragments.
In its most simple form, a smilText element contains a block of text that is displayed in its entirety at the effective start time of the element. This behavior is logically equivalent to placing a clear element with a begin time of '0' at the start of the smilText element.
It is possible to insert one or more tev elements within the smilText content. Each of these elements specify an absolute or relative starting time for the text immediately after the tev element. The text is displayed instantaneously up to the following tev element. If a clear element is used, any content within the associated rendering region is erased before the new text is displayed.
The next attribute defines a relative offset as the start time of the associated tev or clear element. This time is defined as being relative to the effective start time of the preceding tev (or clear) element -- or from the start of the smilText element if no preceding tev/clear element was defined. The effective start time is the time that the preceding element actually was activated, either by a resolved time value or in response to an event.
The intrinsic duration of a smilText element is one of the following:
This section is informative.
The smilText element provides a temporal wrapper for in-line text:
<smilText> Hello world! </smilText>
The smilText element is the equivalent of allowing a data URL that contains text content, such as: <ref src="data:,Hello%20world!" ... > . Note that since this example does not define explicit temporal markup on the smilText element, the intrinsic duration will be zero seconds. The fill semantics of the embedding SMIL content will determine the visual persistence of the content.
In this simple form, the text will be rendered based on the default layout properties defined for the user agent. If SMIL Layout is used, the default behavior is that a dynamic region will be defined that contains the text content of the element. All styling information -- including font, font size, font style and font color -- will be determined by the SMIL player.
If the SMIL Layout BasicLayout module is also supported by the profile implementing this module, the rendering extent and the clipping behavior of the text rendered in a SMIL region will be determined by the effective value of SMIL's layout attributes.
<smil ...> <head> ... <layout> ... <region xml:id="Title" top="5px" left="10%" width="80%" height="30px" /> ... </layout> </head> <body> ... <smilText region="Title" dur="10s"> Hello World! </smilText> ... </body> </smil>
This is equivalent to specifying: <ref region="Title" src="data:,Hello%20world!" ... >. In both cases, the properties associated with the region named Title will be used when positioning the text.
If the rendering space for the content of the smilText element is greater horizontal extent of one line, the effective value of the textWrapOption attribute will determine whether content will be clipped or wrapped:
<smil ...> <head> ... <region xml:id="Title" top="5px" left="10%" width="80%" height="30px" textWrapOption="wrap"/> ... </head> <body> ... <smilText region="Title" dur="10s"> Willemijn's 11th Birthday Party was held six weeks late. (Again!) </smilText> ... </body> </smil>
Line breaks within smilText content may be forced by using the br element within text content:
... <smilText region="Title" dur="10s"> Willemijn's 11th Birthday Party<br/>was held six weeks late.<br/>(Again!) </smilText> ... </body> </smil>
The following fragment illustrates use of temporal markers with a smilText element that contains an explicit duration:
<smil ...> <head> ... <layout> <root-layout width="400" height="300"/> <region xml:id="Contents" top="5px" left="10%" width="80%" height="300"/> </layout> </head> <body> ... <smilText xml:id="TS01" region="Contents" dur="6s"> Willemijn's 11th Birthday Party <tev xml:id="TS02" next="2s"/> was held six weeks late. <clear xml:id="TS03" begin="4s"/> (Again!) </smilText> ... </body> </smil>
The smilText element TS01 is active for 6s. All activity occurs within this time period, even if the timing definition within the smilText object extends beyond the 6s time limit. If SMIL Layout is used (as in this case), the fill attribute will determine the visual persistence of the text content if its internal timing was shorter than that of the smilText object.
The initial content that is rendered is the string Willemijn's 11th Birthday Party. At 2s after the start of the TS01 container, the fragment with id TS02 gets rendered. In this case, the content was held six weeks late. is displayed along with the previous contents of the smilText element. (The exact display depends on the size of the rendering region and the setting of the textWrapOption attribute.)
At 4s after the start of the parent smilText container, the fragment with the id TS03 is displayed. The use of the clear element causes the display area to be erased before the new text is displayed. Note that since a begin attribute is used instead of the next attribute, the activation time of this fragment is relative to the containing smilText container instead of relative to TS02.
The following fragment is similar to the previous example, except that it illustrates use of temporal markers with a smilText element that does not contain an explicit duration (and in which the duration is dependent on the intrinsic duration of the smilText content):
<smil ...> <head> ... <layout> <root-layout width="400" height="300"/> <region xml:id="Contents" top="5px" left="10%" width="80%" height="300"/> </layout> </head> <body> ... <smilText xml:id="TS04" region="Contents"> Willemijn's 11th Birthday Party <tev xml:id="TS05" next="2s"/> was held six weeks late. <clear xml:id="TS06" begin="4s"/> (Again!) </smilText> ... </body> </smil>
The smilText element TS04 is active for a duration that is determined by its content. All activity occurs within this time period. Note that in this example, this may lead to an unexpected result.
The initial content that is rendered is the string Willemijn's 11th Birthday Party. At 2s after the start of the TS05 container, the fragment with id TS02 gets rendered. In this case, the content was held six weeks late. is displayed along with the previous contents of the smilText element.
At 4s after the start of the parent smilText container, the fragment with the id TS06 is displayed. The use of the clear element causes the display area to be erased before the new text is displayed. All of the text that is defined to be rendered at this instance is placed into the region, but after this the smilText element ends: no additional timing markup has been provided to extend its intrinsic duration. The fill semantics associated with the smilText element will determine the visual persistence of the content, if any.
The following example is used to illustrate smilText behavior when used with event-based timing:
... <par> <smilText xml:id="TS11" region="Contents" dur="6s"> Willemijn's 11th Birthday Party <tev xml:id="TS12" next="2s"/> was held six weeks late. <clear xml:id="TS13" begin="TS14.beginEvent"/> (Again!) </smilText> <audio xml:id="TS14" begin="4.5s" src="gongAudio.mp3"> </par> ...
In this example, elements TS11 and TS12 act as TS01 and TS02 in the example earlier in this section. Coincident with the start of TS12, the potential active period for TS13 begins. Anytime between 2s after TS11 and the end of the smilText element, TS13 will begin if the "gong.beginEvent" is activated. In this example, the activation happens at 4.5 after the start of the par element containing both the smilText and audio object.
The following example illustrates the interaction of timing rules within smilText:
... <smilText xml:id="TS31" region="Contents" dur="10s"> fragment 1, <tev xml:id="TS32" next="2s"/> fragment 2, <clear xml:id="TS33" begin="1s"/> fragment 3, <clear xml:id="TS34" begin="XXX.beginEvent"/> fragment 4, <clear xml:id="TS35" next="5s"/> fragment 5, <clear xml:id="TS36" begin="8s"/> fragment 6. </smilText> ...
The TS31 smilText element starts, and 'fragment 1,' is rendered. Then, 2s later, TS32 is appended to the displayed text. At the same time, TS33 is appended to the display: it has an absolute begin time of 1s after the start of TS31, but its temporal scope only becomes active once TS32 has displayed. (The begin time is still absolute, so the fragment is displayed immediately.) TS34 comes into temporal scope at 2s (that is, at the effective begin time of its predecessor), so the associated fragment will be displayed if the event is triggered between 2s and 10s in the presentation. TS35 is displayed 5s after the effective start of TS34 (assuming the parent smilText container is still active). The effective begin time of TS36 will depend on a number of factors: if the TS35 fragment starts before an absolute 8s, TS36 will wait until 8s. If it starts later (but before the end of the smilText container), the fragment will start immediately.
It is possible to define an external file with timed text content using smilText semantics. The capabilities of such an external use are defined in the SmilText profile. A full SMIL rendering agent is not required to render the smilText content.
The following example shows an external encoding of smilText content:
<smil xmlns="http://www.w3.org/ns/smil" version="3.0" baseProfile="smilText" height="50" width="30" dur="6s"> <body> Willemijn's 11th Birthday Party <tev xml:id="TS12" next="2s"/> was held six weeks late. <clear xml:id="TS13" begin="TS14.beginEvent"/> (Again!) </body> </smil>
The external file (which in this example we assume is named "external.smil"), may be referenced by any smilText-complaint rendering agent. If that rendering agent is a SMIL 3.0 player, then the following reference to the text file may be used:
... <par> <textstream src="external.smil" dur="10s" width="40" region="Contents" > <audio xml:id="TS14" begin="4.5s" src="gongAudio.mp3"> </par> ...
In this example, the source smilText file is defined as proscribed by the SmilText profile. It contains a namespace declaration for smil plus the smilText base profile definition, as well as default values for height, width and duration. The SMIL fragment shown next illustrates a <par> containing an audio object and a textstream object that references the smilText encoding. The SMIL-based reference overrides the width specification given in the smilText source file. The smilText duration is treated as the intrinsic duration of the object; the duration is extended in the SMIL file in a manner similar to the reference of a video object.
SMIL timing defines a number of rules that govern the rendering persistence of smilText content. These are:
In terms of visual behavior, the value of the fit attribute will determine clipping behavior of the text. Since not all user agents may be expected to dynamically scale plain text, fit="slice" will be the expected default behavior with basic smilText.
In terms of the rendering semantics defined in the TextStyling module, the only behavior defined by basic smilText is the append text mode semantic.
If the including profile supports the XMLBase functionality [XMLBase] , the values of the longdesc attribute (of present) on the smilText element must be interpreted in the context of the relevant XMLBase URI prefix.
All of the attributes specified for media within the SMIL MediaParam module must be supported by implementations integrating this module.
Any profile that integrates the clear element must define what is meant by "display area" and further define the interaction.
A profile integrating this module will define the event names generated when named elements are activated in smilText. Unless overridden by the profile, each tev and clear element must raise an event named tevEvent. This event must also be raised at the start and end of the smilText element; the smilText element must also raise the standard beginEvent and endEvent events.
This section is normative.
This section defines the elements and attributes that make up the SMIL TextStyling Module. Languages implementing the elements and attributes in the TextStyling Module must implement all elements and attributes defined below, as well as those defined in the BasicText module.
The TextStyling module defines the following five elements:
The TextStyling module defines the following twelve attributes:
In addition, for in-line use of smilText, this module extends the definition of the SMIL Layout region element to include the TextStyling attributes listed above.
Since smilText is designed to be implemented on a wide range of rendering agents, not all agents may be expected to support all of the styling attributes defined in this section. If a given attribute is not supported, an implementation-dependent behavior may be substituted by the rendering agent.
The div element functions as a logical container for in-line formatting attributes defined within a smilText element. The div element does not define any temporal semantics within a smilText element. Use of the div element causes an implicit line break before the rendering of the element. User agents may supply an additional line of white space.
Unless otherwise defined by the profile integrating this module, the div element may (re)specify values for the following attributes:
Unless specified otherwise by the profile integrating this element, the profile's core attributes may also be used. All other attributes are ignored.
Unless overridden by the profile integrating this module, this element accepts mixed content including zero or more characters to which the specified styling is applied. Any styling attributes changed within the scope of this element must be restored to their previous values outside the scope of this element. The content accepted by this element is defined by the profile integrating this module.
The p element functions as a logical container for in-line formatting attributes defined within a smilText or div element. The p element may not be nested within another p element. The p element does not define any temporal semantics within a smilText element. The use of the p element causes an implicit line break. User agents may supply an additional line of white space after the implicit line break. Any extra empty lines may be merged with empty lines produced by the div element on a best-effort basis.
Unless defined otherwise by the profile integrating this module, the p element may (re)specify values for the following attributes:
Unless specified otherwise by the profile integrating this element, the profile's core attributes may also be used. All other attributes are ignored.
Unless otherwise specified by the profile integrating this module, this element accepts mixed content, including zero or more characters to which the specified styling is applied. Any styling attributes changed within the scope of this element must be restored to their previous values outside the scope of this element. The content accepted by this element is defined by the profile integrating this module.
The span element functions as a logical container for in-line formatting attributes defined within a smilText, div, or p element. The span element does not define any temporal semantics within a smilText element. The use of the span element does not cause a line break nor does it insert any white space before or after the scope of the element.
Unless specified otherwise in the profile integrating this module, the span element may (re)specify values for the following attributes:
Unless specified otherwise by the profile integrating this element, the profile's core attributes may also be used. All other attributes are ignored.
Unless overridden by the profile integrating this module, this element accepts mixed content, including zero or more characters to which the specified styling is applied. Any styling attributes changed within the scope of this element must be restored to their previous values outside the scope of this element. The content accepted by this element is defined by the profile integrating this module.
The textStyle element is used to define a set of text style attributes in the document head section. The style group defined with this element may be used within a SMIL layout region to define default styles for text elements in that region, or within the smilText content elements smilText, div, and p.
All of the styling attributes defined in this module (with the exception of the textStyle attribute) may be specified within a textStyle element in the head section. Note that if text style attributes are referenced on an element to which they do not apply, they are ignored. If multiple instances of the same styling attribute are defined, the value associated with the lexically-last instance is used.
This element will use the xml:id attribute within the profile's core attribute set to define a unique identity for the set of text style attributes.
This element has no content.
The textStyling element delineates a set of textStyle elements in the document head section.
Unless specified otherwise by the profile integrating this element, the profile's core attributes may also be used. All other attributes are ignored.
This element contains one or more textStyle elements as children.
Values:
The initial value for this attribute is start.
This section is informative.
Because of the implementation complexities of arbitrary text placement, not all text renderers may support all of the alignment operations specified by this attribute. If the selected attribute value is not supported, a renderer may substitute a player-dependent behavior.
Values:
If no color has been specified, the default is transparent.
Values:
If no color has been specified, the default is implementation dependent.
Values:
The initial value for this attribute is ltr.
This section is informative.
Because of the implementation complexities of arbitrary text placement, not all text renderers may support all of the direction operations specified by this attribute. If the selected attribute value cannot supported, a renderer may substitute a player-dependent behavior.
In XSL and DFXP, two attributes are used to control direction and unicode-BIDI override. Given the lightweight nature of smilText, basic override behavior is supported within the textDirection attribute.
Values:
The initial value for this attribute is sansSerif. If an unrecognized or unsupported textFontFamily is specified, monospace will be expected.
Values:
The initial value for this attribute is medium. If a specified size cannot be support, implementations are expected to provide a best-effort substitute size.
Values:
The initial value for this attribute is normal. If a particular style cannot be support, implementations may provide an implementation-dependent alternative style.
Values:
The initial value for this attribute is normal. If a particular weight cannot be support, implementations may provide an implementation-dependent alternative weight.
Values:
The initial value for this attribute is append.
This section is informative.
The textStyling module extends the single default value of append defined by the BasicText module with replace and inherit. Note that the textMotion module further extends this attribute with values that specify how text movement is controlled.
Values:
The initial value for this attribute is start.
This section is informative.
If no text motion attributes have been defined, any text that is explicitly or implicitly placed beyond the ending boundary of the region will not be displayed. As a consequence, if the value end is used without motion, only one line of content will be visible.
Values:
The textStyle attribute will be applied only to the content within the scope of the element to which it is applied.
Values: lr-tb | rl-tb | tb-rl | tb-lr | lr | rl | inherit
The initial value for this attribute is lr-tb.
This section is informative.
Because of the implementation complexities of arbitrary text placement, not all text renderers may support all of the alignment operations specified by this attribute. A given profile may further restrict the available values. If the selected attribute value is not supported, a renderer may substitute a player-dependent behavior. At a minimum, lr-tb may be expected.
Implementations may define default behavior if a div or p element attempts to override both the primary and secondary writing directions (such as changing from lr-tb to tb-lr). Additionally, changes to the primary writing direction may be ingored if the text mode is set to crawl, and changes to the secondary writing direction may be ignored if the text mode is set to scroll, as defined within the TextMotion module.
Note that only the subset of XSL 1.1's writing-mode attribute supported by DFXP are adopted by smilText. In smilText, the XSL naming conventions for the writing modes are adopted.
This section is informative.
The following example provides an indication of the use of smilText within a profile that provides support for the TextStyling module (such as the SMIL 3.0 Language profile).
00 <smil ...> 01 <head> ... 02 <textStyling> 03 <textStyle xml:id="HeadlineStyle" textFontFamily="serif" textFontSize="12px" textFontWeight="bold" textFontStyle="italic" textWrapOption="noWrap" textColor="blue" textBackgroundColor="white" /> 04 </textStyling> 05 <layout> ... 06 <region xml:id="Title" top="5px" left="10%" width="80%" height="25px" textStyle="HeadlineStyle" /> 07 <region xml:id="Captions" top="215px" left="10%" width="80%" height="35px" textFontFamily="serif" textColor="orange" backgroundColor="blue"/> 08 <region xml:id="Slides" top="10px" left="5%" width="90%" height="200px" /> 09 </layout> 10 </head> 11 <body> ... 12 <par> 13 <smilText region="Title" textFontFamily="sansSerif" fill="freeze"> 14 Willemijn's 11th Birthday Party 15 </smilText> 16 <seq> 17 <par> 18 <img region="slides" src="p001.jpg" begin="1s" dur="9s"/> 19 <audio ... src="yip.mp3" begin="woof.tevEvent"/> 20 <smilText region="Captions" textAlign="start" dur="8s"> 21 Shortly <span textFontStyle="italic">before</span> dawn ... 22 <tev next="1.5s"/> 23 <div textAlign="center" textColor="green"> 24 just as the clock began 25 </div> 26 <br/> 27 to chime six times... 28 <tev begin="4s"/> 29 our trusty dog Gretchen 30 <tev xml:id="woof" begin="3s"/> 31 barked. 32 </smilText> 33 </par> ... 34 <par> 35 <img region="Slides" src="p128.jpg" dur="7s"/> 36 <text region="Captions" src="c128.html" dur="7s"/> 37 </par> 38 </seq> 39 <audio ... src="Commentary.mp3" /> 40 </par> 41 </body> 42 </smil>
In this example, one text style is defined (on line 03) and three layout regions are defined, one of which (on line 06) references a style definition with local overrides, and another of which (on line 07) uses mostly default style. In the body of the presentation, a parallel container is defined that contains a text title (on line 13); most of the styling attributes are defined on the region via the text style attribute. Later in the presentation, a sequence of images are defined that are each accompanied by one or more text captions. The text definition on line 13 illustrates that text, like images, has no inherit duration, but that by using the SMIL fill attribute, the content of the smilText element remains visible until the end of the parent time container (in this case, the par that is defined on line 12). The three smilText fragments that accompany the image defined on line 18 illustrate that the in-line text object may use the standard SMIL timing attributes, plus several new attributes to explicitly control text placement and styling. A tevEvent will be generated by a text fragment and used to control some other portion of the presentation, as is shown in line 30's triggering of the sound on line 19. Finally, the text element on line 36 illustrates that it is possible to mix in-line and external text in a single document.
None.
This section is normative.
This section defines the elements and attributes that make up the SMIL TextMotion Module. Languages implementing the elements and attributes in the TextMotion Module must implement all elements and attributes defined below, as well as those defined in the BasicText and TextStyling modules.
This section defines the elements and attributes that make up the functionality in the SMIL 3.0 TextMotion module.
This module does not define any new elements.
This module:
Values:
The default value for this attribute is given in the textMode definition in the TextStyling module.
The textMode will be applied to all text displayed in the region.
This section is informative.
Given the complexities of supporting text motion, it is expected that motion in all primary and secondary modes may not be available. At a minimum, motion should be supported with an effective text writing mode of lr-tb.
Values:
The initial value for this attribute is none.
This section is informative.
Given the complexities of supporting text motion and recalculating the intrinsic duration, only best-effort support for all textConceal modes can be expected.
Values:
Implementations may use simple algorithms to determine the rate of motion, either based on a fixed pixel movement value per update cycle or as a default value.
Looping behavior of crawling, scrolling or jumping text may be specified using standard SMIL repeat semantics on the smilText element.
This section is informative.
The text motion rendering behavior of within this module has been designed to be relatively simple to implement and stay consistent with other forms of scrollable/crawlable text. The following example illustrates the use of the attributes and attribute values defined in this section.
<smil ...> <head> ... <layout> ... <region xml:id="Contents" top="5px" left="10%" width="80%" height="300px" textMode="crawl" textRate="20px" /> </layout> </head> <body> ... <smilText xml:id="TS21" region="Contents" textAlign="right"> Willemijn's 11th Birthday Party <tev begin="5s"/> was held six weeks late. <tev next="5s"/> (Again!) </smilText> ... </body> </smil>
This example displays a crawling text string that is initially aligned at the right of the display. The text crawls across the screen in a direction that is opposite to the (in this case default) textWritingMode of left-to-right. Initially, only the first fragment is visible. After 5 seconds, the entire portion of the second fragment is made visible; note that a portion may be initially clipped from view. After another 5 seconds, the final fragment is added to the text display.
None.
This section is informative.
While smilText has been modelled as a functional subset of the "Distribution Format Exchange Profile" [DFXP] of W3C Timed Text, there are several differences between the languages. In this section, we review the components taken from DFXP, the components not taken from DFXP and the extensions defined that are not in DFXP.
The following elements and attributes have been taken from DFXP [DFXP] and are included in smilText. Note that relevant attribute names from DFXP are preceded with 'text' to avoid conflict with attributes used in SMIL layout.
Component | DFXP Name | smilText Name | Differences |
---|---|---|---|
Content | br div p span |
br div p span |
The br element is identical in use. The div and span elements may not be nested in smilText. The div, p and span elements may not contain timing markup in smilText. |
Styling elements | style styling |
textStyle textStyling |
These elements are declared in the document head. smilText allows styles to be associated with layout regions as default values. |
Styling attributes | textAlign backgroundColor color direction fontFamily fontSize fontWeight style wrapOption writingMode |
textAlign textBackgroundColor textColor textFontFamily textFontSize textFontWeight textStyle textWrapOption textWritingMode |
smilText limits the range of values permitted for some of these attributes. Several attributes are considered to be hints in smilText: these are textAlign, textDirection, textWrapOption, and textWritingMode. Renderers may supply implementation-dependent behavior for these attributes. |
The following elements and attributes are not included in smilText.
The following elements and attributes are included in smilText but are not directly available in DFXP [DFXP]:
This section is informative.
This section defines the use of SmilText as an external, stand-alone timed text format. This is accomplished by using the SMIL 3.0 SmilText profile. In the following sections, examples of the use of the SMIL 3.0 SmilText profile are provided. Full details of the profile are given in the SMIL 3.0 SmilText profile specification.
The SMIL 3.0 smilText profile provides a light-weight collection of SMIL elements and attributes that are specifically defined to allow the specification of an external smilText object. This profile allows an author to encode in-line smilText content in an external file with little modification. The profile does not define any new elements or attributes. The basic difference from the in-line specification of SmilText content is that the external content uses the smilText element as the top-level container element. The external smilText element is expanded with dimensioning and background color attributes that allow a simple smilText engine to effectively render the content. These attributes are defined in the following sections.
This attribute is functionally and syntactically equivalent to the dur attribute defined in the SMIL Timing Modules. When placed on the top-level smil element in the external file that also includes a baseProfile attribute with the value SmilText, the dur attribute defines the intrinsic value of the duration of the text object. The default value for this attribute is zero (0). A value of indefinite is allowed and specifies an object that does not have a self-scheduled end.
This attribute specifies the height of a rendering area for the SmilText content. It is functionally and syntactically equivalent to the height attribute defined in the SMIL Layout Modules, with the exception that percentage values are not supported in external SmilText profile files. The default value for this attribute is auto, which allows the (SMIL or other) rendering agent to determine the height of the rendering area based on definitions made in the rendering agent. When used with an external object that will be rendered by a SMIL processor, any value for this attribute in the external file will be overridden by the effective height value defined for the media element that references the external file.
This attribute specifies the width of a rendering area for the SmilText content. This attribute is functionally and syntactically equivalent to the width attribute defined in the SMIL Layout Modules, with the exception that percentage values are not supported in external SmilText profile files. The default value for this attribute is auto, which allows the (SMIL or other) rendering agent to determine the width of the rendering area based on definitions made in the rendering agent. When used with an external object that will be rendered by a SMIL processor, any value for this attribute in the external file will be overridden by the effective width value defined for the media element that references the external file.
This attribute is used to specify the background color of the rendering area containing the external SmilText content. This attribute is functionally and syntactically equivalent to the backgroundColor attribute defined in the SMIL Layout Modules. The default value for this attribute is transparent. When used with an external object that will be rendered by a SMIL processor, any value for this attribute in the external file will be overridden by the effective backgroundColor value defined for the media element that references the external file.
The SmilText profile may define other attributes that may be used on the top-level smil element, or specific SmilText modules that may be used within by the external SmilText context. These are not considered here.
The following example illustrates the use of SmilText as an external timed-text format. Assume that the following file is named externalText.smil:
<smilText xmlns="http://www.w3.org/ns/smil" height="40" width="60" dur="12s" backgroundColor="white" textAlign="right"> Willemijn's 11th Birthday Party <tev begin="5s"/> was held six weeks late. <tev next="5s"/> (Again!) </smilText>
This example displays text string that is aligned at the right of the 40x60 rendering extent. The background color of the rendering area is set to white. The intrinsic duration is set to 12 seconds. Note that the smilText element is used as a top-level content container for text. No head or element body need be specified. The SMIL version and baseProfile attributes are set to 3.0 and smilText by default. (The profile specification defines the rules for default content of all elements and attributes.)
Since the external smilText file does not have a layout section in the head, there is no requirement to use layout related attributes (such as region) on the smilText definition. Note that to enhance copy/paste transfer of smilText objects between internal and external files, the specification of any non-recognized attributes is ignored by the SmilText profile.
The following SMIL 3.0 fragment illustrates the use of an external SmilText definition within a SMIL file:
<smil ...> <head> ... <layout> ... <region xml:id="Contents" top="5px" left="10%" width="80%" height="300px" /> </layout> </head> <body> ... <textstream xml:id="ST99" region="Contents" src="externalText.smil" dur="25s"/> ... </body> </smil>
In this example, the effective values for height, width, backgroundColor and duration are taken from the embedding SMIL file rather than the external SmilText profile file.
This section is informative.
W3C publishes a set of internationalization and localization guidelines [ITS] that allow content to be easily localized and translated. The smilText modules provide a direct means of specify content, and the ITS facilities have been defined to apply to smilText, div, p and spanelements.
The following fragment illustrates an ITS rules file:
<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:s="http://www.w3.org/2008/SMIL30/" version="1.0"> <!-- Rule number 1 --> <its:translateRule selector="//s:*" translate="no"/> <!-- Rule number 2 --> <its:translateRule selector="//s:smilText | //s:div | //s:p | //s:span " translate="yes"/> <!-- Rule number 3 --> <its:withinTextRule selector="//s:span" withinText="yes"/> </its:rules>
The first two rules are used to separate translatable and non-translatable content. They can be read as: the default for elements is that they are not translatable (first <translateRule> element). The exceptions (translatable elements and attribute content) are handled by the second <translateRule> element, which takes precedence over the first one.
The third rule about "Elements within Text" describes that the <span> element appears in the flow of other elements, like <smilText>, <p> or <div>. The default for "Elements Within Text" is that elements are not nested.
For internationalization and localization purposes, a SMIL 3.0 file is associated to the ITS rules file indicated above.
This section is informative.
This version contains a redefinition of the attribute values for sourceLevel and destinationLevel; these now make use of the decibel notation also used for the soundLevel attribute in the Layout module. Further changes are limited to minor editorial improvements for SMIL-3.0.
The SMIL 3.0 specification had expected to integrate the general features of the HTML-5/XHTML-2 access and role attributes as an extension and replacement for the accessKey attribute, but a lack of consensus among the proposals from XHTML-2 and HTML-5 has caused us to postpone this integration to a future version of SMIL.
This section is informative.
The SMIL 3.0 Linking Modules define the SMIL 3.0 document attributes and elements for navigational hyperlinking. These are navigations through the SMIL presentation that may be triggered by user interaction or other triggering events, such as temporal events. SMIL 3.0 provides only for in-line link elements. Links are limited to uni-directional single-headed links (i.e. all links have exactly one source and one destination resource).The SMIL 3.0 Linking Modules are named LinkingAttributes, BasicLinking and ObjectLinking. The LinkingAttributes module includes a set of attributes used to provide SMIL linking semantics to linking elements. The BasicLinking module includes the SMIL 3.0 linking elements themselves. The ObjectLinking module includes additional optional linking features that a language profile may wish to include. Note that the BasicLinking module explicitly includes the attributes from the LinkingAttributes module on its elements.
This section is informative.
SMIL 3.0 Linking functionality is partitioned across the following 2 modules:
This section is informative.
XPointer [XPTR] allows components of XML documents to be addressed in terms of their placement in the XML structure rather than on their unique identifiers. This allows referencing of any portion of an XML document without having to modify that document. Without XPointer, pointing within a document may require adding unique identifiers to it, or inserting specific elements into the document, such as a named anchor in HTML. XPointers are put within the fragment identifier part of a URI [URI] attribute value. The SMIL 3.0 specification allows but does not require that user agents be able to process XPointers in SMIL 3.0 URI attribute values.
Where possible, SMIL linking constructs have the same names as constructs from XLink [XLINK]. This makes it easier to learn to write linking in code in both formats: authors familiar with XLink may more quickly learn SMIL linking, and vice versa. It also makes it easier for SMIL code to be processed into and recognized as XLink code when the appropriate transform mechanisms become available. However, the SMIL linking attributes are distinct from the XLink constructs and are part of a separate namespace. Using SMIL's modularization mechanism, these constructs are not in the XLink namespace but in the namespace defined in the SMIL 3.0 specification.
SMIL profiles may use XML Base [XMLBase]. The SMIL 3.0 Language Profile, for example, includes support for XML Base. When XML Base is incorporated into a profile, XML Base declarations apply to the URI attribute values of SMIL used in that profile's documents. These attributes include the href attribute of the SMIL BasicLinking Module and the src attribute of the SMIL BasicMedia Module.
The elements names, attributes names and attribute values of SMIL linking constructs are, where possible, the same as constructs in XHTML [XHTML11] with corresponding linking behavior. This facilitates learning and writing in both languages and avoids confusion. It may also facilitate the processibility of both languages' linking constructs as XLink once the format is released. The linking constructs in SMIL, however, fall under the namespace defined in SMIL 3.0, and not under any XHTML-related namespace.
This section is normative.
The SMIL 3.0 Linking Modules support name fragment identifiers and the '#' connector. The fragment part is an id value that identifies one of the elements within the referenced SMIL document. With this construct, SMIL 3.0 supports locators as currently used in HTML (that is, it uses locators of the form "http://www.example.org/some/path#anchor1"), with the difference that the values are of unique identifiers and not the values of "name" attributes. Of course, this type of link may only target elements that have an attribute of type ID.
Links using fragment identifiers enable authors to encode links to a SMIL 3.0 presentation at the start time of a particular element rather than at the beginning of its presentation. If a link containing a fragment part is followed, the presentation should start as if the user had fast-forwarded the presentation represented by the destination document to the effective begin of the element designated by the fragment. See the discussion of linking to timing constructs in the SMIL 3.0 Timing and Synchronization Modules for more information.
There are special semantics defined for following a link containing a fragment part into a document containing SMIL timing. These semantics are defined in the SMIL 3.0 Timing and Synchronization Modules.
Due to its integrating nature, the presentation of a SMIL 3.0 document may involve other (non-SMIL) applications or plug-ins. For example, a SMIL 3.0 user agent may use an HTML plug-in to display an embedded HTML page. Vice versa, an HTML user agent may use a SMIL plug-in to display a SMIL 3.0 document embedded in an HTML page. Note that this is only one of the supported methods of integrating SMIL 3.0 and HTML. Another alternative is to use the merged language approach. See the SMIL 3.0 Modules for further details.
In embedded presentations, links may be defined by documents at different levels and conflicts may arise. In this case, the link defined by the containing document should take precedence over the link defined by the embedded object. Note that since this might require communication between the user agent and the plug-in, SMIL 3.0 implementations may choose not to comply with this recommendation.
If a link is defined in an embedded SMIL 3.0 document, traversal of the link affects only the embedded SMIL 3.0 document.
If a link is defined in a non-SMIL document which is embedded in a SMIL 3.0 document, link traversal may only affect the presentation of the embedded document and not the presentation of the containing SMIL 3.0 document. This restriction may be relaxed in future versions of SMIL.
When a link into a SMIL 3.0 document contains an un-resolvable fragment identifier ("dangling link") because it identifies an element that is not actually part of the document, SMIL 3.0 software should ignore the fragment identifier, and start playback from the beginning of the document.
When a link into a SMIL 3.0 document contains a fragment identifier which identifies an element that is the content of a switch element, SMIL 3.0 software should interpret this link as going to the outermost ancestor switch element instead. In other words, the link should be considered as accessing the switch ancestor element that is not itself contained within a switch.
This section is normative.
The SMIL 3.0 LinkingAttribues module defines several attributes that a language profile may include on linking elements to add SMIL linking semantics to those elements. The elements in the BasicLinking Module explicitly include these attributes. These attributes may be applied to linking elements from other namespaces if allowed by the language profile.
The default value is play.
The default value of show is replace.
Each of the following attributes has the same syntax as the attributes of the same name in HTML [HTML4] and, where applicable, the same semantics:
This section is informative.
Examples
These examples are encoded in the SMIL 3.0 Language Profile.
Example 1
This examples shows the use of the target and accesskey attributes. The upper half of the display shows an image. If the user clicks on the image, a SMIL presentation is played in the lower half of the display. The same thing happens if the user hits the 'a' key.
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> <head> <layout> <region xml:id="source" height="50%"/> <region xml:id="destination" top ="50%"/> </layout> </head> <body> <a href="embeddedSMIL.smil" target="destination" accesskey="a"> <img region="source" src="source.jpg" dur="indefinite"/> </a> </body> </smil>
Example 2
This example shows the use of the tabindex attribute on media object elements. The HTML file "caption1.html" has 3 links, so the first 3 tabs focus on those links in turn. The file caption2.html has 4 links, so tabs 4-7 focus on them in turn. Tabs 8 and 9 focus the two links inside v1.mpg. Tab 10 focuses on the whole presentation of graph.imf. If any of the first 9 tabbed foci is activated, then a link inside one of the embedded presentations caption1.html, caption2.rtx or v1.mpg is triggered, affecting only that presentation. If the 10th tabbed focus is activated, then the SMIL presentation itself is affected, loading http://www.example.org/presentation into the same presentation space.
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <seq> <video src="http://www.example.org/graph.imf"/> <par> <a tabindex="4" href="http://www.example.org/presentation"> <video src="http://www.example.org/graph.imf" ... /> </a> <video tabindex="3" src="http://www.example.org/v1.mpg" ... /> <text tabindex="1" src="http://www.example.org/caption1.html" ... /> <text tabindex="2" src="http://www.example.org/caption2.html" ... /> </par> </seq>
This section is normative.
The link elements allows the description of navigational links between objects. SMIL 3.0 linking provides only uni-directional, single-headed, in-line link elements.
The functionality of the a element is very similar to the functionality of the a element in HTML [HTML4]. For synchronization purposes, the a element is transparent. That is, it does not influence the synchronization of its child elements. a elements may not be nested. An a element must have an href attribute.
An a element may specify several triggers for its traversal simultaneously. For example, the element's content visual media object may be selected by the user or the key specified by the accesskey attribute may be typed to trigger a traversal. In cases where multiple triggers are specified, any of them may activate the link's traversal. That is, a logical OR is applied to the list of triggering conditions to determine if traversal occurs.
Traversal occurs if one of the conditions for traversal is met during the time that the a element is active. An a element is sensitive if the media or elements that it contains are active or frozen. See the SMIL 3.0 Timing and Synchronization Modules for further details. For timing purposes an a element is considered to be discrete media, that is, the intrinsic duration is 0. Note that an a element is not a time container and does not constrain the timing of its child elements.
The a element also includes the attributes defined in the SMIL 3.0 LinkingAttributes Module:
Element Content
The content of the a element must be defined by the language profile. In general, it is expected that a elements may contain the media and timing elements present in the language profile as children.
Other Integration Requirements
Language profiles that apply SMIL 3.0 timing to the a element must specify the default and allowed values of the fill attribute on the a element. Languages applying SMIL 3.0 timing to the a element wishing to remain compatible with SMIL 1.0, such as the SMIL 3.0 language profile, must default the value of the fill attribute on the a element to auto, and should consider fixing the value to auto. In all other cases, for compatibility, it is recommended to use a default value of auto.
If not otherwise specified by the profile, the value of the fill attribute on the a element is fixed to auto.
This section is informative.
Examples
These examples are encoded in the SMIL 3.0 Language Profile.
Example 1
The link starts up the new presentation replacing the presentation that was playing.
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <a href="http://www.example.org/somewhereelse.smi"> <video src="rtsp://www.example.org/graph.imf" region="l_window"/> </a>
Example 2
The link starts up the new presentation in addition to the presentation that was playing.
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <a href="http://www.example.org/somewhereelse.smi" show="new"> <video src="rtsp://www.example.org/graph.imf" region="l_window"/> </a>
This could allow a SMIL 3.0 player to spawn off an HTML user agent:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <a href="http://www.example.org/somewebpage.html" show="new"> <video src="rtsp://www.example.org/graph.imf" region="l_window"/> </a>
Example 3
The link starts up the new presentation and pauses the presentation that was playing.
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <a href="http://www.example.org/somewhereelse.smi" show="new" sourcePlaystate="pause"> <video src="rtsp://www.example.org/graph.imf" region="l_window"/> </a>
Example 4
The following example contains a link from an element in one presentation A to the middle of another presentation B. This would play presentation B starting from the effective begin of the element with id "next".
Presentation A: <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <a href="http://www.example.org/presentationB#next"> <video src="rtsp://www.example.org/graph.imf"/> </a> Presentation B (http://www.example.org/presentation): <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <seq> <video src="rtsp://www.example.org/graph.imf"/> <par> <video src="rtsp://www.example.org/timbl.rm" region="l_window"/> <video xml:id="next" src="rtsp://www.example.org/v1.rm" region="r_window"/> ^^^^^^^^^ <text src="rtsp://www.example.org/caption1.html" region="l_2_title"/> <text src="rtsp://www.example.org/caption2.rtx" region="r_2_title"/> </par> </seq>
The functionality of the a element is restricted in that it only allows associating a link with a complete media object. The HTML area element [HTML4] has demonstrated that it is useful to associate links with spatial portions of an object's visual display.
The semantics of the area element in SMIL 3.0 is the same as it is for HTML in that it may specify that a spatial portion of a visual media object may be selected to trigger the appearance of the link's destination. The coords attribute specifies this spatial portion. In contrast, if an a element is applied to a visual media object, then it specifies that any visual portion of that object may be selected to trigger the link traversal.
The area element also extends the syntax and semantics of the HTML area element by providing for linking from non-spatial portions of the media object's display. When used in profiles that include SMIL 3.0 Timing and Synchronization Modules, the area element allows breaking up an object into temporal subparts, using attributes such as the begin and end attributes. The values of the begin and end attributes are relative to the beginning of the containing media object. The area element may allow to make a subpart of the media object the destination of a link, using these timing attributes and the id attribute.
The anchor element of SMIL 1.0 [SMIL10] is deprecated in favor of area. For purposes of this specification of SMIL 3.0, the anchor element should be treated as a synonym for area
The area element may have the attributes listed below, with the same syntax as in HTML [HTML4] and, where applicable, the same semantics:
The following attributes of the area element are unique to SMIL and not found in HTML. They are defined above in the section on LinkingAttributes module attributes:
Element Content
The area element is empty.
This section is informative.
Examples
These examples are encoded in the SMIL 3.0 Language Profile.
1) Decomposing a video into temporal segments
In the following example, the temporal structure of an interview in a newscast (camera shot on interviewer asking a question followed by shot on interviewed person answering) is exposed by fragmentation:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> <body> <video src="video" title="Interview" > <area xml:id="firstQ" begin="0s" dur="20s" title="first question" alt="subclip of 20 seconds of video for first question" /> <area xml:id="firstA" begin="firstQ.end" dur="50s" title="first answer" alt=" subclip of 50 seconds of video for first answer" /> </video> </body> </smil>
2) Associating links with spatial segments In the following example, the screen space taken up by a video clip is split into two sections. A different link is associated with each of these sections.
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> <body> <video src="video" title="Interview" > <area shape="rect" coords="5,5,50,50" title="Journalist" alt="rectangle cropping of video for journalist" href="http://www.example.org/journalist"/> <area shape="rect" coords="60,5,100,50" title="Subject" alt="rectangle cropping of video for subject" href="http://www.example.org/subject"/> </video> </body> </smil>
3) Associating links with temporal segments
In the following example, the duration of a video clip is split into two sub-intervals. A different link is associated with each of these sub-intervals.
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> <body> <video src="video" title="Interview" > <area begin="0s" dur="20s" title="first question" href="http://www.example.org/question" ... /> <area begin="20s" dur="50s" title="first answer" href="http://www.example.org/answer" ... /> </video> </body> </smil>
4) Associating links with spatial subparts
In the following example, two areas are assigned in the screen space taken up by a video clip. A different link is associated with each of these areas.
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <video src="http://www.example.org/CoolStuff"> <area href="http://www.example.org/AudioVideo" coords="0%,0%,50%,50%" ... /> <area href="http://www.example.org/Style" coords="50%,50%,100%,100%" ... /> </video>
5) Associating links with temporal subparts
In the following example, the duration of a video clip is split into two subintervals. A different link is associated with each of these subintervals.
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <video src="http://www.example.org/CoolStuff"> <area href="http://www.example.org/AudioVideo" begin="0s" end="5s" ... /> <area href="http://www.example.org/Style" begin="5s" end="10s" .../> </video>
6) Jumping to a subpart of an object
The following example contains a link from an element in one presentation A to the middle of a video object contained in another presentation B. This would play presentation B starting from second 5 in the video. That is, the presentation would start as if the user had fast-forwarded the whole presentation to the point at which the designated fragment in the "CoolStuff" video begins.
Presentation A: <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <a href="http://www.example.org/mm/presentationB#tim"> <video xml:id="graph" src="rtsp://www.example.org/graph.imf" region="l_window"/> </a> Presentation B: <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <video src="http://www.example.org/CoolStuff"> <area xml:id="joe" begin="0s" end="5s" ... /> <area xml:id="tim" begin="5s" end="10s" ... /> </video>
7) Combining different uses of links
The following example shows how the different uses of associated links may be used in combination.
Presentation A: <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <a href="http://www.example.org/mm/presentationB#tim"> <video xml:id="graph" src="rtsp://www.example.org/graph.imf" region="l_window"/> </a> Presentation B: <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <video src="http://www.example.org/CoolStuff"> <area xml:id="joe" begin="0s" end="5s" coords="0%,0%,50%,50%" href="http://www.example.org/" ... /> <area xml:id="tim" begin="5s" end="10s" coords="0%,0%,50%,50%" href="http://www.example.org/Tim" ... /> </video>
8) The coords attribute and re-sized images
The following example shows the image file "example.jpg", which has the dimensions of 100x100 pixels. The active area for "example1.smil" is the entire display space, which is the cropped upper-left quarter of the original image. The active area for "example2.smil" may not be triggered because the image area corresponding to it was cropped.
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> <head> <layout> <region xml:id="region" right="50" bottom="50"/> </layout> </head> <body> <img src="example.jpg" region="region"> <area shape="rect" coords="0%,0%,50%,50%" href="example1.smil" ... /> <area shape="rect" coords="50%,50%,100%,100%" href="example2.smil" ... /> </img> </body </smil>
This section is normative.
The contents of this section represent capabilities that may be optionally included in the document profile. These features may or may not be included in a language profile, but they should not be optional features within a profile. This module requires support of the BasicLinking Module.
A profile may choose to include the fragment attribute as part of the area element. It provides for a host document to externally include a link in a contained media object that will be processed at the level of the host document.
The value of the fragment attribute must be recognizable by the process managing the media object as an activate-able portion of the object. If the referenced media object is an HTML file, then the value of the fragment attribute is a named anchor within the HTML file. If the referenced media object is an XML file, then the value of the fragment attribute is a fragment identifier (the part that comes after a '#' in a URI [URI]).
This section is informative.
Take for example the following SMIL code. It establishes a portion of the display as a formatted text menu. Clicking on an item in this menu triggers a link to elsewhere within the presentation.
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... <ref src="menu.html" region="menubar"> <area fragment="menuitem1" href="#selection1"/> </ref>
In the rendered HTML display, there is a portion of displayed text that is marked-up as an area with the name "menuitem1". If the user clicks on this during the SMIL presentation, a SMIL-activated link is triggered, navigating to the portion of the SMIL document with the ID "selection1". If the HTML area named "menuitem1" has an href attribute itself, then this hyperlink is overridden - only the SMIL hyperlink is processed. HTML area with href attributes and no associated SMIL fragment attributes are not overridden. This HTML area activates links within the embedded HTML presentation when clicked upon.
Use of the fragment attribute may override linking in the embedded media. If the attribute refers to a portion of the embedded media that is a link within that media, activating that link will trigger navigation in the SMIL presentation only, and not in the embedded presentation. For example, suppose a fragment attribute refers to a named anchor in an embedded HTML document. This named area has an href attribute, making it the starting point of a potential navigation within the HTML presentation itself. When embedded in the SMIL presentation, activation of this part of the HTML display triggers the SMIL link and not the HTML link. Links in embedded media that are not overridden in this manner, on the other hand, continue to trigger navigation within the embedded display when activated. All functionality defined for the SMIL link will override any equivalent functionality defined for the link in the embedded media. With the above example, the alt attribute of the SMIL area element would override the alt tag of the embedded HTML anchor.
The referencing performed by the fragment attribute only applies to one level of depth of embedded media. It only applies to directly embedded media; it does not apply to media embedded in turn within media embedded in a SMIL presentation. For example, consider a SMIL presentation that embeds a second SMIL presentation within it. The media object element of the first that embeds the second has within it an area element with a fragment attribute. The value of this attribute applies only to the embedded SMIL document itself. It does not apply to any media embedded within this second SMIL presentation.
This section is informative.
Examples
These examples are encoded in the SMIL 3.0 Language Profile.
Associating links with syntactic subparts
Below is an example with an integrated HTML file that displays a menu of
link one link two
The user may click on one of the menu items, and the matching HTML file is displayed. That is, if user clicks on "link one", the "Link1.html" file is displayed in the "LinkText" region. Note that the links defined inside the embedded HTML presentation, those to "overridden1.html" and "overridden2.html" are not active when embedded here because they are overridden by the fragments.
The "menu.html" file contains the code:
<html> ... <A NAME="link1" HREF="overridden1.html">link one</A><BR/> <A NAME="link2" HREF="overridden2.html">link two</A>
The SMIL 3.0 file is:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> <head> <layout> <region xml:id="HTML" width="100" height="100"/> <region xml:id="LinkText" width="100" top ="100"/> </layout> </head> <body> <par> <text region="HTML" src="menu.html" dur="indefinite"> <area fragment="link1" href="#LinkOne"/> <area fragment="link2" href="#LinkTwo"/> </text> <excl dur="indefinite" > <text xml:id="LinkOne" region="LinkText" src="Link1.html" dur="indefinite"/> <text xml:id="LinkTwo" region="LinkText" src="Link2.html" dur="indefinite"/> </excl> </par> </body> </smil>
This section is informative.
There are three sets of changes to this module. First, the SMIL 3.0 specification now allows metainformation to be placed on elements within the body instead of being restricted to the head element. This may make it easier to provide information on semantic intent within a SMIL presentation by making the binding of that information with the relevant nodes more local. Second, the text in this section makes it clear that several different types of metainformation encodings may be used within a single presentation. Third, the label attribute has been added to the Metainformation module so that extended content information can be provided for document components.
This section is normative.
This section defines the SMIL 3.0 Metainformation Module. The SMIL metainformation facilities are composed of a module containing elements and attributes that allow description of metadata annotation of presentation creation information and presentation semantic intent to be added to SMIL documents. Since these elements and attributes are defined in a module, designers of other markup languages may choose whether or not to include this functionality in their languages.
This section is informative.
The SMIL 1.0 specification allowed authors to describe documents with a very basic vocabulary using the element. This was extended in the SMIL 2.0 specification with the introduction of the element. The element introduced the capability for describing metadata using the Resource Description Framework Model and Syntax [RDFsyntax]. In SMIL 3.0, the element's description is expanded to allow multiple metainformation encodings to be used within a single presentation. Note that the profile integrating these modules will ultimately determine which metainformation formalisms will be required to be supported by user agents for that profile.
Both the and elements were originally intended to be used in the head section of a SMIL document. While this was useful for general information about a document (such as when, where, and by whom it was created), this was deemed to be less appropriate for more semantic information about the intended use of individual media objects or structural elements of the presentation. For this reason, the descriptions and examples for the metadata element now explicitly cite the ability of including metainformation descriptions within the body section of the presentation as well. As with multiple metainformation formats, it is the profile integrating these modules that will ultimately determine which elements may have metainformation as child elements.
SMIL 3.0 also extends the capabilities presented for describing the nature of a content fragment within a document by introducing the label attribute. This attribute specifies a URI to a SMIL document that provides additional information in an accessible manner on the related element.
Unless specified otherwise by a profile, a SMIL user agent is not required to process or otherwise interpret specific metainformation strings. In all cases, metainformation may be considered to be optional information in a presentation.
This section is normative.
This section defines the elements and attributes that make up the functionality in the SMIL Metainformation module.
The SMIL 3.0 Metainformation module defines two elements and one attribute that provide basic support for metainformation markup within a SMIL presentation.
The elements defined in this module are:
The attribute defined in this module is:
The element specifies a single property/value pair in its name and content attributes, respectively. Multiple property/value pairs must be described in multiple instances of the element.
The meta element defines the following attributes:
This section is informative.
Note: the base property has been deprecated in favor of the more general XML base URL mechanism described in [XMLBase]. The language profile including the SMIL 3.0 metainformation module will determine if the base property will be supported by that profile.The element is an empty element.
The element contains information that is also related to metainformation of the document or document components. The element allows metainformation to be defined using a wide range of metainformation structuring languages. In many cases, it will act as the root element of an RDF tree, but it may also act as the root of other application-domain-specific metainformation structuring languages. The contents of the element are not processed within the context of a SMIL presentation, although different user agents may use the information within the element to support functionality such as searching or content labelling.
The metadata element does not define any new attributes.
When used with RDF, the element is expected to contain an RDF element and its sub-elements [RDFsyntax].
When used with other metainformation structuring languages, the element is expected to contain a metainformation description based on the structure and vocabulary of that language.
The label attribute specifies the name of a SMIL presentation that may be referenced by the user agent to provide additional information on the element to which this attribute is attached. A SMIL file is used as the target because this can provide a richer description of an element than a single text string or audio fragment. In this way, a richer mechanism is providing information on the intent of the relevant element than is available with other metadata facilities.
This section is informative.
To insure backward compatibility with SMIL 1.0, the element as specified in the SMIL 1.0 [SMIL10] Recommendation may be used to define properties of a document (e.g., author/creator, expiration date, a list of keywords, etc.) and assign values to those properties. SMIL does not define which document properties must be used and it does not define a vocabulary of values for these properties. Use of properties defined in the [DC] is recommended.
SMIL 2.1 extended SMIL 1.0 metainformation functionalities with the new element to host RDF statements. RDF is a declarative language and provides a W3C-recommended way for using XML to represent metadata in the form of statements about properties and relationships of items on the Web. Such items, known as resources, can be almost anything, provided they have a Web address. This means that you may associate metadata information with a SMIL document, but also a graphic, an audio file, a movie clip, or a structural sub-portion of a SMIL document. The specifications for RDF can be found at:
SMIL 3.0 maintains the use of both the and elements. New to SMIL 3.0 is the explicit possibility to allow the element to appear within the body section of a SMIL document. This allows the semantic intent of a portion of a SMIL document to be described in a manner that is local to the media objects (or SMIL structure) being described. Note that it is ultimately up to the designer of the relevant SMIL 3.0 profile to determine where the element may appear in a SMIL document -- this Module simply highlights the possibility for including such information outside of the head section.
This section is informative.
This section contains five examples of the use of metainformation in a SMIL presentation.
The first example uses the Dublin Core version 1.0 RDF schema [DC] and a set of RDF descriptions, all contained in the document head section. The XML base attribute is used with the host-level language description to define the base address of relative URI references in the document.
<?xml version="1.1" ?> <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language" xml:base="http://example.org/metaInf/assets/" > <head> <meta xml:id="meta-smil1.0-a" name="Publisher" content="W3C" /> <meta xml:id="meta-smil1.0-b" name="Date" content="2007-01-03" /> <meta xml:id="meta-smil1.0-c" name="Rights" content="Copyright 2007 John Smith" /> <meta xml:id="meta-smil1.0-d" http-equiv="Expires" content="16 Apr 2051 12:00:00 UTC"/> <metadata xml:id="meta-rdf"> <rdf:RDF xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs = "http://www.w3.org/2000/01/rdf-schema#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns:smilmetadata = "http://www.example.org/AudioVideo/.../smil-ns#" > <!-- Metadata about the SMIL presentation --> <rdf:Description rdf:about="http://www.example.com/meta.smil"> ... </rdf:Description> <!-- Metadata about the video --> <rdf:Description rdf:about="http://www.example.com/videos/meta-1999.mpg"> ... </rdf:Description> <!-- Metadata about a scene of the video --> <rdf:Description rdf:about="#scene1" > ... </rdf:Description> </rdf:RDF> </metadata> <layout> <region xml:id="a" top="5" /> </layout> </head> <body> <video region="a" src="/videos/meta-1999.mpg" > <area xml:id="scene1" begin="0s" end ="30s"/> <area xml:id="scene2" begin="30s" end ="60s"/> </video> <video region="a" src="/videos/meta2-1999.mpg"/> </body> </smil>
The second example is similar to the first, except that references on individual media elements are placed within the document definition instead of the head element.
<?xml version="1.1" ?> <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language" xml:base="http://example.org/metaInf/assets/" > <head> <meta xml:id="meta-smil1.0-a" name="Publisher" content="W3C" /> <meta xml:id="meta-smil1.0-b" name="Date" content="2007-01-03" /> <meta xml:id="meta-smil1.0-c" name="Rights" content="Copyright 2007 John Smith" /> <meta xml:id="meta-smil1.0-d" http-equiv="Expires" content="16 Apr 2051 12:00:00 UTC"/> <metadata xml:id="meta-rdf"> <rdf:RDF xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs = "http://www.w3.org/2000/01/rdf-schema#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns:smilmetadata = "http://www.example.org/AudioVideo/.../smil-ns#" > <!-- Metadata about the SMIL presentation --> <rdf:Description rdf:about="http://www.example.com/meta.smil"> ... </rdf:Description> </rdf:RDF> </metadata> <layout> <region xml:id="a" top="5" /> </layout> </head> <body> <video xml:id="v1" region="a" src="/videos/meta-2006.mpg" > <metadata xml:id="meta-rdf"> <rdf:RDF xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs = "http://www.w3.org/2000/01/rdf-schema#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns:smilmetadata = "http://www.example.org/AudioVideo/.../smil-ns#" > <!-- Metadata about the video --> <rdf:Description rdf:about="http://www.example.com/videos/meta-1999.mpg" > ... </rdf:Description> </rdf:RDF> </metadata> <area xml:id="scene1" begin="0s" end ="30s"> <metadata xml:id="meta-rdf"> <rdf:RDF xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs = "http://www.w3.org/2000/01/rdf-schema#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns:smilmetadata = "http://www.example.org/AudioVideo/.../smil-ns#" > <!-- Metadata about a scene of the video --> <rdf:Description rdf:about="#scene1" > ... </rdf:Description> </rdf:RDF> </metadata> </area> <area xml:id="scene2" begin="30s" end ="60s"/> </video> <video region="a" src="/videos/meta2-2007.mpg"/> </body> </smil>
In this example, separate metainformation blocks have been defined for the presentation, the video element 'v1' and each of the scenes of the video. Although RDF has been used for all of these objects, other formalisms (such as MPEG-7 or TV-Anytime) may also be used.
The third example shows the use of the label attribute as a pointer to a separate SMIL presentation. It can therefore be referred using a simple URI with no XPointer or ID fragment.
<?xml version="1.1" ?> <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language" xml:base="http://example.org/metaInf/assets/" > ... <body> <!–– This part of the presentation is a chapter ––> <seq label="chapterlabel.smil"> <par> <text src="example.html#fragment_one"/> <audio src="audio_document.mp3" clipBegin="0.00s" clipEnd="5.00s"/> </par> ... </seq> </body> </smil>
The label is in a separate file (chapterlabel.smil):
<?xml version="1.1" ?> <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language" xml:base="http://example.org/metaInf/assets/" > ... <body> <!––the label itself, as text and audio––> <par> <text>Chapter</text> <audio src="chapter.mp3"/> </par> </body> </smil>The fourth example shows a presentation with two content control options, to be set by the user. Both labels used here are found in the same external SMIL file, wrapped in an excl container (so that only one is played at a time). The referencing URI specifies which label is required.
... <head> <customAttributes> <!–– the option to play page numbers ––> <customTest xml:id="pagenumbersOn" defaultState="false" override="visible" label="labels.smil#pagenumbers"/> <!–– the option to play footnotes ––> <customTest xml:id="footnotesOn" defaultState="true" override="visible" label="labels.smil#footnotes"/> </customAttributes> </head> ...
The following SMIL file (labels.smil) contains both labels used in example four:
<?xml version="1.1" ?> <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language" xml:base="http://example.org/metaInf/assets/" > ... <body> <excl> <par xml:id="footnotes"> <text>Footnotes</text> <audio src="footnotes.mp3" clipBegin="0.00s" clipEnd="1.54s"/> </par> <par xml:id="pagenumbers"> <!–– the label's textual content may reference inline or external text ––> <text src="labeltext.xml#pagenum"/> <audio src="pagenumbers.mp3"/> </par> </excl> </body> </smil>
The fifth example illustrates how SMIL meta content can be included within the body of a presentation by including it as content of the metadata element.
<?xml version="1.1" ?> <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language" xml:base="http://example.org/metaInf/assets/" > <head> <meta xml:id="meta-smil1.0-a" name="Publisher" content="W3C" /> <meta xml:id="meta-smil1.0-b" name="Date" content="2007-01-03" /> <meta xml:id="meta-smil1.0-c" name="Rights" content="Copyright 2007 John Smith" /> <meta xml:id="meta-smil1.0-d" http-equiv="Expires" content="16 Apr 2051 12:00:00 UTC"/> <layout> <region xml:id="a" top="5" /> </layout> </head> <body> <video xml:id="v1" region="a" src="/videos/meta-2007.mpg" > <metadata xml:id="meta-rdf"> <meta name="Studio" content="AmstelProductions" /> <meta name="Director" content="Willem.van.Oranje" /> <meta name="Rights" content="OpenSourceVideo-v1a" /> </metadata> </video> </body> </smil>
The collection of elements that allow the element as a child is determined by the SMIL language profile integrating this module.
This section is informative.
The SMIL 3.0 specification leaves the SMIL 2.1 Transition Effects Module [SMIL21-transition] mostly unchanged. The only changes are that several typos and some examples have been corrected and some clarifications were added.
This section is informative.
In most public descriptions of SMIL, the language is described as "allowing authors to bring TV-like content to the Web." One aspect of presentations commonly seen on television are transitions such as fades and wipes. The purpose of this section is to specify the semantics and syntax for describing transitions within SMIL and other XML-based documents. Also, this specification describes a taxonomy of transitions based on SMPTE 258M-1993 [SMPTE-EDL] as well as a compact set of parameters which be used to express this set of transitions.
Consider a simple still image slideshow of four images, each displayed for 5 seconds. Using SMIL Timing, this slideshow might look like the following:
... <seq> <img src="butterfly.jpg" dur="5s" ... /> <img src="eagle.jpg" dur="5s" ... /> <img src="wolf.jpg" dur="5s" ... /> <img src="seal.jpg" dur="5s" ... /> </seq> ...
Currently when this presentation plays, we see a straight "cut" from one image to another, as shown in this animated image. However, what we would like to see are three left-to-right wipes in between the four images: in between butterfly.jpg and eagle.jpg at 5 seconds, in between eagle.jpg and wolf.jpg at 10 seconds, and in between wolf.jpg and seal.jpg at 15 seconds. This is illustrated by this animated image. The purpose of this document is to define the syntax and semantics of specifying transitions such as these in XML-based documents.
Although the transitions described in this document are visual transitions, the concepts apply to audio transitions as well by focusing on the overlap of the audio media in time rather than overlap in the layout. However, this document does not define any audio transition effects or specifically address how audio transitions should behave.
This section is normative.
SMIL 3.0 Transition functionality is partitioned across the following 4 modules:
This section is informative.
Transitions are modeled as animated filter behaviors. When a transition module is included in a language profile, all elements with renderable content implicitly have the transition filter behavior added to them. By default the behavior has no effect, but attributes and elements are provided to specify and control the effect of the transition behavior on the renderable content. Renderable content is declared in the SMIL Media Object Modules using media elements. Other languages, such as HTML, provide additional elements such as the span and div for rendering. In this document the terms "media element" and "media object" include all "renderable content", defined by the host language.
The transition filter behavior uses the background as one input. In this context, the background is whatever is currently present in the layout where the transition will be applied. Therefore, the background might include actively changing media, frozen media, or solid background colors. It also takes as input the media object to which the transition will be applied. The media object may be used as either the source or the destination input, with the background supplying the other input. The media object also defines the area in which the transition will occur. Certain transitions, such as fade-in from a solid color, will only take one input - the media object to which the transition is applied.
In case a SMIL language profile supports FullScreenTransitions module the area to which the transition applies may be different and, hence, the effect perceived by the viewer is of multiple media items transitioning. However, all timing rules and other rules for applying transitions still treat the transition exactly the same as when applying it to a single media item.
A free parameter common to all transition filter behaviors is the progress through the simple duration of the transition effect, which is abstractly considered to be the progress through the filter effect. We establish the convention that progress is a real number in the range 0.0-1.0, where a progress of 0.0 implies that the output of the filter is completely the background and where a progress of 1.0 implies the output of the filter is completely the destination media. Values in between result in an application of the transition filter behavior that combines the background and destination media in some manner. All other parameters of the transition are assumed to be part of the filter effect itself. Progress is the only parameter which is animated. Other parameters are used to specify the filter effect, but are not animated.
The distinction between animating only the progress of the filter versus animating one or more properties of the media is illustrated by the following. In the left-to-right wipe in the Introductory example, we could either think of this transition as:
This may seem to be a very minor distinction for a left-to-right wipe, but then think of the corresponding distinction for a cross-fade. We could think of a cross-fade transition as:
In some cases, it may seem convenient to think of animating a particular property unique to each type of transition. However, that model does not generalize well across the broad variety of transitions currently in use today. Therefore, in order to maintain simplicity of this model, we think of both the left-to-right wipe and the cross-fade as "black boxes" which both take the same inputs - the background, destination media, and the progress value.
XML elements and attributes are provided to control the properties of the transition. However, the transitions themselves are not a property of the attribute or elements used to control the transition behavior. In the model, the transitions are a behavioral property of the media element itself.
Transitions are hints to the presentation. Implementations must be able to ignore transitions if they so desire and still play the media of the presentation. This is equivalent to saying that the transition filter behavior does not execute, or has no effect. Transitions do not alter the active duration of the media elements that are involved in the transition. The transition behaviors operate within the active duration of their respective media elements. The behavior of multiple simultaneous transitions active on an element at a time is undefined.
We will introduce two methods of specifying transitions:
This section is normative.
We will classify transitions according to a two-level taxonomy of types and subtypes. Each of the transition types describe a group of transitions which are closely related. Within that type, each of the individual transitions are assigned a subtype which emphasizes the distinguishing characteristic of that transition. Usually, that distinguishing characteristic has something to do with the origin or direction of the geometric pattern of that transition. For instance, one of the transition types is called "barWipe" and represents SMPTE Wipe Codes 1 and 2. SMPTE Wipe Code 1 is a wipe consisting of a vertical bar moving left to right. SMPTE Wipe Code 2 is a horizontal bar moving top to bottom. Therefore, the subtype for SMPTE Wipe Code 1 is called "leftToRight" and the subtype for SMPTE Wipe Code 2 is called "topToBottom".
Since the table of transition types and subtypes is quite extensive, we will not present the exhaustive list here. For the complete list of the predefined transition types and subtypes, as well as their mapping to SMPTE Wipe Codes, see the Appendix. Note that the mapping to SMPTE Wipe Codes are provided for reference only.
For each of the types, one of the subtypes is labeled as the "default" subtype in the Appendix. If this transition class is not available or not implemented by the user agent, then the user agent should fall back on the default subtype for that transition family. This allows authors to specify a type for a transition class without requiring that they specify a subtype for the transition class. For more detail on parsing rules and fallback semantics, see the Transition Parsing Rules section.
Implementations are required to implement the default subtype for each of the following transition types.
Transition type | Default Transition subtype | SMPTE Wipe Code |
barWipe | leftToRight | 1 |
irisWipe | rectangle | 101 |
clockWipe | clockwiseTwelve | 201 |
snakeWipe | topLeftHorizontal | 301 |
Implementation of the rest of the transition types and subtypes listed in the Appendix is encouraged, but not required due to the large number of transitions.
This section is normative.
Now that a taxonomy of transition types and subtypes is defined, we now discuss a "style-like" shorthand syntax for transitions. This shorthand syntax requires specification of the following:
The transition element defines a single transition class. This element may appear in different places in the document, depending upon the language profile. However in most cases, the transition element will be allowed only in the head of the document. For clarity, a grouping "container" element (such as the layout element in SMIL) may be desired in order to group all of the transition elements together. Since there may be multiple transition classes used in a document, then there may be multiple transition elements in the head of the document.
Element attributes
Element content
The transition element may have the param element as a child.
This section is informative.
For example, suppose we wanted to define two transition classes: a simple 2-second fade-to-black and a 5-second keyhole-shaped iris wipe. These transition classes may be expressed as:
... <transition xml:id="ftb2" type="fade" subtype="fadeToColor" dur="2s" fadeColor="#000000" /> <transition xml:id="star5" type="starWipe" subtype="fivePoint" dur="5s" /> ...
This section is normative.
The set of parameters discussed above are adequate for expressing all the transitions defined in this document. However, an implementation may choose to extend the set of transitions and define their own transition types and subtypes. Some of these new transition classes may need parameters which are not covered by the current set of attributes listed above. The purpose of the param element is to provide a generic means of supplying parameters to these extended transition types and subtypes.
The transition element may take the param element, defined in the SMIL MediaParam Module, as a child element. This element may be included from HTML or from some other module, depending upon the profile of the host language.
This section is informative.
For instance, suppose an implementation decided to create a new transition type called "superCool" and a subtype called "fire". This new transition needs a parameter called "flameLength". The example below shows how this implementation could use the param element to provide a value for "flameLength".
<transition xml:id="myfire" type="superCool" subtype="fire"> <param name="flameLength" value="20" /> </transition>
Note that the meaning of the additional parameters provided to the transition element depends upon the implementation of the specific transition.
This section is normative.
Once a transition class has been defined in the head of a document, then a transition instance may be created by applying the transition class to the active duration of a media object element or other element with "renderable content". We do this by specifying a transIn or transOut attribute on the media object element. Transitions specified with a transIn attribute will begin at the beginning of the media element's active duration. Transitions specified with a transOut attribute will end at the end of the media element's active duration or end at the end of the element's fill state if a non-default fill value is applied.
The transIn and transOut attributes are added to all media object elements listed in the SMIL Media Object Module. The default value of both attributes is an empty string, which indicates that no transition should be performed.
The value of these attributes is a semicolon-separated list of transition id's. Each of the id's should correspond to the value of the XML identifier of one of the transition elements previously defined in the document. The purpose of the semicolon-separated list is to allow authors to specify a set of fallback transitions if the preferred transition is not available. The first transition in the list should be performed if the user-agent has implemented this transition. If this transition is not available, then the second transition in the list should be performed, and so on. If the value of the transIn or transOut attribute does not correspond to the value of the XML identifier of any one of the transition elements previously defined, then this is an error. In the case of this error, the value of the attribute should be considered to be the empty string and therefore no transition should be performed. For more detailed parsing rules, see the Transition Parsing Rules section.
This section is informative.
However, the visual effect may appear to be applying this transition in the middle of an element's active duration. Consider the following example:
... <par> <img src="butterfly.jpg" dur="10s" /> <img src="eagle.jpg" begin="3s" dur="4s" /> </par> ...
Assuming that eagle.jpg is z-ordered on top of butterfly.jpg, then transitions applied to both the beginning and end of eagle.jpg would have the visual appearance of being applied during the active duration of butterfly.jpg. However, from the authoring perspective, they are still applied at the beginning and end of eagle.jpg.
... <seq> <img src="butterfly.jpg" dur="5s" ... /> <img src="eagle.jpg" dur="5s" ... /> </seq> ...
For instance, in the following presentation the fill behavior of the image element is "freeze", which keeps the image frozen until its parent ends. The parent ends when all of its children end, which is the end of the video at 30 seconds. In order to end at the end of the frozen duration (30 seconds) the fade-to-black transition begins at 29 seconds. Therefore both elements fade to black together at 29 seconds.
... <transition xml:id="toblack1s" type="fade" subtype="fadeToColor" fadeColor="#000000" dur="1s"/> ... <par> <img ... dur="10s" transOut="toblack1s" fill="freeze"/> <video ... dur="30s" transOut="toblack1s"/> </par>
However, in the following example the fill behavior of the image element is "remove". Therefore, the transition ends at the end of the active duration of the element. The image element fades to black starting at 9 seconds and the video element fades to black starting at 29 seconds.
... <transition xml:id="toblack1s" type="fade" subtype="fadeToColor" fadeColor="#000000" dur="1s"/> ... <par> <img ... dur="10s" transOut="toblack1s" fill="remove"/> <video ... dur="30s" transOut="toblack1s"/> </par>
In the following example the active durations do not overlap but the fill="transition" freezes the last frame of the first video. The result is a crossfade between the last frame of foo1.mpg and active frames of foo2.mpg.
... <seq> <video src="foo1.mpg" fill="transition"... /> <video src="foo2.mpg" transIn="xfade1s" ... /> </seq> ...
In the following presentation, however, the crossfades both at the beginning and end of foo2.mpg are between active frames of both foo1.mpg and foo2.mpg since their active durations overlap. The example assumes the videos are at different z-orders.
... <transition xml:id="xfade" type="fade" subtype="crossfade" dur="1s" /> ... <par> <video src="foo1.mpg" dur="30s" /> <video src="foo2.mpg" begin="10s" dur="10s" transIn="xfade" transOut="xfade" /> </par> ...
... <transition xml:id="awipe" type="barWipe" dur="1s" ... /> ... <par> <img src="img1.jpg" dur="2s" transOut="awipe" .../> <img src="img2.jpg" begin="5s" dur="2s" .../> </par> ...
For instance, in the following example, the "barWipe" in transition will take precedence over the "fadeToColor" out transition. The in transition will fully take place for the first 2 seconds of img1.jpg, and the out transition is ignored and no out transition is performed.
... <transition xml:id="awipe" type="barWipe" dur="2s" ... /> <transition xml:id="toblack" type="fadeToColor dur="2s" ... /> ... <img src="img1.jpg" dur="3s" transIn="awipe" transOut="toblack" .../> ...
Consider the following example. The img2.jpg has a simple duration of 5 seconds, but an active duration of 15 seconds, since it plays a total of three times. However, the in transition only plays once at the beginning of the active duration of img2.jpg, which is at 5 seconds into the active duration of the sequence time container. The out transition also plays only once, starting at 19 seconds into the active duration of the sequence time container.
... <transition xml:id="awipe" type="barWipe" dur="1s" ... /> <transition xml:id="toblack" type="fadeToColor" dur="1s" ... /> ... <seq> <img src="img1.jpg" dur="5s" fill="transition" .../> <img src="img2.jpg" dur="5s" repeatCount="3" transIn="awipe" transOut="toblack" ... /> <img src="img3.jpg" dur="5s" .../> </seq> ...
The fill attribute, defined in the SMIL Timing and Synchronization Modules, allows an author to specify that an element should be extended beyond its active duration by freezing the final state of the element. A new fill value, "transition", is required to enable transitions between elements that would not normally be displayed at the same time. This fill attribute value may be applied only to elements with renderable content and is not applicable to pure time container elements such as par, seq, and excl. If fill="transition" is applied to a pure time container element, then the value is ignored and reverts to its default value.
The fill="transition" value indicates that after its active duration ends the element will be frozen and it will remain frozen until the end of the next transition on an element with which it overlaps in the layout. The element containing the fill="transition" will be removed when the transition ends. The timing rules defined in the SMIL Timing and Synchronization Modules still apply: the element is subject to the constraints of its parent time container and may be removed by its parent regardless of whether or not a transition is declared. Each profile should define the meaning of overlapping in the layout.
In the following example not using transitions, the default behavior is to remove the object representing img1.jpg after 10 seconds.
... <seq> <img src="img1.jpg" dur="10s" ... /> <img src="img2.jpg" dur="10s" ... /> </seq> ...
Adding a transition between img1.jpg and img2.jpg requires that img1.jpg remains displayed after its active duration ends so that it may be used by the transition to img2.jpg. The first image is removed as soon as the transition ends. The fill="transition" enables this behavior as illustrated by the following example.
... <transition xml:id="awipe" type="barWipe" dur="1s" ... /> ... <seq> <img src="img1.jpg" dur="10s" fill="transition" ... /> <img src="img2.jpg" dur="10s" transIn="awipe" ... /> </seq> ...
After adding the fill and transIn attributes, our example slideshow from the Introduction section now looks like the following:
... <transition xml:id="wipe1" type="barWipe" subtype="leftToRight" dur="1s"/> ... <seq> <img src="butterfly.jpg" dur="5s" fill="transition" ... /> <img src="eagle.jpg" dur="5s" fill="transition" transIn="wipe1" ... /> <img src="wolf.jpg" dur="5s" fill="transition" transIn="wipe1" ... /> <img src="seal.jpg" dur="5s" transIn="wipe1" ... /> </seq>
Now the presentation plays as follows, as illustrated by this animated image.
Notice that these transitions occur during the active duration of each of the images which reference the transition and do not add or subtract from their host element's active duration. In this case, the transition occurs at the beginning of each media element's active duration.
Notice the importance of fill="transition". If we had not specified fill="transition" on butterfly.jpg, eagle.jpg, and wolf.jpg, then the transitions at 5, 10, and 15 seconds would have taken place between the background of the playback area (or the default background color, depending on how the layout language is specified) instead of the previous image in the sequence.
The fill="transition" also enables transitions from one excl child to another when the previously active child would normally be removed from the display. In the following example the first image transitions in from the background, displays for 5 seconds and then freezes because of the fill="transition". The next child activated by a button click will transition in from butterfly.jpg. When that child completes it will also freeze due to the fill="transition", remaining available for use in the next transition. It will transition in to the next image activated by a button click, and so on.
... <transition xml:id="wipe1" type="barWipe" subtype="leftToRight" dur="1s"/> ... <excl> <img src="butterfly.jpg" begin="0" dur="5s" fill="transition" transIn="wipe1" ... /> <img src="eagle.jpg" begin="button1.click" dur="5s" fill="transition" transIn="wipe1" ... /> <img src="wolf.jpg" begin="button2.click" dur="5s" fill="transition" transIn="wipe1" ... /> <img src="seal.jpg" begin="button3.click" dur="5s" fill="transition" transIn="wipe1" ... /> </excl>
Note that fill takes effect after the active duration of an element ends. In the above example, if button2 is clicked at 3 seconds, then butterfly.jpg will end, and the fill="transition" value for butterfly.jpg will be in effect through the end of the next transition. Therefore the transition will occur from butterfly.jpg to wolf.jpg and the frozen butterfly.jpg will disappear when the transition completes.
The pauseDisplay attribute of the priorityClass element, defined in the SMIL Timing and Synchronization Modules may also be used to control the display of children of an exclusive element. In the example above, pauseDisplay could be used to keep butterfly.jpg displayed when paused so the transition would occur between butterfly.jpg to the next media activated, and butterfly.jpg would continue to be displayed after the transition (assuming that it is not completely covered by the other media).
This section is normative.
Transitions parameters may be specified incorrectly in many different ways with varying levels of severity. Therefore, the following errors should be handled with the specified action:
This section is normative.
As stated earlier, each transition may have a default transition subtype. Also, the transIn or transOut attributes on media elements take a semicolon-separated list of transition id's to indicate a list of fallback transitions. To eliminate ambiguity between the default subtype and the fallback list, this section defines an algorithm that must be followed to determine the transition to perform. The general procedure is that the first resolved transition from the list of fallback transitions is the one that should be performed.
Given one or more previously declared transition elements and a list of fallback transition id's (specified on the transIn or transOut attributes), an implementation must use the following algorithm to determine the transition to perform.
current-id
to the first id in the list.current-id
is empty (we have no more id's in the list),
then exit this algorithm. The implementation must not consider this an
error and must not perform any transition.current-id
is the id of some previously defined transition element then go to Step
4. If not, then set current-id
to the next id in the list
and go to Step 2.current-id
is known to the implementation then go to Step 5.
If not, then set current-id
to the next id in the list and
go to Step 2.current-id
then go to Step 6. If it is not specified, then
the implementation must exit this algorithm and perform the
default transition subtype for the specified transition type.current-id
is known to the implementation then the
implementation must exit this algorithm and perform the transition
specified by the type and subtype. If it is not, then set
current-id
to the next id in the list and go to Step 2.This section is normative.
Audio transitions animate the audio component of the target media object. SMIL specifies two audio transitions, "audioFade" and "audioVisualFade". They both adjust the audio volume of the target media. The latter one also animates the visual component of the media.
The "audioFade" transition fades an audio clip in or out by linearly adjusting the volume of the clip. As with the visual "fade" transition the direction of the transition depends on whether it is used in transIn or transOut attribute. To achieve cross-fade effect between two audio clips, the clips must overlap in time and the "audioFade" transitions may be applied simultaneously to both.
The "audioVisualFade" fade acts like a combination of the "audioFade" and the visual "fade" transitions. It has the same subtypes as "fade" transition. Future versions of the specification may provide a general mechanism for combining transitions.
Since the fill attribute semantics dictate that audio is silent during the fill period, the fill value fill="transition" can't be used for transition effects between audio clips. To mix audio clips using transition effects the timeline of the clips must overlap.
This section is informative.
Example:
The following example cross-fades between two audio clips. For cross-fade effect the clips must overlap in the presentation timeline. Since audio clips are not audible during the fill period, a sequence time container would not be suitable for achieving this effect.
<transition xml:id="four_sec_fade" type="audioFade" subType=fade" dur="4s"/>
. . .
<par>
<audio xml:id="audio1" ... transOut="four_sec_fade" />
<audio xml:id="audio2" ... begin="audio1.end-4s" transIn="four_sec_fade" />
</par>
This section is normative.
The FullScreenTransitions module adds a single attribute to the transition element:
The transition element is extended with the following attribute:
The media items that transition together with the master media item are all those media items that are rendering within the area defined by the scope attribute at the time the transition starts. Therefore, a transIn transition effect transitions from the set of media items defined as "background" in the Transition Model to the set of media items that would have been visible at the start time if no transIn attribute had been present. A transOut transition is from a set of media items visible at the start time of the transition to the set of media items that should be visible just after the master media item finishes (note that this set does not depend on whether transOut is specified or not).
Media items that start or end during the transition are treated in the same way as the background media items (see the BasicTransitions module).
This section is informative.
Using these definitions a full-screen transition may be added to above example as follows:
... <head> <transition xml:id="diagonalWipeFullScreenTransition" type="clockWipe" subtype="clockwiseTwelve" dur="1s" scope="screen" /> ... </head> <body> <par dur="10s"> <img xml:id="left1" src="left1.jpg" region="leftpane" dur="7s" fill="transition" /> <text xml:id="right1" src="right1.txt" region="rightpane" dur="7s" fill="transition" /> <img xml:id="left2" src="left2.jpg" region="leftpane" begin="7s" dur="7s" /> <text xml:id="right2" src="right2.txt" region="rightpane" begin="7s" dur="7s" transIn="diagonalWipeFullScreenTransition" /> </par> </body> ...
This section is normative.
In the algorithm specified earlier for determining which transition to perform, there is an implicit method for extending the set of transitions. If the new transition does not fall into any of the general descriptions of transition families in the Transition Taxonomy section, implementations may create a new transition type (a new family of transitions) and then create new transition subtypes under that newly-defined type. However, it is recommended that if the new transition falls into one of the existing families of transitions, implementations should simply extend the set of subtypes for that existing type. Implementations may use whatever type and subtype names they choose for these extended transitions. However, when these new transitions are used within a document, they must be namespace-qualified.
This section is informative.
As mentioned in the Transition Model section, SMIL 3.0 Transitions allow two methods of specifying transitions: a shorthand method and an inline method. The BasicTransitions module specifies the shorthand method while this module specifies the inline method. Inline transitions provide additional timing and progress control compared to the shorthand transitions. The transitionFilter element provides the inline transition support.
This section is normative.
The transitionFilter element is an animation element, similar to the animateMotion element defined in the SMIL 3.0 BasicAnimation Module. The animateMotion element animates the position of an element. In contrast, the transitionFilter element animates the progress of a filter behavior (transition) on a media element or elements with renderable content. The filter behavior temporarily alters the visual or aural rendering of the media. The transitionFilter element may target any element with "renderable content", not necessarily a media element. The host language determines which elements to which transitionFilter may be applied. For instance, in HTML, a span or a div may represent "renderable content". The transitionFilter element may target a renderable content element in two ways: it may be the child of that element, or with the targetElement attribute.
The transitionFilter element shares many of the attributes from the transition element. It integrates timing support from the SMIL 3.0 BasicInlineTiming Module, and animation support from the SMIL 3.0 BasicAnimation module. This module may also be combined with other SMIL 3.0 Modules such as TimeManipulations, depending on the modules implemented by the host language.
A transitionFilter element may define the target element of the transition
either explicitly or implicitly. An explicit definition uses an attribute to
specify the target element. The syntax for this is described below.
If no explicit target is specified, the implicit target element is the parent
element of the transitionFilter element in the document tree. It is expected
that the common case will be that a transitionFilter element is declared as a
child of the element to be animated. In this case, no explicit target need be
specified.
This element must target a media element or other element with renderable
content, as defined by the host language. This is in contrast to
BasicTransitions that are declared in the "transition" element and then
specified in the transIn or transOut attributes that are applied to
media elements.
When an implicit targetElement reference is used, the transitionFilter
element must be a child of an element that supports transition effects (or it
has no effect).
Similar to how transIn and transOut are attributes of the media object to which the transition is applied, the transitionFilter element is a child of the media object to which the transition is applied. However, even though the transitionFilter element is a child of a media object, it is not a time container, and may not extend the active duration of the media object. Therefore, if transitionFilter is a child of a media element, it may only apply a transition to that media element during that media element's active duration. If it is desired to apply a transition during an element's frozen period, then transitionFilter should not be a child of the media element. Rather, the targetElement attribute should be used to target that media element.
Note that the transitionFilter element represents an "in" transition in the sense that the destination media (the media that is fully visible when progress is 1.0) is the media to which the transition is applied (the parent media, in this case). However, since transitionFilter gives full control over the timing of the progress, an "in" transition may be made to look like an "out" transition by simply running the transition from a progress of 1.0 and ending the transition at a progress of 0.0.
transitionFilter Element attributes
When integrating transitionFilter elements into the host language, the language designer should avoid including both of these attributes. If however, the host language designer chooses to include both attributes in the host language, then when both are specified for a given animation element the XLink href attribute takes precedence over the targetElement attribute.
This section is informative.
The advantage of using the targetElement attribute is the simpler syntax of the attribute value compared to the href attribute. The advantage of using the XLink href attribute is that it is extensible to a full linking mechanism in future versions of SMIL Transitions, and the animation element may be processed by generic XLink processors. The XLink form is also provided for host languages that are designed to use XLink for all such references. The following two examples illustrate the two approaches.
This example uses the simpler targetElement syntax:
<transitionFilter targetElement="foo" .../>
This example uses the more flexible XLink locater syntax, with the equivalent target:
<transitionFilter xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#foo" .../>
When using an XLink href attribute on a transitionFilter element, the following additional XLink attributes may be defined in the host language. These may be defined in a DTD, or the host language may require these in the document syntax to support generic XLink processors. For more information, refer to [XLINK].
The following XLink attributes are required by the XLink specification. The values are fixed, and so may be specified as such in a DTD. All other XLink attributes are optional, and do not affect SMIL Transitions semantics.
Additional details on the target element specification as relates to the host document and language are described in the Integration section.
Element content
The transitionFilter element may have the param element as a child.
This section is informative.
Examples of the transitionFilter element
Example 1: transitionFilter slide show
The following example uses inline transitions to provide a slideshow that includes transitions between the images, similar to the example discussed in the introduction. The presentation plays as follows.
... <seq> <img xml:id="butterfly" src="butterfly.jpg" dur="5s" fill="transition" /> <img xml:id="eagle" src="eagle.jpg" dur="5s" fill="transition" > <transitionFilter type="barWipe" subtype="leftToRight" dur="1s" /> </img> <img xml:id="wolf" src="wolf.jpg" dur="5s" fill="transition" > <transitionFilter type="barWipe" subtype="leftToRight" dur="1s" /> </img> <img xml:id="seal" src="seal.jpg" dur="5s" > <transitionFilter type="barWipe" subtype="leftToRight" dur="1s" /> </img> </seq> ...
Example 2: transitionFilter discrete clock transition
The following example uses a values list and discrete calcMode to specify the progress of the transition in 12 steps. The transition begins 2 seconds after the video begins and continues for 12 seconds. Since the transition is circular, the effect is that of a clock-wipe that reveals one hour on the clock face at a time.
<video xml:id="video1" src="car.avi" ... > <transitionfilter xml:id="trans1" type="ellipseWipe" subtype="circle" begin="2" dur="12" calcMode="discrete" values="0.083; 0.166; 0.250; 0.333; 0.416; 0.500; 0.583; 0.666; 0.750; 0.833; 0.916; 1.000"/> </video>
Example 3: transitionFilter from and to
The following example uses a partial transition that progresses from 0 to 50% (0.5) complete. It assumes that the video is positioned directly on top of the image in the layout. The presentation plays as follows.
<par> <img src="racing.jpg" begin="0s" dur="5s" /> <video xml:id="car" src="car.avi" begin="0s" dur="3s" <transitionfilter type="clockWipe" subtype="clockwiseTwelve" begin="1s" dur="2s" from="0.0" to="0.5" /> </video> </par>
The transitionFilter element may take the param element, defined in the SMIL MediaParam Module, as a child element. This element may be included from HTML or from some other module, depending upon the profile of the host language. The param element defines parameter information specific to the individual transitionFilter. For example, the implementation of a windshieldWipe could take a parameter that defines the length of the radius for the wipe as follows:
<transitionfilter type="windshieldWipe" begin="4" dur="3" from="0.5" to="1.0" > <param name="radius" value="3in" /> </transitionFilter>
Support of the param element is implementation-dependent. The meaning of the parameters depends upon the implementation of the specific transition.
This section is normative.
The TransitionModifiers module gives additional control over the visual effect of the transition: controlling the horizontal and vertical repeat pattern, and controlling the visual effect along the pattern border. The SMPTE standard also allows for this type of geometric control.
This module requires either the BasicTransitions Module or the InlineTransitions Module.
Using the horzRepeat and vertRepeat attributes, the geometric pattern which makes up the transition may be repeated in both the horizontal and vertical directions over the area occupied by the media. To achieve the repeat, the area occupied by the destination media is divided into equal sections horizontally and/or vertically according to the values of horzRepeat and vertRepeat. Identical transitions are then performed, one in each of the resulting sections, at the same time.
The following diagrams illustrate the difference between the behavior provided by the default horzRepeat and vertRepeat attributes and each attribute with two copies of the transition applied to an image.
Figure 1. An image that does not have any transitions applied to it.
Figure 2. The image from Figure 1 with a fan transition in progress. The current area of the transition is illustrated by the black triangle. This example uses the default value of one for both horzRepeat and vertRepeat, which yields one occurrence of the transition. Therefore, the fan pattern is not repeated in either direction.
This animated image illustrates the single fan transition from Figure 2. The fan transition could be declared as follows:
<transition ... type="fanWipe" subtype="centerTop" dur="1s"/>
Figure 3. The same fan transition from Figure 2 in progress, but with two horizontal repetitions (horzRepeat="2"). The repeat yields two smaller, but identical copies of the transition, one in the left half of the image and one in the right half of the image. The number of patterns in the horizontal direction equals horzRepeat.
Figure 4. The same fan transition from Figure 2 in progress, but with two vertical repetitions (vertRepeat="2"). The repeat yields two smaller, but identical copies of the transition, one in the top half of the image and one in the bottom half of the image. The number of patterns in the vertical direction equals vertRepeat.
The following example shows the declaration of the transition from Figure 4. It specifies a vertRepeat value of 2 which indicates that the fan transition will occur in two locations on the media at once.
<transition ... type="fanWipe" subtype="centerTop" dur="1s" horzRepeat="1" vertRepeat="2"/>
Note that we didn't have set to horzRepeat to one, since one is the default value, but we explicitly set it here for clarity. This transition is illustrated by this animated image.
In a more complex example, if horzRepeat was set to 3 and vertRepeat was set to 2 then 6 small fan transitions would occur at once over the media, in a pattern of 3 wide (horzRepeat) and 2 high (vertRepeat).
Note that the horzRepeat and vertRepeat attributes might not produce a visual change depending on the type of transition. Specifically, these attributes have no visual affect if replicating the transition pattern produces identical results. For example, a vertRepeat attribute set equal to two would have no visual impact on a left-to-right push- or slideWipe because the transition would still occur from the left edge all the way to the right edge of the media. In contrast, the same vertRepeat attribute would affect a top-to-bottom push- or slideWipe because one transition would occur from the top to the middle of the media and the other transition would occur from the middle to the bottom of the media at the same time. Neither horzRepeat nor vertRepeat affect a fade transition because the fade applies uniformly regardless of how many times it is replicated.
Implementations may choose to optimize by ignoring the horzRepeat and vertRepeat attributes in cases where they would have no effect.
This section is normative.
The purpose of this section is to specify requirements and recommendations on the host language or profile in order to integrate SMIL Transitions.
<head>
of the
document (if one exists) and also that there be some sort of container
element which groups all the transition elements together
(similar to the <layout>
element in the
<head>
of SMIL 1.0 documents).Table 1: The Taxonomy Table contains a detailed list of transition type and subtype names. The names of the types and subtypes have been chosen so that the name provides some hint of the visual effect of the transition. However, in some cases, the name alone is not enough to visually describe these transitions. For a better understanding of these transitions, please see pages 11-16 of SMPTE 258M-1993 [SMPTE-EDL].
As an assistance to the reader in identifying the patterns of the SMPTE transitions this Appendix also provides illustrations of the corresponding SMPTE wipes in the following tables.
Table 2: SMPTE Edge Wipes
In the case of any discrepancies between type and subtype names in the Taxonomy Table and in the illustrated tables, the Taxonomy Table takes precedence. The SMPTE specification [SMPTE-EDL] takes precedence over the illustrated tables in this appendix. The illustrations are provided for convenience only.
The SMPTE Wipe Codes (where appropriate) are provided in parentheses after the subtype name and are for reference only. The Wipe Codes are not part of the transition subtype name. The default transition subtype for each type is indicated by the word [default].
Transition type |
Transition subtypes (SMPTE Wipe Codes in parentheses) |
Edge Wipes - wipes occur along an edge |
|
"barWipe" | "leftToRight" (1) [default], "topToBottom" (2) |
"boxWipe" | "topLeft" (3) [default], "topRight" (4), "bottomRight" (5), "bottomLeft" (6), "topCenter" (23), "rightCenter" (24), "bottomCenter" (25), "leftCenter" (26) |
"fourBoxWipe" | "cornersIn" (7) [default], "cornersOut" (8) |
"barnDoorWipe" | "vertical" (21) [default], "horizontal" (22), "diagonalBottomLeft" (45), "diagonalTopLeft" (46) |
"diagonalWipe" | "topLeft" (41) [default], "topRight" (42) |
"bowTieWipe" | "vertical" (43) [default], "horizontal" (44) |
"miscDiagonalWipe" | "doubleBarnDoor" (47) [default], "doubleDiamond" (48) |
"veeWipe" | "down" (61) [default], "left" (62), "up" (63), "right" (64) |
"barnVeeWipe" | "down" (65) [default], "left" (66), "up" (67), "right" (68) |
"zigZagWipe" | "leftToRight" (71) [default], "topToBottom" (72) |
"barnZigZagWipe" | "vertical" (73) [default], "horizontal" (74) |
Iris Wipes - shapes expand from the center of the media |
|
"irisWipe" | "rectangle" (101) [default], "diamond" (102) |
"triangleWipe" | "up" (103) [default], "right" (104), "down" (105), "left" (106) |
"arrowHeadWipe" | "up" (107) [default], "right" (108), "down" (109), "left" (110) |
"pentagonWipe" | "up" (111) [default], "down" (112) |
"hexagonWipe" | "horizontal" (113) [default], "vertical" (114) |
"ellipseWipe" | "circle" (119) [default], "horizontal" (120), "vertical" (121) |
"eyeWipe" | "horizontal" (122) [default], "vertical" (123) |
"roundRectWipe" | "horizontal" (124) [default], "vertical" (125) |
"starWipe" | "fourPoint" (127) [default], "fivePoint" (128), "sixPoint" (129) |
"miscShapeWipe" | "heart" (130) [default], "keyhole" (131) |
Clock Wipes - rotate around a center point |
|
"clockWipe" | "clockwiseTwelve" (201) [default], "clockwiseThree" (202), "clockwiseSix" (203), "clockwiseNine" (204) |
"pinWheelWipe" | "twoBladeVertical" (205) [default], "twoBladeHorizontal" (206), "fourBlade" (207) |
"singleSweepWipe" | "clockwiseTop" (221) [default], "clockwiseRight" (222), "clockwiseBottom" (223), "clockwiseLeft" (224), "clockwiseTopLeft" (241), "counterClockwiseBottomLeft" (242), "clockwiseBottomRight" (243), "counterClockwiseTopRight" (244) |
"fanWipe" | "centerTop" (211) [default], "centerRight" (212), "top" (231), "right" (232), "bottom" (233), "left" (234) |
"doubleFanWipe" | "fanOutVertical" (213) [default], "fanOutHorizontal" (214), "fanInVertical" (235), "fanInHorizontal" (236) |
"doubleSweepWipe" | "parallelVertical" (225) [default], "parallelDiagonal" (226), "oppositeVertical" (227), "oppositeHorizontal" (228), "parallelDiagonalTopLeft" (245), "parallelDiagonalBottomLeft" (246) |
"saloonDoorWipe" | "top" (251) [default], "left" (252), "bottom" (253), "right" (254) |
"windshieldWipe" | "right" (261) [default], "up" (262), "vertical" (263), "horizontal" (264) |
Matrix Wipes - media is revealed in squares following a pattern |
|
"snakeWipe" | "topLeftHorizontal" (301) [default], "topLeftVertical" (302), "topLeftDiagonal" (303), "topRightDiagonal" (304), "bottomRightDiagonal" (305), "bottomLeftDiagonal" (306) |
"spiralWipe" | "topLeftClockwise" (310) [default], "topRightClockwise" (311), "bottomRightClockwise" (312), "bottomLeftClockwise" (313), "topLeftCounterClockwise" (314), "topRightCounterClockwise" (315), "bottomRightCounterClockwise" (316), "bottomLeftCounterClockwise" (317) |
"parallelSnakesWipe" | "verticalTopSame" (320), [default] "verticalBottomSame" (321), "verticalTopLeftOpposite" (322), "verticalBottomLeftOpposite" (323), "horizontalLeftSame" (324), "horizontalRightSame" (325), "horizontalTopLeftOpposite" (326), "horizontalTopRightOpposite" (327), "diagonalBottomLeftOpposite" (328), "diagonalTopLeftOpposite" (329) |
"boxSnakesWipe" | "twoBoxTop" (340) [default], "twoBoxBottom" (341), "twoBoxLeft" (342), "twoBoxRight" (343), "fourBoxVertical (344), "fourBoxHorizontal" (345) |
"waterfallWipe" | "verticalLeft" (350) [default], "verticalRight" (351), "horizontalLeft" (352), "horizontalRight" (353) |
Non-SMPTE Wipes |
|
"pushWipe" | "fromLeft" [default], "fromTop", "fromRight", "fromBottom" |
"slideWipe" | "fromLeft" [default], "fromTop", "fromRight", "fromBottom" |
"fade" | "crossfade" [default], "fadeToColor", "fadeFromColor" |
Audio |
|
"audioFade" | "fade" [default] |
"audioVisualFade" | "crossfade" [default], "fadeToColor", "fadeFromColor" |
Descriptions of non-SMPTE Transitions
The "pushWipe" transitions looks as if the destination media "pushes" the background media away. In other words, both the background media and the destination media are moving.
In the "slideWipe" transitions, the destination media moves, but the background media does not. The visual effect of "slideWipe" transitions is that the destination media is "sliding" in across the background media.
The "fade" transitions are pixel-by-pixel blends between the destination media and either the background media or a specified color. The "fadeToColor" and "fadeFromColor" subtypes are equivalent. The fade direction is determined by whether it is used as transIn or transOut.
Edge wipes start from a horizontal, vertical, or diagonal edge and expand in a given shape. The direction of change is to increase the white area.
"barWipe" |
|
|
|
"boxWipe" |
|
|
|
"fourBoxWipe" |
|
|
|
"barnDoorWipe" |
|
|
|
"diagonalWipe" |
|
|
|
"bowTieWipe" |
|
|
|
"miscDiagonalWipe" |
|
|
|
"veeWipe" |
|
|
|
"barnVeeWipe" |
|
|
|
"zigZagWipe" |
|
|
|
"barnZigZagWipe" |
|
|
|
Iris wipes expand in a given shape from the center of the media. The direction of change is to increase the white area.
"irisWipe" |
|
|
|
"triangleWipe" |
|
|
|
"arrowHeadWipe" |
|
|
|
"pentagonWipe" |
|
|
|
"hexagonWipe" |
|
|
|
"ellipseWipe" |
|
|
|
"eyeWipe" |
|
|
|
"roundRectWipe" |
|
|
|
"starWipe" |
|
|
|
"miscShapeWipe" |
|
|
|
Clock wipes rotate around a center point. The center of rotation is indicated in the following illustrations by the symbol. The arrow shows the direction of rotation. The direction of change is to increase the white area.
"clockWipe" |
||
|
|
|
"pinWheelWipe" |
||
|
|
|
"singleSweepWipe" |
||
|
|
|
"fanWipe" |
||
|
|
|
"doubleFanWipe" |
||
|
|
|
"doubleSweepWipe" |
||
|
|
|
"saloonDoorWipe" |
|
|
|
|
|
"windshieldWipe" |
|
|
|
|
|
Matrix wipes reveal media in squares following a pattern. The arrow shows the pattern.
"snakeWipe" |
||
|
|
|
"spiralWipe" |
||
|
|
|
"parallelSnakesWipe" |
|
|
|
|
|
"boxSnakesWipe" |
|
|
|
|
|
"waterfallWipe" |
||
|
|
This section is informative.
The SMIL 3.0 specification leaves the SMIL 2.1 Animation Modules [SMIL21-animation] mostly unchanged. The only changes are that normative text is added that clarifies the ability of a host language designer to override the event base default element, and that several typos and some examples have been corrected.
This section is informative.
This section defines the SMIL 3.0 Animation Modules, which are composed of a BasicAnimation module and a SplineAnimation module. These modules contain elements and attributes for incorporating animation onto a time line, and a mechanism for composing the effects of multiple animations. Since these elements and attributes are defined in modules, designers of other markup languages may choose whether or not to include this functionality in their languages. Language designers incorporating other SMIL modules do not need to include the animation modules if animation functionality is not needed.
The examples in this document that include syntax for a host language use SMIL 3.0, [SVG], [HTML4] and [CSS2]. These are provided as an indication of possible integrations with various host languages.
While this document defines a base set of animation capabilities, it is assumed that host languages may build upon the support to define additional or more specialized animation elements. Animation only manipulates attributes and properties of the target elements, and so does not require any knowledge of the target element semantics beyond basic type information. Basic type information includes such information as whether a type supports addition, and whether a list of numbers is just that, or whether it represents e.g. a set of coordinates.
Note that the host language determines which attributes may be animated.
This module depends on the SMIL 3.0 BasicInlineTiming module, using elements and attributes from the Timing module for its time line. The BasicInlineTiming module is a prerequisite for any profile using SMIL Animation. The reader is presumed to have read and be familiar with the SMIL 3.0 Timing modules.
This section first presents the underlying principles of animation in SMIL 3.0, then the elements and attributes of the BasicAnimation module and of the SplineAnimation module.
This section is informative.
SMIL 3.0 Animation functionality is partitioned across the following 2 modules:
This section is normative.
This section is informative.
This section describes the semantics underlying the SMIL 3.0 animation
modules. The specific elements are not described here, but rather the common
concepts and syntax that comprise the model for animation. Document issues
are described, as well as the means to target an element for animation. The
animation model is then defined by building up from the simplest to the most
complex concepts: first the simple duration and simple animation function
f(t)
, and then the overall effect
F(t,u)
.
This section is informative.
In the definitions of the animation functions, a number of symbols are used. These symbols are summarized here.
a
d
AD
IAD
rd
t
t
may
be in user-perceived time, an element's active duration, or its simple
duration.u
a
,
generally at a specific time t
.f(t)
Note that while F(t,u)
defines the
mapping for the entire animation, f(t)
has a simplified model that just handles the simple duration.
f(d)
F(t,u)
t
:
0<=t<AD
) and an underlying value to
a value for the target attribute. A time value of 0 corresponds to the
time at which the animation begins.
F(t,u)
combines the simple animation
function f(t)
with all the other aspects
of animation and timing controls.Animation is defined as a time-based function of a target element
(or more specifically of some attribute of the target element, the
target attribute). The animation defines a mapping of time to values
for the target attribute. This mapping takes into account all aspects of
timing, as well as animation-specific semantics. The overall mapping is
based on a simple animation function
f(t)
which describes the animation over the
simple duration of the element. Every animation defines a simple animation
function which produces a value for the target attribute for any time within
the simple duration.
A target attribute is the name of a feature of a target element as defined in a host language document.
This may be (e.g.) an XML attribute contained in the element or a CSS property that applies to the element. By default, the target element of an animation will be the parent of the animation element (an animation element is typically a child of the target element). However, the target may be any element in the document, identified either by an XML ID reference or via an XLink [XLINK] locator reference.
This section is informative.
As a simple example, the following defines an animation of an SVG rectangle shape. The rectangle will change from being tall and thin to being short and wide.
<rect ...> <animate attributeName="width" from="10px" to="100px" begin="0s" dur="10s" /> <animate attributeName="height" from="100px" to="10px" begin="0s" dur="10s" /> </rect>
The rectangle begins with a width of 10 pixels and increases to a width of 100 pixels over the course of 10 seconds. Over the same ten seconds, the height of the rectangle changes from 100 pixels to 10 pixels.
When an animation is running, it should not actually change the attribute values in the DOM [DOM2]. The animation runtime should maintain a presentation value for each animated attribute, separate from the DOM or CSS Object Model (OM). If an implementation does not support an object model, it should maintain the original value as defined by the document as well as the presentation value. The presentation value is reflected in the displayed form of the document. Animations thus manipulate the presentation value, and should not affect the base value exposed by DOM or CSS OM. This is detailed in The animation sandwich model.
The base value of a target attributea
at timet
is the value ofa
to which animation is applied at timet
.The presentation value of a target attribute
a
at timet
is the value ofa
resulting from the application of animation at timet
.
The presentation value reflects the effect of animation on the base value. The effect is the change to the base value of the target attribute at any given time. When an animation completes, the effect of the animation is no longer applied, and the presentation value reverts to the base value by default. The animation effect may also be extended to freeze the last value for the length of time determined by the semantics of the fill attribute.
An animation element defines a simple animation function which is evaluated as needed over time by the implementation. The resulting values are applied to the presentation value for the target attribute. Animation functions are continuous in time and may be sampled at whatever frame rate is appropriate for the rendering system. The syntactic representation of the simple animation function is independent of this model, and may be described in a variety of ways. The animation elements in this specification support syntax for a set of discrete or interpolated values, a path syntax for motion based upon SVG paths, keyframe based timing, evenly paced interpolation, and variants on these features.
This section is informative.
In the example immediately above, the simple animation function for the
width attribute, specified by 'from="10px" to="100px" ...
dur="10s"'
is
f(t) = (10 + 90*t/10) px
, wheret
is given in seconds.
Simple animation functions may be defined which have additional parameters, or that are purely or partially algorithmic. For example, a "to" animation interpolates from the current value to the "to" value:
<animate attributeName="top" to="10" dur="2.5s" />
The animation function is a function of the current position, as well as of time:
f(t,u) = (u*(2.5s-t)/2.5s) +
10*(t/2.5s)
In all cases, the animation exposes this as a function of time.
The simple animation function defined by an animation element is a function of time,f(t)
, defined for timest
,0<=t<=d
, whered
is the simple duration of the element.The simple animation function may be defined as a function which depends on factors in addition to time. This does not affect the model of animation, beyond the trivial addition of additional parameters to
f(t)
, such asf(t,u)
used in the "to" animation example immediately above.
Animations may be defined to either override or add to the base value of an attribute. In this context, the base value may be the DOM value, or the result of other animations that also target the same attribute. This more general concept of a base value is termed the underlying value. Animations that add to the underlying value are described as additive animations. Animations that override the underlying value are referred to as non-additive animations. The animation effect function of an element is the function which includes the effect of the underlying value and accounts for repeating and freezing of the element. Because the animation effect may be affected by repeating and freezing, it is defined over the active duration of the element rather than its simple duration.
Animations may be combined in ways which produce intermediate values outside of the domain of the target attribute, but where the presentation value produced is valid. The type of a target attribute is this larger set. This is detailed in The animation sandwich model.
The type of a target attributea
is the base type of which the domain ofa
is a subset.The underlying value
u
of a target attributea
of an animation element at timet
is the value ofa
to which the animation effect is applied at timet
.The animation effect function,
F(t,u)
, of an animation element with active durationAD
is a function mapping timest
:0<=t<AD
and valuesu
of the type of the target attributea
into values of the type ofa
.
The animation effect function F(t,u)
is
usually defined as a function of the simple animation function
f(t)
. f(t)
must
be defined in such a manner that F(t,u)
produces values of the correct type.
When an animation is running, it does not actually change the attribute values in the DOM. The animation runtime should ideally maintain a presentation value for any target attribute, separate from the DOM, CSS, or other object model (OM) in which the target attribute is defined. The presentation value is reflected in the display form of the document. The effect of animations is to manipulate this presentation value, and not to affect the underlying DOM or CSS OM values.
The remainder of this discussion uses the generic term OM for both the XML DOM [DOM2] as well as the CSS-OM. If an implementation does not support an object model, it should ideally maintain the original value as defined by the document as well as the presentation value; for the purposes of this section, we will consider this original value to be equivalent to the value in the OM.
In some implementations of DOM, it may be difficult or impractical to maintain a presentation value as described. CSS values should always be supported as described, as the CSS-OM provides a mechanism to do so. In implementations that do not support separate presentation values for general XML DOM properties, the implementation must at least restore the original value when animations no longer have an effect.
The rest of this discussion assumes the recommended approach using a separate presentation value.
The model accounting for the OM and concurrently active or frozen animations for a given attribute is described as a "sandwich", a loose analogy to the layers of meat and cheeses in a "submarine sandwich" (a long sandwich made with many pieces of meats and cheese layered along the length of the bread). In the analogy, time is associated with the length of the sandwich, and each animation has its duration represented by the length of bread that the layer covers. On the bottom of the sandwich is the base value taken from the OM. Each active (or frozen) animation is a layer above this. The layers (i.e. the animations) are placed on the sandwich both in time along the length of the bread, as well as in order according to priority, with higher priority animations placed above (i.e. on top of) lower priority animations. At any given point in time, you can take a slice of the sandwich and see how the animation layers stack up.
Note that animations manipulate the presentation value coming out of the OM in which the attribute is defined, and pass the resulting value on to the next layer of document processing. This does not replace or override any of the normal document OM processing cascade.
Specifically, animating an attribute defined in XML will modify the presentation value before it is passed through the style sheet cascade, using the XML DOM value as its base. Animating an attribute or property defined in a style sheet language will modify the presentation value passed through the remainder of the cascade.
In CSS2 and the DOM 2 CSS-OM, the terms "specified", "computed" and
"actual" are used to describe the results of evaluating the syntax, the
cascade and the presentation rendering. When animation is applied to CSS
properties of a particular element, the base value to be animated is read
using the (readonly) getComputedStyle()
method on that element.
The values produced by the animation are written into an override stylesheet
for that element, which may be obtained using the
getOverrideStyle()
method. Note that it is assumed that
before reading the value, the override stylesheet is cleared so that
the animation works on the original document value. These new values then affect the
cascade and are reflected in a new computed value (and thus, modified
presentation). This means that the effect of animation overrides all style
sheet rules, except for user rules with the !important
property.
This enables !important
user style settings to have priority
over animations, an important requirement for accessibility. Note that the
animation may have side effects upon the document layout. See also section
6.1, "Specified, computed, and actual values," of [CSS2] and
section
5.2.1, "Override and computed style sheet," of [DOM2CSS].
Within an OM, animations are prioritized according to when each begins. The animation first begun has lowest priority and the most recently begun animation has highest priority. When two animations start at the same moment in time, the activation order is resolved as follows:
Note that if an animation is restarted, it will always move to the top of the priority list, as it becomes the most recently activated animation. That is, when an animation restarts, its layer is pulled out of the sandwich, and added back on the very top. In contrast, when an element repeats the priority is not affected (repeat behavior is not defined as restarting).
This remark is informative.
For more information about restarting, see Restarting animations.
Each additive animation adds its effect to the result of all sandwich layers below. A non-additive animation simply overrides the result of all lower sandwich layers. The end result at the top of the sandwich is the presentation value that must be reflected in the document view.
Some attributes that support additive animation have a defined legal range for values (e.g. an opacity attribute may allow values between 0 and 1). In some cases, an animation function may yield out of range values. It is recommended that implementations clamp the results to the legal range as late as possible, before applying them to the presentation value. Ideally, the effect of all the animations active or frozen at a given point should be combined, before any clamping is performed. Although individual animation functions may yield out of range values, the combination of additive animations may still be legal. Clamping only the final result and not the effect of the individual animation functions provides support for these cases. Intermediate results may be clamped when necessary although this is not optimal. The host language must define the clamping semantics for each attribute that may be animated. As an example, this is defined for animateColor element.
Initially, before any animations for a given attribute are active, the presentation value will be identical to the original value specified in the document (the OM value).
When all animations for a given attribute have completed and the
associated animation effects are no longer applied, the presentation value
will again be equal to the OM value. Note that if any animation is defined
with fill="freeze"
, the
effect of the animation will be applied as long as the animation element
remains in the frozen state, and so the presentation value will continue to
reflect the animation effect. Refer also to the section "Freezing animations".
Some animations (e.g. animateMotion) will implicitly target an attribute, or possibly several attributes (e.g. the "posX" and "posY" attributes of some layout model). These animations must be combined with any other animations for each attribute that is affected. Thus, e.g. an animateMotion animation may be in more than one animation sandwich (depending upon the layout model of the host language). For animation elements that implicitly target attributes, the host language designer must specify which attributes are implicitly targeted, and the runtime must accordingly combine animations for the respective attributes.
Note that any queries (via DOM interfaces) on the target attribute will reflect the OM value, and will not reflect the effect of animations. Note also that the OM value may still be changed via the OM interfaces (e.g. using script). While it may be useful or desired to provide access to the final presentation value after all animation effects have been applied, such an interface is not provided as part of SMIL Animation. A future version may address this.
Although animation does not manipulate the OM values, the document display must reflect changes to the OM values. Host languages may support script languages that may manipulate attribute values directly in the OM. If an animation is active or frozen while a change to the OM value is made, the behavior is dependent upon whether the animation is defined to be additive or not, as follows: (see also the section Additive animation).
Within the timing model, animation is considered to be "continuous" media. The animation elements defined in SMIL Animation do not have a natural intrinsic duration, so they are assigned an intrinsic duration of indefinite.
This section is informative.
This has several consequences, which are noted in various sections below. In particular, most animation elements will have an explicit duration set with the dur attribute, since a finite, known duration is required for interpolation.
This section is informative.
As described above, the simple animation function
f(t)
defines the animation for the simple
duration d
. However, SMIL Timing allows the
author to repeat the simple duration. SMIL Timing also allows authors to
specify whether the animation should simply end when the active duration
completes, or whether it should be frozen at the last value. SMIL
Animation specifies what it means for an animation to be frozen. In
addition, the author may specify how each animation should be combined with
other animations and the original DOM value.
This section describes the semantics for the additional functionality, including a detailed model for combining animations. This is presented as a sequence of functions building on the simple animation function:
fr(t)
, defines the effect of
repeating an animation element.fc(t)
, defines the effect of
accumulating values from one iteration to the next of a repeated
animation element.ff(t)
, includes the effect of
freezing an animation element at the end of its active duration.F(t,u)
, defines how a an animation element
depends on the underlying value u
of the
target attribute.Since these functions describe the animation outside of the simple
duration, they are defined for any time t
:
0<=t<AD
. The frozen animation function
ff(t)
,is additionally defined for
t=AD
, to account for the case when the element is frozen.
As described in the section Interval timing of the
BasicInlineTiming module, repeating an element causes the element to be
"played" several times in sequence. The repeated period is 0 to the simple
duration of the element. Animation follows this model, where "playing" the
animation means applying the simple animation function
f(t)
repeatedly.
The repeated animation function,
fr(t)
, for any simple animation functionf(t)
is
fr(t) = f( REMAINDER( t, d ) )
,where
t>=0
,d
is the simple duration , andREMAINDER( t, d )
is defined as(t - d*floor(t/d))
.
This formulation follows the end-point exclusive model described in Interval timing. As an
animation repeats, it starts at f(0)
, is
sampled and applied up to but not including the end-point
f(d)
. At the end of the simple duration, i.e.
at the beginning of the next iteration, it starts back at
f(0)
. f(d)
may
never actually be applied.
This section is informative.
In the following example, the 2.5 second animation function will be repeated twice; the active duration will be 5 seconds. The attribute top will go from 0 to (almost) 10, return to 0 at 2.5 seconds, and repeat.
<animate attributeName="top" from="0" to="10"
dur="2.5s"
repeatCount="2" />
In the following example, the animation function will be repeated two full times and then the first half is repeated once more; the active duration will be 7.5 seconds.
<animate attributeName="top" from="0" to="10"
dur="3s"
repeatCount="2.5" />
In the following example, the animation function will repeat for a total of 7 seconds. It will play fully two times, followed by a fractional part of 2 seconds. This is equivalent to a repeatCount of 2.8. The last (partial) iteration will apply values in the range "0" to "8".
<animate attributeName="top" from="0"
to="10" dur="2.5s"
repeatDur="7s" />
Note that if the simple duration is not defined (e.g. it is indefinite),
repeat behavior is not defined (but repeatDur still defines the active
duration). In the following example the simple duration is indefinite, and so
the repeatCount is effectively
ignored. Nevertheless, this is not considered an error: the active duration
is also indefinite. The effect of the animation is to just use the value
for f(0)
, setting the fill color to red for
the remainder of the animate element's duration.
<animate attributeName="fill" from="red" to="blue" repeatCount="2" />
In the following example, the simple duration is indefinite, but the repeatDur still determines the active duration. The effect of the animation is to set the fill color to red for 10 seconds.
<animate attributeName="fill" from="red" to="blue" repeatDur="10s" />
In the following example, the simple duration is longer than the duration specified by repeatDur, and so the active duration will effectively cut short the simple duration. However, the animation function still interpolates using the specified simple duration. The effect of the animation is to interpolate the value of "top" from 10 to 17, over the course of 7 seconds.
<animate attributeName="top" from="10"
to="20"
dur="10s" repeatDur="7s" />
This section is informative.
The author may also select whether a repeating animation should repeat the original behavior for each iteration, or whether it should build upon the previous results, accumulating with each iteration. For example, a motion path that describes an arc may repeat by moving along the same arc over and over again, or it may begin each repeat iteration where the last left off, making the animated element bounce across the window. This is called cumulative animation.
Whether an animation is cumulative is specified with the accumulate attribute.
Every animation element must be defined as either cumulative or non-cumulative. An animation element may be defined as cumulative only if addition is defined for the target attribute.
First we define some intermediate functions. The first iteration
f0(t)
is unaffected by accumulate, and so is the same as the original simple animation function definition. Each subsequent iteration adds to the result of the previous iterations:
f0(t) = f(t)
If the animation is non-cumulative, then:
fi(t) = f(t - (i*d))
for any integeri > 0
.If the animation is cumulative, then:
fi(t) = (f(d) * i) + f(t - (i*d))
for any integeri > 0
.The cumulative animation function,
fc(t)
, for any simple animation functionf(t)
is then:fc(t) = fi(t)
, wherei = floor(t/d)
.
This section is informative.
Note that for a cumulative animation fi+1(t)
starts at
f(d)*i + f(0)
. To avoid jumps, authors will
typically choose animation functions which start at 0.
For example, the path notation for a simple arc (detailed in The spline animateMotion element) can be used to describe a bouncing motion:
<img ...> <animateMotion path="m 0 0 c 30 50 70 50 100 0 z" dur="5s" accumulate="sum" repeatCount="4" /> </img>
The image moves from the original position along the arc over the course of 5 seconds. As the animation repeats, it builds upon the previous value and begins the second arc where the first one ended, as illustrated in Figure 1, below. In this way, the image "bounces" across the screen. The same animation could be described as a complete path of 4 arcs, but in the general case the path description can get quite large and cumbersome to edit.
Figure 1 - Illustration of repeating animation with
accumulate="sum"
.
Note that cumulative animation only controls how a single animation accumulates the results of the simple animation function as it repeats. It specifically does not control how one animation interacts with other animations to produce a presentation value. This latter behavior is described in the section Additive animation. Similarly, if an element restarts, the accumulate from the first run is not applied to the second. See Restarting animations.
Any numeric attribute that supports addition may support cumulative
animation. For example, we can define a "pulsing" animation that will grow
the "width" of an SVG <rect>
element by 100 pixels in 50
seconds.
<rect width="20px"...> <animate attributeName="width" dur="5s" values="0; 15; 10" additive="sum" accumulate="sum" repeatCount="10" /> </rect>
Each simple duration causes the rectangle width to bulge by 15 pixels and end up 10 pixels larger. The shape is 20 pixels wide at the beginning, and after 5 seconds is 30 pixels wide. The animation repeats, and builds upon the previous values. The shape will bulge to 45 pixels and then end up 40 pixels wide after 10 seconds, and will eventually end up 120 (20 + 100) pixels wide after all 10 repeats.
This section is informative.
Animation elements follow the definition of fill in the Timing module. This section extends that specification to cover animation-specific semantics.
Note that when a min attribute extends the preliminary active duration, forming an active duration which is longer, the extra time is divided up into the repeating duration during which time the animation plays normally and the remaining time during which the animation is treated exactly the same as any frozen time due to a fill attribute, i.e. the element is frozen if the fill behavior is "freeze" and removed from consideration if the behavior is remove.
By default when an animation element ends, its effect is no longer applied to the presentation value for the target attribute. For example, if an animation moves an image and the animation element ends, the image will "jump back" to its original position.
<img top="3" ...> <animate begin="5s" dur="10s" attributeName="top" by="100"/> </img>
As shown in Figure 2, the image will appear stationary at the top value of "3" for 5 seconds, then move 100 pixels down in 10 seconds. 15 seconds after the document begin, the animation ends, the effect is no longer applied, and the image jumps back from 103 to 3 where it started (i.e. to the underlying DOM value of the top attribute).
Figure 2 - Illustration of animation without freezing.
The fill attribute may be used to maintain the value of the animation after the active duration of the animation element ends:
<img top="3" ...> <animate begin= "5s" dur="10s" attributeName="top" by="100" fill="freeze" /> </img>
The animation ends 15 seconds after the document begin, but the image remains at the top value of 103 (Figure 3). The attribute freezes the last value of the animation for the duration of the freeze effect. This duration is controlled by the time container (for details, see SMIL Timing and Synchronization).
Figure 3 - Illustration of animation with fill="freeze"
.
If the active duration cuts short the simple duration (including the case of partial repeats), the effect value of a frozen animation is defined by the shortened simple duration. In the following example, the simple animation function repeats two full times and then again for one-half of the simple duration. In this case, the value while frozen will be 53:
<img top="3" ...> <animate begin= "5s" dur="10s" attributeName="top" by="100" repeatCount="2.5" fill="freeze" /> </img>
Figure 4 - Illustration of animation combining a partial
repeat
and fill="freeze"
.
In the following example, the dur
attribute is missing, and so the simple duration is indefinite. The active
duration is constrained by end to be 10
seconds. Interpolation is not defined, and the value while frozen
will be the from
value,
10:
<animate from="10" to="20" end="10s" fill="freeze" .../>
Stating this formally:
For an element with active duration
AD
and intermediate active durationIAD
, we define the repeat durationrd
as:
rd = min(AD,IAD)
.The frozen animation function is then given by:
ff(t) = fc(t)
for all timest
:0<=t<rd
;
ff(t) = ff(rd)
for all timest
:rd<=t<=AD
whereff(rd)
is defined below.This is the value before the element is frozen.
When the element is frozen,
t
is effectively equal toAD
, which according to the above definition is equivalent to sayingt
is effectively equal tord
.In the following equations we define
ff(rd)
.If
rd
is not an integer multiple of the simple durationd
, thenff(rd) = fi(rd)
, wherei = floor(rd/d)
.This is equivalent to
fc(rd)
, except thatfc(t)
is not formally defined fort=rd
. In this case, the equations remain consistent, and so the equivalent offc(rd)
is used for the frozen valueff(rd)
.If
rd
is an integer multiple ofd
, i.e.rd = d*i
for some positive integeri
, and the animation is non-cumulative,.
ff(rd) = f(d)If
rd
is an integer multiple of d, i.e.rd = d*i
for some positive integeri
, and the animation is cumulative,
ff(rd) = f(d) * i
.Note that
f(d)
is a shorthand for the "last value defined for the animation function" (e.g., the to value or the last value in the values list).Also note that if the fill behavior of the animation element is "remove", the animation effect is removed at the end of the repeat duration and the definition of
fc(rd)
is not used. The remainder of the active duration (if any) is only relevant for synchronization purposes.
This section is informative.
In addition to repeating and accumulating values of a single animation, an animation may be expressed as a delta to an attribute's value, rather than as an absolute value. This may be used in a single animation to adapt the underlying DOM value, or complex animations may be produced by combining several simple ones.
For example, a simple "grow" animation can increase the width of an object by 10 pixels:
<rect width="20px" ...> <animate attributeName="width" from="0px" to="10px" dur="10s" additive="sum"/> </rect>
The width begins at 20 pixels, and increases to 30 pixels over the course of 10 seconds. If the animation were declared to be non-additive, the same from and to values would make the width go from 0 to 10 pixels over 10 seconds.
Many complex animations are best expressed as combinations of simpler animations. A "vibrating" path, for example, can be described as a repeating up and down motion added to any other motion:
<img ...> <animateMotion from="0,0" to="100,0" dur="10s" /> <animateMotion values="0,0; 0,5; 0,0" dur="1s" repeatDur="10s" additive="sum"/> </img>
The animation effect function, captures the semantics of this for a single animation element:
Every animation element must be defined as either additive or non-additive. An element may be defined as additive only if addition is defined for the type of the target attribute.
The animation effect function
F(t,u)
combines all previously defined functions into one for a single animation element.If the animation is additive,F(t,u) = u + ff(t)
.If the animation is non-additive,
F(t,u) = ff(t)
.
This section is informative.
When there are multiple animations defined for a given attribute that overlap at any moment, the two either add together or one overrides the other. Animations overlap when they are both either active or frozen at the same moment. The ordering of animations (e.g. which animation overrides which) is determined by a priority associated with each animation. The animations are prioritized according to when each begins. The animation first begun has lowest priority and the most recently begun animation has highest priority.
Higher priority animations that are not additive will override all earlier (lower priority) animations, and simply set the attribute value. Animations that are additive apply (i.e. add to) to the result of the earlier-activated animations. For details on how animations are combined, see The animation sandwich model.
Additive animation is defined for numeric attributes and other data types for which an addition function is defined. This includes numeric attributes for concepts such as position, widths and heights, sizes, etc. This also includes color (refer to The animateColor element), and may include other data types as specified by the host language.
It is often useful to combine additive animations and fill behavior, for example when a series of motions are defined that should build upon one another:
<img ...> <animateMotion begin="0" dur="5s" path="[some path]" additive="sum" fill="freeze" /> <animateMotion begin="5s" dur="5s" path="[some path]" additive="sum" fill="freeze" /> <animateMotion begin="10s" dur="5s" path="[some path]" additive="sum" fill="freeze" /> </img>
The image moves along the first path, and then starts the second path from the end of the first, then follows the third path from the end of the second, and stays at the final point.
While many animations of numerical attributes will be additive, this is not always the case. As an example of an animation that is defined to be non-additive, consider a hypothetical extension animation "mouseFollow" that causes an object to track the mouse.
<img ...> <animateMotion dur="10s" repeatDur="indefinite" path="[some nice path]" /> <mouseFollow begin="mouseover" dur="5s" additive="replace" fill="remove" /> </img>
The mouse-tracking animation runs for 5 seconds every time the user mouses
over the image. It cannot be additive, or it will just offset the motion path
in some odd way. The mouseFollow
needs to override the animateMotion while it is active.
When the mouseFollow
completes, its effect is no longer applied
and the animateMotion again
controls the presentation value for position.
In addition, some numeric attributes (e.g. a telephone number attribute) may not sensibly support addition. It is left to the host language to specify which attributes support additive animation. Attribute types for which addition is not defined, such as strings and Booleans, may not support additive animation.
The accumulate attribute should not be confused with the additive attribute. The additive attribute defines how an animation is combined with other animations and the base value of the attribute. The accumulate attribute defines only how the simple animation function interacts with itself, across repeat iterations.
Typically, authors expect cumulative animations to be additive (as in the examples described for accumulate above), but this is not required. The following example is cumulative but not additive.
<img ...> <animate dur="10s" repeatDur="indefinite" attributeName="top" from="20" by="10" additive="replace" accumulate="sum" /> </img>
The animation overrides whatever original value was set for "top", and begins at the value 20. It moves down by 10 pixels to 30, then repeats. It is cumulative, so the second iteration starts at 50 (the value of 30 from the previous iteration plus the from value, 20) and moves down by another 10 to 60, and so on.
When a cumulative animation is also defined to be additive, the two
features function normally. The accumulated effect for
F(t,u)
is used as the value for the animation,
and is added to the underlying value for the target attribute. For
example:
<img top="10" ... > <animate dur="10s" repeatDur="indefinite" attributename="top" from="20" by="10" additive="sum" accumulate="sum" /> </img>
The animation adds to the original value of 10 that was set for "top", and begins at the value 30. It moves down by 10 pixels to 40, then repeats. It is cumulative, so the second iteration starts at 60 (the value of 30 from the previous iteration plus 20 from the from attribute and plus 10 from the underlying value) and moves down by another 10 to 70, and so on.
Refer also to The animation sandwich model.
This section is informative.
Animation elements follow the definition of restart in the SMIL Timing module. This section is descriptive.
When an animation restarts, the defining semantic is that it behaves as
though this were the first time the animation had begun, independent of any
earlier behavior. The animation effect function
F(t,u)
is defined independent of the restart
behavior. Any effect of an animation playing earlier is no longer applied,
and only the current animation effect F(t,u)
is
applied.
If an additive animation is restarted while it is active or frozen, the
previous effect of the animation (i.e. before the restart) is no longer
applied to the attribute. Note in particular that cumulative animation is
defined only within the active duration of an animation. When an animation
restarts, all accumulated context is discarded, and the animation effect
F(t,u)
begins accumulating again from the first
iteration of the restarted active duration.
This section is informative.
Many animations specify the simple animation function
f(t)
as a sequence of values to be applied over
time. For some types of attributes (e.g. numbers), it is also possible to
describe an interpolation function between values.
As a simple form of describing the values, animation elements may specify a from value and a to value. If the attribute takes values that support interpolation (e.g. a number), the simple animation function may interpolate values in the range defined by from and to, over the course of the simple duration. A variant on this uses a by value in place of the to value, to indicate an additive change to the attribute.
More complex forms specify a list of values, or even a path description for motion. Authors may also control the timing of the values, to describe "keyframe" animations, and even more complex functions.
In all cases, the animation effect function,
F(t,u)
, must yield legal values for the target
attribute. Three classes of values are described:
The animate element can interpolate unitless scalar values, and both animate and set elements can handle String values without any semantic knowledge of the target element or attribute. The animate and set elements must support unitless scalar values and string values. The host language must define which additional language abstract values should be handled by these elements. Note that the animateColor element implicitly handles the abstract values for color values, and that the animateMotion element implicitly handles position and path values.
In order to support interpolation on attributes that define numeric values with some sort of units or qualifiers (e.g. "10px", "2.3feet", "$2.99"), some additional support is required to parse and interpolate these values. One possibility is to require that the animation framework have built-in knowledge of the unit-qualified value types. However, this violates the principle of encapsulation and does not scale beyond CSS to XML languages that define new attribute value types of this form.
The recommended approach is for the animation implementation for a given host environment to support two interfaces that abstract the handling of the language abstract values. These interfaces are not formally specified, but are simply described as follows:
Support for these two interfaces ensures that an animation engine need not replicate the parser and any additional semantic logic associated with language abstract values.
This is not an attempt to specify how an implementation provides this support, but rather a requirement for how values are interpreted. Animation behaviors should not have to understand and be able to convert among all the CSS-length units, for example. In addition, this mechanism allows for application of animation to new XML languages, if the implementation for a language can provide parsing and conversion support for attribute values.
The above recommendations notwithstanding, it is sometimes useful to interpolate values in a specific unit-space, and to apply the result using the specified units rather than canonical units. This is especially true for certain relative units such as those defined by CSS (e.g. em units). If an animation specifies all the values in the same units, an implementation may use knowledge of the associated syntax to interpolate in the unit space, and apply the result within the animation sandwich, in terms of the specified units rather than canonical units. As noted above, this solution does not scale well to the general case. Nevertheless, in certain applications (such as CSS properties), it may be desirable to take this approach.
If the simple duration of an animation is indefinite (e.g. if no dur value is specified), interpolation is not
generally meaningful. While it is possible to define an animation function
that is not based upon a defined simple duration (e.g. some random number
algorithm), most animations define the function in terms of the simple
duration. If an animation function is defined in terms of the simple duration
and the simple duration is indefinite, the first value of the animation
function (i.e. f(0)
) should be used
(effectively as a constant) for the animation function.
This section is informative.
The SMIL 3.0 BasicAnimation module provides
The BasicAnimation module defines attributes and elements following the model presented in the Animation Model section.
This section is normative.
This remark is informative.
The elements of the BasicAnimation module have in common the attributes used to identify the target attribute and, less universally, the attributes by which the animation functions are specified.
The animation target is defined as a specific attribute of a particular element. The means of specifying the target attribute and the target element are detailed in this section.
The target attribute to be animated is specified with attributeName. The value of this attribute is a string that specifies the name of the target attribute, as defined in the host language.
The attributes of an element that may be animated are often defined by different languages, and/or in different namespaces. For example, in many XML applications, the position of an element (which is a typical target attribute) is defined as a CSS property rather than as XML attributes. In some cases, the same attribute name is associated with attributes or properties in more than one language, or namespace. To allow the author to disambiguate the name mapping, an additional attribute attributeType is provided that specifies the intended namespace.
The attributeType attribute is optional. By default, the animation runtime will resolve the names according to the following rule: If there is a name conflict and attributeType is not specified, the list of CSS properties supported by the host language is matched first (if CSS is supported in the host language); if no CSS match is made (or CSS does not apply) the per-element-type partition namespace for the target element will be matched.
If a target attribute is defined in an XML Namespace other than the per-element-type partition namespace for the target element, the author must specify the namespace of the target attribute using the associated namespace prefix as defined in the scope of the animation element. The prefix is prepended to the value for attributeName.
For more information on XML namespaces, see [XML-NS].
An animation element may define the target element of the animation either explicitly or implicitly. An explicit definition uses an attribute to specify the target element. The syntax for this is described below.
If no explicit target is specified, the implicit target element is the parent element of the animation element in the document tree. It is expected that the common case will be that an animation element is declared as a child of the element to be animated. In this case, no explicit target need be specified.
If an explicit target element reference cannot be resolved (e.g. if no such element can be found), the animation has no effect. In addition, if the target element (either implicit or explicit) does not support the specified target attribute, the animation has no effect. See also Handling syntax errors.
The following two attributes may be used to identify the target element explicitly:
When integrating animation elements into the host language, the language designer should avoid including both of these attributes. If however, the host language designer chooses to include both attributes in the host language, then when both are specified for a given animation element the XLink href attribute takes precedence over the targetElement attribute.
This section is informative.
The advantage of using the targetElement attribute is the simpler syntax of the attribute value compared to the href attribute. The advantage of using the XLink href attribute is that it is extensible to a full linking mechanism in future versions of SMIL Animation, and the animation element may be processed by generic XLink processors. The XLink form is also provided for host languages that are designed to use XLink for all such references. The following two examples illustrate the two approaches.
This example uses the simpler targetElement syntax:
<animate targetElement="foo" attributeName="bar" .../>
This example uses the more flexible XLink locator syntax, with the equivalent target:
<foo xmlns:xlink="http://www.w3.org/1999/xlink"> ... <animate xlink:href="#foo" attributeName="bar" .../> ... </foo>
When using an XLink href attribute on an animation element, the following additional XLink attributes must be defined in the host language. These may be defined in a DTD, or the host language may require these in the document syntax to support generic XLink processors. For more information, refer to [XLINK].
The following XLink attributes are required by the XLink specification. The values are fixed, and so may be specified as such in a DTD. All other XLink attributes are optional, and do not affect SMIL Animation semantics.
Additional details on the target element specification as relates to the host document and language are described in Required definitions and constraints on animation targets.
Every animation function defines the value of the attribute at a particular moment in time. The time range for which the animation function is defined is the simple duration. The animation function does not produce defined results for times outside the range of 0 to the simple duration.
An animation is described either as a list of values, or in a simplified form that describes the from, to and by values. The from/to/by form is defined in Simple animation functions defined by from, to and by.
If any values are not legal, the animation will have no effect (see also Handling Syntax Errors).
The animation will apply the values in order over the course of the animation. For discrete and linear animations, values in the values attribute are equally spaced through the animation duration. For paced animations, the values are spaced so that a uniform rate of change is obtained.
This section is informative.
The following example using the values syntax animates the width of an SVG shape over the course of 10 seconds, interpolating from a width of 40 to a width of 100 and back to 40.
<rect ...> <animate attributeName="width" values="40;100;40" dur="10s"/> </rect>
The simple animation function for this example (with time in seconds) is
f(t) = 40 + 60*t/5, 0 <= t < 5,
and
f(t) = 100 - 60*(t-5)/5, 5 <= t <= 10
.
The simple animation function defined by the values and calcMode attributes can be formally specified:
Let i =
floor((t*n)/d)
, d
be the simple
duration of the animation element, n
be the
number of entries in the values attribute,
value[i]
be the
ith
entry (counting from 0),
di
be the duration of the the
ith
time period, and
ti
be the time at which the the
ith
time period begins.
n
equal time periods, one per value. With a
keyTimes attribute, the time periods are specified by the keyTimes
values. The animation function takes on the values in order, one value
for each time period:
f(t) = value[i]
n-1
equal periods, and
di = d/(n-1)
for any value of
i
. The animation function is a linear
interpolation between the values at the associated times:
f(t) = value[i] +
(value[i+1]-value[i]) *
(t-ti)/di
.
With a keyTimes attribute, the time periods are specified by the
keyTimes values and so di
is the
duration of the ith
period as
defined by the keyTimes values:
di = (keyTimes[i+1] - keyTimes[i]) *
d
dist(v1,v2)
, the
total distance traversed D(i)
up to and
including value[i]
is
D(0) = 0
, and
D(i) = dist(value[0],value[1]) + dist(value[1],value[2]) +...+ dist(value[i-1],value[i])
, for integersi
with0<i<=n
.
The animation function takes on the values in the values attribute at times determined by these distances:
ti = (D(i)/D(n)) *
d, for integers
i
with
0<=i<=n
.
di = ti+1 - ti =
((D(i+1) - D(i)) / D(n)) * d = (dist(value[i],value[i+1]) / D(n)) *
d
f(t) = value[i] +
(value[i+1]-value[i]) * (t-ti)/
di
where i
is the largest
non-negative integer such that
ti<=t
.
Note that a linear or paced animation will be a smoothly closed loop if the first value is repeated as the last. The keyTimes attribute is described in the SplineAnimation section.
This section is informative.
The three figures 5a, 5b and 5c below show how the same basic animation will change a value over time, given different interpolation modes. All examples are based upon the following example, but with different values for calcMode:
<animate dur="30s" values="0; 6; 5; 11; 10; 16" calcMode="[as specified]" />
Figure 5 - Discrete, linear and paced animation
This section is informative.
The following example describes a simple discrete animation:
<animate attributeName="foo" dur="8s" values="bar; fun; far; boo" />
The value of the attribute "foo" will be set to each of the four strings for 2 seconds each. Because the string values cannot be interpolated, only discrete animation is possible; any calcMode attribute would be ignored.
The following example describes a simple linear animation:
<animate attributeName="x" dur="10s" values="0; 10; 100" calcMode="linear"/>
The value of "x" will change from 0 to 10 in the first 5 seconds, and then from 10 to 100 in the second 5 seconds. Note that the values in the values attribute are spaced evenly in time; in this case the result is a much larger actual change in the value during the second half of the animation. Contrast this with the same example changed to use "paced" interpolation:
<animate attributeName="x" dur="10s" values="0; 10; 100" calcMode="paced"/>
To produce an even pace of change to the attribute "x", the second segment defined by the values list gets most of the simple duration: The value of "x" will change from 0 to 10 in the first second, and then from 10 to 100 in the next 9 seconds. While this example could be easily authored as a from-to animation without paced interpolation, many examples (such as motion paths) are much harder to author without the paced value for calcMode.
This section is informative.
As described in The animation effect function F(t,u), the simple animation function may be
The animation effect function F(t,u) defines the semantics of these attributes, and gives examples. This section gives only the syntax.
See the BasicInlineTiming module for definitions of the attributes repeatCount, repeatDur and fill.
The additive and cumulative behavior of repeating animations is controlled with the additive and accumulate attributes, respectively:
f(t)
. An animation is described either as a list of values, as described earlier, or in a simplified form that uses from, to and by values.
The simpler from/to/by syntax provides for several variants. To use one of these variants, one of by or to must be specified; a from may be specified. The by and to attributes must not both be specified; if both are specified, only the to attribute will be used (the by will be ignored). The combinations of attributes yield the following classes of animation.
vf
and a
to value vt
is equivalent to the
same animation with a values list with 2 values,
vf
and vt
.vf
and a
by value vb
is equivalent to the
same animation with a values list with 2 values,
vf
and
(vf+vb)
.vb
is equivalent to the same animation
with a values list with 2 values,
the neutral element for addition for the domain of the target
attribute (denoted 0
) and vb
, and
additive=
"sum". Any other specification of the
additive attribute in a by animation is
ignored.This section is informative.
The following "from-to animation" example animates the width of an SVG shape over the course of 10 seconds from a width of 50 to a width of 100.
<rect ...> <animate attributeName="width" from="50" to="100" dur="10s"/> </rect>
The following "from-by animation" example animates the width of an SVG shape over the course of 10 seconds from a width of 50 to a width of 75.
<rect ...> <animate attributeName="width" from="50" by="25" dur="10s"/> </rect>
The following "by animation" example animates the width of an SVG shape over the course of 10 seconds from the original width of 40 to a width of 70.
<rect width="40"...> <animate attributeName="width" by="30" dur="10s"/> </rect>
From-to and from-by animations also support cumulative animation, as in the following example:
<rect width="20px"...> <animate attributeName="width" dur="5s" from="10px" to="20px" accumulate="sum" repeatCount="10" /> </rect>
The rectangle will grow from 10 to 20 pixels in the first 5 seconds, and then from 30 to 40 in the next 5 seconds, and so on up to 200 pixels after 10 repeats. Note that since the default value for additive is replace, the original value is ignored. The following example makes the animation explicitly additive:
<rect width="20px"...> <animate attributeName="width" dur="5s" from="10px" to="20px" accumulate="sum" additive="sum" repeatCount="10" /> </rect>
The results are the same as before, except that all the values are shifted up by the original value of 20. After 5 seconds, the rectangle jumps from 40 pixels to 50 pixels wide, and it is 220 pixels wide at the end of the 10th repeat.
This section is informative.
A to animation of an attribute which supports addition is a kind of mix of additive and non-additive animation. The underlying value is used as a starting point as with additive animation, however the ending value specified by the to attribute overrides the underlying value as though the animation was non-additive.
The following "to animation" example animates the width of an SVG shape over the course of 10 seconds from the original width of 40 to a width of 100.
<rect width="40"...> <animate attributeName="width" to="100" dur="10s"/> </rect>
Since a to animation has only 1 value, a discrete to animation will simply set the to value for the simple duration. In the following example, the rect will be blue for the 10 second duration of the animate element.
<rect color="red"...> <animate attributeName="color" to="blue" dur="10s" calcMode="discrete"/> </rect>
The semantics of to animation fit into the general animation model, but with a few special cases. The normative definition given here parallels the definition for other types of animation presented in the Animation Model section.
The simple animation function
f(t,u)
for a discrete to animation with to valuevt
is a constant function which ignores the underlying value:
f(t,u) = vt
Otherwise, the simple animation function
f(t,u)
for a to animation with to valuevt
is a linear interpolation between the underlying value,u
, and the to value:
f(t,u) = (u * (d-t)/d) + (vt * t/d)
, fort
:0<=t<=d
whered
is the simple duration.
If no other (lower priority) animations are active or frozen, this defines
simple interpolation. However if another animation is manipulating the
underlying value, the to animation will initially add to the effect
of the lower priority animation, and increasingly dominate it as it nears the
end of the simple duration, eventually overriding it completely. The value
for f(t,u)
at the end of the simple duration is
just the to value.
Repeating to animations is the same as repeating other animations:
Normative
The repeated animation function,fr(t,u)
, has the standard definition:fr(t,u) = f( REMAINDER(t,d), u )
.
Because to animation is defined in terms of absolute values of the target attribute, cumulative animation is not defined:
The cumulative animation function,fc(t)
, for a to animation isfc(t,u) =
fr(t,u)
.
A frozen to animation takes on the value at the time it is frozen, masking further changes in the underlying value. This matches the dominance of the to value at the end of the simple duration. Even if other, lower priority animations are active while a to animation is frozen, the value does not change.
The frozen animation function,ff(t)
, for a to animation isff(t,u)
= fc(t,u)
, if the animation is not frozen at timet
, and
ff(t,u)
= vf
, if the animation is frozen at timet
, wherevf
is the value offf(t,u)
at the moment the animation was frozen.
This remark is informative.
For example, consider
<rect width="40"...> <animate attributeName="width" to="100" dur="10s" repeatCount="2.5" fill="freeze"/> </rect>
The width will animate from 40 to 100 pixels in the first 10 seconds, repeat 40 to 100 in the second 10 seconds, go from 40 to 70 in the final 5 seconds, and freeze at 70.
To animation defines its own kind of additive semantics, so the additive attribute is ignored.
The animation effect function,F(t,u)
for a to animation isF(t,u)
=
ff(t,u)
.
Multiple to animations will also combine according to these semantics. As the animation progresses, the higher-priority animation will have greater and greater effect, and the end result will be to set the attribute to the final value of the higher-priority to animation.
This section is informative.
For an example of additive to animation, consider the following two additive animations. The first, a by-animation applies a delta to attribute "x" from 0 to -10. The second, a to animation animates to a final value of 10.
<foo x="0" ...> <animate xml:id="A1" attributeName="x" by="-10" dur="10s" fill="freeze" /> <animate xml:id="A2" attributeName="x" to="10" dur="10s" fill="freeze" /> </foo>
The presentation value for "x" in the example above, over the course of
the 10 seconds is presented in Figure 6 below. These values are simply
computed using the formula described above. Note that the value for
F(t,u)
for A2 is the presentation value for
"x", since A2 is the higher-priority animation.
Figure 6 - Effect of Additive to animation example
Time F(t,u)
for A1F(t,u)
for A20 0 0 1 -1 0.1 2 -2 0.4 3 -3 0.9 4 -4 1.6 5 -5 2.5 6 -6 3.6 7 -7 4.9 8 -8 6.4 9 -9 8.1 10 -10 10
This section is normative.
The SMIL BasicAnimation module defines four elements, animate, set, animateMotion and animateColor.
The animate element introduces a generic attribute animation that requires little or no semantic understanding of the attribute being animated. It can animate numeric scalars as well as numeric vectors. It can also animate a single non-numeric attribute through a discrete set of values. The animate element is an empty element; it does not have child elements.
This element supports from/to/by and values descriptions for the animation function, as well as all of the calculation modes. It supports all the described timing attributes. These are all described in respective sections above.
Numerous examples are provided above, as are normative definitions of the semantics of all attributes supported by animate.
The set element provides a simple means of just setting the value of an attribute for a specified duration. As with all animation elements, this only manipulates the presentation value, and when the animation completes, the effect is no longer applied. That is, set does not permanently set the value of the attribute.
The set element supports all attribute types, including those that cannot reasonably be interpolated and that more sensibly support semantics of simply setting a value (e.g. strings and Boolean values). The set element is non-additive. The additive and accumulate attributes are not allowed, and will be ignored if specified.
The set element supports all the
timing attributes to specify the simple and active durations. However, the
repeatCount and repeatDur attributes will just affect
the active duration of the set,
extending the effect of the set (since
it is not really meaningful to "repeat" a static operation). Note that using
fill="freeze"
with set will have the same effect as defining the
timing so that the active duration is indefinite.
The set element supports a more restricted set of attributes than the animate element. Only one value is specified, and neither interpolation control nor additive or cumulative animation is supported:
The simple animation function defined by a set element isf(t) = v
where
v
is the value of theto
attribute.The set element is non-cumulative and non-additive.
This section is informative.
The following changes the stroke-width of an SVG rectangle from the original value to 5 pixels wide. The effect begins at 5 seconds and lasts for 10 seconds, after which the original value is again used.
<rect ...> <set attributeName="stroke-width" to="5px" begin="5s" dur="10s" fill="remove" /> </rect>
The following example sets the class
attribute of the text
element to the string "highlight" when the mouse moves over the element, and
removes the effect when the mouse moves off the element.
<text>This will highlight if you mouse over it... <set attributeName="class" to="highlight" begin="mouseover" end="mouseout" /> </text>
The animateMotion element will move an element along a path. The element abstracts the notion of motion and position across a variety of layout mechanisms - the host language defines the layout model and must specify the precise semantics of position and motion. The path may be described in either of two ways:
All values must be x, y value pairs. Each x and y value may specify any units supported for element positioning by the host language. The host language defines the default units. In addition, the host language defines the reference point for positioning an element. This is the point within the element that is aligned to the position described by the motion animation. The reference point defaults in some languages to the upper left corner of the element bounding box; in other languages the reference point may be implicit, or may be specified for an element.
The syntax for the x, y value pairs is:
Coordinate-pair ::= "(" Coordinate Comma-wsp Coordinate ")" Coordinate ::= Num Num ::= Number
Coordinate values are separated by at least one white space character or a
comma. Additional white space around the separator is allowed. The values of
Coordinate
must be defined as some sort of number in the host
language.
The attributeName and attributeType attributes are not used with animateMotion, as the manipulated position attribute(s) are defined by the host language. If the position is exposed as an attribute or attributes that may also be animated (e.g. as "top" and "left", or "posX" and "posY"), implementations must combine animateMotion animations with other animations that manipulate individual position attributes. See also The animation sandwich model.
If none of the from, to, by and values attributes are specified, the animation will have no effect.
The default calculation mode (calcMode) for animateMotion is paced. This will produce constant velocity motion along the specified path. Note that while animateMotion elements may be additive, the addition of two or more paced (constant velocity) animations may not result in a combined motion animation with constant velocity.
The use of linear for the calcMode with more than 2 points described in the values attribute may result in motion with varying velocity. The linear calcMode specifies that time is evenly divided among the segments defined by the values. The use of linear does not specify that time is divided evenly according to the distance described by each segment.
For motion with constant velocity, calcMode should be set to paced.
from="(-100,0)"
and to="(0,0)"
. Authors must be able
to describe motion both in this manner, as well as relative to the
container block. The origin
attribute supports this distinction. Nevertheless, because the host
language defines the layout model, the host language must also specify
the "default" behavior, as well as any additional attribute values that
are supported.The animateColor element specifies an animation of a color attribute. The host language must specify those attributes that describe color values and may support color animation.
All values must represent [sRGB] color values. Legal value syntax for attribute values is defined by the host language.
Interpolation is defined on a per-color-channel basis.
The values in the from/to/by and values attributes may specify negative and out of gamut values for colors. The function defined by an individual animateColor may yield negative or out of gamut values. The implementation must correct the resulting presentation value, to be legal for the destination (display) colorspace. However, as described in The animation sandwich model, the implementation should only correct the final combined result of all animations for a given attribute, and should not correct the effect of individual animations.
Values are corrected by "clamping" the values to the correct range. Values less than the minimum allowed value are clamped to the minimum value (commonly 0, but not necessarily so for some color profiles). Values greater than the defined maximum are clamped to the maximum value (defined by the host language) .
This section is informative.
Note that color values are corrected by clamping them to the gamut of the destination (display) colorspace. Some implementations may be unable to process values which are outside the source (sRGB) colorspace and must thus perform clamping to the source colorspace, then convert to the destination colorspace and clamp to its gamut. The point is to distinguish between the source and destination gamuts; to clamp as late as possible, and to realize that some devices, such as inkjet printers which appear to be RGB devices, have non-cubical gamuts.
Note to implementers: When animateColor is specified as a to animation, the animation function should assume Euclidean RGB-cube distance where deltas must be computed. See also Specifying the simple animation function f(t) and Simple animation functions specified by from, to and by. Similarly, when the calcMode attribute for animateColor is set to paced, the animation function should assume Euclidean RGB-cube distance to compute the distance and pacing.
This section is normative.
This section describes what a language designer must actually do to specify the integration of SMIL Animation into a host language. This includes basic definitions and constraints upon animation.
In addition to the requirements listed in this section, those listed in Common animation integration requirements must be satisfied.
The host language designer must choose whether to support the targetElement attribute or the XLink attributes for specifying the target element. Note that if the XLink syntax is used, the host language designer must decide how to denote the XLink namespace for the associated attributes. The namespace may be fixed in a DTD, or the language designer may require colonized attribute names (qnames) to denote the XLink namespace for the attributes. The required XLink attributes have fixed values, and so may also be specified in a DTD, or may be required on the animation elements. Host language designers may require that the optional XLink attributes be specified. These decisions are left to the host language designer - the syntax details for XLink attributes do not affect the semantics of SMIL Animation.
In general, target elements may be any element in the document. Host language designers must specify any exceptions to this. Host language designers are discouraged from allowing animation elements to target elements outside of the document in which the animation element is defined. The XLink syntax for the target element could allow this, but the SMIL timing and animation semantics of this are not defined in this version of SMIL Animation.
The definitions in this module may be used to animate any attribute of any
element in a host document. However, it is expected that host language
designers integrating SMIL Animation may choose to constrain which elements
and attributes may support animation. For example, a host language may choose
not to support animation of the language
attribute of a
script
element. A host language which included a specification
for DOM functionality might limit animation to the attributes which may
legally be modified through the DOM.
Any attribute of any element not specifically excluded from animation by the host language may be animated, as long as the underlying data type (as defined by the host language for the attribute) supports discrete values (for discrete animation) and/or addition (for interpolated, additive and cumulative animation).
All constraints upon animation must be described in the host language specification or in an appropriate schema, as the DTD alone cannot reasonably express this.
The host language must define which language abstract values should be handled for animated attributes. For example, a host language that incorporates CSS may require that CSS length values be supported. This is further detailed in Animation function value details.
The host language must specify the interpretation of relative values. For example, if a value is specified as a percentage of the size of a container, the host language must specify whether this value will be dynamically interpreted as the container size is animated.
The host language must specify the semantics of clamping values for attributes. The language must specify any defined ranges for values, and how out of range values will be handled.
The host language must specify the formats supported for numeric attribute values. This includes both integer values and floating point values. As a reasonable minimum, host language designers are encouraged to support the format described in section 4.3.1, "Integers and real numbers," of [CSS2].
The host language specification must define which elements may be the target of animateMotion. In addition, the host language specification must describe the positioning model for elements, and must describe the model for animateMotion in this context (i.e. the semantics of the default value for the origin attribute must be defined). If there are different ways to describe position, additional attribute values for the origin attribute should be defined to allow authors control over the positioning model.
This section is informative.
See the full DTD for the SMIL Animation Modules.
This section is normative.
This section is informative.
This section defines the functionality of the SMIL 3.0 SplineAnimation module. This module adds attributes for spline interpolation and for uneven spacing of points in time. These attributes may be used in animate, animateMotion and animateColor elements.
The SplineAnimation module extends the discrete, linear and paced calculation modes of the BasicAnimation module, providing additional control over interpolation and timing:
The use of discrete for the calcMode together with a path specification is allowed, but will simply jump the target element from point to point. The times are derived from the points in the path specification, as described in the path attribute, immediately below.
If a list of keyTimes is specified, there must be exactly as many values in the keyTimes list as in the values list.
If no keyTimes attribute is specified, the simple duration is divided into equal segments as described in The simple animation function f(t).
Each successive time value must be greater than or equal to the preceding time value.
The keyTimes list semantics depends upon the interpolation mode:
If the interpolation mode is paced, the keyTimes attribute is ignored.
If there are any errors in the keyTimes specification (bad values, too many or too few values), the animation will have no effect.
If the simple duration is indefinite and the interpolation mode is
linear or spline, any keyTimes specification will be
ignored.
x1 y1
x2 y2
, describing the Bezier control points for one time
segment. The keyTimes values
that define the associated segment are the Bezier "anchor points", and
the keySplines values are
the control points. Thus, there must be one fewer sets of control
points in the keySplines
attribute than there are keyTimes.
The values must all be in the range 0 to 1.
This attribute is ignored unless the calcMode is set to spline.
This semantic (the duration is divided into n-1
equal periods)
applies as well when the keySplines attribute is specified, but
keyTimes is not. The times
associated to the keySplines
values are determined as described above.
The syntax for the control point sets in keySplines lists is:
Control-pt-set ::= ( Fpval Comma-wsp Fpval Comma-wsp Fpval Comma-wsp Fpval )
Using:
Fpval ::= Floating point number Comma-wsp ::= S? (S|",") S? S ::= (#x20 | #x9 | #xD | #xA)+ /* from [XML11] */
Control point values are separated by at least one white space character or a comma. Additional white space around the separator is allowed. The allowed syntax for floating point numbers must be defined in the host language.
If the argument values for keyTimes or keySplines are not legal (including too few or too many values for either attribute), the animation will have no effect (see also Handling syntax errors).
In the calcMode, keyTimes and keySplines attribute values, leading and trailing white space and white space before and after semicolon separators will be ignored.
This section is informative.
Discrete animation may be used with keyTimes, as in the following example:
<animateColor attributeName="color" dur="10s" calcMode="discrete" values="green; yellow; red" keyTimes="0.0; 0.5; 0.8" />
The value of the "color" attribute will be set to green for 5 seconds, and then to yellow for 3 seconds, and then will remain red for the last 2 seconds.
When using discrete animation with a keyTimes value of 1, the result may be somewhat surprising. Consider the following example:
<par dur="30"> <animate calcMode="discrete" repeatCount="2" dur="10" fill="freeze" accumulate="[as specified]" keyTimes="0.0; 0.5; 1.0" values="0; 1; 2" .../> </par>
This example is tricky because of the end-point-exclusive nature of the SMIL time model. At first flush, the final value is never reached since the final time is never reached, but the definitions above make that the value is used anyway. The table gives the value for selected times for the possible values of the accumulate attribute:
time | accumulate | |
none | sum | |
t=0 | 0 | 0 |
t=5 | 1 | 1 |
t=10 | 0 | 2 |
t=15 | 1 | 3 |
t=20 | 2 | 4 |
t=25 | 2 | 4 |
The following example illustrates the use of keyTimes:
<animate attributeName="x" dur="10s" values="0; 50; 100" keyTimes="0; .8; 1" calcMode="linear"/>
The keyTimes values cause the "x" attribute to have a value of "0" at the start of the animation, "50" after 8 seconds (at 80% into the simple duration) and "100" at the end of the animation. The value will change more slowly in the first half of the animation, and more quickly in the second half.
For some attributes, the pace of change may not be easily discernibly by viewers. However for animations like motion, the ability to make the speed of the motion change gradually, and not in abrupt steps, can be important. The keySplines attribute provides this control.
Extending the above example to use keySplines:
<animate attributeName="x" dur="10s" values="0; 50; 100" keyTimes="0; .8; 1" calcMode="spline" keySplines=".5 0 .5 1; 0 0 1 1" />
The keyTimes still cause the "x" attribute to have a value of "0" at the start of the animation, "50" after 8 seconds and "100" at the end of the animation. However, the keySplines values define a curve for pacing the interpolation between values. In the example above, the spline causes an ease-in and ease-out effect between time 0 and 8 seconds (i.e. between keyTimes 0 and .8, and values "0" and "50"), but a strict linear interpolation between 8 seconds and the end (i.e. between keyTimes .8 and 1, and values "50" and "100"). Figure 7 shows the curves that these keySplines values define.
Figure 7 - Illustration of keySplines effect
Each diagram in Figure 7 illustrates the effect of keySplines settings for a single interval (i.e. between the associated pairs of values in the keyTimes and values lists.). The horizontal axis can be thought of as the input value for the unit progress of interpolation within the interval - i.e. the pace with which interpolation proceeds along the given interval. The vertical axis is the resulting value for the unit progress, yielded by the keySplines function. Another way of describing this is that the horizontal axis is the input unit time for the interval, and the vertical axis is the output unit time. See also the section Timing and real-world clock times.
To illustrate the calculations, consider the simple example:
<animate dur="4s" values="10; 20" keyTimes="0; 1" calcMode="spline" keySplines={as in table} />
Using the keySplines values for each of the four cases above, the approximate interpolated values as the animation proceeds are:
keySplines values | Initial value | After 1s | After 2s | After 3s | Final value |
0 0 1 1 | 10.0 | 12.5 | 15.0 | 17.5 | 20.0 |
.5 0 .5 1 | 10.0 | 11.0 | 15.0 | 19.0 | 20.0 |
0 .75 .25 1 | 10.0 | 18.0 | 19.3 | 19.8 | 20.0 |
1 0 .25 .25 | 10.0 | 10.1 | 10.6 | 16.9 | 20.0 |
For a formal definition of Bezier spline calculation, see [COMP-GRAPHICS], pages 488-491.
The keyTimes and keySplines attributes may also be used with the from/to/by shorthand forms for specifying values, as in the following example:
<animate attributeName="foo" from="10" to="20" dur="10s" keyTimes="0.0; 1.0" calcMode="spline" keySplines=".5 0 .5 1" />
The value will change from 10 to 20, using an "ease-in/ease-out" curve specified by the keySplines values. The keyTimes values cause the value of 20 to be reached at 10 seconds.
The following example describes a somewhat unusual usage, a
from-to animation with discrete animation. The
stroke-linecap
attribute of SVG elements takes a string, and so
implies a calcMode of discrete. The animation will set the
stroke-linecap
attribute to round
for 5 seconds (half the simple duration) and then set the
stroke-linecap
to square for 5
seconds.
<rect stroke-linecap="butt"...> <animate attributeName="stroke-linecap" from="round" to="square" dur="10s"/> </rect>
This remark is informative.
The SplineAnimation module extends the BasicAnimation elements animate, animateMotion and animateColor, adding the attributes keyTimes and keySplines, and the value spline for the calcMode attribute.
The SplineAnimation module extends the animate element defined by the BasicAnimation module, adding the following attributes and values.
Examples are provided above, as are normative definitions of the semantics of all attributes supported by animate.
The SplineAnimation module extends the animateMotion element defined by the BasicAnimation module, adding the following attributes and values.
A path data segment must begin with either one of the "moveto" commands.
For all calcMode settings,
the definition of the simple animation function,
f(t)
, uses the number of values in the
values attribute to determine
how the simple duration d
is divided
into segments. When a path
attribute is used, the number of values is defined to be the number of
points defined by the path, unless there are "move to" commands in
the path after the initial "move to" command. A "move to" command does not define an additional "segment"
for the purposes of timing or interpolation. A "move to" command does
not count as an additional point when dividing up the
duration. Note that the control points for a Bezier curve also
do not define an additional "segment". When a
path is combined with a paced calcMode setting, all "move to"
commands are considered to have 0 duration (i.e. they always happen
instantaneously), and should not be considered in computing the
pacing.
If the path attribute is is specified, any from/to/by or values attribute values will be ignored.
Examples are provided above, as are normative definitions of the semantics of all attributes supported by animate.
For complete velocity control, calcMode may be set to spline and the author may specify a velocity control spline with keyTimes and keySplines.
This remark is informative.
Note that using a cubic Bezier curve requires numerical calculations to calculate the length of the path along the curve so that movement along the path can be done at a constant rate. Implementations are expected to do a "best effort".
The SplineAnimation module extends the animateColor element defined by the BasicAnimation module, adding the following attributes and values.
This section is normative.
To specify the integration of the SMIL 3.0 SplineAnimation module into a host language, the language designer must integrate SMIL 3.0 BasicAnimation into the language, satisfying all the requirements listed in BasicAnimation integration requirements.
In addition to integrating BasicAnimation, the requirements listed in Common animation integration requirements must be satisfied for the SplineAnimation module.
This remark is informative.
See the full DTD for the SMIL Animation Modules.
This section is normative.
This remark is informative.
This section presents host-language-integration issues which are the same for the BasicAnimation and SplineAnimation modules.
The host language profile must integrate the SMIL 3.0 BasicInlineTiming module into the host language, satisfying all requirements of that module. In addition, all modules of the SMIL 3.0 Timing and Synchronization modules and of the SMIL 3.0 Time Manipulation modules which are integrated into the host language must be available on BasicAnimation elements.
In particular, the fill attribute is supported on animation elements only if the host language integrates the SMIL 3.0 BasicTimeContainers module in addition to the BasicInlineTiming module.
If the Eventbase-element term is missing, the event-base element is defined to be the target element of the animation.
The host language profile may add additional attributes to Animation elements. Attributes added to any Animation element must be added to all Animation elements. In particular, this module does not define an XML ID attribute. It is expected that the host language profile will add an XML ID attribute to the Animation elements.
Language designers integrating SMIL Animation are encouraged to define new animation elements where such additions will be of convenience to authors. The new elements must be based on SMIL Animation and SMIL Timing and Synchronization, and must stay within the framework provided by SMIL Timing and Synchronization and SMIL Animation.
Language designers are also encouraged to define support for additive and cumulative animation for non-numeric data types where addition can sensibly be defined.
Language designers integrating SMIL Animation are encouraged to disallow manipulation of attributes of the animation elements after the document has begun. This includes both the attributes specifying targets and values, as well as the timing attributes. In particular, the id attribute (of type ID) on all animation elements must not be mutable (i.e. should be read-only). Requiring animation runtimes to track changes to id values introduces considerable complexity, for what is at best a questionable feature.
It is recommended that language specifications disallow manipulation of animation element attributes through DOM interfaces after the document has begun. It is also recommended that language specifications disallow the use of animation elements to target other animation elements.
Note in particular that if the attributeName attribute can be changed (either by animation or script), problems may arise if the target attribute has a namespace qualified name. Current DOM specifications do not include a mechanism to handle this binding.
Dynamically changing the attribute values of animation elements introduces semantic complications to the model that are not yet sufficiently resolved. This constraint may be lifted in a future version of SMIL Animation.
The specific error handling mechanisms for each attribute are described with the individual syntax descriptions. Some of these specifications describe the behavior of an animation with syntax errors as "having no effect". This means that the animation will continue to behave normally with respect to timing, but will not manipulate any presentation value, and so will have no visible impact upon the presentation.
In particular, this means that if other animation elements are defined to begin or end relative to an animation that "has no effect", the other animation elements will begin and end as though there were no syntax errors. The presentation runtime may indicate an error, but need not halt presentation or animation of the document.
Some host languages and/or runtimes may choose to impose stricter error handling (see also Error handling semantics for a discussion of host language issues with error handling). Authoring environments may also choose to be more intrusive when errors are detected.
The host language designer may impose stricter constraints upon the error handling semantics. That is, in the case of syntax errors, the host language may specify additional or stricter mechanisms to be used to indicate an error. An example would be to stop all processing of the document, or to halt all animation.
Host language designers may not relax the error handling specifications, or the error handling response (as described in Handling syntax errors). For example, host language designers may not define error recovery semantics for missing or erroneous values in the values or keyTimes attribute values.
This section is informative.
The modules defined in this chapter are all new modules which were not part of the SMIL 2.1 specification.
This section is informative.
A SMIL 2.1 presentation has a lot of state that influences how the presentation runs. Or, to rephrase that in a procedural way, state that influences decisions that the SMIL scheduler makes. All this state is either implicit in the presentation (what nodes are active and how long into their duration they are, how many iterations of a repeat we have done, which nodes in an excl are paused because a higher priority node has preempted them, etc.), or completely external to the presentation (system tests and custom tests).
This has the effect that the only control flow that the SMIL author has at his/her disposal is that which is built in to the language, unless the SMIL engine includes some scripting language component and a DOM interface to the document that the author may use to create more complex logic.
The modules in this section provide a mechanism whereby the document author may create more complex control flow than what SMIL provides through the timing and content control modules, without having to go all the way of using a scripting language. One way to provide this is to allow a document to have some explicit state (think: variables) along with ways to modify, use and save this state.
In addition, the mechanisms that the SMIL BasicContentControl and CustomTestAttributes modules provide for testing values are limited: basically one can only test for predefined conditions being true (not for them being false) and there is a limited form of testing for multiple conditions with "and" being the only boolean operator.
Application areas include things like quizzes, interactive adaptation of presentations to user preferences, computer-aided instruction and distant learning.
This section is informative.
The design of these modules was done after meeting with the W3C Backplane Group (part of the Hypertext Coordination Group) and various choices were influenced by the direction that group is taking.
These modules therefore borrow heavily from work done by other W3C working groups:
The intention of these modules it to provide authors with the minimum
functionality required to create compelling presentations, not to import all
functionality from the standards they were lifted from, and concentrate on
the timing integration issues. Applications requiring a richer set of
primitives should import, for example, the XForms data model through the XML
namespace mechanism.
This section is normative.
This chapter defines the following modules:
This section is informative.
The SMIL 3.0 StateTest Module defined in this document is a new module which was not part of the SMIL 2.1 specification.
This section is informative.
The mechanisms that the BasicContentControl and CustomTestAttributes modules provide for testing values are limited: basically one can only test for predefined conditions being true (not for them being false) and by specifying multiple system test attributes an author has a way to simulate an and operator but that is all.
This module introduces a generalized expr attribute that contains an expression. If the expression evaluates to false the element carrying the attribute is ignored. If the expression evaluates to true or if there is any error (this ranges from expression syntax errors and type errors to unavailability of the expression language engine) the element is treated normally.
This section is normative.
This section is informative.
The SMIL 3.0 Language Profile specifies that XPath 1.0 is used as the default expression language, and the context in which the expressions are evaluated is as follows:
Alternative expression languages that could be used are a scaled down form of XPath as used by DI, or EcmaScript, Python, Lua or any other language suitable for the application domain of the profile.
Note that there is a slight but important semantic difference between using content control attributes and using expr: the latter is guaranteed to be dynamically evaluated at runtime and may therefore be used for more dynamic control whereas there is no such guarantee for the former.
This section is normative.
This module defines a set of functions for use in the expr attribute (possibly in addition to functions already defined in the expression language). The naming convention used for the functions is compatible with XPath 1.0 expressions, a profile using this module with another expression language must specify a transformation that needs to be applied to these function names to make them compatible with the expression language specified.
This section is informative.
Here is a SMIL 3.0 Language Profile example of an audio element that is only played if audio descriptions are off and the internet connection is faster than 1Mbps. Think of using it for playing background music only when this will not interfere too much with the real presentation:
<audio src="background.mp3" expr="not(smil-audioDesc()) and smil-bitrate() > 1000000" />
Here is an example that will show the image colour.jpg to most english-speaking people. However, people preferring American English over other variants of english will see color.jpg. Non-english speaking people will see couleur.jpg.
<switch> <img src="color.jpg" expr="smil-systemLanguage('en-us') >= smil-systemLanguage('en')" /> <img src="colour.jpg" expr="smil-systemLanguage('en')" /> <img src="couleur.jpg" /> </switch>
This section is informative.
The SMIL 3.0 UserState Module defined in this document is a new module which was not part of the SMIL 2.1 specification.
This section is informative.
This section introduces a data model that document authors may refer to in the context of the expr attribute, allowing elements to be rendered depending on author-defined values. A mechanism to change values in the data model is also included.
The actual choice of the expression language is made in the language profile. The SMIL 3.0 Language Profile requires support for the XPath 1.0 expression language (but allows use of other languages as well).
This section is normative.
The UserState module defines the elements state, setvalue, newvalue and delvalue and the attributes language, ref, where, name and value.
The state element sets global, document-wide, information for the other elements and attributes in this module. It selects the expression language to use and it may also be used to initialize the data model.
Initialization of the data model may be done in-line, through the contents of the state element, or from an external source through the src attribute (defined in the Media Object Modules section).
The src takes precedence over the inline content, which is only used if the src attribute is not specified or if the document it refers to cannot be found.
Initialization of the data model (including retrieval of the data) happens at the beginning of document playback. This may include modifications to the data model to make it play well with SMIL State use. Such modifications must be defined in the profile including this module.
This section is informative.
Allowing both inline content and a src attribute allows the former to be used as a fallback mechanism.
Note that beginning of document playback may be different than document parse time: depending on the user interface of the user agent a document may be played multiple times after being parsed once.
The SMIL language profile specifies that, in the case of using the XPath data model, an empty data model will be modified so that it consists of a single empty <data/> root element.
The state element accepts the language and src attributes.
The setvalue element modifies the value of an item in the data model, similar to the corresponding element from XForms, but it takes its time behaviour from the SMIL ref element.
Note that setvalue only modifies existing items, it is therefore an error to specify a non-existing item, depending on the expression language semantics. In case of such an error SMIL Timing semantics of the element are not affected.
The setvalue supports all timing attributes, and participates normally in timing computations. The effect of setvalue happens at the beginning of its simple duration.
The setvalue element accepts the ref and value attributes. Both of these are required attributes.
The newvalue element introduces a new, named, item into the data model.
The newvalue supports all timing attributes, and participates normally in timing computations. The effect of newvalue happens at the beginning of its simple duration. Depending on the semantics of the expression language it may be an error to execute the newvalue element more than once. In case of such an error SMIL Timing semantics of the element are not affected.
The ref and where determine where in the data model the new item is introduced. If the expression language does not support a hierarchical namespace these attributes are ignored. The name attribute determines the name for the new item.
The newvalue element accepts the ref, where, name and value attributes. Which of these are required depends on the expression language.
The delvalue element deletes a named item from the data model.
The delvalue supports all timing attributes, and participates normally in timing computations. The effect of delvalue happens at the beginning of its simple duration. Depending on the semantics of the expression language deletion of variables may not be supported, or it may be an error to execute the delvalue element on a non-existing item. In case of such errors SMIL Timing semantics of the element are not affected.
The delvalue element accepts the ref attribute.
The language attribute selects the expression language to use. Its value should be a URI defining that language. The default value for this attribute is defined in the profile.
SMIL implementations should allow expression language availability to be tested through the systemComponent attribute.
The ref attribute indicates which item in the data model will be changed. The language used to specify this, plus any additional constraints on the attribute value, depend on the expression language used.
This section is informative.
The reason that newvalue has both a ref and a name attribute is that some languages, notably XPath 1.0, do not support ref referring to a non-existing named item in the data model. Therefore, name is used to give the name for the new item and ref and where specify where it is inserted. For expression languages without a hierarchical namespace ref and where should be omitted and only name is needed.
This section is informative.
For the SMIL 3.0 Language Profile the value of the ref attribute is an XPath expression that evaluates to a node-set. It is an error if the node-set does not refer to exactly one node.
The where attribute indicates where in the data model the new item will be inserted, if the expression language supports a hierarchical data model. The allowed values are before, after and child, the default.
The name attribute specifies the name for the new data model item. This name must adhere to constraints set by the expression language used.
The value attribute specifies the new value of the data model item referred to by the ref element. How the new value is specified in the value attribute is defined in the profile that includes this module. This specification also states whether only simple values are allowed or also expressions, and when those expressions are evaluated.
If a statically-typed language is used as the data model language it is an error if the type of the value expression cannot be coerced to the type of the item referred to by the ref.
This section is informative.
Here is a SMIL 3.0 Language Profile example of a sequence of audio clips that remembers the last audio clip played, omitting the state declaration in the head for brevity:
<seq> <audio src="chapter1.mp3" /> <setvalue ref="lastPlayed" value="1" /> <audio src="chapter2.mp3" /> <setvalue ref="lastPlayed" value="2" /> <audio src="chapter3.mp3" /> <setvalue ref="lastPlayed" value="3" /> </seq>
Here is an extension of the previous example: not only is the last clip remembered but if this sequence is played again, later during the presentation, any audio clips played previously are skipped:
<seq> <seq expr="lastPlayed < 1"> <audio src="chapter1.mp3" /> <setvalue ref="lastPlayed" value="1" /> </seq> <seq expr="lastPlayed < 2"> <audio src="chapter2.mp3" /> <setvalue ref="lastPlayed" value="2" /> </seq> <seq expr="lastPlayed < 3"> <audio src="chapter3.mp3" /> <setvalue ref="lastPlayed" value="3" /> </seq> </seq>
This section is informative.
As stated before, the normative choice of an expression language and data model is made in the profile that includes this module, but for ease of reading this section informatively describes the choices in the SMIL 3.0 Language Profile: XPath 1.0 operating on a simple XML document contained in the state element.
It is important to note that the data model is an XML document. This is not to be confused with the variable bindings in the expression context, another namespace that XPath has. These variable bindings are not supported through SMIL State. Therefore references to state elements are node-set expressions, not $name-style variable references. This usage allows for nested variables and more complex data structures than the flat namespace of the variable bindings provides. SMIL follows the lead of XForms here.
The state element, of which at most one may occur, in the head section, should either be empty or contain a well-formed XML document.
The XPath context in which the expressions are evaluated is as follows:
This context means that an expression of the form count has the same meaning as one of the form /data/count. Moreover, the XPath type conversion rules result in count + 1 in meaning the exact same things as number(/data/count) + 1.
Here is the minimal state section that corresponds to the audio clip example above:
<smil> <head> <state> <data xmlns=""> <lastPlayed>0</lastPlayed> </data> </state> ...
The UserState module does not constrain the data model and expressions of the underlying language, unless specifically done so in a profile. For ease of reading most examples in this document use simple variable-style names, but richer constructs, such as setting attribute values with XPath or using compound values in Python, are allowed.
This section is informative.
Supported events for event-based timing are normatively specified in the profile. For ease of reading we include the relevant event defined in the SMIL 3.0 Language Profile here as well. The purpose of these events is to allow document authors to create documents (or sections of documents) that restart and re-evaluate conditional expressions whenever the values underlying the expressions have changed.
Raising the stateChange event on the state element instead of on the data model element itself allows for external data models (which have a distinct xmlid-space) and on non-XML data models (depending on the expression language).
If any of the Content Control test values changes both the specific event and the general event are raised. This is because for some documents the author will want to react to a change in a specific parameter (bandwidth, screensize) only, whereas for other use cases the author may want to reconfigure the whole presentation on any change.
This section is informative.
The SMIL 3.0 StateSubmission Module defined in this document is a new module which was not part of the SMIL 2.1 specification.
This section is informative.
This section introduces a method to save author defined state or to transmit it to an external server.
This section is normative.
The StateSubmission module defines two elements, submission and send, and the attributes submission, action, method, replace and target.
The submission element carries the information needed to determine which parts of the data model should be sent, where it should be sent and what to do with any data returned. The ref attribute selects the portion of the data model to transmit and in case of XPath should be a node-set expression. The default is to transmit the whole data model (in case of xpath: "/"). The other attributes are explained below.
The submission element accepts the ref, action, method, replace and target attributes. The action and method attributes are required.
Depending on the method this element describes either transmission of data, reception of data or both. The ref element is ignored if no transmission happens. The replace and target attributes are ignored if no reception happens.
This section is informative
This element was lifted straight from XForms, with the accompanying attributes. Support for asynchronous submission and the corresponding events are not needed because of SMIL's inherent parallelism.
The send element causes the data model, or some part of the data model, to be submitted to server, saved to disk or transmitted externally through some other method. It does not specify any of this directly but contains only a reference to such submission instructions.
The send supports all timing attributes, and participates normally in timing computations. The effect of send happens at the beginning of its simple duration.
The send element accepts the submission attribute.
The submission attribute is an IDREF that should refer to a submission element.
A URL specifying where to transmit or save the nodeset. Which URLs are allowable must take security and privacy considerations into account.
How to serialize and transmit the data. Allowed values are at least put and get but may be extended by the profile.
put and get must be symmetrical, and if there is a canonical external representation for the data model language put must create that representation.
What to replace with the reply. Allowed values are all for the whole SMIL presentation, instance for the instance data, none for nothing.
If the value of replace is instance, the optional target attribute specifies which part of the data model to replace. The default is to replace the whole instance.
This section is informative.
The SMIL 3.0 Language Profile includes the StateSubmission module, and it defines that the submission element must occur in the head section.
This section is informative.
Here is an example of asynchronous submission: whenever the lastPlayed item changes because another clip has been played this fact is communicated to some server.
<smil> <head> <state xml:id="stateid"> <data xmlns=""> <lastPlayed>0</lastPlayed> </data> </state> <submission xml:id="subid" action="http://www.example.com/savexmldoc" method="put" /> </head> <body> <par> <send submission="subid" begin="stateid.stateChange(lastPlayed)" restart="always" /> ... <seq end="... some interactive end condition ..." > <seq expr="lastPlayed < 1"> <audio src="chapter1.mp3" /> <setvalue ref="lastPlayed" value="1" /> </seq> <seq expr="lastPlayed < 2"> <audio src="chapter2.mp3" /> <setvalue ref="lastPlayed" value="2" /> </seq> <seq expr="lastPlayed < 3"> <audio src="chapter3.mp3" /> <setvalue ref="lastPlayed" value="3" /> </seq> </seq> </par>
In another presentation we could pick this value up again synchronously and use it.
<smil> <head> <state> </state> <submission xml:id="subid" action="http://www.example.com/loadxmldoc" replace="instance" method="get" /> </head> <body> <par> ... <seq > <send submission="subid" /> <seq expr="lastPlayed < 1"> <audio src="chapter1.mp3" /> <setvalue ref="lastPlayed" value="1" /> </seq> <seq expr="lastPlayed < 2"> <audio src="chapter2.mp3" /> <setvalue ref="lastPlayed" value="2" /> </seq> <seq expr="lastPlayed < 3"> <audio src="chapter3.mp3" /> <setvalue ref="lastPlayed" value="3" /> </seq> </seq> </par>
That last example is actually a procedural roundabout way to get the same effect as using <state src="http://www.example.com/loadxmldoc" /> without submissions.
This section is informative.
The SMIL 3.0 StateInterpolation Module defined in this document is a new module which was not part of the SMIL 2.1 specification.
This section is normative.
This section introduces a mechanism whereby document authors may use values from the data model to construct attribute values at runtime. The mechanism has been borrowed from XSLT attribute value templates.
Substitution is triggered by using the construct {expression} anywhere inside an attribute value. The expression is evaluated, converted to a string value and substituted into the attribute value.
This substitution happens when the element containing the attribute with the {expression} attribute becomes active.
If any error occurs during the evaluation of the expression no substitution takes place, and the {expression} construct appears verbatim in the attribute value.
If a profile includes this module it must list all attributes for which this substitution is allowed. It must use the same expression language for interpolation as the one used for StateTest expressions.
This section is normative.
This module does not define any new elements or attributes.
This section is informative
The SMIL 3.0 Language Profile includes the StateInterpolation module. It allows its use in the same set of attributes for which SMIL animation is allowed plus the src, href, clipBegin and clipEnd attributes. It disallows its use on the Timing and Synchronization attributes. Its use on other attributes is implementation-dependent.
This section is informative.
This SMIL 3.0 Language Profile example shows an icon corresponding to the current CPU on which the user views the presentation, or a default icon for an unknown CPU:
<switch> <img src="cpu-icons/{smil-CPU()}.png" /> <img src="cpu-icons/unknown.png" /> </switch>
This section is normative.
Because StateInterpolation may also change attribute values its interaction with animation and DOM access needs to be defined, the so-called "sandwich model". StateInterpolation sits between DOM access and animation, i.e. DOM access will see the {expression} strings verbatim and it may set these values too. SMIL animation will operate on the value of the expression.
This section is informative.
The SMIL 3.0 specification leaves the SMIL 2.1 Time Manipulations Module [SMIL21-timemanipulations] unchanged.
This section is informative.
This module introduces new attributes for advanced manipulation of time behavior, such as controlling the speed or rate of time for an element. These time manipulations are especially suited to animation and non-linear or discrete media. Not all continuous media types will fully support time manipulations. For example, streaming MPEG 1 video will not generally support backwards play. A fallback mechanism is described for these kinds of media.
Four new attributes add support for time manipulations to SMIL timing modules, including control over the speed of an element, and support for acceleration and deceleration. The impact on overall timing and synchronization is described. A definition is provided for reasonable fallback mechanisms for media players that cannot support the time manipulations.
An accessibility requirement for control of the playback speed is related to the speed control, but may also be controlled through some other mechanism such as DOM interfaces.
This section is normative
This section is informative
A common application of timing supports animation. The recent integration of SMIL timing with SVG is a good example of the interest in this area. Animation in the more general sense includes the time-based manipulation of basic transforms, applied to a presentation. Some of the effects supported include motion, scaling, rotation, color manipulation, as well as a host of presentation manipulations within a style framework like CSS.
Animation is often used to model basic mechanics. Many animation use-cases are difficult or nearly impossible to describe without a simple means to control pacing and to apply simple effects that emulate common mechanical phenomena. While it is possible to build these mechanisms into the animation behaviors themselves, this requires that every animation extension duplicate this support. This makes the framework more difficult to extend and customize. In addition, a decentralized model allows any animation behavior to introduce individual syntax and semantics for these mechanisms. The inconsistencies that this would introduce make the authoring model much harder to learn, and would complicate the job of any authoring tool designer as well. Finally, an ad hoc, per-element model precludes the use of such mechanisms on structured animations (e.g. applying time manipulations to a time container of synchronized animation behaviors).
A much simpler model for providing the necessary support centralizes the needed functionality in the timing framework. This allows all timed elements to support this functionality, and provides a consistent model for authors and tool designers. The most direct means to generalize pacing and related functionality is to transform the pacing of time for a given element. This is an extension of the general framework for element time (sometimes referred to as "local time"), and of the support to convert from time on one element to time on another element. Thus, to control the pacing of a motion animation, a temporal transform is applied that adjusts the pacing of time (i.e., the rate of progress) for the motion element. If time is scaled to advance faster than normal presentation time, the motion will appear to run faster. Similarly, if the pacing of time is dynamically adjusted, acceleration and deceleration effects are easily obtained.
The time manipulations are based upon a model of cascading time. That is, each element defines its active and simple time as transformations of the parent simple time. This recurses from the root time container to each "leaf" in the time graph. If a time container has a time manipulation defined, this will be reflected in all children of the time container, since they define their time in terms of the parent time container. In the following example a sequence time container is defined to run twice as fast as normal (i.e. twice as fast as its respective time container).
<seq speed="2.0"> <video src="movie1.mpg" dur="10s" /> <video src="movie2.mpg" dur="10s" /> <img src="img1.jpg" begin="2s" dur="10s"> <animateMotion from="-100,0" to="0,0" dur="10s" /> </img> <video src="movie4.mpg" dur="10s" /> </seq>
The entire contents of the sequence will be observed to play (i.e., to progress) twice as fast. Each video child will be observed to play at twice the normal rate, and so will only last for 5 seconds. The image child will be observed to delay for 1 second (half of the specified begin offset). The animation child of the image will also "inherit" the speed manipulation from the sequence time container, and so will run the motion twice as fast as normal, leaving the image in the final position after only 5 seconds. The simple duration and the active duration of the sequence will be 21 seconds (42 seconds divided by 2).
This section is informative
Three general time manipulations are defined:
When the speed of time is filtered with any of the time manipulations, this affects how a document time is converted to an element simple time. To understand this, think of the contents of an element progressing at a given rate. An unmodified input time value is converted to an accumulated progress for the element contents. Element progress is expressed as filtered time. This allows the effect of any rate (including acceleration and deceleration) to cascade to any timed children. If element progress is advancing at a constant rate (e.g. with a speed value of 2), the filtered time calculation is just the input time multiplied by the rate. If the rate is changing, the filtered time is computed as an integral of the changing rate. The equations used to calculate the filtered time for a given input time are presented in Converting document time to element time.
The accelerate and decelerate features are applied locally on the simple duration, and have no side effects upon the length of the simple duration or active duration of the element. When applied to a time container, accelerate and decelerate apply to the time container simple duration and all its timed children, affecting the observed duration of the timed children.
The autoReverse feature is applied directly to the simple duration, and doubles a declared or implicit simple duration. Thus if the simple duration is defined (according to the normal timing semantics) to be 5 seconds, setting the autoReverse to "true" will cause the simple duration to be 10 seconds. Thus if the active duration is defined in terms of the simple duration (for example by specifying a repeatCount), then autoReverse will also double the active duration. However if the active duration is defined independent of the simple duration (for example by specifying a repeat duration, an end value and/or min and max values), then autoReverse may not affect the active duration. The active duration is computed according to the semantics of the Timing and Synchronization model; the only change is to use the modified (doubled) simple duration value.
The speed attribute scales the progress of element time for the element. When applied to a time container, the contents of the time container collectively play at the scaled speed. If an element plays twice as fast as normal, the observed simple duration will be only half as long as normal. This may or may not affect the active duration, depending upon how it is defined for the element. The attributes repeatDur, min and max are all measured in element active time, and so the associated values will be scaled by the element speed. Similarly, an element defined with a repeatCount will also be scaled, since the simple duration is scaled. However, if an element specifies an end attribute, the end value is not affected by the element speed. Offset values for the end attribute are measured in parent simple time, and so are excluded from the effects of element speed. Other values (including syncarc-values, event-values, etc.) must be converted to parent simple time, and are similarly unaffected by the element speed.
Note that a speed attribute on an element does not affect the element begin time. Offset values for the begin attribute are measured in parent simple time, and so are excluded from the effects of element speed. (The begin time is affected by any time manipulations on the parent or other ascendant time containers).
When these time manipulations are applied to a time container, they affect the way that the entire contents of the time container proceeds - i.e. they affect all timed descendants of the time container. As a global time is converted to element time, the time manipulations for each ancestor are applied, starting with the root of the timegraph and proceeding down to the parent time container for the element. Thus the simple time and active time for a given element are ultimately computed as a function of the time manipulations of all ascendant time containers, as well as any time manipulations defined on the element itself. This is described more completely in Details of timing model arithmetic.
The net cascaded speed of an element is a function of any time manipulations on the element and all of its ascendant time containers. Although this may be computed directly from the described values, the speed may also be thought of as the derivative of the rate of time (i.e. the rate of progress) at any point.
This section is informative
This model lends itself well to an implementation based upon "sampling" a timegraph, with non-linear media (also called "random access" media). The time manipulations model is based upon a model commonly used in graphics and animation, in which an animation graph is "sampled" to calculate the current values for the animation, and then the associated graphics are rendered. Some linear media players may not perform well with the time manipulations (e.g. players that may only play at normal play speed). A fallback mechanism is described in which the timegraph and syncbase-value times are calculated using the pure mathematics of the time manipulations model, but individual media elements simply play at the normal speed or display a still frame.
Some of the examples below include animation elements such as animate and animateMotion. These elements are defined in the Animation section of SMIL 3.0. Additional elements and attributes related to timing and synchronization are described in the Timing section of SMIL 3.0.
These attributes define a simple acceleration and deceleration of element time, within the simple duration. The values are expressed as a proportion of the simple duration (i.e. between 0 and 1), and are defined such that the length of the simple duration is not changed by the use of these attributes. The normal play speed within the simple duration is increased to compensate for the periods of acceleration and deceleration (this is how the simple duration is preserved). The modified speed is termed the run rate. As the simple duration progresses (i.e., plays back), acceleration causes the rate of progress to increase from a rate of 0 up to the run rate. Progress continues at the run rate until the deceleration phase, when progress slows from the run-rate down to a rate of 0. This is illustrated in Figure 1, below:
<animation dur="10s" accelerate="0.3" decelerate="0.3" .../>
Figure 1: Effect of acceleration and deceleration upon the rate of progress.
These attributes apply to the simple duration; if these attributes are combined with repeating behavior, the acceleration and/or deceleration occurs within each repeat iteration.
The sum of accelerate and decelerate must not exceed 1. If the individual values of the accelerate and decelerate attributes are between 0 and 1 and the sum is greater than 1, then both the accelerate and decelerate attributes will be ignored and the timed element will behave as if neither attribute was specified.
If the simple duration of the element is not resolved or if it is resolved to be indefinite, then the accelerate and decelerate attributes are ignored.
For details of computing the run-rate, and for converting from parent simple time to element simple time when accelerate and/or decelerate are specified, see Computing the element run-rate and Converting document time to element time.
This section is informative
In this example, a motion path will accelerate up from a standstill over the first 2 seconds, run at a faster than normal rate for 4 seconds, and then decelerate smoothly to a stop during the last 2 seconds. This makes the motion animation look more realistic.
<img ...> <animateMotion dur="8s" accelerate=".25" decelerate=".25" .../> </img>
In the following example, the image will "fly in" from offscreen left, and then decelerate during the last second to "ease in" to place. This assumes a layout model that supports positioning (for example CSS positioning, or the position of a region in SMIL Layout).
<img ...> <animate attributeName="left" dur="4s" decelerate=".25" from="-1000" to="0" additive="sum" /> </img>
Another common mechanical phenomenon is that of a process that advances and reverses. Some examples include:
Because so many common use-cases apply repeat to the modified local time (as in the examples above), this function is modeled as modifying the simple duration. As such, autoReverse doubles the declared or implicit simple duration. When combined with repeating behavior, each repeat iteration will play once forwards, and once backwards.
When this is applied to a time container, it will play the time container forwards and then backwards. The semantics of playing a time container backwards are detailed in Implications of time manipulations on time containers.
This section is informative
The autoReverse time manipulation does not initially require a resolved simple duration, although it will not begin playing backwards until the simple duration is resolved and has completed. This may happen when the simple duration is defined by an unresolved implicit simple duration (such as the intrinsic media duration). In this case, the element will continue to play forward until the implicit simple duration is resolved (or until the active duration or the parent time container cuts short the simple duration, as described in the Timing section of SMIL 3.0). If the implicit simple duration becomes resolved before the end of the active duration, then the simple duration will be resolved to 2 times this implicit duration, and the implicit simple duration will play backwards.
Any time that the element will play backwards, including the second part of the autoReverse manipulation, the simple duration must be resolved. See also The speed attribute.
In this example, a motion path will animate normally for 5 seconds moving the element 20 pixels to the right, and then run backwards for 5 seconds (from 20 pixels to the right back to the original position). The repeating behavior causes it to repeat this 2 more times, finally leaving the element at its original location. The computed simple duration of the animation is 10 seconds, and the active duration is 30 seconds.
<img ...> <animateMotion by="20, 0" dur="5s" autoReverse="true" repeatCount="3"/> </img>
In the following example the motion path will behave as above, but will end at the earlier of 15 seconds or when the user clicks on the image. If the element ends at 15 seconds (if the user does not click), the motion path will leave the element at the end of the defined path, 20 pixels to the right. Since the active duration is defined by the repeatDur and end, the active duration is not affected by the autoReverse attribute in this case. The semantics of fill are not changed by time manipulations: the media state at the end of the active duration is used during any fill period. The end of the active duration may fall part of the way through a play forward interval, or part of the way through a play backward interval.
<img ...> <animateMotion by="20, 0" dur="5s" autoReverse="true" repeatDur="15" end="activateEvent" fill="freeze"/> </img>
The accelerate and decelerate attributes may be combined with autoReverse, and are applied to the unmodified simple duration. For example:
<img ...> <animateMotion by="20, 0" dur="4s" autoReverse="true" accelerate=".25" decelerate=".25" /> </img>
This will produce a kind of elastic motion with the path accelerating for 1 second from the original position as it moves to the right, moving slightly faster than normal for 2 seconds, and then decelerating for 1 second as it nears the points 20 pixels to the right. It accelerates back towards the original position and decelerates to the end of the reversed motion path, at the original position.
The following example of a rotation (based upon the SVG animateTransform element) also demonstrates the combination of accelerate, decelerate and autoReverse. It will produce an approximation of a simple pendulum swing on the target (assume that the target is a pendulum shape with the transform origin at the top):
<animateTransform type="rotate" from="20" to="-20" dur="1s" repeatCount="indefinite" accelerate=".5" decelerate=".5" autoReverse="true" ... />
The pendulum swings through an arc in one second, and then back again in a second. The acceleration and deceleration are applied to the unmodified simple duration, and autoReverse plays this modified simple duration forwards and then backwards. The effect is to accelerate all the way through the downswing, and then decelerate all through the upswing. The autoReverse feature then makes the same animation (i.e. the simple duration) play in reverse, and the pendulum swings back to the starting position. The entire modified simple duration repeats, producing continuous back and forth animation. This produces a realistic looking animation of real-world pendulum motion.
The speed attribute controls the local playback speed of an element, to speed up or slow down the effective rate of play relative to the parent time container. The speed attribute is supported on all timed elements. The argument value does not specify an absolute play speed, but rather is relative to the playback speed of the parent time container. The specified value cascades to all time descendants. Thus if a par and one of its children both specify a speed of 50%, the child will play at 25% of normal playback speed.
Values less than 0 are allowed, and cause the element to play backwards. An element mayonly play backwards if there is sufficient information about the simple and active durations. Specifically:
If the cascaded speed value for the element is negative and if either of the above two conditions is not met, the element will begin and immediately end (i.e. it will behave as though it had a specified active duration of 0). If there is a min attribute specified, the time container will simply be frozen at the initial state for the specified minimum duration.
The details of the effect of the element speed upon the timing calculations are described in Details of timing model arithmetic.
This section is informative
The following motion animation will move the target twice as fast as normal:
<animateMotion dur="10s" repeatCount="2" speed="2.0" path= ... />
The target will move over the path in 5 seconds (simple dur/speed =10s/2.0 = 5s), and then repeat this motion (because repeatCount is set to 2). The active duration is thus 10 seconds.
When speed is applied to a time container, it scales the rate of progress through the time container timeline. This effect cascades. When descendants also specify a speed value, the parent speed and the child speed are multiplied to yield the result. For example:
<par speed="2.0"> <animate begin="2s" dur="9s" speed="0.75" .../> </par>
The observed rate of play of the animate element is 1.5 times the normal play speed (2.0 * 0.75 = 1.5). The element begins 1 second after the par begins (the begin offset is scaled only by the parent speed), and ends 6 seconds later (dur/speed = 9/1.5 = 6).
The following example shows how an event based end combines with time manipulations:
<par speed="2.0"> <animate begin="2s" dur="9s" speed=0.75 repeatCount="4" end="activateEvent" .../> </par>
This behaves as in the first example, but the animate element will repeat 4 times for an observed time of 24 seconds (dur/cascaded speed = 9s/(2.0 * 0.75) = 6s, and 6s * 4 repeats = 24s). If a click occurs before this, the element ends at the time of the click. A variant on this demonstrates syncbase timing:
<par speed="2.0"> <img xml:id="foo" dur="30s" .../> <animate dur="9s" speed="0.75" repeatCount="4" end="activateEvent; foo.end" .../> </par>
The image will display for 15 seconds. The animate element plays at an observed rate of 1.5 times play speed (2.0 * 0.75), but it will end after 15 seconds, when the image ends. The observed simple duration will be 6 seconds long (9 seconds divided by the cascaded speed 1.5). The animation will repeat 2.5 times during the active duration. Note that although the animation has a speed value, this does not impact the semantic of the syncbase timing. When the syncbase, eventbase, wallclock or media marker time is observed to happen, it will be applied anywhere it is used at that actual time (although conversions are applied internally, e.g. from syncbase element active time to parent simple time - see also Converting document time to element time).
Note that in the examples above, the default duration of the par container is defined as endsync="last". This behavior is not affected by the speed modifications, in the sense that the observed end of the elements will produce the correct simple duration on the parent time container.
The following example illustrates an important effect of offset time scaling:
<par speed="2.0"> <img xml:id="foo" dur="30s" .../> <animate begin="2s" dur="9s" speed="0.75" repeatCount="4" end="foo.end+6s" .../> </par>
The image will display for 15 seconds, as above. The animate element begins at 1 second, since the begin offset is scaled by the parent time container speed, but not by the element speed. The animate element will end at 18 seconds (15 seconds plus 6 seconds divided by the time container speed of 2.0). The "6s" offset added to "foo.end" is scaled by the parent time container speed, but not by the element speed.
When the time manipulation attributes are used to adjust the speed and/or pacing within the simple duration, the semantics may be thought of as changing the pace of time in the given interval. An equivalent model is these attributes simply change the pace at which the presentation progresses through the given interval. The two interpretations are equivalent mathematically, and the significant point is that the notion of "time" as defined for the element simple duration should not be construed as real world clock time. For the purposes of SMIL Time manipulations (as for SMIL Timing and Synchronization), "time" may behave quite differently from real world clock time.
In the following discussion, several symbols are used as shorthand:
Let a be the value of accelerate, and d be the value of decelerate. Both take on (floating point) values 0 to 1, and will not sum to more than 1.
Let dur be the value of the simple duration as defined by the Timing and Synchronization model. This is the actual simple duration, and not simply the dur attribute. This value does not account for the effect of any time manipulations.
Let dacc be the duration of the acceleration phase, and ddec be the duration of the deceleration phase. These values are computed as a function of the unmodified simple duration. Note that with the described model for acceleration and deceleration, the observed duration during which time accelerates and/or decelerates may be greater than dacc and ddec respectively.
dacc = dur * addec = dur * d
In order to preserve the simple duration, the speed through the simple duration must be increased to account for acceleration and deceleration. To compute the run rate over the course of the simple duration, the following formula is used. The run rate R is then:
R = 1 / ( 1 - a/2 - d/2 )
This section is informative
Thus, for example, if the value of accelerate is 1 (i.e. accelerate throughout the entire simple duration), the run rate is 2 (twice the normal play speed).
r(t) is the speed modification due to acceleration and deceleration, at any time t within the simple duration. The parameter time t must not already be modified to account for acceleration and deceleration. In the terms of the discussion below, Converting document time to element time, the parameter time t is in the tsu' space. The speed modification is defined as a function of the run rate R, as follows:
In the acceleration interval, where (0 <= t < dacc
)r(t) = R * ( t / dacc )In the run-rate interval, where (
dacc <= t <= ( dur - ddec )
)r(t) = RIn the deceleration interval, where (
( dur - ddec ) < t <= dur
)r(t) = R * ( dur - t ) / ( ddec )
The run-rate only describes the modification applied to account for any acceleration and deceleration. This is combined with any element speed, as well as the speed inherited from the parent time container. The combined or "net" speed is defined in the section Computing the net cascaded speed for an element.
To convert a document time to an element time, the original time is converted to a simple time for each time container from the root time container down to the parent time container for the element. This recursive algorithm allows for a simple model of the conversion from parent simple time to element active and element simple time. The first step calculates element active time, and the second step calculates element simple time.
These steps are based upon a simpler, general model for time conversion that applies to the timing model independent of the time manipulations functionality (see also the Timing section of SMIL 3.0). The steps below describe the modified arithmetic for converting times, taking into account the semantics of time manipulations.
The steps below assume that the associated times are resolved and not indefinite. If a required time is not resolved or is indefinite, then the conversion is not defined, and maynot be performed.
In order to reflect the semantics of element speed, the element active time must be adjusted. The adjusted time is called the filtered active time, and is used by the element where the timing semantics refer to "element active time". The autoReverse and accelerate /decelerate attributes only affect the computation of the filtered simple time, and so do not come into play in this step.
The input time is a time in parent simple time. This is normalized to the element active duration, adjusting for the accumulated synchronization offset (described in The accumulated synchronization offset).
Let tps be a time in parent simple time, and B be the begin time, and O be the accumulated synchronization offset for an element, measured in parent simple time. Let AD be the Active Duration.The unfiltered active time tau for any child element is:
tau = tps - B - O
Given an unfiltered active tau, the filtered active time taf is only a function of the speed for the element (this is the value specified in a speed attribute, or the default, and not the net cascaded speed):
If( speed > 0 ) i.e. if the local speed is forwardstaf = tau * speedElse i.e. if the local speed is backwards
taf = AD - tau * ABS( speed )
As expected, if the speed value is 1 (the default), this is an identity function, and so taf = tau. When speed is less than 0 (in the backwards direction), the active duration proceeds from the end of the active duration towards 0.
In order to reflect the semantics of the autoReverse and accelerate /decelerate attributes, the element simple time must be adjusted. The adjusted time is called the filtered simple time. The filtered simple time is defined as a function of the filtered active time, and so reflects all the time manipulations on an element.
The element simple time is the time that is used to establish runtime synchronization for a media element, or to compute an animation function's input value or sampling time. If the element is a time container, this is also the time that is seen by all children of a time container (as the time container element's simple time).
The input time is a filtered active time taf.
Let dur' be the modified simple duration that accounts for the effect of the autoReverse attribute. It is computed as follows:If autoReverse is false:dur' = dur
Else (if autoReverse is true)
dur' = dur * 2
The steps to compute the filtered simple time are described below.
If there is no repeating behavior:
tsu = taf
Else, if the modified simple duration dur' is fixed and does not vary (ideal case):
tsu = REMAINDER( taf, dur' )
where REMAINDER( t, d ) is defined as (t - d*floor(t/d)).
Else, if the modified simple duration dur' varies from repeat iteration to repeat iteration, or if it is unknown, then the unfiltered simple time is just computed from the begin time of the most recent iteration - call this tlast-repeat. Some other mechanism (such as endsync logic or a media player) must note when the simple duration ends, and reset the value of tlast-repeat. If the element has not yet repeated, a value of 0 is used in place of tlast-repeat.
tsu = taf - tlast-repeat
Else if autoReverse is true (note that the following steps use the unmodified duration dur, and not dur'):
If tsu < durtsu' = tsuElse ( tsu >= dur )
tsu' = dur - ( tsu - dur ) = 2*dur - tsu
The filtered simple time tsf is computed as a function of the input time tsu' and the run rates in effect over the interval from 0 to tsu'. The filtered simple time is the accumulated progress up to the input time, and is computed as the integral of the acceleration, run-rate and deceleration rates. Since the rate of acceleration and deceleration are constant, the integral simplifies to a function of the average rate of progress for each of the three intervals defined by the acceleration and deceleration values. The steps below compute the filtered time by multiplying the input time and the average rates of progress. In the acceleration interval, since acceleration is constant and the rate changes from 0 to R, the average rate is just 1/2 of the instantaneous rate r(t) defined above:average rate =(r(t) + r(0) ) / 2) = r(t)/2In the deceleration interval, the average rate is similarly computed. In the run-rate interval the rate is constant, and so the average rate is equal to the run-rate.
In the acceleration interval, where ( 0 <= tsu' < dacc ), the filtered simple time is the input time multiplied by the average run-rate during the acceleration interval:
tsf = tsu' * r(tsu') / 2In the run-rate interval, where ( dacc <= tsu' <= ( dur - ddec ) ), the filtered simple time is computed from the input time and the rates in the acceleration and run-rate intervals. This adds the accumulated progress in the acceleration interval to the progress within the run-rate interval:
tsf = dacc * R / 2 + ( tsu' - dacc ) * R= R * ( dacc / 2 + ( tsu' - dacc ))
= R * ( tsu' - dacc / 2 )
In the deceleration interval, where ( ( dur - ddec ) < tsu' <= dur ), the filtered simple time is computed from the input time and the rates in all three intervals. This sums the total progress in the acceleration interval, the total progress within the run-rate interval, and the progress within the deceleration interval.
To simplify the expressions, we define tdec, the time spent in the deceleration interval:
tdec = tsu' - ( dur - ddec )We also define the proportional duration within the deceleration interval as:
pd = tdec / ddecThe filtered time within the deceleration interval is then:
tsf = dacc * R / 2
+ ( dur - dacc - ddec ) * R
+ tdec * (( R + R*(1 - pd )) / 2 ))= R * ( dur - dacc / 2 - ddec
+ tdec * ( 2 - pd ) / 2 )
To convert from one element timespace to another, the time for the first element te1 must first be converted to a simple time on the closest ascendant time container that contains both elements. Converting from an element time to the parent time reverses the process described above. Again, it is recursive, and so the conversions are described generically from element simple to element active time, and from element active to parent simple time.
To convert from element simple time to element active time requires the begin time of the most recent iteration, tlast-repeat. If the element does not repeat or has not yet repeated, a value of 0 is used in place of tlast-repeat.
ta = ts + tlast-repeat
Conversion from element active time to parent simple time uses the associated begin of the element and the accumulated synchronization offset.
tps = ta + B + O
This section is informative
Note that the pure conversions do not take into account the clamping of active durations, nor the effects of fill (where time is frozen).
Global to local time conversions used to translate between timespaces must ignore these issues, and so may yield a time in the destination local timespace that is well before or well after the simple duration of the element.
This section is informative
An alternate form of the conversion is used when actually sampling the time graph.
A time container is only sampled if it is active or frozen, and so no times will be produced that are before a time container begins. If the global to local time conversion for a time container yields a time during which the time container is frozen, the time is clamped to the value of the active end.
The net cascaded speed for a given element at a given point in time may be used to set the correct playback rate for a media element. It is not otherwise used directly in the time manipulations model.
To compute the net cascaded speed speednc(t) for an element at a given point in time, we combine the net cascaded parent speed at the point in time speednc-parent(t) with the element speed value speed and the instantaneous run rate r(t) computed from any acceleration and deceleration. If the element has no time parent, use 1 for speednc-parent(t).
Note that the net cascaded parent speed will be computed in simple time for the parent, and so the element simple time will have to be converted to a parent simple time. This is described above in Converting element time to document time.
The parameter time value must be in the range of the simple duration. The time value must not already be modified to account for acceleration and deceleration. In the terms of the discussion above, Converting document time to element time, the parameter time is in the tsu' space.
The net cascaded speed speednc(t) for a given unfiltered simple time tsu' is then:
speednc(tsu') = speednc-parent(tsu') * speed * r(tsu')
This definition is recursive up to the root of the time containment hierarchy, and so accounts for any speed settings on the parent and all other ascendant time containers.
This section is informative
A theoretical model may be described that assumes that all element local timelines (including any media elements) are completely non-linear and have unconstrained ballistics (i.e. they may be sampled at any point at any moment, and may adjust the observed playback rate instantaneously). This ideal model may be applied to many applications, including pure rendered graphics, text, etc. Nevertheless, many common applications also include media with linear behavior and other limitations on playback. When the timegraph includes media elements that have linear behavior, the time manipulations model must accommodate these real world limitations.
While the model does support timegraphs with a mix of linear and non-linear behavior, and defines specific semantics for media elements that may not support the ideal non-linear model, it is not a goal to provide an ideal alternative presentation for all possible timegraphs with such a mix. It is left to authors and authoring tools to apply the time manipulations in appropriate situations. This section describes both the ideal model as well as the semantics associated with linear-media elements.
This section is informative
In the ideal model, the pace or speed of local time may be manipulated arbitrarily. The graph advances (or is sampled, depending upon your perspective) as the presentation time advances. A time container samples each of its children in turn, so that a graph traversal is performed for each render time. Elements that are neither active nor frozen may be pruned from the traversal as an optimization. As the traversal moves down the graph (from time containers to children), each local timeline simply transforms the current time from the parent time-space to the local time space, and then samples the local timeline at the transformed current time. Note that the speed and effects of the time filters effectively cascade down the time graph, since each element transforms element time and element speed for itself and all descendants.
This is the model that is described by the arithmetic model in Details of timing model arithmetic.
When linear media are added to this model and the "current time" (sample) traversal encounters a media element, the media element is effectively told to "sample" at a particular position and a particular rate. Given that linear media may not sample arbitrarily (i.e., they may not immediately seek to and display an arbitrary frame or sample) , the media element player may not be able to match the ideal model.
Many media elements may not play off-speed (i.e. at other than normal play
speed), and so must simply ignore the requested speed. As the element plays,
it will fall out of sync with the sync relationship defined in the timing
syntax. Within the limits defined by the SMIL syncTolerance attribute,
divergence from the theoretical timeline position may be ignored. However,
for further divergence beyond this tolerance the element will be considered
out of sync; if the element is defined with
syncBehavior="locked"
, the playback engine will try to enforce
the runtime synchronization semantics (and this will probably not yield a
desirable presentation playback). Authors applying time manipulations to
linear media or to time containers that include linear media will likely wish
to specify the syncBehavior for the linear media as
"canSlip".
The fallback semantics depend upon how much or how little the media player is capable of. Some players for some media may play forwards and backwards but only at the normal rate of play, others may only support normal forward play speed.
If the element speed (i.e. the cascaded value) is not supported by the media element, the media should play at the closest supported speed ("best effort"). If the element cannot play slower or faster than the normal play speed, the closest supported speed will be the normal play speed.
In any case, the computed simple duration, as modified by the time filters, is respected.
The semantics of clipBegin and clipEnd are not affected by time manipulations. The clipBegin and clipEnd semantics are always interpreted in terms of normal forward play speed. They are evaluated before any effects of time filters have been applied to the time model. This is consistent with the model that they may be evaluated by the media element handler, independent of the time model.
This section is informative
In this fallback model, some media elements may not be able to play at the computed speed defined by the time graph. The fallback semantics may cause the media element to fall out of visual synchronization with respect to the rest of the timegraph. For example, if an image element is defined to begin 10 seconds after a video element begins, and then a speed of 2.0 is applied to a time container for both elements, the image element will begin at 5 seconds (10s/2.0). If the video cannot play at twice the normal speed, it will not be 10 seconds into the video when the image shows up, and so the presentation may appear to be out of sync.
When time manipulations are used with linear media, authors may use media-marker-values to define the sync relationships. This may help to maintain the "visual" sync regardless of the fallback behavior. Since the media-marker-values are defined to happen when a particular point in the media is played, this timing will respect the actual behavior of the media, rather than the computed speed behavior.
The time manipulations may apply to any element, including time containers. There are two primary implications of this for the time model:
The following discussion is based upon the semantics of begin and end instance lists and the interpretation of lists of begin and end times described in the Timing section of SMIL 3.0
If the time container may play backwards (based upon the general constraints for backwards play upon the simple and active durations), then the children must play the defined intervals in reverse order. This is accomplished with the following modified life cycle for child elements. In the following description, the terms "begin" and "end" for intervals are used relative to the normal play direction. When used as a verb ("the interval begins"), begin and end refer to the current interval becoming active and inactive, respectively. Intervals are described as playing from the end of the interval to the beginning, and so they begin at the interval end, and end at the interval begin.
When a time container is defined to play backwards, a child element may define additional time manipulations that affect the speed, or even the direction of play. Any such additional time manipulations on the child element do not impact the model described above.
The life cycle is restarted each time the parent (or any ascendant) time container repeats or restarts, just as for the normal play direction.
Because of the reversed evaluation of intervals, some cyclic time dependencies that would correctly propagate forwards when played normally will not propagate correctly when played backwards. The rules for evaluating and halting cycles in the time graph are unchanged by the semantics of time manipulations.
This section is informative.
The following SMIL 3.0 DOM Module defined in this Chapter is a new module which was not part of SMIL 2.1.
This section is informative.
This chapter describes the SMIL 3.0 DOM support. SMIL is an XML-based language and conforms to the (XML) DOM Core [DOM1], [DOM2]. A language profile may include DOM support. The granularity of DOM being supported corresponds to the modules being selected in that language profile. As with all modules, required support for the DOM is an option of the language profile. DOM support consists of two independently usable parts, a module which contains methods to start and stop parts of a presentation during playback, and a description of the effects of changing attributes during playback.
No SMIL-specific interfaces are defined to change elements and attributes. The only SMIL-specific interfaces that are defined are an interface to start and stop parts of the running presentation, and an interface to handle events.
The section The animation sandwich model in the SMIL 3.0 Animation chapter describes the presentation effects of changing attributes that can be animated, whether or not any animations on the attribute are active.
This section is normative.
Using DOM level 2 methods [DOM2] an application may change the values of attributes and add and delete elements in a running SMIL presentation. Whether such editing is allowed is implementation dependent, although a profile may require support. In terms from the SMIL 3.0 Animation chapter, changing the value of an attribute through a DOM method changes the base value of the attribute. If animations are included in the profile, any animations on the same attribute build upon this changed base value. The presentation value which results from applying an animation is not visible through the DOM. The presentation effect of other changes through the DOM to a document while it is being played back is implementation-dependent.
In the chapter SMIL 3.0 Timing and Synchronization, the module DOMTimingMethods is defined which contains DOM methods to start and stop parts of a presentation during playback, and also DOM events that may be used to influence a presentation. The complete definition of these methods and events and their effects on a presentation is given in the section Document object model support of the Timing and Synchronization Module chapter.
This section is informative.
The functions supported in this version of the SMIL 3.0 DOM Modules draft are restricted to providing external access to attributes that profiles implementing this module also are able to change dynamically using SMIL animation primitives. A future version of this module description will likely contain a broader scope for DOM support.
This section is informative.
The SMIL 3.0 Scalability Framework revises the SMIL 2.1 Basic Profile and Scalability Framework [SMIL21-basic-profile]. With the introduction of the SMIL 3.0 Tiny profile, the definition of the Scalability Framework has been migrated into a separate document. The text has been revised to conform to current SMIL practice and intent.
This section is normative.
SMIL 3.0 provides a scalability framework, where a family of scalable SMIL profiles can be defined using a sub- or superset of the SMIL 3.0 Language, DAISY, or UnifiedMobile profiles, or a superset of the SMIL 3.0 Tiny profile. A SMIL document can be authored conforming to the scalability framework such that it provides limited functionality on a resource-constrained device while allowing richer capabilities on a more capable device. This section defines the requirements for conforming SMIL documents and SMIL user agents. Moreover, it describes scalable SMIL profile architecture, guidelines for defining them, and their conformance requirements.
This section is informative.
The Synchronized Multimedia Integration Language (SMIL) includes powerful functionality for various multimedia services for platforms of various/differing complexities, ranging from desktops to ubiquitous information appliances such as minimum capability mobile phones, car navigation systems, television sets, and voice user agents. Each of these platforms has its specific capabilities and requirements. It is clear that not all of the SMIL 3.0 elements and attributes will be required on all platforms. SMIL 3.0 modularization groups semantically related SMIL elements, attributes, and attribute values into a disjoint set of SMIL modules. These modules can then be recombined to produce a SMIL profile that meets the needs of different communities. For example, a hand held device, digital talking book player, or a mobile phone may only support a small subset of SMIL 3.0 modules in its own profile.
The W3C SYMM working group has defined a scalability architecture that allows a SMIL user agent to implement only the sub- or superset of the SMIL 3.0 standard it needs, while maintaining document interoperability between device profiles built for different needs. A scalable profile enables user agents to support incremental extra collections of modules containing the baseline functionality needed for an implementation environment, or it allows certain modules to be removed from a more extensive profile in those situations where this extra functionality is not necessary.
At the same time, SMIL 3.0 provides an additional mechanism in which a document author is given the ability to specify which SMIL modules are required within a document.
Conformance to the scalable SMIL profile architecture provides a basis for interoperability guarantees. The advantages of scalable profiles include:
The SMIL 3.0 scalability framework allows inclusion or exclusion of functionality. SMIL user agent developers are also able to focus their implementations by specifically excluding support for individual SMIL elements or attributes, as is explained in the section on document conformance. Note that in these cases, a document containing unsupported elements or attributes should always parse correctly on any SMIL-compliant user agent.
This section is normative.
The SMIL Scalability Framework specifies the rules for SMIL 3.0 profile, document and user agent conformance, and the mechanism for creating dynamic, scalable profiles using the SMIL 3.0 extension mechanism. This section provides a normative definition of these three aspects.
All SMIL host-language conformant profiles must reference and adhere to the rules specified in this SMIL Scalability Framework. All such profiles must supply profile-specific information that is required by the SMIL Scalability Framework.
The SMIL 3.0 Scalability Framework makes use of a hierarchy of conformance definitions for profiles, documents and user agents that are based in whole or in part on SMIL 3.0 modules. The elements in this hierarchy (from least restrictive to most restrictive) are given in this section.
SMIL 3.0 defines a hierarchy of conforming profiles based on the following definitions:
SMIL 3.0 defines a conforming document to be a document that conforms to a SMIL 3.0 profile and is valid per the normative DTD identified by that profile. Documents may be:
A Conformant SMIL 3.0 User Agent is a user agent that renders a document in accordance with the functionality of the associated profile and which adheres to the rules set out in the section Rules for SMIL 3.0 Conformant User Agents.
The following sections detail the rules for profile, document and user agent conformance. These rules make use of the following definitions for collections of elements and attributes. In these tables, the term "minimum support" is used to refer to the minimum set of elements that an element may contain, and the minimum set of attributes that may be used on an element.
Element Set Name | Elements |
TIMING-ELMS | par, seq |
MEDIA-ELMS | ref, animation, audio, img, video, text, textstream |
EMPTY | no elements are required as a minimum |
Attribute Set Name | Attributes |
TIMING-ATTRS | begin, end, dur, repeatDur, repeatCount, fill, endsync |
CONTCTRL-ATTRS | systemRequired |
MEDIA-ATTRS | src, type |
COMMON-ATTRS | xml:id, id, class, xml:lang, title |
IDENTITY-ATTRS | version, baseProfile |
This section defines the rules for creating conformant SMIL 3.0 profiles. The rules are considered by conformant profile type, as defined in the section Definitions.
Neither the SMIL 3.0 definition nor these conformance criteria provide designated size limits on any aspect of SMIL 3.0 content. There are no maximum values on the number of elements, the amount of character data, or the number of characters in attribute values.
A SMIL 3.0 profile is a conformant SMIL 3.0 profile if it adheres fully to the following criteria:
There are no minimum set of required modules for a Conformant SMIL 3.0 Profile.
A SMIL 3.0 profile is an integration-set conformant SMIL 3.0 profile if it meets all of the requirements of a Conformant SMIL 3.0 Profile and if it also adheres fully to the following criteria:
A profile that is said to be SMIL 3.0 integration set conformant must include the following modules:
Element | Minimum Support | |
Content | Attributes | |
ref, animation, audio, img, video, text, textstream | EMPTY | CONTCTRL-ATTRS, IDENTITY-ATTRS, TIMING-ATTRS, MEDIA-ATTRS |
par, seq | TIMING-ELMS, MEDIA-ELMS | CONTCTRL-ATTRS, IDENTITY-ATTRS, TIMING-ATTRS |
Support of deprecated elements and attributes is not required for SMIL 3.0 integration-set conformance. However, when included, the above requirements also apply to these elements and attributes. Also, when supported, it is required that all the deprecated elements and attributes from all the included modules are supported as a whole.
A SMIL 3.0 profile is an host-language conformant SMIL 3.0 profile if it meets all of the requirements of a Integration Set Conformant SMIL 3.0 Profile and if it also adheres fully to the following criteria:
A profile that is said to be SMIL 3.0 host-language conformant must include the following modules:
Element | Minimum Support | |
Content | Attributes | |
smil | head, body | COMMON-ATTRS, CONTCTRL-ATTRS, IDENTITY-ATTRS, xmlns |
head | layout, , | COMMON-ATTRS, IDENTITY-ATTRS |
body | TIMING-ELMS, MEDIA-ELMS, | COMMON-ATTRS, IDENTITY-ATTRS |
layout | EMPTY | COMMON-ATTRS, CONTCTRL-ATTRS, IDENTITY-ATTRS, type, skip-content |
ref, animation, audio, img, video, text, textstream | COMMON-ATTRS, CONTCTRL-ATTRS, IDENTITY-ATTRS, TIMING-ATTRS, MEDIA-ATTRS, skip-content | |
par, seq | TIMING-ELMS, MEDIA-ELMS, | COMMON-ATTRS, IDENTITY-ATTRS, CONTCTRL-ATTRS, TIMING-ATTRS |
EMPTY | COMMON-ATTRS, CONTCTRL-ATTRS, IDENTITY-ATTRS, skip-content | |
EMPTY | COMMON-ATTRS, CONTCTRL-ATTRS, IDENTITY-ATTRS, skip-content |
Support of deprecated elements and attributes is no longer required for SMIL 3.0 host language conformance but it is highly recommended for all modules the given language supports. Support of deprecated elements and attributes may only be left out in cases where interoperability with SMIL 1.0 implementations is not an issue.
Since the SMIL 3.0 Structure module may only be used in a profile that is SMIL host language conformant, this implies that the SMIL 3.0 Structure module must at least be accompanied with the other modules required for host language conformance that were named above. Those modules themselves may still be used in other non-SMIL host-language conformant profiles.
This section defines the rules for creating conformant SMIL 3.0 documents. The rules are considered by conformant profile type, as defined in the section Definitions.
A SMIL 3.0 document is a conformant SMIL 3.0 document if it adheres fully to the following criteria:
xmlns="http://www.w3.org/ns/SMIL"
A SMIL 3.0 document is a integration-set conformant SMIL 3.0 document if it adheres fully to the criteria specified by the host-language for that document, and it adheres to the following criteria:
xmlns="http://www.w3.org/ns/SMIL"
A SMIL 3.0 document is a host-language conformant SMIL 3.0 document if it adheres to the following criteria:
xmlns="http://www.w3.org/ns/SMIL"The SYMM working group MAY reuse this namespace URI in a future specification that revises the SMIL 3.0 DTD, thus affecting the validity of published documents.
This section is informative.
SMIL 3.0 no longer assigns individual namespace identifiers to SMIL 3.0 modules, as all elements and attributes are defined within the single SMIL 3.0 namespace. SMIL 3.0 does define a set of module identifier strings that may be used with as part of the SMIL extension mechanism.
http://www.w3.org/2008/SMIL30/informative-DTD/SMIL30XXX.dtd ,where the string SMIL30XXX is replaced by the name string defined in the relevant profile specification for the informative DTD.
SMIL 3.0 deprecates base as a property value for the content attribute of the element of SMIL 1.0 in favor of the more general XML Base URI mechanisms.
All SMIL 3.0 profile specifications support the XML Base Recommendation [XMLBase]. XML Base is supported on all elements, and affects the interpretation of URIs as specified in the individual modules defining the URI attributes. Specifically, any applicable XML Base base URI must be applied to the interpretation of the href attribute of the link elements a, area and anchor, as well as the src attribute of the media elements audio, video, img, animation, textstream, text, and ref. XML Base must also be applied on longdesc and label attributes of all of the SMIL 3.0 elements.
A SMIL 3.0 document is a strict host-language conformant SMIL 3.0 document if it adheres to the criteria for Rules for SMIL 3.0 Host-Language Conformant Documents and it meets the following criteria:
A conforming SMIL 3.0 user agent is a program which can parse and process a SMIL 3.0 document and render the contents of the document onto output media. A conforming SMIL 3.0 user agent must meet all of the following criteria:
This section is informative.
Examples:
1) A pure SMIL 1.0 document:
<smil xmlns="http://www.w3.org/TR/REC-smil"> ... </smil>
2) A pure SMIL 3.0 Language profile document:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... </smil>
The Web Accessibility Initiative has defined the "User Agent Accessibility Guidelines 1.0" [UAAG]. Developers are encouraged to design user agents that satisfy at least the Level A requirements of that document.
If a particular SMIL 3.0 document requires a particular language feature to be supported for author-determined correct rendering of document content, the document may define the modules that support the required feature(s) as described in the section specifying required modules. User agents that do not support the required features MUST result in the user agent issuing an error and not playing the document.
Syntax errors in a SMIL Host Language conformant document are handled according to the XML rules for well-formed or valid XML [XML11], (see Note).
Semantic errors may arise at various levels. One is where the declared attribute values are of unknown value. Another is where the assembled presentation is (possibly) conflicting, as in a case where media objects are competing for display space or where they are synchronized ambiguously. These latter types, although maybe an error according to the author's intentions, are not considered an error and the user agent will present according to the resolution rules defined in this specification.
Errors in attribute values might remain undetectable to the parser, because the value type is declared as CDATA, or because the value range is open ended, as in the case of events, for example. However, errors in attribute values may be detected within a given profile, where that profile specifies the supported value set. Specifications of profiles are required to specify the error handling that is required when such an attribute value error occurs.
The rules for restricting and extending the functionality of any SMIL profile are defined in this section.
Individual user agents may opt-out of a particular language feature by explicitly ignoring it during document processing. In this way, both author and user-agent-development needs are supported for a wide community without having to define a large number of standard profiles.
Developers of user agents that explicitly support only a subset of a profile's functionality are encouraged to publish a list of these restrictions on a web site maintained by W3C and the Synchronized Multimedia working group.
A scalable profile is defined by extending any SMIL host language conforming profile using the content control facilities to support application/device specific features via a module identification mechanism, as described in the section specifying required modules.
A scalable profile is defined by extending its set of modules using the content control facilities to support application/device specific features. The scalable profile must include the description of the profile it extends, for example by including a declaration of the version and base profile attributes for the profile. A family of scalable SMIL profiles can be built using the SMIL 3.0 Tiny Profile plus additional sets of modules geared to the particular needs each profile addresses.
In the future, a SMIL 3.0 profile may be extended by other W3C Recommendations, or by private extensions. For these extensions, the following rules must be obeyed:
Conformant SMIL 3.0 user agents are prepared to handle documents containing extensions that obey these two rules. The SMIL 3.0 namespace may be used with other XML namespaces as per [XML-NS].
A scalable profile is specified by using the content control facilities via a namespace mechanism as follows:
This section is informative.
This section presents scalability guidelines for SMIL content authors that will enable their content to be played on the widest range of SMIL conformant devices.
A SMIL 3.0 document must declare a default namespace for its elements with its xmlns attribute at the smil root element with its identifier URI:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language">
... </smil>
If no namespace is specified, the namespace will default to: xmlns="http://www.w3.org/TR/REC-smil", which is the SMIL 1.0 namespace.
The version and baseProfile attributes may be used to specify a particular profile for use when processing the document. If a DOCTYPE is used to define the profile, then the version and base profile will be defined by the DTD in the DOCTYPE. If both a DOCTYPE DTD is defined and the version and/or baseProfile attributes, both sets must refer to the same profile.
A SMIL 3.0 document with custom extensions conforming to a custom DTD may be declared as follows:
<!DOCTYPE smil SYSTEM "http://www.example.org/myCustomSMIL.dtd"> <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language" xmlns:myStuff="http://www.example.org/2008/Custom"> <myStuff:foo> ... </myStuff:foo> </smil>
The systemRequired attribute is used to specify which components of SMIL 3.0 are required to render the document.
Examples:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language" xmlns:smil30lang="http://www.w3.org/2008/SMIL30/Language" systemRequired="smil30lang" > ... </smil>
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language" xmlns:transition="http://www.w3.org/2008/SMIL30/BasicTransitions" xmlns:align="http://www.w3.org/2008/SMIL30/AlignmentLayout" xmlns:override="http://www.w3.org/2008/SMIL30/OverrideLayout" xmlns:subregion="http://www.w3.org/2008/SMIL30/SubRegionLayout" systemRequired="transition+align+override+subregion" > ... </smil>
<smil xmlns="http://www.w3.org/2008/SMIL30/Tiny" xmlns:HostLanguage="http://www.w3.org/2008/SMIL30/HostLanguage" systemRequired="HostLanguage" > ... </smil>
If supported by the profile used as the base for the scalable document, the author may choose to explicitly qualify blocks of content with the systemRequired attribute. The following example contains the systemRequired attribute on the seq container within a switch, allowing the inclusion of the brush element when the "BrushMedia" test succeeds, and providing an image based alternative when the BrushMedia module is not supported:
<smil xmlns="http://www.w3.org/2008/SMIL30/Mobile" xmlns:BrushMedia="http://www.w3.org/2008/SMIL30/BrushMedia" > <head> <layout> <region xml:id="colorbox" top="0px" left="0px" height="50px" width="50px" /> </layout> </head> <body> <switch> <seq systemRequired="BrushMedia"> <brush dur="5s" color="#0000FF" region="colorbox"/> <brush dur="5s" color="#00FF00" region="colorbox"/> <brush dur="5s" color="#FF0000" region="colorbox"/> </seq> <seq> <img dur="5s" src="blue.jpg" region="colorbox"/> <img dur="5s" src="green.jpg" region="colorbox"/> <img dur="5s" src="red.jpg" region="colorbox"/> </seq> </switch> </body> </smil>
Note that there is an difference between the systemRequired on the smil element and an "inline" systemRequired on the other SMIL elements (if supported by the base profile). The former is a hard requirement for rendering the document. For example, if the systemRequired on the smil element lists a module that the user agent does not support even though the module is not actually used in the document, the document is still prohibited from presentation by that user agent.
Conversely, the use of the systemRequired attribute on other elements only specifies a requirement for rendering a sub-tree of the document. If some of the content of a presentation requires support beyond that provided by the base profile and that specified on the systemRequired attribute on the smil element, the additional features should be wrapped with the switch element and system test attributes, which can then be evaluated by a user agent and be processed accordingly.
The SMIL 3.0 profiles are organized from the least capable to the most capable as follows:
When extending a particular profile with additional modules, the namespace used in the extended profile should be that of the SMIL profile that includes the smallest difference in modules needed to support the document. The systemRequired attribute should also be used and set to the original profile namespace together with the module(s) used in the extension. For example, suppose the SMIL 3.0 UnifiedMobile Profile is to be extended with the BasicPriorityClassContainers module. The version and base profile used in documents for the extension should be set to the SMIL 3.0 UnifiedMobile profile and the systemRequired attribute should be set to the SMIL 3.0 UnifiedMobile profile identifier and the BasicPriorityClassContainers module identifier:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0"
baseProfile="UnifiedMobile"
xmlns:ump="http://www.w3.org/2008/SMIL30/UnifiedMobile"
xmlns:bpcc="http://www.w3.org/2008/SMIL30/BasicPriorityClassContainers"
systemRequired="ump+bpcc">
...
</smil>
Note that it is also possible to use the full SMIL 3.0 Language Profile identifier in the above example:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0"
baseProfile="Language"
xmlns:lang="http://www.w3.org/2008/SMIL30/Language"
xmlns:bpcc="http://www.w3.org/2008/SMIL30/BasicPriorityClassContainers"
systemRequired="lang+bpcc">
...
</smil>
This practice is NOT recommended because the resulting document will only be able to be processed by implementations that support the full SMIL 3.0 Language profile, and not by implementations that support the more restricted SMIL 3.0 UnifiedMobile profile -- even though the UnifiedMobile Profile provides all of the functionality required in the document.
This section is informative.
The SMIL 3.0 Language profile extends the SMIL 2.1 Language profile with new functionalities introduced in SMIL 3.0 Modules. Specifically, the following modules have been added to the list of modules:
The following modules were changed for SMIL 3.0:
In addition to new and changed modules, this version of SMIL also has a new requirement about the media formats that are to be supported by user agents, and the readIndex attribute was added to the Core collection, meaning it may occur on many more elements.
This section is normative.
The SMIL 3.0 Language profile describes the SMIL 3.0 modules that are included in the SMIL 3.0 Language and details how these modules are integrated. It contains support for all of the major SMIL 3.0 features including animation, content control, layout, linking, media object, meta-information, structure, timing and transition effects. It is designed for Web clients that support direct playback from SMIL 3.0 markup.
This section is informative.
The SMIL 3.0 Language profile is defined as a markup language. The syntax of this language is formally described with a document type definition (DTD) or an XML Schema which is based on the SMIL modules as defined in "The SMIL 3.0 Modules".
The SMIL 3.0 Language profile design requirements are:
This section is normative.
In the text in this profile specification, the term Language Profile will be considered to refer exclusively to the SMIL 3.0 Language profile as defined in this document.
The definition of conformance for a SMIL 3.0 profile is given in the Definitions section of the SMIL 3.0 Scalability Framework. Based on these definitions, the Language profile is a Strict Host-Language Conformant SMIL 3.0 Profile.
Within the referenced sections of the Scalability Framework, the following definitions should be used:
http://www.w3.org/2008/SMIL30/Language
.
xmlns="http://www.w3.org/ns/SMIL"
<!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 3.0 Language//EN" "http://www.w3.org/2008/SMIL30/SMIL30Language.dtd">If a document contains this declaration, it must be a valid XML document. Note that this implies that extensions to the syntax defined in the DTD (or in the corresponding XML or RelaxNG schemas) are not allowed. If the document is invalid, the user agent should issue an error.
http://www.w3.org/2008/SMIL30/informative-DTD/SMIL30Language.dtd
version="3.0" baseProfile="Language"As a consequence of the two requirements above, the effective root element declaration for a Language profile document must be:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> ... </smil>The root element may be extended as required with additional atttributes.
This version of SMIL provides a definition of strict host-language conformant SMIL 3.0 documents, which are restricted to tags and attributes from the SMIL 3.0 namespace. The Section "Extending/Restricting a SMIL 3.0 Profile" provides information on using the SMIL 3.0 Language profile with other namespaces, for instance, on including new tags within SMIL 3.0 documents.
Language designers and implementors wishing to extend the Language profile must consider the implications of the use of namespace extension syntax. Please consult the section on Scalable Profiles for restrictions and recommendations for best practice when extending SMIL.
The definition of user agent conformance for SMIL 3.0 Language profile documents is given in the Conforming SMIL 3.0 User Agents section of the SMIL 3.0 Scalability Framework. Conforming Language profile user agents must adhere completely to this section.
The SMIL 3.0 Language profile supports the structured-timeline-centric multimedia features found in the SMIL 3.0 modules. It uses only modules from the SMIL 3.0 recommendation. This Language profile includes the following SMIL 3.0 modules:
The collection names contained in the following table define the SMIL 3.0 Language profile vocabulary.
SMIL 3.0 Language Profile | |
---|---|
Collection Name | Elements in Collection |
Animation | animate, animateColor, animateMotion, set |
ContentControl | prefetch, switch |
Layout | layout, region, regPoint, root-layout, topLayout |
LinkAnchor | a, area (anchor) |
MediaContent | animation, audio, brush, img, ref, smilText, text, textstream, video |
Metainformation | , |
Schedule | excl, par, seq |
State | delvalue, newvalue, send, setvalue |
Structure | smil, head, body |
TextContent | tev, clear, br, span, p, div, textStyle, textStyling |
Transition | transition |
Other | customAttributes, customTest, param, paramGroup, priorityClass, state, submission |
In the following sections, we define the set of elements and attributes used in each of the modules included in the SMIL 3.0 Language profile. The content model for each element is described. The content model of an element is a description of elements which may appear as its direct children. The special content model "EMPTY" means that a given element may not have children.
Collection Name | Attributes in Collection |
---|---|
Core | alt (CDATA), baseProfile 'Language', class (CDATA), label (CDATA), longdesc (CDATA), readIndex '0', title (CDATA), version (3.0) '3.0', xml:base (CDATA) [XMLBase], xml:id (id) (ID) |
I18n | its:dir (lro | ltr | rlo | rtl), its:locNote (CDATA), its:locNoteRef (CDATA), its:locNoteType (alert | description), its:term (no | yes), its:termInfoRef (CDATA), its:translate (no | yes), xml:lang (CDATA) |
The xml:id and id attributes are used to assign a unique XML identifier to every element in a SMIL document. The xml:id and id attributes are equivalent and must not both be used on an element. The xml:id should be used in preference to the id attribute. When the document uses the SMIL 3.0 Language Profile DOCTYPE, only xml:id must be used.
The attributes in the collection Core are defined for all the elements of the SMIL 3.0 Language profile.
In this document, equivalent but deprecated attributes and elements are in parentheses.
The Structure Module provides a framework for structuring a SMIL document. The Structure Module defines semantics for the smil, head and body elements. The SMIL 3.0 Language profile includes the Structure functionality of the Structure module.
The Identity Module provides attributes to identify the SMIL version and profile used in a SMIL document. The Identity Module defines semantics for the version and baseProfile attributes. The SMIL 3.0 Language profile includes the functionality of the Identity Module. The SMIL 3.0 Language Profile DTD provides default values for version and baseProfile.
In the SMIL 3.0 Language profile, the Structure elements may have the following attributes and content model :
Structure Module | ||
---|---|---|
Elements | Attributes | Content model |
smil | Core, I18n, Test, xmlns, xmlns:its 'http://www.w3.org/2005/11/its' | (()*, (head, ()*)?, (body, ()*)?) |
head | Core, I18n | (()*, ((customAttributes), ()*)?, ((), ()*)?, ((textStyling), ()*)?, ((layout | switch), ()*)?, ((state), ()*)?, ((submission), ()*)*, (((transition)+), ()*)?, (((paramGroup)+), ()*)?) |
body | Core, I18n, MediaDescriptionAttributes, Timing, fill (auto | default | freeze | hold | remove | transition) 'default' | (Animation | ContentControl | MediaContent | Schedule | State | a | )* |
The attribute xmlns must be present on the element smil and it must have the value 'http://www.w3.org/ns/SMIL'.
The body element acts as the root element to span the timing tree. The body element has the behavior of a seq element. Timing on the body element is supported. The syncbase of the body element is the application begin time, which is implementation dependent, as is the application end time. Note that the effect of fill on the body element is between the end of the presentation and the application end time, and therefore the effect of fill is implementation dependent.
The Media Object Modules provide a framework for declaring media. The Media Object Modules define semantics for the ref, animation, audio, img, text, textstream, video and brush elements. The SMIL 3.0 Language profile includes the Media functionality of the BasicMedia, BrushMedia, MediaAccessibility, MediaClipping, MediaClipMarkers, MediaDescription, MediaOpacity, MediaPanZoom, MediaParam and MediaRenderAttributes modules.
In the SMIL 3.0 Language profile, media elements may have the following attributes and content model:
Media Object Module | ||
---|---|---|
Elements | Attributes | Content model |
ref, animation, audio, img, text, textstream, video | Core, I18n, MediaDescriptionAttributes, MediaOpacityAttributes, SubregionAttributes, Test, Timing, clip-begin, clip-end, clipBegin, clipEnd, customTest, endsync 'media', erase (never | whenDone) 'whenDone', expr, fill (auto | default | freeze | hold | remove | transition) 'default', mediaRepeat (preserve | strip) 'preserve', panZoom, paramGroup, region, sensitivity 'opaque', soundLevel '+0.0dB', src, tabindex, transIn, transOut, type | (Animation | area (anchor) | | param | switch)* |
brush | Core, I18n, MediaDescriptionAttributes, Test, Timing, backgroundColor, backgroundOpacity '100%', bottom 'auto', color, customTest, endsync 'media', erase (never | whenDone) 'whenDone', expr, fill (auto | default | freeze | hold | remove | transition) 'default', fit (fill | hidden | meet | meetBest | scroll | slice), height 'auto', left 'auto', mediaAlign (bottomLeft | bottomMid | bottomRight | center | midLeft | midRight | topLeft | topMid | topRight), paramGroup, regAlign (bottomLeft | bottomMid | bottomRight | center | midLeft | midRight | topLeft | topMid | topRight), regPoint, region, right 'auto', sensitivity 'opaque', skip-content (false | true) 'true', tabindex, top 'auto', transIn, transOut, width 'auto', z-index | (Animation | area (anchor) | | param | switch)* |
param | Core, I18n, Test, customTest, name, skip-content (false | true) 'true', type, value, valuetype (data | object | ref) 'data' | ()* |
paramGroup | Core, I18n, skip-content (false | true) 'true' | ( | param)* |
The attribute collections MediaDescriptionAttributes and MediaOpacityAttributes are defined as follows:
Collection Name | Attributes in Collection |
---|---|
MediaDescriptionAttributes | abstract (CDATA), (CDATA), copyright (CDATA) |
MediaOpacityAttributes | chromaKey, chromaKeyOpacity, chromaKeyTolerance, mediaBackgroundOpacity, mediaOpacity |
This profile adds the ref, animation, audio, img, text, textstream, video and brush elements to the content model of the par, seq, excl and priorityClass elements of the Timing and Synchronization Modules. It also adds these elements to the content model of the body element of the Structure Module, to the content model of the a element of the Linking Modules and to the content model of the switch element of the Content Control Modules.
SMIL 1.0 only allowed anchor as a child element of a media element. In addition to anchor, the following elements are allowed in SMIL 3.0 as children of a SMIL media object: area, param, animate, set, animateColor, animateMotion, , (note that the a element is not included). The switch element is allowed, with the restriction that in this case the content of the switch may only be from the same set of elements.
The MediaRenderAttributes Module defines the erase attribute, and defers definition of the "display area" to the language profile. "Display area" for the purposes of the SMIL 3.0 Language corresponds to a SMIL BasicLayout region. The effects of erase="never" apply after the active duration of the media object and any fill period (defined by SMIL Timing and Synchronization), and only until other media plays to the region targeted by the media object, or until the same media object restarts.
The Timing and Synchronization Modules provide a framework for describing timing structure, timing control properties and temporal relationships between elements. The Timing and Synchronization Modules define semantics for par, seq, excl and priorityClass elements. In addition, these modules define semantics for attributes including begin, dur, end, fill, fillDefault, repeat (deprecated), repeatCount, repeatDur, restart, restartDefault, syncBehavior, syncBehaviorDefault, syncTolerance, syncToleranceDefault. The SMIL 3.0 Language profile includes the Timing functionality of the AccessKeyTiming Module, BasicInlineTiming Module, BasicTimeContainers Module, BasicExclTimeContaine Module, BasicPriorityClassContainers Module, EventTiming Module, FillDefault Module, MediaMarkerTiming Module, MinMaxTiming Module, MultiArcTiming Module, RepeatTiming Module, RepeatValueTiming Module, RestartDefault Module, RestartTiming Module, SyncbaseTiming Module, SyncBehavior Module, SyncBehaviorDefault Module, WallclockTiming Module modules.
In the SMIL 3.0 Language profile, Timing and Synchronization elements may have the following attributes and content model :
Timing and Synchronization Module | ||
---|---|---|
Elements | Attributes | Content model |
par | Core, I18n, MediaDescriptionAttributes, Test, Timing, customTest, endsync 'last', expr, fill (auto | default | freeze | hold | remove | transition) 'default', region | (Animation | ContentControl | MediaContent | Schedule | State | a | )* |
seq | Core, I18n, MediaDescriptionAttributes, Test, Timing, customTest, expr, fill (auto | default | freeze | hold | remove | transition) 'default', region | (Animation | ContentControl | MediaContent | Schedule | State | a | )* |
excl | Core, I18n, MediaDescriptionAttributes, Test, Timing, customTest, endsync 'last', expr, fill (auto | default | freeze | hold | remove | transition) 'default', region, skip-content (false | true) 'true' | (()*, (((Schedule | MediaContent | Animation | ContentControl | a | State), ()*)* | (priorityClass, ()*)+)) |
priorityClass | Core, I18n, MediaDescriptionAttributes, Test, customTest, higher (pause | stop) 'pause', lower (defer | never) 'defer', pauseDisplay (disable | hide | show) 'show', peers (defer | never | pause | stop) 'stop', skip-content (false | true) 'true' | (Animation | ContentControl | MediaContent | Schedule | State | a | )* |
The Attribute collections Timing and BasicTiming are defined as follows:
Collection Name | Attributes in Collection |
---|---|
BasicTiming | begin, dur, end, max 'indefinite', min '0', repeat, repeatCount, repeatDur |
Timing | begin, dur, end, fillDefault (auto | freeze | hold | inherit | remove | transition) 'inherit', max 'indefinite', min '0', repeat, repeatCount, repeatDur, restart (always | default | never | whenNotActive) 'default', restartDefault (always | inherit | never | whenNotActive) 'inherit', syncBehavior (canSlip | default | independent | locked) 'default', syncBehaviorDefault (canSlip | independent | inherit | locked) 'inherit', syncTolerance 'default', syncToleranceDefault 'inherit' |
This profile adds the par, seq and excl elements to the content model of the body element of the Structure Module, to the content model of the a element of the Linking Modules and to the content model of the switch element of the Content Control Modules.
Elements of the Media Object Modules, elements of the Animation Module, elements of the State Modules and the smilText element of the smilText Modules have the attributes describing timing and properties of contents.
The SMIL 3.0 Language profile specifies which types of events may be used as part of the begin and end attribute values. The supported events are described as Event-symbols according to the syntax introduced in the SMIL Timing and Synchronization module.
The supported event symbols in the SMIL 3.0 Language profile are:
Event | example |
---|---|
focusInEvent | end="foo.focusInEvent + 3s" |
focusOutEvent | begin="foo.focusOutEvent" |
activateEvent | begin="foo.activateEvent" |
beginEvent | begin="foo.beginEvent + 2s" |
endEvent | end="foo.endEvent + 2s" |
repeatEvent | end="foo.repeatEvent" |
inBoundsEvent | end="foo.inBoundsEvent" |
outOfBoundsEvent | begin="foo.outOfBoundsEvent + 5s" |
topLayoutCloseEvent | end="toplayout1.topLayoutCloseEvent" |
topLayoutOpenEvent | end="toplayout2.topLayoutOpenEvent+5s" |
stateChange(ref) | end="foo.stateChange(//*)" |
contentControlChange(attrname) | end="root.contentControlChange(systemBitrate)" |
contentControlChange | end="root.contentControlChange" |
This example is informative.
In the following example,
<ref xml:id="x" end="30s" src="15s.mpg" /> <ref xml:id="y" end="10s" src="20s.mpg" /> <ref xml:id="z" repeatCount="4" src="5s.mpg" />
x.endEvent occurs at roughly 30s when the active duration is reached, y.endEvent occurs at roughly 10s when the playback of the continuous media is ended early by the active duration being reached, and z.endEvent occurs at roughly 20s when the fourth and final repeat has completed, thus reaching the end of its active duration.
The endEvent is delivered to elements which support timing, such as media elements and time containers, and does not bubble.
A media element's bounds are restrained by the bounds of the region in which it is contained., i.e., a media element's bounds do not extend beyond its region's bounds. The inBoundsEvent is delivered to media elements only, and does not bubble.
Note that, unlike with keyboard focus which may only be active on one object at a time, the state of being within an object's bounds may be true for multiple objects simultaneously. For instance, if one object is on top of another and the cursor is placed on top of both objects, both would have raised an inBoundsEvent more recently than the raising of any respective outOfBoundsEvent.
A media element's bounds are restrained by its region's bounds, i.e., a media element's bounds do not extend beyond its region's bounds. The outOfBoundsEvent is delivered to media elements only, and does not bubble.
There will be cases where events occur simultaneously. To ensure that each SMIL 3.0 Language implementation handles them in the same order, the following order must be used to resolve ties:
Events are listed in order of precedence, e.g., if event #6 in this list occurs at the same time as event #7, then #6 must be raised prior to #7.
The InBoundsEvent, focusInEvent, OutOfBoundsEvent, activateEvent and focusOutEvent events do not bubble and are delivered to the target media element.
The beginEvent, endEvent and repeatEvent events do not bubble and are delivered to the timed element on which the event occurs.
The topLayoutOpenEvent and topLayoutCloseEvent events do not bubble and are delivered to the topLayout element on which the event occurs.
The SMIL 3.0 Language profile supports an extensible set of events. In order to resolve possible name conflicts with the events that are supported in this profile qualified event names are supported. Namespace prefixes are used to qualify the event names. As a result, the colon is reserved in begin and end attributes for qualifying event names.
This example is informative.
For example:
<smil ... xmlns:example="http://www.example.com"> <img xml:id="foo" .../> <audio begin="foo.example:focusInEvent".../> ... </smil>
A SMIL document's begin time is defined as the moment a user agent begins the timeline for the overall document. A SMIL document's end time is defined as equal to the end time of the body element.
The Content Control Modules provide a
framework for selecting content based on a set of test attributes. The Content Control Modules define semantics for the
switch, prefetch, customAttributes and customTest elements. The SMIL 3.0
Language profile includes the Content Control functionality of the BasicContentControl,
CustomTestAttributes,
PrefetchControl,
RequiredContentControl
and SkipContentControl
modules.
In the SMIL 3.0 Language profile, Content Control elements may have the
following attributes and content model :
Content Control Module | ||
---|---|---|
Elements | Attributes | Content model |
switch | Core, I18n, Test, allowReorder (no | yes) 'no', customTest | (( | switch)*, ((((Animation), ( | switch)*)*, (((Schedule | MediaContent | State | prefetch | a)+, ( | Animation | switch)*)+ | ((param | area (anchor)), ( | Animation | switch)*)+)) | (layout, ( | switch)*)*)) |
prefetch | Core, I18n, Test, Timing, bandwidth '100%', clip-begin, clip-end, clipBegin, clipEnd, customTest, expr, mediaSize, mediaTime, skip-content (false | true) 'true', src | ()* |
customAttributes | Core, I18n, skip-content (false | true) 'true' | (()*, (customTest, ()*)+) |
customTest | Core, I18n, defaultState (false | true) 'false', override (hidden | visible) 'hidden', skip-content (false | true) 'true', uid | ()* |
This profile adds the switch element to the content model of the par, seq and excl elements of the Timing and Synchronization Modules, the content model of the body and the head elements of the Structure Module, the content model of the a element of the Linking Modules, and the content model of the ref, animation, audio, img, text, textstream, video and brush elements of the Media Object Modules. The profile adds the customAttributes element to the content model of the head element and the customTest element to the content model of the customAttributes element.
The Content Control functionality is used to define the Attribute set "Test":
Collection Name | Attributes in Collection |
---|---|
Test | system-bitrate, system-captions (off | on), system-language, (caption | overdub), system-required, system-screen-depth, system-screen-size, systemAudioDesc (off | on), systemBaseProfile, systemBitrate, systemCPU, systemCaptions (off | on), systemComponent, systemLanguage, , systemOverdubOrSubtitle (overdub | subtitle), systemRequired, systemScreenDepth, systemScreenSize, systemVersion (3.0) |
The collection of Attributes Test is added to all the elements defined in the SMIL 3.0 Language profile, except body, br, clear, customAttributes, customTest, div, head, , , p, span, state, submission, tev and textStyling. A SMIL 3.0 user agent must support all of the values for the and systemCPU attributes listed in the Content Control Modules. In addition, the user agent should accept namespaced values as future extensions, and not declare a syntax error. The user agent should return false for unrecognized values of the and systemCPU attributes.
The Layout Modules provide a framework for spatial layout of visual components. The Layout Modules define semantics for the region, root-layout, topLayout, layout and the regPoint elements. The SMIL 3.0 Language profile includes the Layout functionality of the AlignmentLayout Module, AudioLayout Module, BackgroundTilingLayout Module, BasicLayout Module, MultiWindowLayout Module, OverrideLayout Module, StructureLayoutModule, SubRegionLayout Module modules.
In the SMIL 3.0 Language profile, Layout elements may have the following
attributes and content model :
Layout Module | ||
---|---|---|
Elements | Attributes | Content model |
region | Core, I18n, MediaOpacityAttributes, SubregionAttributes, Test, TextAttributes, background-color, backgroundImage 'none', backgroundRepeat (inherit | noRepeat | repeat | repeatX | repeatY) 'repeat', customTest, erase (never | whenDone) 'whenDone', panZoom, regionName, sensitivity 'opaque', showBackground (always | whenActive) 'always', skip-content (false | true) 'true', soundLevel '+0.0dB', textAlign (center | end | inherit | left | right | start) 'inherit', textDirection (inherit | ltr | ltro | rtl | rtlo) 'inherit', textMode (append | crawl | inherit | jump | replace | scroll) 'inherit', textPlace (center | end | inherit | start) 'inherit', textWrapOption (inherit | noWrap | wrap) 'wrap', textWritingMode (inherit | lr | lr-tb | rl | rl-tb | tb-lr | tb-rl) 'inherit' | ( | region)* |
root-layout | Core, I18n, Test, background-color, backgroundColor, backgroundImage 'none', backgroundOpacity '100%', backgroundRepeat (inherit | noRepeat | repeat | repeatX | repeatY) 'repeat', customTest, height 'auto', skip-content (false | true) 'true', width 'auto' | ()* |
topLayout | Core, I18n, Test, backgroundColor, backgroundImage 'none', backgroundOpacity '100%', backgroundRepeat (inherit | noRepeat | repeat | repeatX | repeatY) 'repeat', close (onRequest | whenNotActive) 'onRequest', customTest, height 'auto', open (onStart | whenActive) 'onStart', skip-content (false | true) 'true', width 'auto' | ( | region)* |
layout | Core, I18n, Test, customTest, type 'text/smil-basic-layout' | ( | region | root-layout | topLayout | regPoint)* |
regPoint | Core, I18n, Test, bottom 'auto', customTest, left 'auto', regAlign (bottomLeft | bottomMid | bottomRight | center | midLeft | midRight | topLeft | topMid | topRight), right 'auto', skip-content (false | true) 'true', top 'auto' | ()* |
The "background-color" attribute of SMIL1.0 is deprecated in favor of "backgroundColor", but both are supported.
The attribute collection SubregionAttributes is defined as follows:
Collection Name | Attributes in Collection |
---|---|
SubregionAttributes | backgroundColor, backgroundOpacity '100%', bottom 'auto', fit (fill | hidden | meet | meetBest | scroll | slice), height 'auto', left 'auto', mediaAlign (bottomLeft | bottomMid | bottomRight | center | midLeft | midRight | topLeft | topMid | topRight), regAlign (bottomLeft | bottomMid | bottomRight | center | midLeft | midRight | topLeft | topMid | topRight), regPoint, right 'auto', soundAlign (both | left | right), top 'auto', width 'auto', z-index |
This profile adds the layout element to the content model of the head element of the Structure Module. It also adds this element to the content model of the switch element of the Content Control Modules, when the switch element is a child of the head element.
The smilText Modules provide a light-weight method of adding in-line text to a SMIL presentation. The smilText Modules define semantics for the smilText, tev, clear, br, span, p, div, textStyle, textStyling elements and their attributes. The SMIL 3.0 Language profile includes the smilText functionality of the BasicText, TextStyling and TextMotion modules.
In the SMIL 3.0 Language profile, SMILtext elements may have the following attributes and content model:
Text Module | ||
---|---|---|
Elements | Attributes | Content model |
smilText | Core, I18n, MediaDescriptionAttributes, MediaOpacityAttributes, Test, TextAttributes, Timing, backgroundColor, backgroundOpacity '100%', bottom 'auto', customTest, endsync 'media', erase (never | whenDone) 'whenDone', expr, fill (auto | default | freeze | hold | remove | transition) 'default', fit (fill | hidden | meet | meetBest | scroll | slice), height 'auto', left 'auto', mediaAlign (bottomLeft | bottomMid | bottomRight | center | midLeft | midRight | topLeft | topMid | topRight), paramGroup, regAlign (bottomLeft | bottomMid | bottomRight | center | midLeft | midRight | topLeft | topMid | topRight), regPoint, region, right 'auto', sensitivity 'opaque', skip-content (false | true) 'true', tabindex, textAlign (center | end | inherit | left | right | start) 'inherit', textConceal (both | final | inherit | initial | none) 'inherit', textMode (append | crawl | inherit | jump | replace | scroll) 'inherit', textPlace (center | end | inherit | start) 'inherit', textRate 'auto', textWrapOption (inherit | noWrap | wrap) 'wrap', textWritingMode (inherit | lr | lr-tb | rl | rl-tb | tb-lr | tb-rl) 'inherit', top 'auto', transIn, transOut, width 'auto', z-index | (#PCDATA | br | clear | div | | p | param | span | tev) |
tev | Core, I18n, begin, next | ()* |
clear | Core, I18n, begin, next | ()* |
br | Core, I18n | ()* |
div | Core, I18n, MediaDescriptionAttributes, TextAttributes, textAlign (center | end | inherit | left | right | start) 'inherit', textWrapOption (inherit | noWrap | wrap) 'wrap', textWritingMode (inherit | lr | lr-tb | rl | rl-tb | tb-lr | tb-rl) 'inherit' | (#PCDATA | br | clear | div | | p | span | tev) |
p | Core, I18n, MediaDescriptionAttributes, TextAttributes, textWrapOption (inherit | noWrap | wrap) 'wrap', textWritingMode (inherit | lr | lr-tb | rl | rl-tb | tb-lr | tb-rl) 'inherit' | (#PCDATA | br | clear | | span | tev) |
span | Core, I18n, MediaDescriptionAttributes, TextAttributes, textDirection (inherit | ltr | ltro | rtl | rtlo) 'inherit', textWrapOption (inherit | noWrap | wrap) 'wrap' | (#PCDATA | br | clear | | span | tev) |
textStyle | Core, I18n, Test, TextAttributes, textAlign (center | end | inherit | left | right | start) 'inherit', textConceal (both | final | inherit | initial | none) 'inherit', textDirection (inherit | ltr | ltro | rtl | rtlo) 'inherit', textMode (append | crawl | inherit | jump | replace | scroll) 'inherit', textPlace (center | end | inherit | start) 'inherit', textRate 'auto', textWrapOption (inherit | noWrap | wrap) 'wrap', textWritingMode (inherit | lr | lr-tb | rl | rl-tb | tb-lr | tb-rl) 'inherit' | ()* |
textStyling | Core, I18n | (()*, (textStyle, ()*)+) |
This profile adds the smilText element to the content model of the par, seq, excl and priorityClass elements of the Timing and Synchronization Modules. It also adds the elements to the content model of the body element of the Structure Module, to the content model of the a element of the Linking Modules and to the content model of the switch element of the Content Control Modules.
The SMILtext functionality is used to define the Attribute set "TextAttributes":
Collection Name | Attributes in Collection |
---|---|
TextAttributes | textBackgroundColor 'transparent', textColor, textFontFamily 'inherit', textFontSize 'inherit', textFontStyle (inherit | italic | normal | oblique | reverseOblique) 'inherit', textFontWeight (bold | inherit | normal) 'inherit', textStyle, xml:space (default | preserve) 'default' |
The Linking Modules provide a framework for relating documents to content, documents and document fragments. The Linking Modules define semantics for the a and area (anchor) elements. They define also the semantics of a set of attributes defined for these elements. The SMIL 3.0 Language profile includes the Linking functionality of the BasicLinking, LinkingAttributes and ObjectLinking modules.
Both the a and area elements have an href attribute, whose value must be a valid URI.
Support for URIs with XPointer fragment identifier syntax is not required.
In the SMIL 3.0 Language profile, Linking elements may have the following
attributes and content model :
Linking Module | ||
---|---|---|
Elements | Attributes | Content model |
a | BasicTiming, Core, I18n, Test, accesskey, actuate (onLoad | onRequest) 'onRequest', customTest, destinationLevel '+0.0dB', destinationPlaystate (pause | play) 'play', external (false | true) 'false', href, show (new | pause | replace) 'replace', sourceLevel '+0.0dB', sourcePlaystate (pause | play | stop), tabindex, target | (Animation | ContentControl | MediaContent | Schedule | State | )* |
area (anchor) | BasicTiming, Core, I18n, Test, accesskey, actuate (onLoad | onRequest) 'onRequest', coords, customTest, destinationLevel '+0.0dB', destinationPlaystate (pause | play) 'play', expr, external (false | true) 'false', fragment, href, nohref (nohref), shape (circle | default | poly | rect) 'rect', show (new | pause | replace) 'replace', skip-content (false | true) 'true', sourceLevel '+0.0dB', sourcePlaystate (pause | play | stop), tabindex, target | (animate | | set)* |
This profile adds the a element to the content model of the par, seq and excl elements of the Timing and Synchronization Modules. It also adds the elements to the content model of the body element of the Structure Module and to the content model of the switch element of the Content Control Modules.
In the SMIL 3.0 language profile, a value of onLoad set on the attribute actuate indicates that the link is automatically traversed when the linking element becomes active. For linking elements containing SMIL timing, this is when the active duration of the linking element begins.
The attribute tabindex specifies the position of the element in the tabbing order at a particular instant for the current document. The tabbing order defines the order in which elements will receive focus when navigated by the user via an input device such as a keyboard. At any particular point in time, only active elements are taken into account for the tabbing order; inactive elements are ignored.
When a media object element has a tabindex attribute and becomes active, then its ordered tab index is inserted in the SMIL tab index at the location specified by the media object's tabindex attribute value. This assumes that the media object itself has tab indices, such as embedded HTML with tabindex attributes. This enables all link starting points in a SMIL presentation to have a place on the ordered list to be tab-keyed through, including those in embedded presentations.
For SMIL 1.0 backward compatibility, the anchor element is available but deprecated in favor of area. The anchor element supports the same attributes as area, both the new SMIL 3.0 attributes and the SMIL 1.0 attributes as defined in [SMIL10].
SMIL 1.0 backward compatibility: The show attribute value pause is deprecated in favor of setting the show attribute to new and the sourcePlaystate attribute to pause.
The Metainformation Module provides a framework for describing a document, either to inform the human user or to assist in automation. The Metainformation Module defines semantics for the and elements. The SMIL 3.0 Language profile includes the Metainformation functionality of the Metainformation module.
In the SMIL 3.0 Language profile, Metainformation elements may have the following attributes and content model :
Metainformation Module | ||
---|---|---|
Elements | Attributes | Content model |
Core, I18n, content, name, skip-content (false | true) 'true' | EMPTY | |
Core, I18n, skip-content (false | true) 'true' | EMPTY |
This profile adds the and elements to the content model of all elements except , and state.
The content model of metadata is empty. Profiles that extend the SMIL 3.0 Language profile may define the RDF (Resource Description Framework) schema to be used in extending the content model of the metadata element. The Resource Description Framework is defined in the W3C RDF Recommendation [RDFsyntax]. Other XML-based metadata formats may also be included in a smiliar manner. Note that if any content is added to the element, a DOCTYPE must not be declared in the document.
The Transition Modules provide a framework for describing transitions such as fades and wipes. The Transition Modules define semantics for the transition element and the transIn and transOut attributes. The SMIL 3.0 Language profile includes the functionality of the BasicTransitions, TransitionModifiers and the FullScreenTransitions Module modules.
In the SMIL 3.0 Language profile, Transition Effects elements have the following attributes and content model :
Transition Effects Module | ||
---|---|---|
Elements | Attributes | Content model |
transition | Core, I18n, Test, borderColor 'black', borderWidth '0', customTest, direction (forward | reverse) 'forward', dur, endProgress '1.0', fadeColor 'black', horzRepeat '1', scope (region | screen) 'region', skip-content (false | true) 'true', startProgress '0.0', subtype (bottom | bottomCenter | bottomLeft | bottomLeftClockwise | bottomLeftCounterClockwise | bottomLeftDiagonal | bottomRight | bottomRightClockwise | bottomRightCounterClockwise | bottomRightDiagonal | centerRight | centerTop | circle | clockwiseBottom | clockwiseBottomRight | clockwiseLeft | clockwiseNine | clockwiseRight | clockwiseSix | clockwiseThree | clockwiseTop | clockwiseTopLeft | clockwiseTwelve | cornersIn | cornersOut | counterClockwiseBottomLeft | counterClockwiseTopRight | crossfade | diagonalBottomLeft | diagonalBottomLeftOpposite | diagonalTopLeft | diagonalTopLeftOpposite | diamond | doubleBarnDoor | doubleDiamond | down | fadeFromColor | fadeToColor | fanInHorizontal | fanInVertical | fanOutHorizontal | fanOutVertical | fivePoint | fourBlade | fourBoxHorizontal | fourBoxVertical | fourPoint | fromBottom | fromLeft | fromRight | fromTop | heart | horizontal | horizontalLeft | horizontalLeftSame | horizontalRight | horizontalRightSame | horizontalTopLeftOpposite | horizontalTopRightOpposite | keyhole | left | leftCenter | leftToRight | oppositeHorizontal | oppositeVertical | parallelDiagonal | parallelDiagonalBottomLeft | parallelDiagonalTopLeft | parallelVertical | rectangle | right | rightCenter | sixPoint | top | topCenter | topLeft | topLeftClockwise | topLeftCounterClockwise | topLeftDiagonal | topLeftHorizontal | topLeftVertical | topRight | topRightClockwise | topRightCounterClockwise | topRightDiagonal | topToBottom | twoBladeHorizontal | twoBladeVertical | twoBoxBottom | twoBoxLeft | twoBoxRight | twoBoxTop | up | vertical | verticalBottomLeftOpposite | verticalBottomSame | verticalLeft | verticalRight | verticalTopLeftOpposite | verticalTopSame), type (arrowHeadWipe | audioFade | audioVisualFade | barWipe | barnDoorWipe | barnVeeWipe | barnZigZagWipe | bowTieWipe | boxSnakesWipe | boxWipe | clockWipe | diagonalWipe | doubleFanWipe | doubleSweepWipe | ellipseWipe | eyeWipe | fade | fanWipe | fourBoxWipe | hexagonWipe | irisWipe | miscDiagonalWipe | miscShapeWipe | parallelSnakesWipe | pentagonWipe | pinWheelWipe | pushWipe | roundRectWipe | saloonDoorWipe | singleSweepWipe | slideWipe | snakeWipe | spiralWipe | starWipe | triangleWipe | veeWipe | waterfallWipe | windshieldWipe | zigZagWipe), vertRepeat '1' | ()* |
This profile adds the transition element to the content model of the head element of the Structure Module.
The Transition Effects Modules add transIn and transOut attributes to ref, animation, audio, img, text, textstream, video and brush elements of the Media Object Modules.
The Transition Effects Modules add the transition value to the fill attribute for all elements on which this value of the fill attribute is supported.
The Animation Module provides a framework for incorporating animation into a timing framework, and a mechanism for composing the effects of multiple animations. The Animation Module uses the timing modules included in this profile for the underlying model of time. The SMIL 3.0 Language profile includes the animation functionality of the BasicAnimation module. The BasicAnimation Module defines the semantics for the animate, set, animateMotion and animateColor elements.
In the SMIL 3.0 Language profile, Animation elements may have the
following attributes and content model :
Animation Module | ||
---|---|---|
Elements | Attributes | Content model |
animate | BasicTiming, Core, I18n, Test, accumulate (none | sum) 'none', additive (replace | sum) 'replace', attributeName, attributeType (CSS | XML | auto) 'auto', by, calcMode (discrete | linear | paced) 'linear', customTest, expr, fill (auto | default | freeze | hold | remove | transition) 'default', fillDefault (auto | freeze | hold | inherit | remove | transition) 'inherit', from, restart (always | default | never | whenNotActive) 'default', restartDefault (always | inherit | never | whenNotActive) 'inherit', skip-content (false | true) 'true', targetElement, to, values | ()* |
set | BasicTiming, Core, I18n, Test, attributeName, attributeType (CSS | XML | auto) 'auto', customTest, expr, fill (auto | default | freeze | hold | remove | transition) 'default', fillDefault (auto | freeze | hold | inherit | remove | transition) 'inherit', restart (always | default | never | whenNotActive) 'default', restartDefault (always | inherit | never | whenNotActive) 'inherit', skip-content (false | true) 'true', targetElement, to | ()* |
animateMotion | BasicTiming, Core, I18n, Test, accumulate (none | sum) 'none', additive (replace | sum) 'replace', by, calcMode (discrete | linear | paced) 'linear', customTest, expr, fill (auto | default | freeze | hold | remove | transition) 'default', fillDefault (auto | freeze | hold | inherit | remove | transition) 'inherit', from, origin (default) 'default', restart (always | default | never | whenNotActive) 'default', restartDefault (always | inherit | never | whenNotActive) 'inherit', skip-content (false | true) 'true', targetElement, to, values | ()* |
animateColor | BasicTiming, Core, I18n, Test, accumulate (none | sum) 'none', additive (replace | sum) 'replace', attributeName, attributeType (CSS | XML | auto) 'auto', by, calcMode (discrete | linear | paced) 'linear', customTest, expr, fill (auto | default | freeze | hold | remove | transition) 'default', fillDefault (auto | freeze | hold | inherit | remove | transition) 'inherit', from, restart (always | default | never | whenNotActive) 'default', restartDefault (always | inherit | never | whenNotActive) 'inherit', skip-content (false | true) 'true', targetElement, to, values | ()* |
This profile adds the animate, set, animateMotion and animateColor elements to the content model of the par, seq, excl and priorityClass elements of the Timing and Synchronization Modules. It also adds these elements to the content model of the body element of the Structure Module, to the content model of the a element of the Linking Modules and to the content model of the switch element of the Content Control Modules.
Specifying the target element of the animation
The animation target elements supported in the SMIL 3.0 Language profile are the region element defined in the Layout Modules, the area (anchor) element defined in the Linking Modules and the ref, animation, audio, img, text, textstream, video and the brush elements defined in the Media Objects modules.
The SMIL 3.0 Language profile uses the targetElement attribute to identify the element to be affected by animation elements. As recommended in the BasicAnimation Module when the targetElement attribute is supported, this profile excludes the XLink attributes href, type, actuate and show from the animate, set, animateMotion and animateColor elements.
Specifying the target attribute of the animation
The target attributes of the animations are a subset of those of the region, area (anchor) and media elements. The animatable attributes of the region, area (anchor) and media elements are listed in the table below.
The area (anchor) element has the coords attribute which may be subject to animation. The attribute coords is considered of type string in this profile. This means that only discrete non-additive animation is supported on this attribute.
The media elements have the following sub-region attributes which may be
subject to animation: left, right, top, bottom, width, height, z-index and backgroundColor.
Integration definitions
The SMIL 3.0 Language profile defines a set of integration definitions as required by the Animation modules. These definitions are:
coerced-integer-value = Math.floor( interpolated-value + 0.5 )
The State Modules provide a framework for declaratively manipulating various bits of state in a SMIL presentation. The State Modules define semantics for the delvalue, newvalue, send, setvalue, state and submission elements and the action, expr, language, method, name, ref, replace, submission and value attributes. The SMIL 3.0 Language profile includes the State functionality of the StateTest, UserState, StateSubmission, StateInterpolation modules.
In the SMIL 3.0 Language profile, the State elements may have the following attributes and content model:
State Module | ||
---|---|---|
Elements | Attributes | Content model |
delvalue | BasicTiming, Core, I18n, Test, customTest, expr, fillDefault (auto | freeze | hold | inherit | remove | transition) 'inherit', ref, restart (always | default | never | whenNotActive) 'default', restartDefault (always | inherit | never | whenNotActive) 'inherit', skip-content (false | true) 'true' | ()* |
newvalue | BasicTiming, Core, I18n, Test, customTest, expr, fillDefault (auto | freeze | hold | inherit | remove | transition) 'inherit', name, ref '/*', restart (always | default | never | whenNotActive) 'default', restartDefault (always | inherit | never | whenNotActive) 'inherit', skip-content (false | true) 'true', value, where (after | before | child) 'child' | ()* |
send | BasicTiming, Core, I18n, Test, customTest, expr, fillDefault (auto | freeze | hold | inherit | remove | transition) 'inherit', restart (always | default | never | whenNotActive) 'default', restartDefault (always | inherit | never | whenNotActive) 'inherit', skip-content (false | true) 'true', submission | ()* |
setvalue | BasicTiming, Core, I18n, Test, customTest, expr, fillDefault (auto | freeze | hold | inherit | remove | transition) 'inherit', ref, restart (always | default | never | whenNotActive) 'default', restartDefault (always | inherit | never | whenNotActive) 'inherit', skip-content (false | true) 'true', value | ()* |
state | Core, I18n, language 'http://www.w3.org/TR/1999/REC-xpath-19991116', skip-content (false | true) 'true', src | EMPTY |
submission | Core, I18n, action, method (get | post | put), ref, replace (all | instance | none), target | ()* |
This profile adds the state and submission elements to the content model of the head element of the Structure Module, and the setvalue, newvalue, delvalue and send elements to the content model of the body, switch, a, par, seq, excl, priorityClass elements. It also adds the expr attribute to all timed elements within the content model of the body element.
The content model of the state element is declared as empty. The state element defines the data model of the SMIL State engine using the language defined by the language attribute. If that language is XPath 1.0 the contents of the state element is an XML document that is not imported into SMIL 3.0 but needs to be declared using a namespace prefix. For other languages the contents of the state element are probably CDATA. Note that if any content is added to the state element, a DOCTYPE must not be declared in the document.
The submission attribute value is an IDREF that refers to a submission element.
The method attribute must at least support the values get, put and post. Serialization and submission must follow the description of these methods in [XFORMS10], section 11.2. Support for other methods described in that document is optional.
Interpolation of values using the mechanism from the StateInterpolation module is supported on the attributes for which animation is supported. Interpolation is also supported on the src, href, clipBegin and clipEnd attributes. Interpolation is disallowed on the Timing and Synchronization attributes. Use of interpolation on other attributes is implementation-dependent.
Support for using XPath 1.0 as the expression language is required. Support for other languages is implementation-defined. The default value for the language attribute is http://www.w3.org/TR/1999/REC-xpath-19991116, which denotes the use of XPath 1.0 as the expression language.
When using XPath as the expression language, the content of the state element must be a single XML document. If this document is empty at initialization time a single empty <data/> root element is added.
When using XPath as the expression language the following constraints are in force:
Interpretation of XPath expressions depends on an expression context. That context is defined thus:
This section is normative.
The SMIL 3.0 Language profile Document Type Definition is defined as a set of SMIL 3.0 modules. All SMIL 3.0 modules are integrated according to the guidelines in the W3C Note "Synchronized Multimedia Modules based upon SMIL 1.0" [SMIL-MOD], and defined within their respective module sections.
This section is normative.
The following royalty-free media formats should be supported:
While many SMIL user agents support speciality media types for streaming audio and video content, SMIL user agent developers are also encouraged to support the following non-royalty-free media formats to further interoperability of SMIL content:
Since both of these technologies are not freely available to user agent developers, the actual availability will remain player dependent.
This section is informative.
Authors are encouraged to encode media objects using one of the recommended MIME types whenever possible. This will ensure that their SMIL documents can be played back by a wide range of SMIL user agents.
Note that the MIME type for Ogg Vorbis audio and Ogg Theora video are listed as application/ogg. The Xiph.org Foundation has decided that it wants to change the MIME types of the various formats it defines, so this MIME type may change in the future.
If authors use a MIME type that is not in the list of recommended types, they should provide an alternative version encoded using a baseline format. This may be achieved by using a switch element as shown in the following example:
<switch> <audio src="non-baseline-format-object" ... /> <audio src="baseline-format-object" ... /> </switch>
In this example, a user agent that supports the non-baseline format will play the first audio media object, and a user agent that does not support the non-baseline format will play the second media object.
Implementers are encouraged to implement support for other license-free codecs as this will probably lead to enhanced interoperability.
This section is informative.
SMIL 3.0 follows the lead of SVG Tiny in the way JPEG is required. The normative text is adapted from [SVGMobile12-JPEG].
This section specifies the JPEG support recommended by a SMIL 3.0 implementations. The recommended support is targeted at specifying a level of functionality known to be compatibly supported within the industry and without licensing issues.
In general when people refer to JPEG [JPEG], they actually mean JPEG compressed images within the JFIF [JFIF] file format. JFIF was created by the Independent JPEG Group (IJG) for storing a single JPEG-compressed image in a file.
SMIL 3.0 User Agents should support JPEG images stored in a JFIF file [JFIF]. Other transport or storage mechanisms may be supported.
The following coding processes defined by the JPEG specification [JPEG], in Table 1, section 4.11, should be supported:
The following statements also apply:
The following encoding processes may be supported
SMIL 3.0 UA's should convert Y,Cb,Cr values compressed in the JPEG image to RGB as defined in the JFIF specification [JFIF] and may assume that the RGB values are sRGB.
This section is informative.
The SMIL 3.0 UnifiedMobile profile integrates the functionalities of the SMIL 2.1 Mobile [SMIL21-mobile-profile] and SMIL 2.1 Extended Mobile [SMIL21-extended-mobile-profile] profiles, and aligns the specification with newly structured existing functionality, plus extends the functionalities available in SMIL 2.1 with modules introduced in SMIL 3.0.
The following modules used in earlier mobile profiles were changed for SMIL 3.0:
Restructuring of existing SMIL 2.1 functionality in SMIL 3.0 has resulted in the inclusion of the following new modules:
The following modules contain new or expanded functionality in the UnifiedMobile profile in SMIL 3.0:
In addition to new and changed modules, this version of SMIL also has a new requirement about the media formats that are to be supported by user agents.
This section is normative.
The SMIL 3.0 UnifiedMobile profile is a collection of SMIL 3.0 modules that provide extensive support for the SMIL 3.0 Language within the context of a representative (for 2008) mobile device. Such a device is expected to have a high-resolution display and sufficient memory and processor capacity to render nontrival SMIL documents. Although not as complete as the full SMIL 3.0 Language Profile, the SMIL 3.0 UnifiedMobile profile is rich enough to meet the needs of a wide range of interactive presentations.
The functionality of the SMIL 3.0 UnifiedMobile profile may be extended or reduced by using the SMIL 3.0 Scalability Framework.
The W3C Synchronized Multimedia Working Group (SYMM) recognizes that many mobile handsets will be configured according to the specifications of other industry standards organizations. The UnifiedMobile profile has been developed in part to give these organizations guidance on the functionality within SMIL that the SYMM working groups feels appropriate for consideration in specifications that are based (in part) on this document.
This section is informative.
The SMIL 3.0 UnifiedMobile profile is defined as a markup language. The syntax of this language is formally described with a document type definition (DTD) or an XML Schema which is based on the SMIL modules as defined in "The SMIL 3.0 Modules".
The UnifiedMobile profile design requirements are:
The Third Generation Partnership Project 2 (3GPP2) [3GPP2] defines its own SMIL language profile. The revision A of the 3GPP2 SMIL File Formats for Multimedia Services, defines the SMIL profile including some additional modules compared to the 3GPP SMIL profile [3GPP26.234R5]; AccessKeyTiming Module, MultiArcTiming Module, BasicAnimation Module and AudioLayout Module. A future revision of it may incorporate SMIL 3.0.
The UnifiedMobile profile includes all modules of 3GPP2 revision A SMIL, plus: BasicExclTimeContainers Module, SubRegionLayout Module, BackgroundTilingLayout Module, AlignmentLayout Module, OverrideLayout Module, FullScreenTransitions Module, BasicText Module, TextStyling Module, TextMotion Module, SMIL DOM Module, MediaPanZoom Module and the BrushMedia Module.
Note: because of the repartitioning of some SMIL modules (such as BasicContentControl and BasicLayout), 3GPP and SMIL 3.0 are no longer aligned with respect to module definition, but the collection of elements and attributes have not changed.
This section is normative.
In the text in this profile specification, the term UnifiedMobile Profile will be considered to refer exclusively to the SMIL 3.0 UnifiedMobile profile as defined in this document.
The definition of conformance for a SMIL 3.0 profile is given in the Definitions section of the SMIL 3.0 Scalability Framework. Based on these definitions, the UnifiedMobile profile is a Strict Host-Language Conformant SMIL 3.0 Profile.
Within the referenced sections of the Scalability Framework, the following definitions should be used:
http://www.w3.org/2008/SMIL30/UnifiedMobile
. xmlns="http://www.w3.org/ns/SMIL"
<!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 3.0 UnifiedMobile//EN" "http://www.w3.org/2008/SMIL30/SMIL30UnifiedMobile.dtd">If a document contains this declaration, it must be a valid XML document. Note that this implies that extensions to the syntax defined in the DTD (or in the corresponding XML or RelaxNG schemas) are not allowed. If the document is invalid, the user agent should issue an error.
http://www.w3.org/2008/SMIL30/informative-DTD/SMIL30UnifiedMobile.dtd
version="3.0" baseProfile="UnifiedMobile"As a consequence of the two requirements above, the effective root element declaration for a UnifiedMobile profile document must be:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="UnifiedMobile"> ... </smil>The root element may be extended as required with additional atttributes.
This version of SMIL provides a definition of strict host-language conformant SMIL 3.0 documents, which are restricted to tags and attributes from the SMIL 3.0 namespace. The Section "Extending/Restricting a SMIL 3.0 Profile" provides information on using the SMIL 3.0 UnifiedMobile profile with other namespaces, for instance, on including new tags within SMIL 3.0 documents.
Language designers and implementors wishing to extend the UnifiedMobile profile must consider the implications of the use of namespace extension syntax. Please consult the section on Scalable Profiles for restrictions and recommendations for best practice when extending SMIL.
The definition of user agent conformance for SMIL 3.0 UnifiedMobile profile documents is given in the Conforming SMIL 3.0 User Agents section of the SMIL 3.0 Scalability Framework. Conforming UnifiedMobile profile user agents must adhere completely to this section.
The UnifiedMobile profile supports the multimedia document features appropriate for mobile platforms. It uses only modules from the SMIL 3.0 recommendation. This profile includes the following SMIL 3.0 modules:
The collection names contained in the following table define the UnifiedMobile profile vocabulary.
SMIL 3.0 UnifiedMobile Profile | |
---|---|
Collection Name | Elements in Collection |
Animation | animate, animateColor, animateMotion, set |
ContentControl | prefetch, switch |
Layout | region, root-layout, layout, regPoint |
LinkAnchor | a, area [anchor] |
MediaContent | animation, audio, img, ref, text, textstream, video |
Metainformation | , |
Structure | smil, head, body |
Schedule | excl, par, seq |
Transition | transition |
In the following sections, we define the set of elements and attributes used in each of the modules included in the UnifiedMobile profile. The content model for each element is described. The content model of an element is a description of elements which may appear as its direct children. The special content model "EMPTY" means that a given element may not have children.
Collection Name | Attributes in Collection |
---|---|
Core | alt (CDATA), baseProfile 'UnifiedMobile', class (CDATA), label (CDATA), longdesc (CDATA), readIndex '0', title (CDATA), version (3.0) '3.0', xml:base (CDATA) [XMLBase], xml:id (id) (ID) |
I18n | its:dir (lro | ltr | rlo | rtl), its:locNote (CDATA), its:locNoteRef (CDATA), its:locNoteType (alert | description), its:term (no | yes), its:termInfoRef (CDATA), its:translate (no | yes), xml:lang (CDATA) |
The xml:id and id attribute are used in the UnifiedMobile
Profile to assign a unique XML identifier to every element in a SMIL
document. The xml:id and id attributes are equivalent and must not both
be used on an element. The xml:id
should be used in preference to the id
attribute.
When the document uses the SMIL 3.0 UnifiedMobile Profile DOCTYPE, only xml:id must be used.
The xml:id, [id], class and title attributes in the collection Core are defined for all the elements of the SMIL3.0 UnifiedMobile profile.
In this document, equivalent but deprecated attributes and elements are in square brakets.
A conforming UnifiedMobile profile document should not use the SMIL 1.0 attributes that have been depreciated in SMIL 2.0. UnifiedMobile profile implementations are not required to support these attributes. This would be considered an unjustified burden for the targeted constraint devices. The unsupported depreciated SMIL 1.0 attributes are the following: anchor, background-color, clip-begin, clip-end, repeat; and the additional depreciated test attributes of Content Control: system-bitrate, system-captions, system-language, system-required, system-screen-size, and, system-screen-depth.
The Animation Module provides a framework for incorporating animation into a timing framework, and a mechanism for composing the effects of multiple animations. The Animation Module uses the timing modules included in this profile for the underlying model of time. The UnifiedMobile profile includes the Animation functionality of the BasicAnimation module. The BasicAnimation Module defines the semantics for the animate, set, animateMotion and animateColor elements.
In the UnifiedMobile profile, Animation elements may have the following
attributes and content model :
Animation Module | ||
---|---|---|
Elements | Attributes | Content model |
animate | Core, I18n, Test, Timing, accumulate (none | sum) 'none', additive (replace | sum) 'replace', attributeName, attributeType (CSS | XML | auto) 'auto', by, calcMode (discrete | linear | paced) 'linear', fill (auto | default | freeze | hold | remove | transition) 'default', from, skip-content (false | true) 'true', targetElement, to, values | ()* |
animateColor | Core, I18n, Test, Timing, accumulate (none | sum) 'none', additive (replace | sum) 'replace', attributeName, attributeType (CSS | XML | auto) 'auto', by, calcMode (discrete | linear | paced) 'linear', fill (auto | default | freeze | hold | remove | transition) 'default', from, skip-content (false | true) 'true', targetElement, to, values | ()* |
animateMotion | Core, I18n, Test, Timing, accumulate (none | sum) 'none', additive (replace | sum) 'replace', by, calcMode (discrete | linear | paced) 'linear', fill (auto | default | freeze | hold | remove | transition) 'default', from, origin (default) 'default', skip-content (false | true) 'true', targetElement, to, values | ()* |
set | Core, I18n, Test, Timing, attributeName, attributeType (CSS | XML | auto) 'auto', fill (auto | default | freeze | hold | remove | transition) 'default', skip-content (false | true) 'true', targetElement, to | ()* |
This profile adds the animate, set, animateMotion and animateColor elements to the content model of the par, seq, and excl elements of the Timing and Synchronization Modules. It also adds these elements to the content model of the body element of the Structure Module.
Specifying the target element of the animation
The animation target elements supported in the UnifiedMobile profile are the region element defined in the Layout Modules, the area [anchor] element defined in the Linking Modules and the text, img, audio, animation, video, ref, textstream and the brush elements defined in the Media Objects modules.
The SMIL UnifiedMobile profile uses the targetElement attribute to identify the element to be affected by animation elements. As recommended in the BasicAnimation Module when the targetElement attribute is supported, this profile excludes the XLink attributes href, type, actuate and show from the animate, set, animateMotion and animateColor elements.
Specifying the target attribute of the animation
The target attributes of the animations are a subset of those of the region, area [anchor], and media elements. The animatable attributes of the region, area [anchor], and media elements are listed in the table below.
The area [anchor] element has the coords attribute which may be subject to animation. The attribute coords is considered of type string in this profile. This means that only discrete non-additive animation is supported on this attribute.
Media elements have the following region attributes which may be subject
to animation: left, right, top, bottom, width, height, z-index and backgroundColor [background-color].
Integration definitions
The UnifiedMobile profile defines a set of integration definitions as required by the Animation modules. These definitions are:
coerced-integer-value = Math.floor( interpolated-value + 0.5 )
The Content Control Modules provide a
framework for selecting content based on a set of test attributes. The Content Control Modules define semantics for the
switch and prefetch elements. The UnifiedMobile
profile includes the Content Control functionality of the BasicContentControl,
RequiredContentControl
Module, PrefetchControl
and SkipContentControl
modules.
In the UnifiedMobile profile, Content Control elements may have the
following attributes and content model :
Content Control Module | ||
---|---|---|
Elements | Attributes | Content model |
prefetch | Core, I18n, Test, Timing, bandwidth '100%', clipBegin, clipEnd, mediaSize, mediaTime, skip-content (false | true) 'true', src | ()* |
switch | Core, I18n, Test, allowReorder (no | yes) 'no' | (( | switch)*, ((((Animation), ( | switch)*)*, (((Schedule | MediaContent | brush | smilText | prefetch | a)+, ( | Animation | switch)*)+ | ((param | area), ( | Animation | switch)*)+)) | (layout, ( | switch)*)*)) |
This profile adds the switch element to the content model of the par, seq and excl elements of the Timing and Synchronization Modules, of the body and the head elements of the Structure Module, of the content model of the a element of the Linking Modules.
Content Control functionality is used to define the attribute set Test:
Collection Name | Attributes in Collection |
---|---|
Test | systemAudioDesc (off | on), systemBaseProfile, systemBitrate, systemCPU, systemCaptions (off | on), systemComponent, systemLanguage, , systemOverdubOrSubtitle (overdub | subtitle), systemRequired, systemScreenDepth, systemScreenSize, systemVersion (3.0) |
The Test attributes collection is added to all the elements defined in the UnifiedMobile profile. An UnifiedMobile user agent must support all of the values for the and systemCPU attributes listed in the Content Control Modules. In addition, the user agent should accept namespaced values as future extensions, and not declare a syntax error. The user agent should return false for unrecognized values of the and systemCPU attributes.
The Layout Modules provide a framework for spatial layout of visual components. The Layout Modules define semantics for the region, root-layout, layout and the regPoint elements. The UnifiedMobile Profile includes the Layout functionality of the BasicLayout, StructureLayout Module, AudioLayout, SubRegionLayout, BackgroundTilingLayout, AlignmentLayout, OverrideLayout modules.
In the UnifiedMobile profile, Layout elements may have the following
attributes and content model :
Layout Module | ||
---|---|---|
Elements | Attributes | Content model |
layout | Core, I18n, Test, type 'text/smil-basic-layout' | ( | region | root-layout | regPoint)* |
region | Core, I18n, SubregionAttributes, Test, TextAttributes, background-color, backgroundImage 'none', backgroundRepeat (inherit | noRepeat | repeat | repeatX | repeatY) 'repeat', erase (never | whenDone) 'whenDone', panZoom, regionName, sensitivity 'opaque', showBackground (always | whenActive) 'always', skip-content (false | true) 'true', soundLevel '+0.0dB', textAlign (center | end | inherit | left | right | start) 'inherit', textDirection (inherit | ltr | ltro | rtl | rtlo) 'inherit', textMode (append | crawl | inherit | jump | replace | scroll) 'inherit', textPlace (center | end | inherit | start) 'inherit', textWrapOption (inherit | noWrap | wrap) 'wrap', textWritingMode (inherit | lr | lr-tb | rl | rl-tb | tb-lr | tb-rl) 'inherit' | ( | region)* |
regPoint | Core, I18n, Test, bottom 'auto', left 'auto', regAlign (bottomLeft | bottomMid | bottomRight | center | midLeft | midRight | topLeft | topMid | topRight), right 'auto', skip-content (false | true) 'true', top 'auto' | ()* |
root-layout | Core, I18n, Test, background-color, backgroundColor, backgroundImage 'none', backgroundOpacity '100%', backgroundRepeat (inherit | noRepeat | repeat | repeatX | repeatY) 'repeat', height 'auto', skip-content (false | true) 'true', width 'auto' | ()* |
The attribute collection SubregionAttributes is defined as follows:
Collection Name | Attributes in Collection |
---|---|
SubregionAttributes | backgroundColor, backgroundOpacity '100%', bottom 'auto', fit (fill | hidden | meet | meetBest | scroll | slice), height 'auto', left 'auto', mediaAlign (bottomLeft | bottomMid | bottomRight | center | midLeft | midRight | topLeft | topMid | topRight), regAlign (bottomLeft | bottomMid | bottomRight | center | midLeft | midRight | topLeft | topMid | topRight), regPoint, right 'auto', soundAlign (both | left | right), top 'auto', width 'auto', z-index |
This profile adds the layout element to the content model of the head element of the Structure Module. It also adds this element to the content model of the switch element of the Content Control Modules, when the switch element is a child of the head element.
The Linking Modules provide a framework for relating documents to content, documents and document fragments. The Linking Modules define semantics for the a and area [anchor] elements. They define also the semantics of a set of attributes defined for these elements. The SMIL 3.0 UnifiedMobile profile includes the Linking functionality of the BasicLinking and LinkingAttributes modules.
Both the a and area [anchor] elements have an href attribute, whose value must be a valid URI.
Support for URIs with XPointer fragment identifier syntax is not required.
In the UnifiedMobile profile, Linking elements may have the following
attributes and content model :
Linking Module | ||
---|---|---|
Elements | Attributes | Content model |
a | Core, I18n, Test, Timing, accesskey, actuate (onLoad | onRequest) 'onRequest', destinationLevel '+0.0dB', destinationPlaystate (pause | play) 'play', external (false | true) 'false', href, show (new | pause | replace) 'replace', sourceLevel '+0.0dB', sourcePlaystate (pause | play | stop), tabindex, target | (Animation | ContentControl | MediaContent | Schedule | brush | | smilText)* |
area | Core, I18n, Test, Timing, accesskey, actuate (onLoad | onRequest) 'onRequest', coords, destinationLevel '+0.0dB', destinationPlaystate (pause | play) 'play', external (false | true) 'false', href, nohref (nohref), shape (circle | default | poly | rect) 'rect', show (new | pause | replace) 'replace', skip-content (false | true) 'true', sourceLevel '+0.0dB', sourcePlaystate (pause | play | stop), tabindex, target | (animate | | set)* |
This profile adds the a element to the content model of the par, seq, and excl elements of the Timing and Synchronization Modules. It also adds these elements to the content model of the body element of the Structure Module.
In the UnifiedMobile profile, a value of onLoad set on the attribute actuate indicates that the link is automatically traversed when the linking element becomes active. For linking elements containing SMIL timing, this is when the active duration of the linking element begins.
Linking behavior in the UnifiedMobile profile may be used to navigate within a document or to link across documents. When linking to destinations outside the current document, implementations may ignore the values "play" and "pause" of the sourcePlaystate attribute, and the values "new" and "pause" of the show attribute; in these cases, the semantics of the "stop" attribute (for sourcePlaystate ) and the "replace" attribute (for show) should be used. If an implementation ignores the values of the sourcePlaystate and show attributes, it may also ignore the sourceLevel attribute.
The attribute tabindex specifies the position of the element in the tabbing order at a particular instant for the current document. The tabbing order defines the order in which elements will receive focus when navigated by the user via an input device such as a keyboard. At any particular point in time, only active elements are taken into account for the tabbing order; inactive elements are ignored.
When a media object element has a tabindex attribute and becomes active, then its ordered tab index is inserted in the SMIL tab index at the location specified by the media object's tabindex attribute value. This assumes that the media object itself has tab indices, such as embedded HTML with tabindex attributes. This enables all link starting points in a SMIL presentation to have a place on the ordered list to be tab-keyed through, including those in embedded presentations.
The UnifiedMobile profile does not define four-way navigation in the SMIL 3.0 release. A definition for four-way navigation is expected in the future version of SMIL.
The Media Object Modules provide a framework for declaring media. The Media Object Modules define semantics for the ref, animation, audio, img, video, text, textstream, param, paramGroup and brush elements. The UnifiedMobile Profile includes the Media Object functionality of the BasicMedia, MediaClipping, MediaParam, BrushMedia and MediaAccessibility modules.
In the UnifiedMobile profile, media elements may have the following attributes and content model:
Media Object Module | ||
---|---|---|
Elements | Attributes | Content model |
brush | Core, I18n, MediaDescriptionAttributes, Test, Timing, backgroundColor, backgroundOpacity '100%', bottom 'auto', color, endsync 'media', erase (never | whenDone) 'whenDone', fill (auto | default | freeze | hold | remove | transition) 'default', fit (fill | hidden | meet | meetBest | scroll | slice), height 'auto', left 'auto', mediaAlign (bottomLeft | bottomMid | bottomRight | center | midLeft | midRight | topLeft | topMid | topRight), paramGroup, regAlign (bottomLeft | bottomMid | bottomRight | center | midLeft | midRight | topLeft | topMid | topRight), regPoint, region, right 'auto', sensitivity 'opaque', skip-content (false | true) 'true', tabindex, top 'auto', transIn, transOut, width 'auto', z-index | (Animation | area | | param | switch)* |
param | Core, I18n, Test, name, skip-content (false | true) 'true', type, value, valuetype (data | object | ref) 'data' | ()* |
paramGroup | Core, I18n, skip-content (false | true) 'true' | ( | param)* |
ref, animation, audio, img, text, textstream, video | Core, I18n, MediaDescriptionAttributes, SubregionAttributes, Test, Timing, clipBegin, clipEnd, endsync 'media', erase (never | whenDone) 'whenDone', fill (auto | default | freeze | hold | remove | transition) 'default', mediaRepeat (preserve | strip) 'preserve', panZoom, paramGroup, region, sensitivity 'opaque', soundLevel '+0.0dB', src, tabindex, transIn, transOut, type | (Animation | area | | param | switch)* |
The attribute collection MediaDescriptionAttributes is defined as follows:
Collection Name | Attributes in Collection |
---|---|
MediaDescriptionAttributes | abstract (CDATA), (CDATA), copyright (CDATA) |
This profile adds the ref, animation, audio, img, video, text, textstream and brush elements to the content model of the par, seq, and excl elements of the Timing and Synchronization Modules and also adds these elements to the content model of the body element of the Structure Module. It also adds these elements to the content model of the a element of the Linking Modules. Lastly, this profile adds the paramGroup element to the region element of the Layout Modules.
The following elements are allowed as children of a media object reference: anchor, area [anchor], param, animate, set, animateColor, animateMotion. The a element is not included in this list. The switch element is allowed, with the restriction that in this case the content of the switch may only be from the same set of elements as is listed above.
This section is informative.
Previous versions of SMIL did not mandate supported media types. Unfortunately, this has led to generally spotty interoperability since different SMIL players do not support a common set of media formats.
To remedy this situation, the SMIL 3.0 UnifiedMobile profile mandates a common set of media formats to be supported. These formats have been selected both because they are royalty-free as well as generally accepted by the community.
The SMIL 3.0 UnifiedMobile profile recommends the use of the following royalty-free media formats. Refer to the list of recommended MIME Types.
This section is informative.
We recognize that other industry groups such as 3GPP also mandate a list of required codecs. However, these codecs often require a license fee, which may limit the availability of such codes on open-source implementations. Given the nature of market developments, the version of the SMIL 3.0 Unified Mobile profile does contain a list of recommended non-license-free codecs; these should be integrated if possible.
The following licensed media formats are recommended to be supported:
This section is informative.
Authors are encouraged to encode media objects using one of the required MIME types whenever possible. This will ensure that their SMIL documents can be played back by a wide range of SMIL user agents.
If authors use a MIME type that is not in the list of required types, they should provide an alternative version encoded using a baseline format. This can be achieved by using a switch element as shown in the following example:
<switch> <audio src="non-baseline-format-object" /> <audio src="baseline-format-object" /> </switch>
In this example, a user agent that supports the non-baseline format will play the first audio media object, and a user agent that does not support the non-baseline format will play the second media object.
The MediaParam module defines the erase attribute, and defers definition of the "display area" to the language profile. "Display area" for the purposes of the UnifiedMobile profile corresponds to a SMIL BasicLayout region. The effects of erase="never" apply after the active duration of the media object and any fill period (defined by SMIL Timing and Synchronization), and only until other media plays to the region targeted by the media object, or until the same media object restarts.
The Metainformation Module provides a framework for describing a document, either to inform the human user or to assist in automation. The Metainformation Module defines semantics for the and elements. The UnifiedMobile Profile includes the Metainformation functionality of the Metainformation module.
In the UnifiedMobile profile, Metainformation elements may have the following attributes and content model :
Metainformation Module | ||
---|---|---|
Elements | Attributes | Content model |
Core, I18n, content, name, skip-content (false | true) 'true' | EMPTY | |
Core, I18n, skip-content (false | true) 'true' | EMPTY |
This profile adds the element to the content model of the head element of the Structure Module.
The content model of metadata is empty. Profiles that extend the Unified Mobile profile may define the RDF (Resource Description Framework) schema to be used in extending the content model of the metadata element. The Resource Description Framework is defined in the W3C RDF Recommendation [RDFsyntax].
The Structure Module provides a framework for structuring a SMIL document. The Structure Module defines semantics for the smil, head, and body elements. The UnifiedMobile profile includes the Structure functionality of the Structure module.
In the UnifiedMobile profile, the Structure elements may have the following attributes and content model :
Structure Module | ||
---|---|---|
Elements | Attributes | Content model |
smil | Core, I18n, Test, xmlns, xmlns:its 'http://www.w3.org/2005/11/its' | (()*, (head, ()*)?, (body, ()*)?) |
head | Core, I18n | (()*, ((), ()*)?, ((textStyling), ()*)?, ((layout | switch), ()*)?, (((transition)+), ()*)?, (((paramGroup)+), ()*)?) |
body | Core, I18n, MediaDescriptionAttributes, Timing, fill (auto | default | freeze | hold | remove | transition) 'default' | (Animation | ContentControl | MediaContent | Schedule | a | brush | | smilText)* |
The body element acts as the root element to span the timing tree. The body element has the behavior of a seq element. Timing on the body element is supported. The syncbase of the body element is the application begin time, which is implementation dependent, as is the application end time. Note that the effect of fill on the body element is between the end of the presentation and the application end time, and therefore the effect of fill is implementation dependent.
The Timing and Synchronization Modules provide a framework for describing timing structure, timing control properties and temporal relationships between elements. The Timing and Synchronization Modules define semantics for par, seq and excl elements. In addition, these modules define semantics for attributes including begin, dur, end, repeat (deprecated), repeatCount, repeatDur, min, max. The UnifiedMobile profile includes the Timing and Synchronization functionality of the BasicInlineTiming, EventTiming, RepeatTiming, MultiArcTiming, AccessKeyTiming, BasicTimeContainers, BasicExclTimeContainers modules.
In the UnifiedMobile profile, Timing and Synchronization elements can have the following attributes and content model :
Timing and Synchronization Module | ||
---|---|---|
Elements | Attributes | Content model |
excl | Core, I18n, MediaDescriptionAttributes, Test, Timing, endsync 'last', fill (auto | default | freeze | hold | remove | transition) 'default', region, skip-content (false | true) 'true' | (Animation | ContentControl | MediaContent | Schedule | a | brush | | smilText)* |
par | Core, I18n, MediaDescriptionAttributes, Test, Timing, endsync 'last', fill (auto | default | freeze | hold | remove | transition) 'default', region | (Animation | ContentControl | MediaContent | Schedule | a | brush | | smilText)* |
seq | Core, I18n, MediaDescriptionAttributes, Test, Timing, fill (auto | default | freeze | hold | remove | transition) 'default', region | (Animation | ContentControl | MediaContent | Schedule | a | brush | | smilText)* |
The Attribute collection Timing is defined as follows:
Collection Name | Attributes in Collection |
---|---|
Timing | begin, dur, end, repeatCount, repeatDur |
This profile adds the par, seq, and excl elements to the content model of the body element of the Structure Module and adds these elements to the content model of the a element of the Linking Modules.
Elements of the Media Object Modules have the attributes describing timing and properties of contents.
The UnifiedMobile profile specifies which types of events may be used as part of the begin and end attribute values. The supported events are described as Event-symbols according to the syntax introduced in the SMIL Timing and Synchronization module.
The supported event symbols in the UnifiedMobile profile are:
Event | example |
---|---|
focusInEvent | end="foo.focusInEvent + 3s" |
focusOutEvent | begin="foo.focusOutEvent" |
activateEvent | begin="foo.activateEvent" |
beginEvent | begin="foo.beginEvent + 2s" |
endEvent | end="foo.endEvent + 2s" |
repeatEvent | end="foo.repeatEvent" |
inBoundsEvent | end="foo.inBoundsEvent" |
outOfBoundsEvent | begin="foo.outOfBoundsEvent + 5s" |
As defined by the SMIL syncbase timing semantics, any event timing attributes that reference an invalid time-value description will be treated as if "indefinite" were specified.
<ref xml:id="x" end="30s" src="15s.mpg" /> <ref xml:id="y" end="10s" src="20s.mpg" /> <ref xml:id="z" repeatCount="4" src="5s.mpg" />
x.endEvent occurs at roughly 30s when the active duration is reached, y.endEvent occurs at roughly 10s when the playback of the continuous media is ended early by the active duration being reached, and z.endEvent occurs at roughly 20s when the fourth and final repeat has completed, thus reaching the end of its active duration. The endEvent is delivered to elements which support timing, such as media elements and time containers, and does not bubble.
A media element's bounds are restrained by the bounds of the region in which it is contained., i.e., a media element's bounds do not extend beyond its region's bounds. The inBoundsEvent is delivered to media elements only, and does not bubble.
Note that, unlike with keyboard focus which may only be active on one object at a time, the state of being within an object's bounds can be true for multiple objects simultaneously. For instance, if one object is on top of another and the cursor is placed on top of both objects, both would have raised an inBoundsEvent more recently than the raising of any respective outOfBoundsEvent. If a player does not support a pointer cursor, then these players will typically not generate the inBoundsEvent and outOfBoundEvent events.
A media element's bounds are restrained by its region's bounds, i.e., a media element's bounds do not extend beyond its region's bounds. The outOfBoundsEvent is delivered to media elements only, and does not bubble.
There will be cases where events occur simultaneously. To ensure that each UnifiedMobile implementation handles them in the same order, the following order must be used to resolve ties:
Events are listed in order of precedence, e.g., if event #6 in this list occurs at the same time as event #7, then #6 must be raised prior to #7.
The InBoundsEvent, focusInEvent, OutOfBoundsEvent, activateEvent, and focusOutEvent events do not bubble and are delivered to the target media element.
The beginEvent, endEvent and repeatEvent events do not bubble and are delivered to the timed element on which the event occurs.
The UnifiedMobile profile supports an extensible set of events. In order to resolve possible name conflicts with the events that are supported in this profile qualified event names are supported. Namespace prefixes are used to qualify the event names. As a result, the colon is reserved in begin and end attributes for qualifying event names.
For example:
<smil ... xmlns:example="http://www.example.com"> <img xml:id="foo" .../> <audio begin="foo.example:focusInEvent".../> ... </smil>
A SMIL document's begin time is defined as the moment a user agent begins the timeline for the overall document. A SMIL document's end time is defined as equal to the end time of the body element.
The Transition Effects Modules provide a framework for describing transitions such as fades and wipes. The Transition Modules define semantics for the transition element. The Unified Mobile Profile includes the functionality of the BasicTransitions and FullScreenTransitions modules.
In the UnifiedMobile profile, Transition Effects elements have the following attributes and content model :
Transition Effects Module | ||
---|---|---|
Elements | Attributes | Content model |
transition | Core, I18n, Test, direction (forward | reverse) 'forward', dur, endProgress '1.0', fadeColor 'black', scope (region | screen) 'region', skip-content (false | true) 'true', startProgress '0.0', subtype (bottom | bottomCenter | bottomLeft | bottomLeftClockwise | bottomLeftCounterClockwise | bottomLeftDiagonal | bottomRight | bottomRightClockwise | bottomRightCounterClockwise | bottomRightDiagonal | centerRight | centerTop | circle | clockwiseBottom | clockwiseBottomRight | clockwiseLeft | clockwiseNine | clockwiseRight | clockwiseSix | clockwiseThree | clockwiseTop | clockwiseTopLeft | clockwiseTwelve | cornersIn | cornersOut | counterClockwiseBottomLeft | counterClockwiseTopRight | crossfade | diagonalBottomLeft | diagonalBottomLeftOpposite | diagonalTopLeft | diagonalTopLeftOpposite | diamond | doubleBarnDoor | doubleDiamond | down | fadeFromColor | fadeToColor | fanInHorizontal | fanInVertical | fanOutHorizontal | fanOutVertical | fivePoint | fourBlade | fourBoxHorizontal | fourBoxVertical | fourPoint | fromBottom | fromLeft | fromRight | fromTop | heart | horizontal | horizontalLeft | horizontalLeftSame | horizontalRight | horizontalRightSame | horizontalTopLeftOpposite | horizontalTopRightOpposite | keyhole | left | leftCenter | leftToRight | oppositeHorizontal | oppositeVertical | parallelDiagonal | parallelDiagonalBottomLeft | parallelDiagonalTopLeft | parallelVertical | rectangle | right | rightCenter | sixPoint | top | topCenter | topLeft | topLeftClockwise | topLeftCounterClockwise | topLeftDiagonal | topLeftHorizontal | topLeftVertical | topRight | topRightClockwise | topRightCounterClockwise | topRightDiagonal | topToBottom | twoBladeHorizontal | twoBladeVertical | twoBoxBottom | twoBoxLeft | twoBoxRight | twoBoxTop | up | vertical | verticalBottomLeftOpposite | verticalBottomSame | verticalLeft | verticalRight | verticalTopLeftOpposite | verticalTopSame), type (arrowHeadWipe | audioFade | audioVisualFade | barWipe | barnDoorWipe | barnVeeWipe | barnZigZagWipe | bowTieWipe | boxSnakesWipe | boxWipe | clockWipe | diagonalWipe | doubleFanWipe | doubleSweepWipe | ellipseWipe | eyeWipe | fade | fanWipe | fourBoxWipe | hexagonWipe | irisWipe | miscDiagonalWipe | miscShapeWipe | parallelSnakesWipe | pentagonWipe | pinWheelWipe | pushWipe | roundRectWipe | saloonDoorWipe | singleSweepWipe | slideWipe | snakeWipe | spiralWipe | starWipe | triangleWipe | veeWipe | waterfallWipe | windshieldWipe | zigZagWipe) | ()* |
This profile adds the transition element to the content model of the head element of the Structure Module.
The Transition Effects Modules add transIn and transOut attributes to ref, animation, audio, img, video, text, textstream and brush elements of the Media Object Modules.
The Transition Effects Modules add the transition value to the fill attribute for all elements on which this value of the fill attribute is supported.
This section is normative.
The UnifiedMobile profile Document Type Definition is defined as a set of SMIL 3.0 modules. All SMIL 3.0 modules are integrated according to the guidelines in the W3C Note "Synchronized Multimedia Modules based upon SMIL 1.0" [SMIL-MOD], and defined within their respective module sections.
This section is informative.
The DAISY profile is new for SMIL 3.0.
This section is normative.
DAISY [DAISY] digital talking books are fully accessible for persons with print disabilities, such as those with blindness, low vision, hearing impairments, deaf-blindness, motor disabilities, dyslexia, and a wide range of cognitive/intellectual disabilities. DAISY is the recognized international standard for digital talking books and has been adopted worldwide by organizations serving these groups.
With the release of SMIL 3.0, the pre-existing DAISY standard has gotten the opportunity to move into the mainstream of multimedia development. Several accessibility features have been added to the SMIL language, and a fully-conforming language profile has been defined for DAISY books.
This section is informative.
Although SMIL has always been an integral part of the DAISY standard, none of the existing profiles fit the needs of DAISY. The full language profile is too large to be considered practical, while the Tiny profile lacks certain timing, state, and media object modules required by DAISY. The UnifiedMobile profile also lack some of what is necessary for representing DAISY books in SMIL (e.g. the state modules), and include modules which are not required by DAISY (e.g. animation, tiling, and transitions modules).
This section is normative.
In the text in this profile specification, the term DAISY profile will be considered to refer exclusively to the SMIL 3.0 DAISY profile as defined in this document.
The definition of conformance for a SMIL 3.0 profile is given in the Definitions section of the SMIL 3.0 Scalability Framework. Based on these definitions, the DAISY profile is a Strict Host-Language Conformant SMIL 3.0 Profile.
Within the referenced sections of the Scalability Framework, the following definitions should be used:
http://www.w3.org/2008/SMIL30/Daisy
. xmlns="http://www.w3.org/ns/SMIL"
<!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 3.0 Daisy//EN" "http://www.w3.org/2008/SMIL30/SMIL30Daisy.dtd">If a document contains this declaration, it must be a valid XML document. Note that this implies that extensions to the syntax defined in the DTD (or in the corresponding XML or RelaxNG schemas) are not allowed. If the document is invalid, the user agent should issue an error.
http://www.w3.org/2008/SMIL30/informative-DTD/SMIL30Daisy.dtd
version="3.0" baseProfile="Daisy"As a consequence of the two requirements above, the effective root element declaration for a DAISY profile document must be:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Daisy"> ... </smil>The root element may be extended as required with additional atttributes.
This version of SMIL provides a definition of strict host-language conformant SMIL 3.0 documents, which are restricted to tags and attributes from the SMIL 3.0 namespace. The Section "Extending/Restricting a SMIL 3.0 Profile" provides information on using the SMIL 3.0 DAISY profile with other namespaces, for instance, on including new tags within SMIL 3.0 documents.
Language designers and implementors wishing to extend the DAISY profile must consider the implications of the use of namespace extension syntax. Please consult the section on Scalable Profiles for restrictions and recommendations for best practice when extending SMIL.
The definition of user agent conformance for SMIL 3.0 DAISY profile documents is given in the Conforming SMIL 3.0 User Agents section of the SMIL 3.0 Scalability Framework. Conforming DAISY profile user agents must adhere completely to this section.
The DAISY profile includes the following SMIL modules:
The collection names contained in the following table define the DAISY profile vocabulary.
DAISY Profile | |
---|---|
Collection Name | Elements in Collection |
Layout | region, root-layout, layout |
LinkAnchor | a, area (anchor) |
MediaContent | animation, audio, img, ref, text, textstream, video |
Metainformation | , |
State | delvalue, newvalue, send, setvalue |
Structure | smil, head, body |
Schedule | excl, par, seq |
Other | paramGroup, switch |
In the following sections, we define the set of elements and attributes used in each of the modules included in the DAISY profile. The content model for each element is described. The content model of an element is a description of elements which may appear as its direct children. The special content model "EMPTY" means that a given element may not have children.
Collection Name | Attributes in Collection |
---|---|
Core | alt (CDATA), baseProfile 'Daisy', class (CDATA), label (CDATA), longdesc (CDATA), readIndex '0', title (CDATA), version (3.0) '3.0', xml:base (CDATA) [XMLBase], xml:id (id) (ID) |
I18n | its:dir (lro | ltr | rlo | rtl), its:locNote (CDATA), its:locNoteRef (CDATA), its:locNoteType (alert | description), its:term (no | yes), its:termInfoRef (CDATA), its:translate (no | yes), xml:lang (CDATA) |
Role | xhtml:role, with [xmlns:xhtml="http://www.w3.org/1999/xhtml"] |
All attributes in the collection Core are defined for all the elements of the DAISY profile. The xml:id attribute is used in the DAISY profile to assign a unique XML identifier to every element in a SMIL document.
The DAISY profile includes the separate XHTML Role Attribute Module [XHTMLrole]. This provides a mechanism for allowing a semantic classification of elements via the xhtml:role attribute. The DAISY profile adds the xhtml:role attribute to the switch, region, a, area, text, img, audio, video, ref, textstream, par, seq, and excl elements.
This section is informative
The DAISY profile allows authors to use the xhtml:role attribute to provide semantic classification of elements, but does not impose any specific user-agent behavior for when these semantic values are encountered.
The DAISY profile does not explicitly extend the collection of roles defined by the XHTML Role Attribute Module, and does not impose restrictions on the number of actual semantic roles a single xhtml:role attribute value may provide. Instead, implementations that wish to formalize the possible values for the xhtml:role semantic annotation should follow the XHTML Role Attribute Module's extension guidelines [XHTMLrole-ExtensionGuidelines].
According to the XHTML Role Attribute Module's Host Language Conformance rules [XHTMLrole-HostLanguageConformance], it is a requirement to prefix the role attribute name with the imported namespace prefix for "http://www.w3.org/1999/xhtml". For example:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Daisy" xmlns:xhtml="http://www.w3.org/1999/xhtml" > ... <par xhtml:role="..."> ... </par> ... </smil>
In the DAISY profile, Content Control elements may have the following attributes and content model :
Content Control Module | ||
---|---|---|
Elements | Attributes | Content model |
switch | Core, I18n, Role, Test, allowReorder (no | yes) 'no' | (( | switch)*, (((((Schedule | MediaContent | State | a)+, ( | switch)*)+ | ((param | area), ( | switch)*)+)) | (layout, ( | switch)*)*)) |
This profile adds the switch element to the content model of the par, seq and excl elements of the Timing and Synchronization Modules, of the body and the head elements of the Structure Module, of the content model of the a element of the Linking Modules.
The switch element has the restriction that the content of the switch may only be from the same set of elements.
The Content Control functionality is used to define the Attribute set "Test":
Collection Name | Attributes in Collection |
---|---|
Test | systemAudioDesc (off | on), systemBaseProfile, systemBitrate, systemCPU, systemCaptions (off | on), systemComponent, systemLanguage, , systemOverdubOrSubtitle (overdub | subtitle), systemRequired, systemScreenDepth, systemScreenSize, systemVersion (3.0) |
In the DAISY profile, Layout elements may have the following attributes and content model :
Layout Module | ||
---|---|---|
Elements | Attributes | Content model |
region | Core, I18n, Role, SubregionAttributes, Test, background-color, regionName, showBackground (always | whenActive) 'always', skip-content (false | true) 'true' | ( | region)* |
root-layout | Core, I18n, Test, background-color, backgroundColor, backgroundOpacity '100%', height 'auto', skip-content (false | true) 'true', width 'auto' | ()* |
layout | Core, I18n, Test, type 'text/smil-basic-layout' | ( | region | root-layout)* |
The attribute collection SubregionAttributes is defined as follows:
Collection Name | Attributes in Collection |
---|---|
SubregionAttributes | backgroundColor, backgroundOpacity '100%', bottom 'auto', fit (fill | hidden | meet | meetBest | scroll | slice), height 'auto', left 'auto', right 'auto', top 'auto', width 'auto', z-index |
This profile adds the layout element to the content model of the head element of the Structure Module. It also adds this element to the content model of the switch element of the Content Control Modules, when the switch element is a child of the head element.
This profile includes both timing and linking modules; however, the profile authors have decided to explicitly exclude timing attributes on linking elements because it introduces too much complexity.
Both the a and area elements have an href attribute, whose value must be a valid URI or XPointer [XPTR] fragment identifier.
In the DAISY profile, linking elements may have the following attributes and content model :
Linking Module | ||
---|---|---|
Elements | Attributes | Content model |
a | Core, I18n, Role, Test, Timing, href | (MediaContent | Schedule | State | | switch)* |
area | Core, I18n, Role, Test, Timing, coords, expr, href, nohref (nohref), shape (circle | default | poly | rect) 'rect', skip-content (false | true) 'true' | ()* |
This profile adds the a element to the content model of the par, seq, and excl elements of the Timing and Synchronization Modules. It also adds these elements to the content model of the body element of the Structure Module.
In the DAISY profile, media elements may have the following attributes and content model:
Media Object Module | ||
---|---|---|
Elements | Attributes | Content model |
ref, animation, audio, img, text, textstream, video | Core, I18n, MediaDescriptionAttributes, Role, Test, Timing, bottom 'auto', clipBegin, clipEnd, endsync 'media', expr, fill (auto | default | freeze | hold | remove | transition) 'default', height 'auto', left 'auto', mediaRepeat (preserve | strip) 'preserve', paramGroup, region, right 'auto', src, top 'auto', type, width 'auto' | (area | | param | switch)* |
param | Core, I18n, Test, name, skip-content (false | true) 'true', type, value, valuetype (data | object | ref) 'data' | ()* |
paramGroup | Core, I18n, skip-content (false | true) 'true' | ( | param)* |
The attribute collection MediaDescriptionAttributes is defined as follows:
Collection Name | Attributes in Collection |
---|---|
MediaDescriptionAttributes | abstract (CDATA), (CDATA), copyright (CDATA) |
This profile adds the ref, animation, audio, img, video, text, and textstream elements to the content model of the par, seq, and excl elements of the Timing and Synchronization Modules. It also adds these elements to the content model of the body element of the Structure Module. It also adds these elements to the content model of the a element of the Linking Modules.
This section is informative.
Text media with an external source may put a URI in the src attribute. For instance:
An example of referring to a text fragment in an external file by specifying the fragment's xml:id value:
<par> <text src="text.xml#id"/> <audio src="audio.mp3"/> </par>
An example of referring to a document fragment (for example, the second paragraph) by using XPointer:
<par> <text src="text.xml#xpointer(/body/p[2])"/> <audio src="audio.mp3"/> </par>
The param element conveys rendering instructions about a media type.
The DAISY profile defines the following name values as rendering instructions for text media:
name attribute values on the param element | ||
---|---|---|
name | value | Description |
daisy:use-renderer |
tts | braille | avatar |
tactile |
Send the media data to a text-to-speech engine, a Braille display, a (sign language) avatar, or a tactile display. |
daisy:display-in-context |
true | false |
If true, display the text document in the text region and focus on the specified fragment. If false, render only the text fragment by itself (not in its parent document) in the text region. |
daisy:css-highlight-style |
A simple CSS style. | To give the effect of a highlight on the text fragment, CSS style may be used. |
It is expected that media objects using <param
name="daisy:use-renderer" value="..." />
exist alongside a default
rendering of the media.
In the case where the whole document is being shown at once
(<param name="daisy:display-in-context" value="true"/>
),
an intelligent renderer will ensure that the portion of the parent document
containing the specified fragment will be put in view so the fragment may be
seen. It is left to the renderer to decide how much of the surrounding
document context to include (lines above and below the target fragment).
This section is informative.
The parameters below specify that this text element must be displayed in the context of its parent document, and that it must be highlighted with the given style attributes when it is active.
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Daisy" > ... <body> ... <par> <text src="example.html#p2" region="centerTextRegion" > <param name="daisy:display-in-context" value="true" /> <param name="daisy:css-highlight-style" value="background-color: yellow; color: black; border: solid thin green"/> </text> </par> ... </body> </smil>
To reduce verbosity, the param elements may be put in a paramGroup element, and this may be referenced from the region. For example:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Daisy" > <head> <paramGroup xml:id="textParams"> <param name="daisy:display-in-context" value="true" /> <param name="daisy:css-highlight-style" value="background-color: yellow; color: black; border: solid thin green"/> </paramGroup> <region xml:id="textWindow" width="100%" height="100%" paramGroup="textParams"/> ... </head> <body> ... <par> <text src="my_text.txt" region="textWindow"/> <audio src="audio.mp3" clipBegin="0.00s" clipEnd="3.00s"/> </par> ... </body> </smil>
This profile does not require support of any particular formats. However, it is strongly recommended to support the formats listed in the SMIL 3.0 Language profile's Required MIME Types section.
In the DAISY profile, Metainformation elements may have the following attributes and content model :
Metainformation Module | ||
---|---|---|
Elements | Attributes | Content model |
Core, I18n, content, name, skip-content (false | true) 'true' | EMPTY | |
Core, I18n, skip-content (false | true) 'true' | EMPTY |
This profile adds the element to the content model of the head element of the Structure Module.
The content model of is EMPTY. Profiles that extend the DAISY profile may define the RDF (Resource Description Framework) schema to be used in extending the content model of the element. The Resource Description Framework is defined in the W3C RDF Recommendation [RDFsyntax].
Note that because the element may appear on its own, it may be used to wrap a element and placed anywhere in the document.
The following name attribute values may be used to specify the relationship between documents:
name attribute values on the element | |
---|---|
value | Description |
next |
Value of content gives the next SMIL document in the presentation |
prev |
Value of content gives the previous SMIL document in the presentation |
An example using this to define the static default playback order in a multi-document SMIL presentation:
<-- chapter2.smil --> <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Daisy" > <head> <meta name="next" content="chapter3.smil"/> <meta name="prev" content="chapter1.smil"/> ... </head> <body> ... </body> </smil>
The State Modules provide a framework for declaratively manipulating various bits of state in a SMIL presentation. The State Modules define semantics for the submission, send, state, setvalue, newvalue, and delvalue elements and the expr, submission, action, method, replace, target, language, ref, where, name, value attributes. The DAISY profile includes the State functionality of the StateTest, UserState, StateSubmission, and StateInterpolation modules.
In the DAISY profile, the State elements may have the following attributes and content model:
State Module | ||
---|---|---|
Elements | Attributes | Content model |
delvalue | Core, I18n, Test, Timing, expr, ref, skip-content (false | true) 'true' | ()* |
newvalue | Core, I18n, Test, Timing, expr, name, ref '/*', skip-content (false | true) 'true', value, where (after | before | child) 'child' | ()* |
send | Core, I18n, Test, Timing, expr, skip-content (false | true) 'true', submission | ()* |
setvalue | Core, I18n, Test, Timing, expr, ref, skip-content (false | true) 'true', value | ()* |
state | Core, I18n, language 'http://www.w3.org/TR/1999/REC-xpath-19991116', skip-content (false | true) 'true', src | EMPTY |
submission | Core, I18n, action, method (get | post | put), ref, replace (all | instance | none), target | ()* |
This profile adds the state and submission elements to the content model of the head element of the Structure Module, and the setvalue, newvalue, delvalue, and send elements to the content model of the body, switch, a, par, seq, excl elements. It also adds the expr attribute to all elements within the content model of the body element (i.e. excluding the body element itself).
The content model of the state element is declared as EMPTY. The state element defines the data model of the SMIL State engine using the XForms 1.0 syntax. The elements are not imported into SMIL 3.0 and must be fully qualified.
The submission attribute value is an IDREF that refers to a submission element.
The method attribute must at least support the values get, put and post. Serialization and submission must follow the description of these methods in [XFORMS10], section 11.2. Support for other methods described in that document is optional.
Interpolation of values using the mechanism from the StateInterpolation module is supported on the href, src, clipBegin, clipEnd and value attributes.
Support for using XPath 1.0 [XPATH10] as the expression language is required. The default value for the language attribute is http://www.w3.org/TR/1999/REC-xpath-19991116, which denotes the use of XPath 1.0 as the expression language.
The content of the state element must be a single XML document. If this document is empty at initialization time a single empty <data/> root element is added.
The following constraints are in force:
Interpretation of XPath expressions depends on an expression context. That context is defined thus:
This section is informative.
In DAISY books, publication components such as page number announcements and footnotes may be turned on or off. These playback options are implemented using state expressions.
The DAISY specification is extensible to be able to incorporate content written in other XML languages (such as MathML); however, not all user agents will support these extensions. In these cases, fallbacks specified using state expressions may give alternatives to user agents.
This example shows how to use state and param together to target specialized text renderers. A state expression controls whether the element will be rendered or not, and param provides additional information about the media. A presentation is being rendered on a user's computer, to which an electronic Braille display is attached . The SMIL player is aware that this display is enabled. The Braille display normally receives the same text output as is shown on-screen and renders it as Braille. When the SMIL player reaches a point where specialized text (such as a mathematical expression, which is represented differently in Braille markup) has to be substituted for the on-screen text, it notifies the Braille display. The part of the presentation in which this substitution takes place would be authored as follows:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Daisy" > <head> <--This state data model could live in a separate file and be accessed by other user agent components --> <state xmlns:f="http://www.w3.org/2002/xforms"> <f:model> <data xmlns=""> <brailleAvailable>true</brailleAvailable> </data> </f:model> <f:bind nodeset="brailleAvailable" type="xsd:boolean"/> </state> ... </head> <body> <seq> <par> <-- This is the Braille rendering equivalent of the text contents. A Braille display is required to show it. --> <text src="special-notation-for-braille.xml#p4" dur="indefinite" expr="brailleAvailable"> <param name="daisy:use-renderer" value="braille"/> </text> <-- This is the default visual rendering of the text contents.--> <text src="my_text.xml#p4"/> <audio src="audio.mp3" clipBegin="0.00s" clipEnd="3.00s"/> </par> ... </seq> </body> </smil>
In the DAISY profile, Structure elements may have the following attributes and content model:
Structure Module | ||
---|---|---|
Elements | Attributes | Content model |
smil | Core, I18n, Test, xmlns, xmlns:its 'http://www.w3.org/2005/11/its', xmlns:xhtml 'http://www.w3.org/1999/xhtml' | (()*, (head, ()*)?, (body, ()*)?) |
head | Core, I18n | (()*, ((), ()*)?, ((layout | switch), ()*)?, ((state), ()*)?, ((submission), ()*)*, (((paramGroup)+), ()*)?) |
body | Core, I18n, MediaDescriptionAttributes, Timing, fill (auto | default | freeze | hold | remove | transition) 'default' | (MediaContent | Schedule | State | a | | switch)* |
In the DAISY profile, Timing elements may have the following attributes and content model:
Timing and Synchronization Module | ||
---|---|---|
Elements | Attributes | Content model |
par | Core, I18n, MediaDescriptionAttributes, Role, Test, Timing, endsync 'last', expr, fill (auto | default | freeze | hold | remove | transition) 'default', region | (MediaContent | Schedule | State | a | | switch)* |
seq | Core, I18n, MediaDescriptionAttributes, Role, Test, Timing, expr, fill (auto | default | freeze | hold | remove | transition) 'default', region | (MediaContent | Schedule | State | a | | switch)* |
excl | Core, I18n, MediaDescriptionAttributes, Role, Test, Timing, endsync 'last', expr, fill (auto | default | freeze | hold | remove | transition) 'default', region, skip-content (false | true) 'true' | (MediaContent | Schedule | State | a | | switch)* |
The Attribute collection Timing is defined as follows:
Collection Name | Attributes in Collection |
---|---|
Timing | begin, dur, end |
This profile defines the following values for the end attribute, in addition to what is given by SMIL.
special end attribute values | |
---|---|
value | Description |
daisy:userEscape;childId-value.end |
The time container ends when the daisy:userEscape
event happens or when the last child finishes playing. This may be
used for escapable content, i.e., parts of the book which
the user may "jump out of", such as nested tables. |
daisy:userResume(;childId-value.end +
Clock-value)? |
The time container ends when the daisy:userResume
event happens or at a predefined length of time after the last child
element finishes playing. This may be used for authoring pauses into
a presentation. |
This section is normative.
The DAISY profile Document Type Definition is defined as a set of SMIL 3.0 modules, with the addition of the XHTML Role Attribute Module [XHTMLrole]. All SMIL 3.0 modules are integrated according to the guidelines in the W3C Note "Synchronized Multimedia Modules based upon SMIL 1.0" [SMIL-MOD], and defined within their respective module sections. The XHTML Role Attribute Module's DTD Implementation [XHTMLrole-DTDImpl] is used for integrating role into the DAISY profile DTD.
This section is informative.
This document shows a SMIL file representing part of a DAISY book which has been produced according to the SMIL 3.0 DAISY profile. It renders synchronized text and audio with user-controlled playback options. It adds the following new features, which have not been present in previous versions of DAISY specifications:
Important note: the namespace "daisyskip" has not yet been officially defined and is included here in concept only. The concept is that there should be a separate section for variables whose values may be set by the user agent.
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 3.0 Daisy//EN" "http://www.w3.org/2008/SMIL30/SMIL30Daisy.dtd"> <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Daisy" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:daisyskip="http://daisy.org/smil/features/skippability" > <head> <meta name="title" content="Smil 3 Demo"/> <meta name="next" content="bagw0002.smil"/> <meta name="previous" content="bagw0000.smil"/> <paramGroup xml:id="textParams"> <param name="daisy:display–in–context" value="true" /> <param name="daisy:css–highlight–style" value="background–color: yellow; color: black; border: solid thin green"/> </paramGroup> <layout> <root-layout xml:id="root-layout" width="100%" height="100%"/> <region xml:id="text" width="100%" height="100%" paramGroup="textParams"/> </layout> <!--Note that, instead of the following state element, that data could go in a separate file--> <!--such as: <state src="stateData.xml"/>--> <state xmlns:f="http://www.w3.org/2002/xforms"> <f:model> <!--Everything in the daisyskip namespace should be exposed by the user agent--> <!--Variables that are for internal use only (there are none here) would be declared in the same way, but without the daisyskip: prefix--> <f:instance> <!--The label references a text/audio representation of "play page number announcements"--> <daisyskip:playPageAnnouncements label="labels.smil#play_page">true</daisyskip:playPageAnnouncements> <daisyskip:playProducerNotes label="labels.smil#play_prodnote">true</daisyskip:playProducerNotes> </f:instance> <f:bind nodeset="/daisyskip:playPageAnnouncements" type="xsd:boolean"/> <f:bind nodeset="/daisyskip:playProducerNotes" type="xsd:boolean"/> </f:model> </state> </head> <body> <seq dur="30.076s"> <par endsync="last" xhtml:role="sectionStart" label="labels.smil#section"> <text src="ncconlydemo.html#bagw_0001" xml:id="bagw_0001" region="text"/> <seq> <audio src="bagw0019.mp3" clip-begin="npt=0.000s" clip-end="npt=2.035s" xml:id="qwrt_0001"/> </seq> </par> <par endsync="last" xhtml:role="paragraph"> <text src="ncconlydemo.html#bagw_0001" xml:id="xbag_0001" region="text"/> <seq> <audio src="bagw0019.mp3" clip-begin="npt=2.035s" clip-end="npt=8.901s" xml:id="qwrt_0002"/> </seq> </par> <par endsync="last" xhtml:role="ProducerNote" expr="/daisyskip:playProducerNotes"> <text src="ncconlydemo.html#bagw_0002" xml:id="bagw_0002" region="text"/> <seq> <audio src="bagw0019.mp3" clip-begin="npt=8.901s" clip-end="npt=19.554s" xml:id="qwrt_0003"/> <audio src="bagw0019.mp3" clip-begin="npt=19.554s" clip-end="npt=28.774s" xml:id="qwrt_0004"/> </seq> </par> <par endsync="last" xhtml:role="PageAnnouncement" expr="/daisyskip:playPageAnnouncements"> <text src="ncconlydemo.html#bagw_0003" xml:id="bagw_0003" region="text"/> <seq> <audio src="bagw0019.mp3" clip-begin="npt=28.774s" clip-end="npt=30.076s" xml:id="qwrt_0005"/> </seq> </par> <par endsync="last" xhtml:role="Page"> <text src="ncconlydemo.html#bagw_0003" xml:id="bagw_0003" region="text"/> <seq> <audio src="bagw0019.mp3" clip-begin="npt=28.774s" clip-end="npt=30.076s" xml:id="qwrt_0005"/> </seq> </par> <par endsync="last" xhtml:role="Page"> <text src="ncconlydemo.html#bagw_0003" xml:id="bagw_0003" region="text"/> <seq> <audio src="bagw0019.mp3" clip-begin="npt=28.774s" clip-end="npt=30.076s" xml:id="qwrt_0005"/> </seq> </par> </seq> </body> </smil>
This section is informative.
The SMIL 3.0 Tiny Profile is a new profile introduced in SMIL 3.0. It was not part of the SMIL 2.1.
This section is normative.
The SMIL 3.0 Tiny Profile is the minimum collection of SMIL 3.0 modules that provide support for the SMIL 3.0 language.
This profile is suitable for systems which require very simple SMIL presentations where user interactions and specific content layout are not necessary. This is, for instance, the case of devices with reduced computing capabilities such as MP3/MP4 players, minimum capability mobile phones, car navigation systems, television sets or voice user agents. Also, it is possible to use the profile in the development of server-side playlists. These playlists are used to generate continuous streams from individual video or audio files. The server processes the playlists without any user interaction.
The functionality of the SMIL 3.0 Tiny Profile may be extended by using the SMIL 3.0 Scalability Framework.
This section is informative.
The SMIL 3.0 Tiny Profile is defined as a markup language. The syntax of this language is formally described by a document type definition (DTD), or an XML or RelaxNG Schema which is based on the SMIL modules as defined in "The SMIL 3.0 Modules".
The Tiny Profile design requirements are:
Examples of use cases for this profile are resource-constrained devices and server-side playlists.
There are many small devices in the market specifically designed to reproduce multimedia contents but without the capabilities of either a computer or even a mobile phone or a PDA. To define simple presentations for these devices there are several formats available such as M3U, PLS or WPL. The SMIL Tiny Profile meets the requirements of these devices as it includes a reduced set of modules of the SMIL language and may be integrated very easily. The simplest devices may be equipped with a SMIL parser to play sequences of files and show metadata, and complex devices equipped with a graphical display may use the profile to play audios, videos, pictures and text.
Server-side playlists allow content servers to generate a live stream combining stored audio, video and live streams in a way specified by a document named playlist. The basic idea behind using SMIL in server-side playlists is to standardize the format of the playlists used by different providers, thus, different servers could share the same playlist, playlists may easily be installed into a new solution or different authoring tools could be used to generate playlists no matter the type of server we are using.
This section is normative.
Within this profile specification, the term Tiny Profile will be considered to refer exclusively to the SMIL 3.0 Tiny Profile as defined in this document.
The definition of conformance for a SMIL 3.0 profile is given in the Definitions section of the SMIL 3.0 Scalability Framework. Based on these definitions, the Tiny profile is a Strict Host-Language Conformant SMIL 3.0 Profile.
Within the referenced sections of the Scalability Framework, the following definitions should be used:
http://www.w3.org/2008/SMIL30/Tiny
.
xmlns="http://www.w3.org/ns/SMIL"
<!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 3.0 Tiny//EN" "http://www.w3.org/2008/SMIL30/SMIL30Tiny.dtd">If a document contains this declaration, it must be a valid XML document. Note that this implies that extensions to the syntax defined in the DTD (or in the corresponding XML or RelaxNG schemas) are not allowed. If the document is invalid, the user agent should issue an error.
http://www.w3.org/2008/SMIL30/informative-DTD/SMIL30Tiny.dtd
version="3.0" baseProfile="Tiny"As a consequence of the two requirements above, the effective root element declaration for a Tiny profile document must be:
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Tiny"> ... </smil>The root element may be extended as required with additional atttributes.
This version of SMIL provides a definition of strict host-language conformant SMIL 3.0 documents, which are restricted to tags and attributes from the SMIL 3.0 namespace. The Section "Extending/Restricting a SMIL 3.0 Profile" provides information on using the SMIL 3.0 Tiny profile with other namespaces, for instance, on including new tags within SMIL 3.0 documents.
Language designers and implementors wishing to extend the Tiny profile must consider the implications of the use of namespace extension syntax. Please consult the section on Scalable Profiles for restrictions and recommendations for best practice when extending SMIL.
The definition of user agent conformance for SMIL 3.0 Tiny profile documents is given in the Conforming SMIL 3.0 User Agents section of the SMIL 3.0 Scalability Framework. Conforming Tiny profile user agents must adhere completely to this section.
The Tiny Profile supports the SMIL 3.0 features for basic multimedia presentations. It uses only modules from the SMIL 3.0 Recommendation. This Tiny profile includes the following SMIL 3.0 modules:
The collection names contained in the following table define the Tiny Profile vocabulary.
SMIL 3.0 Tiny Profile | |
---|---|
Collection Name | Elements in Collection |
Structure | smil, head, body |
Layout | layout |
Metainformation | , |
MediaContent | animation, audio, img, ref, text, textstream, video |
Schedule | par, seq |
In the following sections, we define the set of elements and attributes used in each of the modules included in the Tiny Profile. The content model for each element is described. The content model of an element is a description of elements which may appear as its direct children. The special content model "EMPTY" means that a given element may not have children.
Collection Name | Attributes in Collection |
---|---|
Core | alt (CDATA), baseProfile 'Tiny', class (CDATA), label (CDATA), longdesc (CDATA), readIndex '0', title (CDATA), version (3.0) '3.0', xml:base (CDATA) [XMLBase], xml:id (id) (ID) |
I18n | xml:lang (CDATA) |
The xml:id and id attributes are used to assign a unique XML identifier to every element in a SMIL document. These attributes are equivalent and must not both be used on an element. xml:id should be used in preference to id. When the document uses the SMIL 3.0 Tiny Profile DOCTYPE, only xml:id must be used.
The xml:id (id), class and title attributes in the collection Core are defined for all the elements of the Tiny Profile. The id attribute is used in the Tiny Profile to assign a unique XML identifier to every element in a SMIL document.
A conforming Tiny Profile document should not use the SMIL 1.0 attributes that have been depreciated in SMIL 2.0, SMIL 2.1 or SMIL 3.0. Tiny Profile implementations are not required to support these attributes. This would be considered as an unjustified burden for the targeted constraint devices. This applies to the depreciated test attribute of Content Control system-required.
The Structure Module provides a framework for structuring a SMIL document. The Structure Module defines semantics for the smil, head, and body elements. The Tiny Profile includes the Structure functionality of the Structure module and the Identity module.
In the Tiny Profile, the Structure elements may have the following attributes and content model :
Structure Module | ||
---|---|---|
Elements | Attributes | Content model |
smil | Core, I18n, systemRequired, xmlns | (()*, (head, ()*)?, (body, ()*)?) |
head | Core, I18n | (()*, ((), ()*)?, ((layout), ()*)?) |
body | Core, I18n, MediaDescriptionAttributes, Timing, fill (auto | default | freeze | hold | remove | transition) 'default' | (MediaContent | Schedule | )* |
The body element acts as the root element to span the timing tree. The body element has the behavior of a seq element. Timing on the body element is supported. The syncbase of the body element is the application begin time, which is implementation dependent, as is the application end time.
The Layout Module provides a framework for spatial layout of visual components. It defines semantics for the layout element. The Tiny Profile includes the Layout functionality of the StructureLayout module.
In the Tiny Profile, Layout elements may have the following attributes and
content model:
Layout Module | ||
---|---|---|
Elements | Attributes | Content model |
layout | Core, I18n, systemRequired, type 'text/smil-basic-layout' | ()* |
This profile adds the element to the content model of the head element of the Structure Module.
The content model of layout is empty. Profiles that extend the Tiny Profile may define their own content model of the layout element.
The Metainformation Module provides a framework for describing a document, either to inform the human user or to assist in automation. The Metainformation Module defines semantics for the and elements. In addition, this module defines semantics for the label attribute. The Tiny Profile includes the Metainformation functionality of the Metainformation module.
In the Tiny Profile, Metainformation elements may have the following attributes and content model:
Metainformation Module | ||
---|---|---|
Elements | Attributes | Content model |
Core, I18n, content, name, skip-content (false | true) 'true' | EMPTY | |
Core, I18n, skip-content (false | true) 'true' | EMPTY |
This profile adds the element to the content model of the head element of the Structure Module, as well as the element to the content model of the head and body elements of the Structure Module, to the ref, audio, img, video, text, and textstream elements of the BasicMedia module and to the par and seq elements of the BasicTimeContainers module.
The content model of metadata is empty. Profiles that extend the Tiny Profile may define their own content model of the metadata element.
The Media Object Modules provide a framework for declaring media. The Media Object Modules define semantics for the ref, audio, img, video, text, and textstream elements. The Tiny Profile includes the Media Object functionality of the BasicMedia and MediaDescription modules.
In the Tiny Profile, media elements may have the following attributes and content model:
Media Object Module | ||
---|---|---|
Elements | Attributes | Content model |
ref, animation, audio, img, text, textstream, video | Core, I18n, MediaDescriptionAttributes, Timing, endsync 'media', fill (auto | default | freeze | hold | remove | transition) 'default', mediaRepeat (preserve | strip) 'preserve', src, systemRequired, type | ()* |
The attribute collection MediaDescriptionAttributes is defined as follows:
Collection Name | Attributes in Collection |
---|---|
MediaDescriptionAttributes | abstract (CDATA), (CDATA), copyright (CDATA) |
This profile adds the ref, audio, img, video, text, and textstream elements to the content model of the par and seq elements of the Timing and Synchronization Modules and to the content model of the body element of the Structure Module.
The Timing and Synchronization Modules provide a framework for describing timing structure, timing control properties and temporal relationships between elements. The Timing and Synchronization Modules define semantics for par and seq elements. In addition, these modules define semantics for attributes including begin, dur and end. The Tiny Profile includes the Timing and Synchronization functionality of the BasicInlineTiming and BasicTimeContainers modules.
In the Tiny Profile, Timing and Synchronization elements may have the following attributes and content model :
Timing and Synchronization Module | ||
---|---|---|
Elements | Attributes | Content model |
par | Core, I18n, MediaDescriptionAttributes, Timing, endsync 'last', fill (auto | default | freeze | hold | remove | transition) 'default', systemRequired | (MediaContent | Schedule | )* |
seq | Core, I18n, MediaDescriptionAttributes, Timing, fill (auto | default | freeze | hold | remove | transition) 'default', systemRequired | (MediaContent | Schedule | )* |
The Attribute collection Timing is defined as follows:
Collection Name | Attributes in Collection |
---|---|
Timing | begin, dur, end |
This profile adds the par and seq elements to the content model of the body element of the Structure Module.
Elements of the Media Object Modules have the attributes describing timing and properties of contents.
The Content Control Modules provide a framework for selecting content based on a set of attributes. The Tiny Profile includes the Content Control functionality of the SkipContentControl and RequiredContentControl modules.
In the Tiny Profile no Content Control elements are defined. It only contains the skip-content and systemRequired attributes. While the first may be used to selectively control the evaluation of the element on which the attribute appears, the second provides an extension mechanism for new elements or attributes.
This section is informative.
Server-side playlists allow content servers to generate a live stream from a set of contents. A computing system may retrieve stored audio, video and live streams, and combine them in a way specified by a document named playlist.
Nowadays these systems run as follows:
The basic idea behind using SMIL in server-side playlists is to standardize the playlists used by different providers. Depending on the format of the files to be used, different servers could share the same playlist. So if a new technology is used, the playlists can easily be installed into the new solution. Also, different authoring tools could be used to generate these playlists no matter the type of server we have.
Depending on the future evolution of the currently available implementations of server-side playlists, this functionality may be split to a SMIL Server-Side Playlist Profile. This would allow consideration for new functionality. For instance, we may alternate between live and stored contents in the same playlist, play with the layout to have complex streams (similar to those available in a conventional TV channel), or add complex timing features, etc.
RealNetworks is one of the companies which implements this type of systems. To generate its live streams, it mainly uses a program called slta. This program uses a plain-text file where the path and names of the files to be used are provided. When the program starts, it opens the playlist file and starts to deliver data packets to the server by putting the files into a sequence. When the program reaches the end of the playlist or a certain length of this playlist, it may stop or it may read it and start again (the slta can loop the list of pre-recorded files either a specified number of times or indefinitely) Also, it is possible to add meta-data. As far as we know, it is impossible to alter the layout of the files. For instance, if we are a content provider working for several broadcasters we need to generate different versions of the same contents even if small variations are needed (like the insertion of a logo image). Also, timing functionality is very limited and only stored content can be used. An example of a slta playlist follows:
llandecubel_cabraliega.rm?title="Cabraliega"&autor="Llan de
Cubel"
corquieu_labarquera_tanda.rm?title="Tanda"&author="Corquieu"
tolimorilla_desitiempupoema-a.rm?title="Desi
tiempu"&author="Toli Morilla"
losberrones_10anos_ladelatele-a.rm?title="La de la
tele"&author="Los Berrones"
jingle_1-a.rm?title="Jingle
Asturies.Com"&author="Asturies.Com Canal UN"
elpresi_laxatapinta-a.rm?title="La xata pinta"&author="El
Presi"
tolimorilla_natocintura-a.rm?title="Na to
cintura"&author="Toli Morilla"
In the example, the playlist uses 7 files in rm format and each of the files has two associated meta-data items: a title and the name of the author. The slta will open these files sequentially or randomly depending on an input parameter.
Other developers are Microsoft (Windows Media Services) and Apple (Darwin/Quicktime Streaming Server). These companies provide what they call Server-Side playlists. They have included a management tool to create and manage these lists of contents. A module in the server uses these playlists and performs actions similar to those exposed in the case of RealNetworks solutions. A reduced set of SMIL 2.0 is available in Microsoft solutions. An example of a Microsoft Server-Side Playlist follows:
<?wsx version="1.0"?>
<smil>
<seq>
<media src="c:\wmpub\wmroot\audio1.wma" clipBegin="2:42"
/>
<media src="c:\wmpub\wmroot\audio2.wma" clipBegin="0:00"
/>
<media src="c:\wmpub\wmroot\audio3.wma" clipBegin="2min"
/>
<media src="c:\wmpub\wmroot\audio4.wma" clipBegin="0h"
dur="30" />
</seq>
</smil>
In this example, the playlist uses 4 files in wma format which will be opened sequentially with different starting points according to their internal timeline.
There are many small devices in the market specifically designed to reproduce multimedia contents but without the capabilities of either a computer or even a mobile phone or a PDA. An example is an mp3 player.
An mp3 player is a low-capacity device designed to reproduce audio files encoded in several formats. Usually, these devices are able to reproduce the files they contain sequentially, ordered by file name, or randomly. But in some cases, they are able to process a playlist in which a particular order for the files to be read is specified.
Nowadays there are several playlist formats used for this purpose. Some devices can use the M3U format, others PLS or WPL, etc. An example of an M3U playlist follows:
#EXTM3U
#EXTINF:167,Jorge Tuya - Puente de Ribadesella
tonada\puenteRibadesella.mp3
#EXTINF:193,Anabel Santiago - Coyi dun artu una flor
tonada\coyiArtuFlor.mp3
#EXTINF:207,Jesus Garcia - Tengo de subir al puertu
tonada\subirPuertu.mp3
In the example, three mp3 files stored in the tonada
directory are played in sequence. Each #EXTINF:
entry provides
the length of the following file and the title which should be shown in the
display of the player/device.
In conclusion, the SMIL Tiny Profile meets the requirements of the described devices. It includes a reduced set of modules of the SMIL language and can be integrated very easily. The simplest devices, designed to reproduce only audio, can be equipped with a SMIL parser to play sequences of files and show their associated metadata. Moreover, complex devices equipped with a graphical display, and video and image renderers, can use the profile to play sequences of audios and videos, or even a picture of the artist, or the title of the song being played is shown on the display.
Standardizing the format used in these devices allows users not only to reuse their multimedia files but also their playlists, once a new device has been bought.
This section is informative.
The SMIL 3.0 Tiny Profile is the minimum collection of SMIL 3.0 modules that provides support for the SMIL 3.0 language. Nevertheless, the SMIL Language includes powerful functionality for various/differing complexities, ranging from desktops to ubiquitous information appliances such as minimal capability mobile phones, car navigation systems, television sets, and voice user agents. Each of these platforms has its own specific capabilities and requirements. It is clear that not all SMIL 3.0 elements and attributes will be required on all platforms. SMIL 3.0 modularization groups semantically related SMIL elements, attributes, and attribute values into a disjoint set of SMIL modules. These modules may then be recombined to produce a SMIL profile that meets the needs of different communities. For example, a hand held device, digital talking book player, or a mobile phone may only support a small subset of SMIL 3.0 modules in its own profile.
For this purpose, the W3C SYMM working group has defined a scalability architecture in the SMIL 3.0 Scalability Framework. A scalable profile enables user agents to support incremental extra collections of modules containing the baseline functionality needed for an implementation environment, thus, a family of scalable SMIL profiles may be built using the SMIL 3.0 Tiny Profile plus additional sets of modules geared to the particular needs each profile addresses.
The following example shows how a television channel may build a server-side playlist, based on the following broadcast table:
Begin | End | Program | Provider | Type |
---|---|---|---|---|
20:00 | 21:00 | News | Own | Live |
21:00 | 22:00 | Coronation Avenue | Equirrel Productions | Stored |
22:00 | 00:00 | Football: Sporting de Gijón vs Real Oviedo | AudioVisual Sport | Live |
00:00 | 01:00 | News | Own | Live |
01:00 | 02:15 | International Cinema: Xicu'l Toperu | Producciones Esbardu | Stored |
The resulting document is the SMIL presentation following the Tiny profile:
01 <?xml version="1.0" encoding="iso-8859-1" ?> 02 03 <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Tiny" 04 xmlns:Wallclock="http://www.w3.org/2008/SMIL30/WallclockTiming" 05 xmlns:MediaClipping="http://www.w3.org/2008/SMIL30/MediaClipping" 06 systemRequired="Wallclock+MediaClipping" > 07 <head> 08 <layout></layout> 09 <meta name="Broadcaster" content="TV Channel" /> 10 <meta name="Rights" content="Copyright 2007 TV Channel" /> 11 </head> 12 <body> 13 <seq> 14 <video src="rtsp://videoserver.tvchannel.com/livenews.rm" begin="wallclock(20:00:00)" dur="60:00" title="News"> 15 <!-- Metadata of the news --> 16 <metadata ...> 17 ... 18 </metadata> 19 </video> 20 <video src="./series/coronationAv/chapter20.rm" clipBegin="5:00" clipEnd="65:00" title="Coronation Avenue" > 21 <!-- Metadata of Coronation Avenue --> 22 <metadata ...> 23 ... 24 </metadata> 25 </video> 26 <video src="rtsp://videoserver.audiovisualsport.com/xixonUvieu.rm" dur="120:00" title="Sporting de Gijón vs. Real Oviedo" /> 27 <video src="rtsp://videoserver.tvchannel.com/livenews.rm" dur="60:00" title="News" /> 28 <video src="./movies/xicuToperu.rm" end="wallclock(02:15:00)" title="Xicu'l Toperu" /> 29 </seq> 30 </body> 31 </smil>
The previous example uses the functionality defined by the SMIL 3.0 Tiny Profile. For example, lines 15-18 exemplifies how the metadata information can be included in the body section of the document, thus annotating specific programs. In addition, the example uses the clipBegin and clipEnd attributes from the MediaClipping module and the wallclock from the WallclockTiming module. These two required modules are declared in the smil element as defined in the SMIL 3.0 Scalability Framework.
As shown in the previous example, the SMIL 3.0 Tiny profile can be used for transmission of digital television channels. Nevertheless, IPTV and Interactive Television content will require a number of extra modules than those included in the SMIL 3.0 Tiny profile, such as linking, state, and layout functionality.
This section is normative.
The Tiny Profile Document Type Definition is defined as a set of SMIL 3.0 modules. All SMIL 3.0 modules are integrated according to the guidelines in the W3C Note "Synchronized Multimedia Modules based upon SMIL 1.0" [SMIL-MOD], and defined within their respective module sections.
This section is informative.
The SMIL 3.0 smilText profile is a new profile introduced in SMIL 3.0. It was not part of the SMIL 2.1.
This section is normative.
The SMIL 3.0 smilText profile is a collection of SMIL 3.0 modules that provide support for the specification of an external streaming text container. This container allows the functionality of the SMIL 3.0 smilText modules to be referenced outside of the content of a SMIL file.
This profile is suitable for systems which require simple streaming timed text. A separate smilText rendering engine will be required to process documents defined using this profile. In many cases, SMIL 3.0 engines will provide this capability, but other stand-alone implementations may also be developed.
This section is informative.
The SMIL 3.0 smilText profile is defined as a markup language. The syntax of this language is formally described by a document type definition (DTD), or an XML or RelaxNG Schema which is based on the modules as defined in "SMIL 3.0 Modules" section.
The smilText profile design requirements are:
Examples of use cases for this profile are SMIL rendering engines, plus stand-alone media players that wish to support a simple, streamable timed-text format.
This section is normative.
Within this profile specification, the term smilText profile will be considered to refer exclusively to the SMIL 3.0 smilText profile as defined in this document.
The definition of conformance for the SMIL 3.0 profile is given in the Definitions section of the SMIL 3.0 Scalability Framework. Based on these definitions, the smilText profile is a Conformant SMIL 3.0 Profile.
Within the referenced sections of the Scalability Framework, the following definitions should be used:
http://www.w3.org/2008/SMIL30/smilText
.
xmlns="http://www.w3.org/ns/SMIL"
<!DOCTYPE smilText PUBLIC "-//W3C//DTD SMIL 3.0 smilText //EN" "http://www.w3.org/2008/SMIL30/SMIL30smilText.dtd">If a document contains this declaration, it must be a valid XML document. Note that this implies that extensions to the syntax defined in the DTD (or in the corresponding XML or RelaxNG schemas) are not allowed. If the document is invalid, the user agent should issue an error.
http://www.w3.org/2008/SMIL30/informative-DTD/SMIL30smilText.dtd
version="3.0" baseProfile="smilText "As a consequence of the two requirements above, the effective root element declaration for a smilText profile document must be:
<smilText xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="smilText "> ... </smil>The root element may be extended as required with additional atttributes.
Language designers and implementors wishing to extend the smilText profile must consider the implications of the use of namespace extension syntax. Please consult the section on Scalable Profiles for restrictions and recommendations for best practice when extending SMIL.
The smilText profile specifies additional rules for smilText profile, document and user-agent conformance. It also specifies the elements and attribute values, plus any restrictions, required to support the smilText profile. This section provides a normative definition of these three aspects.
The smilText profile is not a SMIL host-language conformant profile. The smilText profile does not support extension using the SMIL 3.0 Scalability Framework.
This version of the smilText profile provides a definition of strictly conforming external smilText profile documents, which are restricted to tags and attributes from the SMIL 3.0 namespace. In the future, the language described in this profile may be extended by other W3C Recommendations, or by private extensions. For these extensions, the following rule must be obeyed:
An external smilText document is a conforming smilText profile document if it adheres to the specification of the SMIL 3.0 smilText profile definition. A conforming smilText profile document must meet all of the following criteria:
xmlns="http://www.w3.org/ns/SMIL"The default namespace name will be reused in any update of SMIL 3.0 which is made for the purpose of clarification or bug fixes. These changes will be minor in that they do not (a) change the meaning of existing documents written using the namespace, or (b) affect the operation of existing software written to process such documents. The SYMM working group MAY reuse this namespace URI in a future specification that revises the SMIL 3.0 DTD, thus affecting the validity of published documents.
<!DOCTYPE smilText PUBLIC "-//W3C//DTD SMIL 3.0 smilText//EN" "http://www.w3.org/2008/SMIL30/SMIL30smilText.dtd">The DTD referenced in the DOCTYPE declaration will, among other things, define default values for the language version number and the base profile name associated with the DTD. If a document contains a DOCTYPE declaration, it must be a valid XML document. Note that this implies that extensions to the syntax defined in the DTD are not allowed. A document is a conforming smilText profile document if it satisfies the requirements of the smilText profile specification and is valid per the normative DTD identified by the profile. As per section 7.6 of the W3C Process Document, W3C will make every effort to make this normative DTD available in its original form at this URI. The SYMM WG also publishes a non-normative DTD identified by:
http://www.w3.org/2008/SMIL30/SMIL30smilText.dtdThe SYMM WG plans to make changes to this DTD over time to correct errata. If you choose to refer to this DTD, please note that it is subject to change without notice at any time. The SYMM WG MAY publish a normative "snapshot" of the corrected DTD at a new URI by following the W3C Process for modifying a Recommendation. Individuals are free to use either of the two URIs above as the system identifier in the smilText profile's DOCTYPE, according to the desired level of stability.
Neither the smilText profile definition nor these conformance criteria provide designated size limits on any aspect of smilText profile content. There are no maximum values on the number of elements, the amount of character data, or the number of characters in attribute values.
A conforming smilText profile user agent is a program which can parse and process a smilText profile document and render the contents of the document onto output media. A conforming smilText profile user agent must meet all of the following criteria:
The smilText profile supports the SMIL 3.0 smilText features for the presentation of basic timed text functionality. It uses only modules from the SMIL 3.0 Recommendation. The smilText profile includes the following SMIL 3.0 modules:
The collection names contained in the following table define the smilText 1.0 Profile vocabulary.
smilText Profile | |
---|---|
Module Name | Elements in Module |
Identity | None. |
RequiredContentControl | None. |
BasicText | smilText, tev, clear, br |
TextStyling | div, p, span, textStyle |
TextMotion | None. |
Metainformation |
In the following sections, we define the set of elements and attributes used in each of the modules included in the smilText profile. The content model for each element is described. The content model of an element is a description of elements which may appear as its direct children. The special content model "EMPTY" means that a given element may not have children.
Collection Name | Attributes in Collection |
---|---|
Core | baseProfile 'smilText', version (3.0) '3.0', xml:base (CDATA) [XMLBase], xml:id (ID) |
I18n | its:dir (lro | ltr | rlo | rtl), its:locNote (CDATA), its:locNoteRef (CDATA), its:locNoteType (alert | description), its:term (no | yes), its:termInfoRef (CDATA), its:translate (no | yes), xml:lang (CDATA) |
The xml:id attributes in the collection Core are defined for all the elements of the smilText profile. The xml:id attribute is used in the smilText profile to assign a unique XML identifier to every element in a smilText document.
The smilText profile integrates the baseProfile and version attributes from the Identity module into the Core collection.
The smilText profile integrates the systemRequired attribute from the RequiredContentControl module as an attribute of the smilText root element.
The smilText Modules provide a light-weight method of defining timed text in an external container format. The smilText Modules section of SMIL 3.0 define semantics for the smilText, tev, clear, br, span, p, div, textStyle elements and their attributes. The smilText profile includes the smilText functionality of the BasicText, TextStyling, and TextMotion modules.
In the smilText profile, smilText elements may have the following attributes and content model:
Text Module | ||
---|---|---|
Elements | Attributes | Content model |
smilText | Core, I18n, systemRequired, TextExternal, textAlign (center | end | inherit | left | right | start) 'inherit', textConceal (both | final | inherit | initial | none) 'inherit', textMode (append | crawl | inherit | jump | replace | scroll) 'inherit', textPlace (center | end | inherit | start) 'inherit', textRate 'auto', textWrapOption (inherit | noWrap | wrap) 'wrap', textWritingMode (inherit | lr | lr-tb | rl | rl-tb | tb-lr | tb-rl) 'inherit', | (#PCDATA | | tev | clear | br | span | p | div) |
tev | Core, I18n, begin, next | ()* |
clear | Core, I18n, begin, next | ()* |
br | Core, I18n, | ()* |
div | Core, I18n, TextAttributes, textAlign (center | end | inherit | left | right | start) 'inherit', textWrapOption (inherit | noWrap | wrap) 'wrap', textWritingMode (inherit | lr | lr-tb | rl | rl-tb | tb-lr | tb-rl) 'inherit' | (#PCDATA | | tev | clear | br | div | p | span) |
p | Core, I18n, TextAttributes, textWrapOption (inherit | noWrap | wrap) 'wrap', textWritingMode (inherit | lr | lr-tb | rl | rl-tb | tb-lr | tb-rl) 'inherit' | (#PCDATA | | tev | clear | br | span) |
span | Core, I18n, TextAttributes, textDirection (inherit | ltr | ltro | rtl | rtlo) 'inherit', textWrapOption (inherit | noWrap | wrap) 'wrap' | (#PCDATA | | tev | clear | br | span) |
textStyle | Core, I18n, TextAttributes, textAlign (center | end | inherit | left | right | start) 'inherit', textConceal (both | final | inherit | initial | none) 'inherit', textDirection (inherit | ltr | ltro | rtl | rtlo) 'inherit', textMode (append | crawl | inherit | jump | replace | scroll) 'inherit', textPlace (center | end | inherit | start) 'inherit', textRate 'auto', textWrapOption (inherit | noWrap | wrap) 'wrap', textWritingMode (inherit | lr | lr-tb | rl | rl-tb | tb-lr | tb-rl) 'inherit' | ()* |
textStyling | Core, I18n | (()*, (textStyle, ()*)+) |
The SMILtext functionality is used to define the Attribute set "TextAttributes":
Collection Name | Attributes in Collection |
---|---|
TextAttributes | textBackgroundColor 'transparent', textColor, textFontFamily 'inherit', textFontSize 'inherit', textFontStyle (inherit | italic | normal | oblique | reverseOblique) 'inherit', textFontWeight (bold | inherit | normal) 'inherit', textStyle, xml:space (default | preserve) 'default' |
The smilText profile also integrates attribute definitions in the TextExternal attribute set from the BasicLayout module (backgroundColor 'transparent', height, and width) and the BasicTimeContainers module (dur). While these modules do not form a part of the smilText profile, the attributes used have the same meaning as in the referenced module specifications.
Collection Name | Attributes in Collection |
---|---|
TextExternal | version '1.0 (1.0)', backgroundColor 'transparent', height, width, dur |
The Metainformation Module provides a framework for describing a document, either to inform the human user or to assist in automation. The Metainformation Module defines semantics for element. In addition, this module defines semantics for the label attribute. The smilText profile includes the Metainformation functionality of the Metainformation module.
In the smilText profile, Metainformation elements may have the following attributes and content model:
Metainformation Module | ||
---|---|---|
Elements | Attributes | Content model |
Core, I18n | EMPTY |
This profile adds the element to the content model of all of the elements in the profile, with the exception of the metadata element itself.
The content model of metadata is empty. Profiles that extend the smilText Profile may define their own content model of the metadata element.
This section is normative.
The SMIL 3.0 smilText profile Document Type Definition is defined as a set of SMIL 3.0 modules. All SMIL 3.0 modules are integrated according to the guidelines in the W3C Note "Synchronized Multimedia Modules based upon SMIL 1.0" [SMIL-MOD], and defined within their respective module sections.
This section is informative.
This section defines the DTDs for SMIL 3.0 Modules and Profiles. A zip archive of the SMIL 3.0 DTDs is also available.
This SMIL version also provides Informative Relax NG schemas for SMIL 3.0 Modules and Profiles to validate SMIL 3.0 documents.
Informative tables of elements content for SMIL 3.0 profiles (Language Profile, Unified Mobile Profile, DAISY Profile, Tiny Profile and smilText Profile are provided for user convenience.
The following SMIL 3.0 DTDs are Normative for validation of SMIL 3.0 documents. The Relax NG schemas are only informative.
The working group may make changes to the SMIL 3.0 DTD to correct errata. A non-normative version of the SMIL 3.0 DTD with corrections made is available here.
This section is Normative.
<!-- ====================================================================== --> <!-- SMIL 3.0 Structure Module ============================================ --> <!-- file: SMIL-struct.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Warner ten Kate, Jacco van Ossenbruggen, Sjoerd Mullender. Revision: 1.6 Date: 2008/09/07 20:36:50 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Document Structure//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL-struct.mod" ====================================================================== --> <![%SMIL.Structure.module;[ <!-- ================== SMIL Document Root ============================== --> <!ENTITY % SMIL.smil.attrib "" > <!ENTITY % SMIL.smil.content "EMPTY" > <!ENTITY % SMIL.smil.qname "smil" > <!-- If smil: prefixes are used, we supply a default xmlns:smil attribute. If no prefix is used, we require an xmlns attribute instead. Note that the xmlns:smil attribute declaration is part of %SMIL.Core.attrib;. --> <![%SMIL.prefixed;[ <!ENTITY % SMIL.smil.xmlns.attrib ""> ]]> <!ENTITY % SMIL.smil.xmlns.attrib "xmlns %URI.datatype; #REQUIRED"> <!ELEMENT %SMIL.smil.qname; %SMIL.smil.content;> <!ATTLIST %SMIL.smil.qname; %SMIL.smil.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.smil.xmlns.attrib; > <!-- ================== The Document Head =============================== --> <!ENTITY % SMIL.head.content "EMPTY" > <!ENTITY % SMIL.head.attrib "" > <!ENTITY % SMIL.head.qname "head" > <!ELEMENT %SMIL.head.qname; %SMIL.head.content;> <!ATTLIST %SMIL.head.qname; %SMIL.head.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; > <!--=================== The Document Body - Timing Root ================= --> <!ENTITY % SMIL.body.content "EMPTY" > <!ENTITY % SMIL.body.attrib "" > <!ENTITY % SMIL.body.qname "body" > <!ELEMENT %SMIL.body.qname; %SMIL.body.content;> <!ATTLIST %SMIL.body.qname; %SMIL.body.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; > ]]> <!-- end of SMIL-struct.mod -->
<!-- ====================================================================== --> <!-- SMIL 3.0 Media Objects Modules ======================================= --> <!-- file: SMIL-media.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Rob Lanphier, Jacco van Ossenbruggen,, Sjoerd Mullender Sjoerd Mullender. Revision: 1.9 Date: 2008/09/07 20:36:50 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Media Objects//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL-media.mod" ====================================================================== --> <!-- ================== Profiling Entities ================================ --> <!ENTITY % SMIL.MediaParam.module "IGNORE"> <![%SMIL.MediaParam.module;[ <!ENTITY % SMIL.param.attrib ""> <!ENTITY % SMIL.param.qname "param"> <!ENTITY % SMIL.param.content "EMPTY"> <!ELEMENT %SMIL.param.qname; %SMIL.param.content;> <!ATTLIST %SMIL.param.qname; %SMIL.param.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; name CDATA #IMPLIED value CDATA #IMPLIED valuetype (data | ref | object) 'data' type %ContentType.datatype; #IMPLIED > <!ENTITY % SMIL.paramGroup.content "(%SMIL.param.qname;*)"> <!ENTITY % SMIL.paramGroup.attrib ""> <!ENTITY % SMIL.paramGroup.qname "paramGroup"> <!ELEMENT %SMIL.paramGroup.qname; %SMIL.paramGroup.content;> <!-- normally we get xml:id from the Structure module, but in case that is not included, we define it ourselves --> <![%SMIL.Structure.module;[ <!ENTITY % SMIL.paramGroup.id.attrib ""> ]]> <!ENTITY % SMIL.paramGroup.id.attrib "xml:id ID #IMPLIED"> <!ATTLIST %SMIL.paramGroup.qname; %SMIL.paramGroup.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.paramGroup.id.attrib; > ]]> <!ENTITY % SMIL.mo-attributes " %SMIL.media-object.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.Description.attrib; %SMIL.MediaRenderAttributes.attrib; "> <!ENTITY % SMIL.BasicMedia.module "IGNORE"> <![%SMIL.BasicMedia.module;[ <!ENTITY % SMIL.media-object.content "EMPTY"> <!ENTITY % SMIL.media-object.attrib ""> <!ENTITY % SMIL.soundAlign.attrib ""> <!-- ================ Media Objects Entities ============================ --> <!-- Most info is in the attributes, media objects are empty or have children defined at the language integration level: --> <!ENTITY % SMIL.mo-content "%SMIL.media-object.content;"> <!-- ================ Media Objects Elements ============================ --> <!ENTITY % SMIL.ref.qname "ref"> <!ENTITY % SMIL.animation.qname "animation"> <!ENTITY % SMIL.audio.qname "audio"> <!ENTITY % SMIL.img.qname "img"> <!ENTITY % SMIL.text.qname "text"> <!ENTITY % SMIL.textstream.qname "textstream"> <!ENTITY % SMIL.video.qname "video"> <!ENTITY % SMIL.ref.content "%SMIL.mo-content;"> <!ENTITY % SMIL.animation.content "%SMIL.mo-content;"> <!ENTITY % SMIL.audio.content "%SMIL.mo-content;"> <!ENTITY % SMIL.img.content "%SMIL.mo-content;"> <!ENTITY % SMIL.text.content "%SMIL.mo-content;"> <!ENTITY % SMIL.textstream.content "%SMIL.mo-content;"> <!ENTITY % SMIL.video.content "%SMIL.mo-content;"> <!ELEMENT %SMIL.ref.qname; %SMIL.ref.content;> <!ELEMENT %SMIL.animation.qname; %SMIL.animation.content;> <!ELEMENT %SMIL.audio.qname; %SMIL.audio.content;> <!ELEMENT %SMIL.img.qname; %SMIL.img.content;> <!ELEMENT %SMIL.text.qname; %SMIL.text.content;> <!ELEMENT %SMIL.textstream.qname; %SMIL.textstream.content;> <!ELEMENT %SMIL.video.qname; %SMIL.video.content;> <!ATTLIST %SMIL.ref.qname; %SMIL.MediaClip.attrib; %SMIL.MediaClip.attrib.deprecated; %SMIL.mo-attributes; %SMIL.MediaOpacity.attrib; %SMIL.MediaPanZoom.attrib; %SMIL.soundAlign.attrib; src %URI.datatype; #IMPLIED type %ContentType.datatype; #IMPLIED mediaRepeat (preserve|strip) 'preserve' > <!ATTLIST %SMIL.animation.qname; %SMIL.MediaClip.attrib; %SMIL.MediaClip.attrib.deprecated; %SMIL.mo-attributes; %SMIL.MediaOpacity.attrib; %SMIL.MediaPanZoom.attrib; %SMIL.soundAlign.attrib; src %URI.datatype; #IMPLIED type %ContentType.datatype; #IMPLIED mediaRepeat (preserve|strip) 'preserve' > <!ATTLIST %SMIL.audio.qname; %SMIL.MediaClip.attrib; %SMIL.MediaClip.attrib.deprecated; %SMIL.mo-attributes; %SMIL.MediaOpacity.attrib; %SMIL.MediaPanZoom.attrib; %SMIL.soundAlign.attrib; src %URI.datatype; #IMPLIED type %ContentType.datatype; #IMPLIED mediaRepeat (preserve|strip) 'preserve' > <!ATTLIST %SMIL.img.qname; %SMIL.MediaClip.attrib; %SMIL.MediaClip.attrib.deprecated; %SMIL.mo-attributes; %SMIL.MediaOpacity.attrib; %SMIL.MediaPanZoom.attrib; %SMIL.soundAlign.attrib; src %URI.datatype; #IMPLIED type %ContentType.datatype; #IMPLIED mediaRepeat (preserve|strip) 'preserve' > <!ATTLIST %SMIL.text.qname; %SMIL.MediaClip.attrib; %SMIL.MediaClip.attrib.deprecated; %SMIL.mo-attributes; %SMIL.MediaOpacity.attrib; %SMIL.MediaPanZoom.attrib; %SMIL.soundAlign.attrib; src %URI.datatype; #IMPLIED type %ContentType.datatype; #IMPLIED mediaRepeat (preserve|strip) 'preserve' > <!ATTLIST %SMIL.textstream.qname; %SMIL.MediaClip.attrib; %SMIL.MediaClip.attrib.deprecated; %SMIL.mo-attributes; %SMIL.MediaOpacity.attrib; %SMIL.MediaPanZoom.attrib; %SMIL.soundAlign.attrib; src %URI.datatype; #IMPLIED type %ContentType.datatype; #IMPLIED mediaRepeat (preserve|strip) 'preserve' > <!ATTLIST %SMIL.video.qname; %SMIL.MediaClip.attrib; %SMIL.MediaClip.attrib.deprecated; %SMIL.mo-attributes; %SMIL.MediaOpacity.attrib; %SMIL.MediaPanZoom.attrib; %SMIL.soundAlign.attrib; src %URI.datatype; #IMPLIED type %ContentType.datatype; #IMPLIED mediaRepeat (preserve|strip) 'preserve' > ]]> <!-- BrushMedia --> <!ENTITY % SMIL.BrushMedia.module "IGNORE"> <![%SMIL.BrushMedia.module;[ <!ENTITY % SMIL.brush.attrib ""> <!ENTITY % SMIL.brush.content "%SMIL.mo-content;"> <!ENTITY % SMIL.brush.qname "brush"> <!ELEMENT %SMIL.brush.qname; %SMIL.brush.content;> <!ATTLIST %SMIL.brush.qname; %SMIL.brush.attrib; %SMIL.mo-attributes; color %Color.datatype; #IMPLIED > ]]> <!-- end of SMIL-media.mod -->
<!-- ====================================================================== --> <!-- SMIL 3.0 Timing and Synchronization Modules ========================== --> <!-- file: SMIL-timing.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Jacco van Ossenbruggen, Sjoerd Mullender. Revision: 1.7 Date: 2008/09/07 20:36:50 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Timing//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL-timing.mod" ====================================================================== --> <!-- ================== Timing Elements =================================== --> <!ENTITY % SMIL.BasicTimeContainers.module "IGNORE"> <![%SMIL.BasicTimeContainers.module;[ <!ENTITY % SMIL.par.content "EMPTY"> <!ENTITY % SMIL.par.attrib ""> <!ENTITY % SMIL.par.qname "par"> <!ELEMENT %SMIL.par.qname; %SMIL.par.content;> <!ATTLIST %SMIL.par.qname; %SMIL.par.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.Description.attrib; > <!ENTITY % SMIL.seq.content "EMPTY"> <!ENTITY % SMIL.seq.attrib ""> <!ENTITY % SMIL.seq.qname "seq"> <!ELEMENT %SMIL.seq.qname; %SMIL.seq.content;> <!ATTLIST %SMIL.seq.qname; %SMIL.seq.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.Description.attrib; > ]]> <!-- End of BasicTimeContainers.module --> <!ENTITY % SMIL.BasicExclTimeContainers.module "IGNORE"> <![%SMIL.BasicExclTimeContainers.module;[ <!ENTITY % SMIL.excl.content "EMPTY"> <!ENTITY % SMIL.excl.attrib ""> <!ENTITY % SMIL.excl.qname "excl"> <!ELEMENT %SMIL.excl.qname; %SMIL.excl.content;> <!ATTLIST %SMIL.excl.qname; %SMIL.excl.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.Description.attrib; > ]]> <!-- End of BasicExclTimeContainers.module --> <!ENTITY % SMIL.BasicPriorityClassContainers.module "IGNORE"> <![%SMIL.BasicPriorityClassContainers.module;[ <!ENTITY % SMIL.priorityClass.content "EMPTY"> <!ENTITY % SMIL.priorityClass.attrib ""> <!ENTITY % SMIL.priorityClass.qname "priorityClass"> <!ELEMENT %SMIL.priorityClass.qname; %SMIL.priorityClass.content;> <!ATTLIST %SMIL.priorityClass.qname; %SMIL.priorityClass.attrib; peers (stop|pause|defer|never) 'stop' higher (stop|pause) 'pause' lower (defer|never) 'defer' pauseDisplay (disable|hide|show ) 'show' %SMIL.Description.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; > ]]> <!-- End of BasicPriorityClassContainers.module --> <!-- end of SMIL-timing.mod -->
<!-- ====================================================================== --> <!-- SMIL 3.0 Content Control Module ====================================== --> <!-- file: SMIL-control.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Jacco van Ossenbruggen, Aaron Cohen, Sjoerd Mullender. Revision: 1.7 Date: 2008/09/07 20:36:49 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Content Control//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL-control.mod" ====================================================================== --> <!ENTITY % SMIL.BasicContentControl.module "IGNORE"> <![%SMIL.BasicContentControl.module;[ <!ENTITY % SMIL.switch.attrib ""> <!ENTITY % SMIL.switch.content "EMPTY"> <!ENTITY % SMIL.switch.qname "switch"> <!ELEMENT %SMIL.switch.qname; %SMIL.switch.content;> <!ATTLIST %SMIL.switch.qname; %SMIL.switch.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; allowReorder (yes|no) 'no' > ]]> <!-- ========================= CustomTest Elements ======================== --> <!ENTITY % SMIL.CustomTestAttributes.module "IGNORE"> <![%SMIL.CustomTestAttributes.module;[ <!ENTITY % SMIL.customTest.attrib ""> <!ENTITY % SMIL.customTest.qname "customTest"> <!ENTITY % SMIL.customTest.content "EMPTY"> <!ELEMENT %SMIL.customTest.qname; %SMIL.customTest.content;> <!ATTLIST %SMIL.customTest.qname; %SMIL.customTest.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; defaultState (true|false) 'false' override (visible|hidden) 'hidden' uid %URI.datatype; #IMPLIED > <!ENTITY % SMIL.customAttributes.attrib ""> <!ENTITY % SMIL.customAttributes.qname "customAttributes"> <!ENTITY % SMIL.customAttributes.content "(customTest+)"> <!ELEMENT %SMIL.customAttributes.qname; %SMIL.customAttributes.content;> <!ATTLIST %SMIL.customAttributes.qname; %SMIL.customAttributes.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; > ]]> <!-- end of CustomTestAttributes --> <!-- ========================= PrefetchControl Elements =================== --> <!ENTITY % SMIL.PrefetchControl.module "IGNORE"> <![%SMIL.PrefetchControl.module;[ <!ENTITY % SMIL.prefetch.attrib ""> <!ENTITY % SMIL.prefetch.qname "prefetch"> <!ENTITY % SMIL.prefetch.content "EMPTY"> <!ELEMENT %SMIL.prefetch.qname; %SMIL.prefetch.content;> <!ATTLIST %SMIL.prefetch.qname; %SMIL.prefetch.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; bandwidth CDATA '100%' mediaSize CDATA #IMPLIED mediaTime CDATA #IMPLIED src %URI.datatype; #IMPLIED > ]]> <!-- end of SMIL-control.mod -->
<!-- ====================================================================== --> <!-- SMIL 3.0 Layout Modules ============================================== --> <!-- file: SMIL-layout.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Jacco van Ossenbruggen, Aaron Cohen, Sjoerd Mullender. Revision: 1.12 Date: 2008/09/18 10:33:45 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Layout//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL-layout.mod" =================================================================== --> <!-- ================== StructureLayout =================================== --> <!ENTITY % SMIL.StructureLayout.module "IGNORE"> <![%SMIL.StructureLayout.module;[ <!-- ================== StructureLayout Profiling Entities ============== --> <!ENTITY % SMIL.layout.attrib ""> <!ENTITY % SMIL.layout.content "EMPTY"> <!-- ================== StructureLayout Elements ======================== --> <!-- Layout contains the region and root-layout elements defined by smil-basic-layout or other elements defined by an external layout mechanism. --> <!ENTITY % SMIL.layout.qname "layout"> <!ELEMENT %SMIL.layout.qname; %SMIL.layout.content;> <!ATTLIST %SMIL.layout.qname; %SMIL.layout.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; type CDATA 'text/smil-basic-layout' > ]]> <!-- end StructureLayout.module --> <!-- ================== BasicLayout ======================================= --> <!ENTITY % SMIL.BasicLayout.module "IGNORE"> <![%SMIL.BasicLayout.module;[ <!-- ================== BasicLayout Profiling Entities ================== --> <!ENTITY % SMIL.region.attrib ""> <!ENTITY % SMIL.rootlayout.attrib ""> <!ENTITY % SMIL.region.content "EMPTY"> <!ENTITY % SMIL.rootlayout.content "EMPTY"> <!-- ================== BasicLayout Entities ============================ --> <!-- Serious hacking: we need an extra level of indirection to get the correct default value of the backgroundOpacity attribute --> <!ENTITY % SMIL.backgroundOpacity.attrib-indirect "%SMIL.backgroundOpacity.attrib;"> <!ENTITY % SMIL.backgroundOpacity.attrib-indirect2 "%SMIL.backgroundOpacity.attrib-indirect;"> <!ENTITY % SMIL.common-layout-attrs " %SMIL.region-size.attrib; %SMIL.backgroundColor.attrib; %SMIL.backgroundOpacity.attrib-indirect2; "> <!ENTITY % SMIL.region-attrs " %SMIL.region-positioning.attrib; %SMIL.z-index.attrib; %SMIL.fit.attrib; showBackground (always|whenActive) 'always' "> <!-- ================== Region Element ================================== --> <!ENTITY % SMIL.region.qname "region"> <!ELEMENT %SMIL.region.qname; %SMIL.region.content;> <!ATTLIST %SMIL.region.qname; %SMIL.region.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.backgroundColor.deprecated.attrib; %SMIL.common-layout-attrs; %SMIL.region-attrs; regionName NMTOKEN #IMPLIED > <!-- ================== Root-layout Element ============================= --> <!ENTITY % SMIL.root-layout.qname "root-layout"> <!ELEMENT %SMIL.root-layout.qname; %SMIL.rootlayout.content; > <!ATTLIST %SMIL.root-layout.qname; %SMIL.rootlayout.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.backgroundColor.deprecated.attrib; %SMIL.common-layout-attrs; > ]]> <!-- end BasicLayout.module --> <!-- ================== AudioLayout ======================================= --> <!ENTITY % SMIL.AudioLayout.module "IGNORE"> <![%SMIL.AudioLayout.module;[ <!-- ================== AudioLayout Entities ============================ --> <!ENTITY % SMIL.soundLevel.attrib " soundLevel CDATA '+0.0dB' "> <!-- ================ AudioLayout Elements ============================== --> <!-- ================ Add soundLevel to region element ================== --> <!ATTLIST %SMIL.region.qname; %SMIL.soundLevel.attrib;> <!-- ================ Add soundLevel to media elements ================== --> <!ENTITY % SMIL.OverrideLayout.module "IGNORE"> <![%SMIL.OverrideLayout.module;[ <!ATTLIST %SMIL.ref.qname; %SMIL.soundLevel.attrib;> <!ATTLIST %SMIL.animation.qname; %SMIL.soundLevel.attrib;> <!ATTLIST %SMIL.audio.qname; %SMIL.soundLevel.attrib;> <!ATTLIST %SMIL.img.qname; %SMIL.soundLevel.attrib;> <!ATTLIST %SMIL.text.qname; %SMIL.soundLevel.attrib;> <!ATTLIST %SMIL.textstream.qname; %SMIL.soundLevel.attrib;> <!ATTLIST %SMIL.video.qname; %SMIL.soundLevel.attrib;> ]]> ]]> <!-- end AudioLayout.module --> <!-- ================ MultiWindowLayout =================================== --> <!ENTITY % SMIL.MultiWindowLayout.module "IGNORE"> <![%SMIL.MultiWindowLayout.module;[ <!-- ============== MultiWindowLayout Profiling Entities ================ --> <!ENTITY % SMIL.topLayout.attrib ""> <!ENTITY % SMIL.topLayout.content "EMPTY"> <!-- ============== MultiWindowLayout Elements ========================== --> <!--================= topLayout element ================================= --> <!ENTITY % SMIL.topLayout.qname "topLayout"> <!ELEMENT %SMIL.topLayout.qname; %SMIL.topLayout.content;> <!ATTLIST %SMIL.topLayout.qname; %SMIL.topLayout.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.common-layout-attrs; close (onRequest|whenNotActive) 'onRequest' open (onStart|whenActive) 'onStart' > ]]> <!-- end MultiWindowLayout.module --> <!-- ====================== AlignmentLayout =============================== --> <!ENTITY % SMIL.AlignmentLayout.module "IGNORE"> <![%SMIL.AlignmentLayout.module;[ <!-- ========== AlignmentLayout Profiling Entities ====================== --> <!ENTITY % SMIL.regPoint.attrib ""> <!ENTITY % SMIL.regPoint.content "EMPTY"> <!-- ============ AlignmentLayout Elements ============================== --> <!ENTITY % SMIL.regPoint.qname "regPoint"> <!ELEMENT %SMIL.regPoint.qname; %SMIL.regPoint.content;> <!ATTLIST %SMIL.regPoint.qname; %SMIL.regPoint.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.regAlign.attrib; %SMIL.region-positioning.attrib; > <!ATTLIST %SMIL.region.qname; %SMIL.RegistrationPoint.attrib; %SMIL.soundAlign.attrib; > ]]> <!-- end AlignmentLayout.module --> <!-- ================== BackgroundTilingLayout ============================ --> <!ENTITY % SMIL.BackgroundTilingLayout.module "IGNORE"> <![%SMIL.BackgroundTilingLayout.module;[ <!-- ================== BackgroundTilingLayout Entities ================= --> <!ENTITY % SMIL.BackgroundTiling-attrs " backgroundImage %URI.datatype; 'none' backgroundRepeat (repeat|repeatX|repeatY|noRepeat|inherit) 'repeat' "> <!-- ================ BackgroundTilingLayout Elements =================== --> <!-- ================ Add attributes to region element ================== --> <!ATTLIST %SMIL.region.qname; %SMIL.BackgroundTiling-attrs;> <!ATTLIST %SMIL.root-layout.qname; %SMIL.BackgroundTiling-attrs;> <![%SMIL.MultiWindowLayout.module;[ <!ATTLIST %SMIL.topLayout.qname; %SMIL.BackgroundTiling-attrs;> ]]> ]]> <!-- end BackgroundTilingLayout.module --> <!-- end of SMIL-layout.mod -->
<!-- ====================================================================== --> <!-- SMIL 3.0 smilText Modules ============================================ --> <!-- file: SMIL-smiltext.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Revision: 1.10 Date: 2008/09/07 20:36:50 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ELEMENTS SMIL 3.0 SMILtext//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL-smiltext.mod" =================================================================== --> <!-- ================== TextExternal ====================================== --> <!ENTITY % SMIL.TextExternal.module "IGNORE"> <![%SMIL.TextExternal.module;[ <!ENTITY % SMIL.TextExternal.attrib " dur %TimeValue.datatype; #IMPLIED height CDATA 'auto' width CDATA 'auto' backgroundColor %Color.datatype; 'transparent' xmlns %URI.datatype; #REQUIRED "> ]]> <!ENTITY % SMIL.TextExternal.attrib ""> <!-- ================== BasicText ========================================= --> <!ENTITY % SMIL.BasicText.module "IGNORE"> <![%SMIL.BasicText.module;[ <!ENTITY % SMIL.smilText.attrib ""> <!ENTITY % SMIL.smilText.content "EMPTY"> <!ENTITY % SMIL.smilText.qname "smilText"> <!ELEMENT %SMIL.smilText.qname; %SMIL.smilText.content;> <!ATTLIST %SMIL.smilText.qname; %SMIL.smilText.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.Description.attrib; %SMIL.BasicText.attrib; %SMIL.textAlign.attrib; %SMIL.TextStyling.attrib; %SMIL.textMode.attrib; %SMIL.textPlace.attrib; %SMIL.textWritingMode.attrib; %SMIL.TextMotion.attrib; %SMIL.MediaOpacity.attrib; %SMIL.MediaRenderAttributes.attrib; %SMIL.TextExternal.attrib; > <!ENTITY % SMIL.tev.attrib ""> <!ENTITY % SMIL.tev.content "EMPTY"> <!ENTITY % SMIL.tev.qname "tev"> <!ELEMENT %SMIL.tev.qname; %SMIL.tev.content;> <!ATTLIST %SMIL.tev.qname; %SMIL.tev.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; begin CDATA #IMPLIED next CDATA #IMPLIED > <!ENTITY % SMIL.clear.attrib ""> <!ENTITY % SMIL.clear.content "EMPTY"> <!ENTITY % SMIL.clear.qname "clear"> <!ELEMENT %SMIL.clear.qname; %SMIL.clear.content;> <!ATTLIST %SMIL.clear.qname; %SMIL.clear.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; begin CDATA #IMPLIED next CDATA #IMPLIED > <!ENTITY % SMIL.br.attrib ""> <!ENTITY % SMIL.br.content "EMPTY"> <!ENTITY % SMIL.br.qname "br"> <!ELEMENT %SMIL.br.qname; %SMIL.br.content;> <!ATTLIST %SMIL.br.qname; %SMIL.br.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; > ]]> <!-- ================== TextStyling ======================================= --> <!ENTITY % SMIL.TextStyling.module "IGNORE"> <![%SMIL.TextStyling.module;[ <!ENTITY % SMIL.div.attrib ""> <!ENTITY % SMIL.div.content "EMPTY"> <!ENTITY % SMIL.div.qname "div"> <!ELEMENT %SMIL.div.qname; %SMIL.div.content;> <!ATTLIST %SMIL.div.qname; %SMIL.div.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.Description.attrib; %SMIL.BasicText.attrib; %SMIL.textAlign.attrib; %SMIL.TextStyling.attrib; %SMIL.textWritingMode.attrib; > <!ENTITY % SMIL.p.attrib ""> <!ENTITY % SMIL.p.content "EMPTY"> <!ENTITY % SMIL.p.qname "p"> <!ELEMENT %SMIL.p.qname; %SMIL.p.content;> <!ATTLIST %SMIL.p.qname; %SMIL.p.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.Description.attrib; %SMIL.BasicText.attrib; %SMIL.TextStyling.attrib; %SMIL.textWritingMode.attrib; > <!ENTITY % SMIL.span.attrib ""> <!ENTITY % SMIL.span.content "EMPTY"> <!ENTITY % SMIL.span.qname "span"> <!ELEMENT %SMIL.span.qname; %SMIL.span.content;> <!ATTLIST %SMIL.span.qname; %SMIL.span.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.Description.attrib; %SMIL.BasicText.attrib; %SMIL.TextStyling.attrib; %SMIL.textDirection.attrib; > <!ENTITY % SMIL.textStyle.attrib ""> <!ENTITY % SMIL.textStyle.content "EMPTY"> <!ENTITY % SMIL.textStyle.qname "textStyle"> <!ELEMENT %SMIL.textStyle.qname; %SMIL.textStyle.content;> <!ATTLIST %SMIL.textStyle.qname; %SMIL.textStyle.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.BasicText.attrib; %SMIL.TextStyling.attrib; %SMIL.textAlign.attrib; %SMIL.textDirection.attrib; %SMIL.textMode.attrib; %SMIL.textPlace.attrib; %SMIL.textWritingMode.attrib; %SMIL.TextMotion.attrib; > <!ENTITY % SMIL.textStyling.attrib ""> <!ENTITY % SMIL.textStyling.content "(%SMIL.textStyle.qname;)*"> <!ENTITY % SMIL.textStyling.qname "textStyling"> <!ELEMENT %SMIL.textStyling.qname; %SMIL.textStyling.content;> <!ATTLIST %SMIL.textStyling.qname; %SMIL.textStyling.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; > ]]> <!-- ================== TextMotion ======================================== --> <!ENTITY % SMIL.TextMotion.module "IGNORE"> <![%SMIL.TextMotion.module;[ ]]> <!-- end of SMIL-smiltext.mod -->
<!-- ====================================================================== --> <!-- SMIL 3.0 Linking Module ============================================== --> <!-- file: SMIL-link.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Jacco van Ossenbruggen, Lloyd Rutledge, Aaron Cohen, Sjoerd Mullender. Revision: 1.10 Date: 2008/09/07 20:36:50 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Linking//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL-link.mod" ====================================================================== --> <!-- ======================== LinkingAttributes Entities ================== --> <!ENTITY % SMIL.LinkingAttributes.module "IGNORE"> <![%SMIL.LinkingAttributes.module;[ <!ENTITY % SMIL.linking-attrs " sourceLevel CDATA '+0.0dB' destinationLevel CDATA '+0.0dB' sourcePlaystate (play|pause|stop) #IMPLIED destinationPlaystate (play|pause) 'play' show (new|pause|replace) 'replace' accesskey %Character.datatype; #IMPLIED target CDATA #IMPLIED external (true|false) 'false' actuate (onRequest|onLoad) 'onRequest' %SMIL.tabindex.attrib; "> ]]> <!ENTITY % SMIL.linking-attrs ""> <!-- ======================== ObjectLinking =============================== --> <!ENTITY % SMIL.ObjectLinking.module "IGNORE"> <![%SMIL.ObjectLinking.module;[ <!ENTITY % SMIL.Fragment " fragment CDATA #IMPLIED "> ]]> <!ENTITY % SMIL.Fragment ""> <!-- ========================= BasicLinking Elements ====================== --> <!ENTITY % SMIL.BasicLinking.module "IGNORE"> <!ENTITY % SMIL.BasicLinking.deprecated.module "IGNORE"> <![%SMIL.BasicLinking.module;[ <!-- ======================= BasicLinking Entities ====================== --> <!ENTITY % SMIL.Shape "(rect|circle|poly|default)"> <!ENTITY % SMIL.Coords "CDATA"> <!-- comma separated list of lengths --> <!ENTITY % SMIL.a.attrib ""> <!ENTITY % SMIL.a.content "EMPTY"> <!ENTITY % SMIL.a.qname "a"> <!ELEMENT %SMIL.a.qname; %SMIL.a.content;> <!ATTLIST %SMIL.a.qname; %SMIL.a.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.linking-attrs; href %URI.datatype; #REQUIRED > <!ENTITY % SMIL.area.attrib ""> <!ENTITY % SMIL.area.content "EMPTY"> <!ENTITY % SMIL.area.qname "area"> <!ELEMENT %SMIL.area.qname; %SMIL.area.content;> <!ATTLIST %SMIL.area.qname; %SMIL.area.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.linking-attrs; %SMIL.Fragment; shape %SMIL.Shape; 'rect' coords %SMIL.Coords; #IMPLIED href %URI.datatype; #IMPLIED nohref (nohref) #IMPLIED > <![%SMIL.BasicLinking.deprecated.module;[ <!ENTITY % SMIL.anchor.attrib ""> <!ENTITY % SMIL.anchor.content "EMPTY"> <!ENTITY % SMIL.anchor.qname "anchor"> <!ELEMENT %SMIL.anchor.qname; %SMIL.anchor.content;> <!ATTLIST %SMIL.anchor.qname; %SMIL.anchor.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.linking-attrs; %SMIL.Fragment; shape %SMIL.Shape; 'rect' coords %SMIL.Coords; #IMPLIED href %URI.datatype; #IMPLIED nohref (nohref) #IMPLIED > ]]> ]]> <!-- end of BasicLinking --> <!-- end of SMIL-link.mod -->
<!-- ====================================================================== --> <!-- SMIL 3.0 Metainformation Module ====================================== --> <!-- file: SMIL-metainformation.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Thierry Michel, Jacco van Ossenbruggen, Sjoerd Mullender. Revision: 1.7 Date: 2008/09/07 20:36:50 This module declares the meta and metadata elements types and its attributes, used to provide declarative document metainformation. This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Document Metainformation//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL-metainformation.mod" ====================================================================== --> <!-- ================== Profiling Entities ================================ --> <!ENTITY % SMIL.Metainformation.module "IGNORE"> <![%SMIL.Metainformation.module;[ <!ENTITY % SMIL.meta.content "EMPTY"> <!ENTITY % SMIL.meta.attrib ""> <!ENTITY % SMIL.meta.qname "meta"> <!ENTITY % SMIL.metadata.content "EMPTY"> <!ENTITY % SMIL.metadata.attrib ""> <!ENTITY % SMIL.metadata.qname "metadata"> <!-- ================== meta element ==================================== --> <!ELEMENT %SMIL.meta.qname; %SMIL.meta.content;> <!ATTLIST %SMIL.meta.qname; %SMIL.meta.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; content CDATA #REQUIRED name CDATA #REQUIRED > <!-- ================== metadata element ================================ --> <!ELEMENT %SMIL.metadata.qname; %SMIL.metadata.content;> <!ATTLIST %SMIL.metadata.qname; %SMIL.metadata.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; > ]]> <!-- end of SMIL-metainformation.mod -->
<!-- ====================================================================== --> <!-- SMIL 3.0 Transition Module =========================================== --> <!-- file: SMIL-transition.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Jacco van Ossenbruggen, Sjoerd Mullender. Revision: 1.7 Date: 2008/09/07 20:36:50 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Transition//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL-transition.mod" ====================================================================== --> <!ENTITY % SMIL.TransitionModifiers.module "IGNORE"> <![%SMIL.TransitionModifiers.module;[ <!ENTITY % SMIL.transition-modifiers-attrs " horzRepeat CDATA '1' vertRepeat CDATA '1' borderWidth CDATA '0' borderColor CDATA 'black' "> ]]> <!-- End of TransitionModifiers.module --> <!ENTITY % SMIL.transition-modifiers-attrs ""> <!ENTITY % SMIL.transition-types "(barWipe|boxWipe|fourBoxWipe|barnDoorWipe| diagonalWipe|bowTieWipe|miscDiagonalWipe|veeWipe|barnVeeWipe|zigZagWipe| barnZigZagWipe|irisWipe|triangleWipe|arrowHeadWipe|pentagonWipe| hexagonWipe|ellipseWipe|eyeWipe|roundRectWipe|starWipe|miscShapeWipe| clockWipe|pinWheelWipe|singleSweepWipe|fanWipe|doubleFanWipe|doubleSweepWipe| saloonDoorWipe|windshieldWipe|snakeWipe|spiralWipe|parallelSnakesWipe| boxSnakesWipe|waterfallWipe|pushWipe|slideWipe|fade|audioFade| audioVisualFade)" > <!ENTITY % SMIL.transition-subtypes "(bottom|bottomCenter|bottomLeft| bottomLeftClockwise|bottomLeftCounterClockwise| bottomLeftDiagonal|bottomRight|bottomRightClockwise| bottomRightCounterClockwise|bottomRightDiagonal|centerRight|centerTop| circle|clockwiseBottom|clockwiseBottomRight|clockwiseLeft|clockwiseNine| clockwiseRight|clockwiseSix|clockwiseThree|clockwiseTop|clockwiseTopLeft| clockwiseTwelve|cornersIn|cornersOut|counterClockwiseBottomLeft| counterClockwiseTopRight|crossfade|diagonalBottomLeft| diagonalBottomLeftOpposite|diagonalTopLeft|diagonalTopLeftOpposite| diamond|doubleBarnDoor|doubleDiamond|down|fadeFromColor|fadeToColor| fanInHorizontal|fanInVertical|fanOutHorizontal|fanOutVertical|fivePoint| fourBlade|fourBoxHorizontal|fourBoxVertical|fourPoint|fromBottom|fromLeft| fromRight|fromTop|heart|horizontal|horizontalLeft|horizontalLeftSame| horizontalRight|horizontalRightSame|horizontalTopLeftOpposite| horizontalTopRightOpposite|keyhole|left|leftCenter|leftToRight| oppositeHorizontal|oppositeVertical|parallelDiagonal| parallelDiagonalBottomLeft|parallelDiagonalTopLeft| parallelVertical|rectangle|right|rightCenter|sixPoint|top|topCenter| topLeft|topLeftClockwise|topLeftCounterClockwise|topLeftDiagonal| topLeftHorizontal|topLeftVertical|topRight|topRightClockwise| topRightCounterClockwise|topRightDiagonal|topToBottom|twoBladeHorizontal| twoBladeVertical|twoBoxBottom|twoBoxLeft|twoBoxRight|twoBoxTop|up| vertical|verticalBottomLeftOpposite|verticalBottomSame|verticalLeft| verticalRight|verticalTopLeftOpposite|verticalTopSame)" > <!ENTITY % SMIL.transition-attrs " type %SMIL.transition-types; #IMPLIED subtype %SMIL.transition-subtypes; #IMPLIED fadeColor CDATA 'black' %SMIL.transition-modifiers-attrs; "> <!ENTITY % SMIL.BasicTransitions.module "IGNORE"> <![%SMIL.BasicTransitions.module;[ <!ENTITY % SMIL.transition.attrib ""> <!ENTITY % SMIL.transition.content "EMPTY"> <!ENTITY % SMIL.transition.qname "transition"> <!ELEMENT %SMIL.transition.qname; %SMIL.transition.content;> <!ATTLIST %SMIL.transition.qname; %SMIL.transition.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.transition-attrs; dur %TimeValue.datatype; #IMPLIED startProgress CDATA '0.0' endProgress CDATA '1.0' direction (forward|reverse) 'forward' > ]]> <!-- End of BasicTransitions.module --> <!ENTITY % SMIL.InlineTransitions.module "IGNORE"> <![%SMIL.InlineTransitions.module;[ <!ENTITY % SMIL.transitionFilter.attrib ""> <!ENTITY % SMIL.transitionFilter.content "EMPTY"> <!ENTITY % SMIL.transitionFilter.qname "transitionFilter"> <!ELEMENT %SMIL.transitionFilter.qname; %SMIL.transitionFilter.content;> <!ATTLIST %SMIL.transitionFilter.qname; %SMIL.transitionFilter.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.transition-attrs; mode (in|out) 'in' begin %TimeValue.datatype; #IMPLIED dur %TimeValue.datatype; #IMPLIED end %TimeValue.datatype; #IMPLIED %SMIL.RepeatTiming.attrib; from CDATA '0.0' to CDATA '1.0' by CDATA #IMPLIED values CDATA #IMPLIED calcMode (discrete|linear|paced) 'linear' > <!-- Language Designer chooses to integrate targetElement or XLink attributes. To integrate the targetElement attribute, define the entity SMIL.transition-targetElement as "INCLUDE"; to integrate the XLink attributes, define SMIL.transition-XLinkTarget as "INCLUDE". If InlineTransitions are included, one or the other MUST be defined. It is strongly recommended that only one of the two be defined. --> <!ENTITY % SMIL.transition-XLinkTarget "IGNORE"> <![%SMIL.transition-XLinkTarget;[ <!ATTLIST %SMIL.transitionFilter.qname; href %URI.datatype; #IMPLIED type (simple|extended|locator|arc) #FIXED 'simple' actuate (onLoad|onRequest) #FIXED 'onLoad' show (embed|new|replace) #FIXED 'embed' > ]]> <!ENTITY % SMIL.transition-targetElement "IGNORE"> <![%SMIL.transition-targetElement;[ <!ATTLIST %SMIL.transitionFilter.qname; targetElement IDREF #IMPLIED > ]]> ]]> <!-- End of InlineTransitions.module --> <!-- ================== FullScreenTransitionEffects ======================= --> <!ENTITY % SMIL.FullScreenTransitionEffects.module "IGNORE"> <![%SMIL.FullScreenTransitionEffects.module;[ <!-- ================== FullScreenTransitionEffects Entities ============ --> <!ENTITY % SMIL.scope-attrs " scope (region|screen) 'region' "> <!-- ================ Add attributes to region element ================== --> <!ATTLIST %SMIL.transition.qname; %SMIL.scope-attrs;> ]]> <!-- end FullScreenTransitionEffects.module --> <!-- end of SMIL-transition.mod -->
<!-- ====================================================================== --> <!-- SMIL 3.0 Animation Module ============================================ --> <!-- file: SMIL-anim.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Jacco van Ossenbruggen, Sjoerd Mullender. Revision: 1.7 Date: 2008/09/07 20:36:49 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Animation//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL-anim.mod" ====================================================================== --> <!ENTITY % SMIL.BasicAnimation.module "IGNORE"> <!-- ============================= Dependencies =========================== --> <!-- The integrating profile is expected to define the following entities, Unless the defaults provided are sufficient. --> <!-- SMIL.SplineAnimation.module entity: Define as "INCLUDE" if the integrating profile includes the SMIL 3.0 SplineAnimation Module, "IGNORE" if not. The default is "IGNORE", i.e. by default SplineAnimation is not included in the integrating language profile. --> <!ENTITY % SMIL.SplineAnimation.module "IGNORE"> <!-- Language Designer chooses to integrate targetElement or XLink attributes. To integrate the targetElement attribute, define the entity animation-targetElement as "INCLUDE"; to integrate the XLink attributes, define animation-XLinkTarget as "INCLUDE". One or the other MUST be defined. It is strongly recommended that only one of the two be defined. --> <![%SMIL.BasicAnimation.module;[ <!ENTITY % SMIL.animation-targetElement "IGNORE"> <![%SMIL.animation-targetElement;[ <!ENTITY % SMIL.animTargetElementAttr " targetElement IDREF #IMPLIED "> ]]> <!ENTITY % SMIL.animTargetElementAttr ""> <!ENTITY % SMIL.animation-XLinkTarget "IGNORE"> <![%SMIL.animation-XLinkTarget;[ <!ENTITY % SMIL.animTargetElementXLink " actuate (onRequest|onLoad) 'onLoad' href %URI.datatype; #IMPLIED show (new | embed | replace) #FIXED 'embed' type (simple | extended | locator | arc) #FIXED 'simple' "> ]]> <!ENTITY % SMIL.animTargetElementXLink ""> <!-- ========================== Attribute Groups ========================== --> <!-- All animation elements include these attributes --> <!ENTITY % SMIL.animAttrsCommon " %SMIL.Core.attrib; %SMIL.I18n.attrib; %SMIL.animTargetElementAttr; %SMIL.animTargetElementXLink; "> <!-- All except animateMotion need an identified target attribute --> <!ENTITY % SMIL.animAttrsNamedTarget " %SMIL.animAttrsCommon; attributeName NMTOKEN #REQUIRED attributeType (CSS | XML | auto) 'auto' "> <!-- All except set support the full animation-function specification, additive and cumulative animation. SplineAnimation adds the attributes keyTimes, keySplines and path, and the calcMode value "spline", to those of BasicAnimation. --> <![%SMIL.SplineAnimation.module;[ <!ENTITY % SMIL.splineAnimCalcModeValues "| spline"> <!ENTITY % SMIL.splineAnimValueAttrs " keyTimes CDATA #IMPLIED keySplines CDATA #IMPLIED "> <!ENTITY % SMIL.splineAnimPathAttr " path CDATA #IMPLIED "> ]]> <!ENTITY % SMIL.splineAnimCalcModeValues ""> <!ENTITY % SMIL.splineAnimValueAttrs ""> <!ENTITY % SMIL.splineAnimPathAttr ""> <!ENTITY % SMIL.animValueAttrs " %SMIL.BasicAnimation.attrib; calcMode (discrete|linear|paced %SMIL.splineAnimCalcModeValues;) 'linear' %SMIL.splineAnimValueAttrs; additive (replace | sum) 'replace' accumulate (none | sum) 'none' "> <!-- ========================== Animation Elements ======================== --> <!ENTITY % SMIL.animate.attrib ""> <!ENTITY % SMIL.animate.content "EMPTY"> <!ENTITY % SMIL.animate.qname "animate"> <!ELEMENT %SMIL.animate.qname; %SMIL.animate.content;> <!ATTLIST %SMIL.animate.qname; %SMIL.animate.attrib; %SMIL.animAttrsNamedTarget; %SMIL.animValueAttrs; > <!ENTITY % SMIL.set.attrib ""> <!ENTITY % SMIL.set.content "EMPTY"> <!ENTITY % SMIL.set.qname "set"> <!ELEMENT %SMIL.set.qname; %SMIL.set.content;> <!ATTLIST %SMIL.set.qname; %SMIL.set.attrib; %SMIL.animAttrsNamedTarget; to CDATA #IMPLIED > <!ENTITY % SMIL.animateMotion.attrib ""> <!ENTITY % SMIL.animateMotion.content "EMPTY"> <!ENTITY % SMIL.animateMotion.qname "animateMotion"> <!ELEMENT %SMIL.animateMotion.qname; %SMIL.animateMotion.content;> <!ATTLIST %SMIL.animateMotion.qname; %SMIL.animateMotion.attrib; %SMIL.animAttrsCommon; %SMIL.animValueAttrs; %SMIL.splineAnimPathAttr; origin (default) 'default' > <!ENTITY % SMIL.animateColor.attrib ""> <!ENTITY % SMIL.animateColor.content "EMPTY"> <!ENTITY % SMIL.animateColor.qname "animateColor"> <!ELEMENT %SMIL.animateColor.qname; %SMIL.animateColor.content;> <!ATTLIST %SMIL.animateColor.qname; %SMIL.animateColor.attrib; %SMIL.animAttrsNamedTarget; %SMIL.animValueAttrs; > ]]> <!-- BasicAnimation.module --> <!-- ========================== End Animation ============================= --> <!-- end of SMIL-anim.mod -->
<!-- ====================================================================== --> <!-- SMIL 3.0 State Modules =============================================== --> <!-- file: SMIL-state.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Revision: 1.8 Date: 2008/09/07 20:36:50 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ELEMENTS SMIL 3.0 State//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL-state.mod" =================================================================== --> <!-- ================== StateTest ========================================= --> <!ENTITY % SMIL.StateTest.module "IGNORE"> <![%SMIL.StateTest.module;[ <!-- this module only defines the expr attribute, for which see smil-attribs-1.mod --> ]]> <!-- ================== UserState ========================================= --> <!ENTITY % SMIL.UserState.module "IGNORE"> <![%SMIL.UserState.module;[ <!-- can be overridden by the profile --> <!ENTITY % SMIL.language-attrib-default "#IMPLIED"> <!ENTITY % SMIL.newvalue-ref-attrib-default "#IMPLIED"> <!ENTITY % SMIL.newvalue-name-attrib-default "#IMPLIED"> <!ENTITY % SMIL.state.attrib ""> <!ENTITY % SMIL.state.content "EMPTY"> <!ENTITY % SMIL.state.qname "state"> <!ELEMENT %SMIL.state.qname; %SMIL.state.content;> <!ATTLIST %SMIL.state.qname; %SMIL.state.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; language %URI.datatype; %SMIL.language-attrib-default; src %URI.datatype; #IMPLIED > <!ENTITY % SMIL.setvalue.attrib ""> <!ENTITY % SMIL.setvalue.content "EMPTY"> <!ENTITY % SMIL.setvalue.qname "setvalue"> <!ELEMENT %SMIL.setvalue.qname; %SMIL.setvalue.content;> <!ATTLIST %SMIL.setvalue.qname; %SMIL.setvalue.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; ref CDATA #REQUIRED value CDATA #REQUIRED > <!ENTITY % SMIL.newvalue.attrib ""> <!ENTITY % SMIL.newvalue.content "EMPTY"> <!ENTITY % SMIL.newvalue.qname "newvalue"> <!ELEMENT %SMIL.newvalue.qname; %SMIL.newvalue.content;> <!ATTLIST %SMIL.newvalue.qname; %SMIL.newvalue.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; ref CDATA %SMIL.newvalue-ref-attrib-default; where (before | after | child) 'child' name CDATA %SMIL.newvalue-name-attrib-default; value CDATA #IMPLIED > <!ENTITY % SMIL.delvalue.attrib ""> <!ENTITY % SMIL.delvalue.content "EMPTY"> <!ENTITY % SMIL.delvalue.qname "delvalue"> <!ELEMENT %SMIL.delvalue.qname; %SMIL.delvalue.content;> <!ATTLIST %SMIL.delvalue.qname; %SMIL.delvalue.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; ref CDATA #REQUIRED > ]]> <!-- ================== StateSubmission =================================== --> <!ENTITY % SMIL.StateSubmission.module "IGNORE"> <![%SMIL.StateSubmission.module;[ <!ENTITY % SMIL.method-types ""> <!ENTITY % SMIL.submission.attrib ""> <!ENTITY % SMIL.submission.content "EMPTY"> <!ENTITY % SMIL.submission.qname "submission"> <!ELEMENT %SMIL.submission.qname; %SMIL.submission.content;> <!ATTLIST %SMIL.submission.qname; %SMIL.submission.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; ref CDATA #IMPLIED action %URI.datatype; #REQUIRED method (put | get %SMIL.method-types;) #REQUIRED replace (all | instance | none) #IMPLIED target CDATA #IMPLIED > <!ENTITY % SMIL.send.attrib ""> <!ENTITY % SMIL.send.content "EMPTY"> <!ENTITY % SMIL.send.qname "send"> <!ELEMENT %SMIL.send.qname; %SMIL.send.content;> <!ATTLIST %SMIL.send.qname; %SMIL.send.attrib; %SMIL.Core.attrib; %SMIL.I18n.attrib; submission IDREF #IMPLIED > ]]> <!-- ================== StateInterpolation ================================ --> <!ENTITY % SMIL.StateInterpolation.module "IGNORE"> <![%SMIL.StateInterpolation.module;[ <!-- no new elements or attributes --> ]]> <!-- end of SMIL-state.mod -->
<!-- ====================================================================== --> <!-- SMIL 3.0 Document Model Module ======================================= --> <!-- file: smil-profile-model-1.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Warner ten Kate, Jacco van Ossenbruggen, Aaron Cohen, Sjoerd Mullender. Id: smil-profile-model-1.mod,v 1.22 2008/09/07 20:36:50 smullend Exp Date: 2008/09/07 20:36:50 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ENTITIES SMIL 3.0 Document Model 1.0//EN" SYSTEM "http://www.w3.org/2008/SMIL30/smil-profile-model-1.mod" ====================================================================== --> <!-- This file defines the SMIL 3.0 Document Model. All attributes and content models are defined in the second half of this file. We first start with some utility definitions. These are mainly used to simplify the use of Modules in the second part of the file. Note that in this model, the Metainformation module is required. --> <!-- ================== Util: Body - Content Control ====================== --> <!ENTITY % SMIL.BasicContentControl.module "IGNORE"> <![%SMIL.BasicContentControl.module;[ <!ENTITY % SMIL.switch-control "| %SMIL.switch.qname;"> ]]> <!ENTITY % SMIL.switch-control ""> <!ENTITY % SMIL.PrefetchControl.module "IGNORE"> <![%SMIL.PrefetchControl.module;[ <!ENTITY % SMIL.prefetch-control "| %SMIL.prefetch.qname;"> ]]> <!ENTITY % SMIL.prefetch-control ""> <!ENTITY % SMIL.content-control "%SMIL.switch-control;%SMIL.prefetch-control;"> <!ENTITY % SMIL.content-control-attrs "%SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.skip-content.attrib;"> <!-- ================== Util: Head ======================================== --> <!ENTITY % SMIL.head-meta.content "%SMIL.metadata.qname;"> <!ENTITY % SMIL.TextStyling.module "IGNORE"> <![%SMIL.TextStyling.module;[ <!ENTITY % SMIL.head-textStyling.content ",((%SMIL.textStyling.qname;), %SMIL.meta.qname;*)?"> ]]> <!ENTITY % SMIL.head-textStyling.content ""> <!ENTITY % SMIL.StructureLayout.module "IGNORE"> <![%SMIL.StructureLayout.module;[ <!ENTITY % SMIL.head-layout.content ",((%SMIL.layout.qname; %SMIL.switch-control;), %SMIL.meta.qname;*)?"> ]]> <!ENTITY % SMIL.head-layout.content ""> <!ENTITY % SMIL.CustomTestAttributes.module "IGNORE"> <![%SMIL.CustomTestAttributes.module;[ <!ENTITY % SMIL.head-control.content ",((%SMIL.customAttributes.qname;), %SMIL.meta.qname;*)?"> ]]> <!ENTITY % SMIL.head-control.content ""> <!ENTITY % SMIL.BasicTransitions.module "IGNORE"> <![%SMIL.BasicTransitions.module;[ <!ENTITY % SMIL.head-transition.content ",((%SMIL.transition.qname;+),%SMIL.meta.qname;*)?"> ]]> <!ENTITY % SMIL.head-transition.content ""> <!ENTITY % SMIL.MediaParam.module "IGNORE"> <![%SMIL.MediaParam.module;[ <!ENTITY % SMIL.head-media.content ",((%SMIL.paramGroup.qname;+), %SMIL.meta.qname;*)?"> ]]> <!ENTITY % SMIL.head-media.content ""> <!ENTITY % SMIL.UserState.module "IGNORE"> <![%SMIL.UserState.module;[ <!ENTITY % SMIL.head-state.content ",((%SMIL.state.qname;), %SMIL.meta.qname;*)?"> ]]> <!ENTITY % SMIL.head-state.content ""> <!ENTITY % SMIL.StateSubmission.module "IGNORE"> <![%SMIL.StateSubmission.module;[ <!ENTITY % SMIL.head-submission.content ",((%SMIL.submission.qname;),%SMIL.meta.qname;*)*"> ]]> <!ENTITY % SMIL.head-submission.content ""> <!--=================== Util: Body - Animation ============================ --> <!ENTITY % SMIL.BasicAnimation.module "IGNORE"> <![%SMIL.BasicAnimation.module;[ <!ENTITY % SMIL.animation.elements "| %SMIL.animate.qname; | %SMIL.set.qname; | %SMIL.animateMotion.qname; | %SMIL.animateColor.qname;"> <!ENTITY % SMIL.simple-animation.elements "| %SMIL.animate.qname; | %SMIL.set.qname;"> ]]> <!ENTITY % SMIL.animation.elements ""> <!ENTITY % SMIL.simple-animation.elements ""> <!--=================== Util: Body - Media ================================ --> <!ENTITY % SMIL.BasicText.module "IGNORE"> <![%SMIL.BasicText.module;[ <!ENTITY % SMIL.BasicText.content "| %SMIL.smilText.qname;"> ]]> <!ENTITY % SMIL.BasicText.content ""> <!ENTITY % SMIL.BrushMedia.module "IGNORE"> <![%SMIL.BrushMedia.module;[ <!ENTITY % SMIL.BrushMedia.content "| %SMIL.brush.qname;"> ]]> <!ENTITY % SMIL.BrushMedia.content ""> <!ENTITY % SMIL.Timesheet.module "IGNORE"> <![%SMIL.Timesheet.module;[ <!ENTITY % SMIL.Timesheet.content "| %SMIL.item.qname;"> ]]> <!ENTITY % SMIL.Timesheet.content ""> <!ENTITY % SMIL.BasicMedia.module "IGNORE"> <![%SMIL.BasicMedia.module;[ <!ENTITY % SMIL.media-object "| %SMIL.audio.qname; | %SMIL.video.qname; | %SMIL.animation.qname; | %SMIL.text.qname; | %SMIL.img.qname; | %SMIL.textstream.qname; | %SMIL.ref.qname; %SMIL.BrushMedia.content; %SMIL.BasicText.content; %SMIL.Timesheet.content;"> ]]> <!ENTITY % SMIL.media-object "%SMIL.BrushMedia.content; %SMIL.BasicText.content; %SMIL.Timesheet.content;"> <!--=================== Util: Body - State ================================ --> <![%SMIL.StateSubmission.module;[ <!ENTITY % SMIL.send.element "| %SMIL.send.qname;"> <!ENTITY % SMIL.submission.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.submission-post "IGNORE"> <![%SMIL.submission-post;[ <!ENTITY % SMIL.method-types "| post"> ]]> ]]> <!ENTITY % SMIL.send.element ""> <!ENTITY % SMIL.UserState.module "IGNORE"> <![%SMIL.UserState.module;[ <!ENTITY % SMIL.state.elements " | %SMIL.newvalue.qname; | %SMIL.delvalue.qname; | %SMIL.setvalue.qname; %SMIL.send.element; "> <!ENTITY % SMIL.state.attrib "%SMIL.skip-content.attrib;"> ]]> <!ENTITY % SMIL.state.elements "%SMIL.send.element;"> <!-- ================== Util: Body - Linking ============================== --> <!ENTITY % SMIL.BasicLinking.module "IGNORE"> <!ENTITY % SMIL.BasicLinking.deprecated.module "IGNORE"> <![%SMIL.BasicLinking.module;[ <![%SMIL.BasicLinking.deprecated.module;[ <!ENTITY % SMIL.anchor-control "| %SMIL.anchor.qname; | %SMIL.area.qname;"> ]]> <!ENTITY % SMIL.anchor-control "| %SMIL.area.qname;"> <!ENTITY % SMIL.a-control "| %SMIL.a.qname;"> ]]> <!ENTITY % SMIL.anchor-control ""> <!ENTITY % SMIL.a-control ""> <!--=================== Util: Body - Timing =============================== --> <!ENTITY % SMIL.BasicTimeContainers.class "%SMIL.par.qname; | %SMIL.seq.qname;"> <!ENTITY % SMIL.BasicExclTimeContainers.module "IGNORE"> <![%SMIL.BasicExclTimeContainers.module;[ <!ENTITY % SMIL.ExclTimeContainers.class "|%SMIL.excl.qname;"> ]]> <!ENTITY % SMIL.ExclTimeContainers.class ""> <!ENTITY % SMIL.timecontainer.class "%SMIL.BasicTimeContainers.class; %SMIL.ExclTimeContainers.class;"> <!ENTITY % SMIL.timecontainer.content "%SMIL.timecontainer.class; %SMIL.media-object; %SMIL.animation.elements; %SMIL.content-control; %SMIL.a-control; %SMIL.state.elements;"> <!ENTITY % SMIL.smil-basictime.attrib " %SMIL.BasicInlineTiming.attrib; %SMIL.RepeatTiming.attrib; %SMIL.RepeatTiming.deprecated.attrib; %SMIL.MinMaxTiming.attrib; "> <!ENTITY % SMIL.timecontainer.attrib " %SMIL.smil-basictime.attrib; %SMIL.TimeManipulations.attrib; %SMIL.RestartTiming.attrib; %SMIL.RestartDefaultTiming.attrib; %SMIL.SyncBehavior.attrib; %SMIL.SyncBehaviorDefault.attrib; %SMIL.SyncMaster.attrib; %SMIL.fillDefault.attrib; "> <!-- ====================================================================== --> <!-- ====================================================================== --> <!-- ====================================================================== --> <!-- The actual content model and attribute definitions for each module sections follow below. --> <!-- ================== Linking =========================================== --> <!ENTITY % SMIL.BasicLinking.module "IGNORE"> <![%SMIL.BasicLinking.module;[ <!ENTITY % SMIL.a.content "(%SMIL.timecontainer.class; %SMIL.media-object; %SMIL.animation.elements; %SMIL.state.elements; %SMIL.content-control; |%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.area.content "(%SMIL.metadata.qname; %SMIL.simple-animation.elements;)*"> <!ENTITY % SMIL.anchor.content "(%SMIL.metadata.qname; %SMIL.simple-animation.elements;)*"> <!ENTITY % SMIL.a.attrib " %SMIL.smil-basictime.attrib; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %XHTML-Role-attrib; "> <!ENTITY % SMIL.area.attrib " %SMIL.smil-basictime.attrib; %SMIL.content-control-attrs; %SMIL.StateTest.attrib; %XHTML-Role-attrib; "> <!ENTITY % SMIL.anchor.attrib " %SMIL.smil-basictime.attrib; %SMIL.content-control-attrs; %SMIL.StateTest.attrib; %XHTML-Role-attrib; "> ]]> <!-- ================== Content Control =================================== --> <![%SMIL.BasicAnimation.module;[ <!ENTITY % SMIL.animation-switch "((%SMIL.animate.qname; | %SMIL.set.qname; | %SMIL.animateMotion.qname; | %SMIL.animateColor.qname;), (%SMIL.metadata.qname; %SMIL.switch-control;)*)*,"> ]]> <!ENTITY % SMIL.animation-switch ""> <!-- The content model of the switch element is very complex: - if switch occurs inside the head element, the only allowed content is layout (and Metainformation and nested switch); - if switch occurs inside a media element, the only allowed content is param, area (anchor), and animation elements (and Metainformation and nested switch); - if switch occurs inside a par, seq or excl element, the only allowed content is time containers (par, seq, excl), media elements (ref and friends, smilText, etc.), animation elements, and the a and prefetch elements (and Metainformation and nested switch). Note that there is overlap in the allowed content for the various cases. --> <![%SMIL.MediaParam.module;[ <![%SMIL.BasicLinking.module;[ <!ENTITY % SMIL.param-anchor "(%SMIL.param.qname; %SMIL.anchor-control;),"> ]]> <!ENTITY % SMIL.param-anchor "%SMIL.param.qname;,"> ]]> <![%SMIL.BasicLinking.module;[ <!ENTITY % SMIL.param-anchor "(%SMIL.anchor.qname; | %SMIL.area.qname;),"> ]]> <!ENTITY % SMIL.param-anchor ""> <!ENTITY % SMIL.switch.content "((%SMIL.metadata.qname; %SMIL.switch-control;)*, ((%SMIL.animation-switch; (((%SMIL.timecontainer.class; %SMIL.media-object; %SMIL.state.elements; %SMIL.prefetch-control; %SMIL.a-control;)+, (%SMIL.metadata.qname; %SMIL.animation.elements; %SMIL.switch-control;)*)+ | (%SMIL.param-anchor; (%SMIL.metadata.qname; %SMIL.animation.elements; %SMIL.switch-control;)*)+)) | (%SMIL.layout.qname;, (%SMIL.metadata.qname; %SMIL.switch-control;)*)*))"> <!ENTITY % SMIL.switch.attrib " %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %XHTML-Role-attrib; "> <!ENTITY % SMIL.prefetch.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.prefetch.attrib " %SMIL.timecontainer.attrib; %SMIL.MediaClip.attrib; %SMIL.MediaClip.attrib.deprecated; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.skip-content.attrib; %SMIL.StateTest.attrib; "> <!ENTITY % SMIL.customAttributes.content " ((%SMIL.metadata.qname;)*, (%SMIL.customTest.qname;, (%SMIL.metadata.qname;)*)+)"> <!ENTITY % SMIL.customAttributes.attrib " %SMIL.skip-content.attrib; "> <!ENTITY % SMIL.customTest.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.customTest.attrib " %SMIL.skip-content.attrib; "> <!-- ================== Animation ========================================= --> <![%SMIL.BasicAnimation.module;[ <!-- choose targetElement or XLink: --> <!ENTITY % SMIL.animation-targetElement "IGNORE"> <!ENTITY % SMIL.animation-XLinkTarget "IGNORE"> <!ENTITY % SMIL.animate.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.animateColor.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.animateMotion.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.set.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.animate.attrib " %SMIL.smil-basictime.attrib; %SMIL.TimeManipulations.attrib; %SMIL.RestartTiming.attrib; %SMIL.RestartDefaultTiming.attrib; %SMIL.fill.attrib; %SMIL.fillDefault.attrib; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.skip-content.attrib; %SMIL.StateTest.attrib; "> <!ENTITY % SMIL.animateColor.attrib " %SMIL.smil-basictime.attrib; %SMIL.TimeManipulations.attrib; %SMIL.RestartTiming.attrib; %SMIL.RestartDefaultTiming.attrib; %SMIL.fill.attrib; %SMIL.fillDefault.attrib; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.skip-content.attrib; %SMIL.StateTest.attrib; "> <!ENTITY % SMIL.animateMotion.attrib " %SMIL.smil-basictime.attrib; %SMIL.TimeManipulations.attrib; %SMIL.RestartTiming.attrib; %SMIL.RestartDefaultTiming.attrib; %SMIL.fill.attrib; %SMIL.fillDefault.attrib; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.skip-content.attrib; %SMIL.StateTest.attrib; "> <!ENTITY % SMIL.set.attrib " %SMIL.smil-basictime.attrib; %SMIL.TimeManipulations.attrib; %SMIL.RestartTiming.attrib; %SMIL.RestartDefaultTiming.attrib; %SMIL.fill.attrib; %SMIL.fillDefault.attrib; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.skip-content.attrib; %SMIL.StateTest.attrib; "> ]]> <!-- ================== Layout ============================================ --> <!ENTITY % SMIL.BasicLayout.module "IGNORE"> <![%SMIL.BasicLayout.module;[ <!ENTITY % SMIL.BasicLayout-content "|%SMIL.region.qname;|%SMIL.root-layout.qname;"> ]]> <!ENTITY % SMIL.BasicLayout-content ""> <!ENTITY % SMIL.MultiWindowLayout.module "IGNORE"> <![%SMIL.MultiWindowLayout.module;[ <!ENTITY % SMIL.MultiWindowLayout-content "|%SMIL.topLayout.qname;"> ]]> <!ENTITY % SMIL.MultiWindowLayout-content ""> <!ENTITY % SMIL.AlignmentLayout.module "IGNORE"> <![%SMIL.AlignmentLayout.module;[ <!ENTITY % SMIL.AlignmentLayout-content "|%SMIL.regPoint.qname;"> ]]> <!ENTITY % SMIL.AlignmentLayout-content ""> <!ENTITY % SMIL.SubRegionLayout.module "IGNORE"> <![%SMIL.SubRegionLayout.module;[ <!ENTITY % SMIL.SubRegionLayout-content "|%SMIL.region.qname;"> ]]> <!ENTITY % SMIL.SubRegionLayout-content ""> <!ENTITY % SMIL.layout.content "(%SMIL.metadata.qname; %SMIL.BasicLayout-content; %SMIL.MultiWindowLayout-content; %SMIL.AlignmentLayout-content;)*"> <!ENTITY % SMIL.region.content "(%SMIL.metadata.qname; %SMIL.SubRegionLayout-content;)*"> <![%SMIL.MultiWindowLayout.module;[ <!ENTITY % SMIL.topLayout.content "(%SMIL.region.qname; |%SMIL.metadata.qname;)*"> ]]> <![%SMIL.BasicLayout.module;[ <!ENTITY % SMIL.rootlayout.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.rootlayout.attrib " %SMIL.content-control-attrs; "> <!ENTITY % SMIL.region.attrib " %SMIL.content-control-attrs; %SMIL.BasicText.attrib; %SMIL.MediaOpacity.attrib; %SMIL.MediaPanZoom.attrib; %SMIL.MediaRenderAttributes.attrib; %SMIL.textAlign.attrib; %SMIL.textDirection.attrib; %SMIL.textMode.attrib; %SMIL.textPlace.attrib; %SMIL.TextStyling.attrib; %SMIL.textWritingMode.attrib; %XHTML-Role-attrib; "> ]]> <![%SMIL.AlignmentLayout.module;[ <!ENTITY % SMIL.regPoint.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.regPoint.attrib " %SMIL.content-control-attrs; "> ]]> <![%SMIL.SubRegionLayout.module;[ <!ENTITY % SMIL.topLayout.attrib " %SMIL.content-control-attrs; "> ]]> <!ENTITY % SMIL.layout.attrib " %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; "> <!-- ================== Media ============================================ --> <![%SMIL.MediaParam.module;[ <!ENTITY % SMIL.param.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.param.attrib "%SMIL.content-control-attrs;"> <!ENTITY % SMIL.paramGroup.content "(%SMIL.param.qname;|%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.paramGroup.attrib " %SMIL.skip-content.attrib; "> <!ENTITY % SMIL.param-control "| %SMIL.param.qname;"> <!ENTITY % SMIL.paramGroup-control "| %SMIL.paramGroup.qname;"> ]]> <!ENTITY % SMIL.param-control ""> <!ENTITY % SMIL.paramGroup-control ""> <!ENTITY % SMIL.media-object.content "(%SMIL.metadata.qname; %SMIL.param-control; %SMIL.anchor-control; %SMIL.switch-control; %SMIL.animation.elements;)*"> <!ENTITY % SMIL.media-object.attrib " %SMIL.timecontainer.attrib; %SMIL.endsync.media.attrib; %SMIL.fill.attrib; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.regionAttr.attrib; %SMIL.Transition.attrib; %SMIL.SubRegionLayout.attrib; %SMIL.OverrideLayout.attrib; %SMIL.RegistrationPoint.attrib; %SMIL.tabindex.attrib; %SMIL.MediaObject.attrib; %SMIL.StateTest.attrib; %XHTML-Role-attrib; "> <!ENTITY % SMIL.brush.attrib "%SMIL.skip-content.attrib;"> <!-- ================== Metadata ========================================== --> <!ENTITY % SMIL.meta.content "EMPTY"> <!ENTITY % SMIL.meta.attrib "%SMIL.skip-content.attrib;"> <!ENTITY % SMIL.metadata.content "EMPTY"> <!ENTITY % SMIL.metadata.attrib "%SMIL.skip-content.attrib;"> <!-- ================== smilText ========================================== --> <!ENTITY % SMIL.smilText.content "( #PCDATA |%SMIL.metadata.qname; |%SMIL.tev.qname; |%SMIL.clear.qname; |%SMIL.br.qname; |%SMIL.span.qname; |%SMIL.p.qname; |%SMIL.div.qname; %SMIL.param-control; )*"> <!ENTITY % SMIL.smilText.attrib " %SMIL.skip-content.attrib; %SMIL.media-object.attrib; "> <!ENTITY % SMIL.tev.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.clear.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.br.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.div.content "( #PCDATA |%SMIL.metadata.qname; |%SMIL.tev.qname; |%SMIL.clear.qname; |%SMIL.br.qname; |%SMIL.div.qname; |%SMIL.p.qname; |%SMIL.span.qname; )*"> <!ENTITY % SMIL.p.content "( #PCDATA |%SMIL.metadata.qname; |%SMIL.tev.qname; |%SMIL.clear.qname; |%SMIL.br.qname; |%SMIL.span.qname; )*"> <!ENTITY % SMIL.span.content "( #PCDATA |%SMIL.metadata.qname; |%SMIL.tev.qname; |%SMIL.clear.qname; |%SMIL.br.qname; |%SMIL.span.qname; )*"> <!ENTITY % SMIL.textStyle.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.textStyling.content "((%SMIL.metadata.qname;)*,(%SMIL.textStyle.qname;,(%SMIL.metadata.qname;)*)+)"> <!ENTITY % SMIL.textStyle.attrib " %SMIL.Test.attrib; "> <!-- ================== UserState ========================================= --> <!ENTITY % SMIL.language-attrib-default "'http://www.w3.org/TR/1999/REC-xpath-19991116'"> <!ENTITY % SMIL.newvalue-ref-attrib-default "'/*'"> <!ENTITY % SMIL.newvalue-name-attrib-default "#REQUIRED"> <!ENTITY % SMIL.newvalue.attrib " %SMIL.smil-basictime.attrib; %SMIL.TimeManipulations.attrib; %SMIL.RestartTiming.attrib; %SMIL.RestartDefaultTiming.attrib; %SMIL.fillDefault.attrib; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.skip-content.attrib; %SMIL.StateTest.attrib; "> <!ENTITY % SMIL.setvalue.attrib " %SMIL.smil-basictime.attrib; %SMIL.TimeManipulations.attrib; %SMIL.RestartTiming.attrib; %SMIL.RestartDefaultTiming.attrib; %SMIL.fillDefault.attrib; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.skip-content.attrib; %SMIL.StateTest.attrib; "> <!ENTITY % SMIL.delvalue.attrib " %SMIL.smil-basictime.attrib; %SMIL.TimeManipulations.attrib; %SMIL.RestartTiming.attrib; %SMIL.RestartDefaultTiming.attrib; %SMIL.fillDefault.attrib; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.skip-content.attrib; %SMIL.StateTest.attrib; "> <!ENTITY % SMIL.newvalue.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.setvalue.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.delvalue.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.send.attrib " %SMIL.smil-basictime.attrib; %SMIL.TimeManipulations.attrib; %SMIL.RestartTiming.attrib; %SMIL.RestartDefaultTiming.attrib; %SMIL.fillDefault.attrib; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.skip-content.attrib; %SMIL.StateTest.attrib; "> <!ENTITY % SMIL.send.content "(%SMIL.metadata.qname;)*"> <!-- ================== Structure ========================================= --> <!ENTITY % SMIL.smil.content "((%SMIL.metadata.qname;)*, (%SMIL.head.qname;, (%SMIL.metadata.qname;)*)?, (%SMIL.body.qname;, (%SMIL.metadata.qname;)*)?)"> <!ENTITY % SMIL.head.content "( %SMIL.meta.qname;* %SMIL.head-control.content; ,((%SMIL.head-meta.content;), %SMIL.meta.qname;*)? %SMIL.head-textStyling.content; %SMIL.head-layout.content; %SMIL.head-state.content; %SMIL.head-submission.content; %SMIL.head-transition.content; %SMIL.head-media.content; )"> <!ENTITY % SMIL.body.content "(%SMIL.timecontainer.class; %SMIL.media-object; %SMIL.animation.elements; %SMIL.state.elements; %SMIL.content-control; %SMIL.a-control; |%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.smil.attrib " %SMIL.Test.attrib; %SMIL.ModuleNamespaces; %ITSNS; %XHTMLNS; "> <!ENTITY % SMIL.head.attrib ""> <!ENTITY % SMIL.body.attrib " %SMIL.timecontainer.attrib; %SMIL.Description.attrib; %SMIL.fill.attrib; "> <!-- ================== Transitions ======================================= --> <!ENTITY % SMIL.transition.content "(%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.transition.attrib "%SMIL.content-control-attrs; "> <!-- ================== Timing ============================================ --> <!ENTITY % SMIL.par.attrib " %SMIL.endsync.attrib; %SMIL.fill.attrib; %SMIL.timecontainer.attrib; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.regionAttr.attrib; %SMIL.StateTest.attrib; %XHTML-Role-attrib; "> <!ENTITY % SMIL.seq.attrib " %SMIL.fill.attrib; %SMIL.timecontainer.attrib; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.regionAttr.attrib; %SMIL.StateTest.attrib; %SMIL.Timesheet.attrib; %XHTML-Role-attrib; "> <!ENTITY % SMIL.excl.attrib " %SMIL.endsync.attrib; %SMIL.fill.attrib; %SMIL.timecontainer.attrib; %SMIL.Test.attrib; %SMIL.customTestAttr.attrib; %SMIL.regionAttr.attrib; %SMIL.skip-content.attrib; %SMIL.StateTest.attrib; %XHTML-Role-attrib; "> <!ENTITY % SMIL.par.content "(%SMIL.timecontainer.content;|%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.seq.content "(%SMIL.timecontainer.content;|%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.BasicPriorityClassContainers.module "IGNORE"> <![%SMIL.BasicPriorityClassContainers.module;[ <!-- An excl element contains either only priorityClass children or no priorityClass children. It is made more complex by the fact that in either case there may be switch, meta, and metadata children interspersed. --> <!ENTITY % SMIL.excl.content " ((%SMIL.metadata.qname;)*, (((%SMIL.timecontainer.content;), (%SMIL.metadata.qname;)*)* | (%SMIL.priorityClass.qname;, (%SMIL.metadata.qname;)*)+))"> <!ENTITY % SMIL.priorityClass.attrib " %SMIL.content-control-attrs; "> <!ENTITY % SMIL.priorityClass.content "(%SMIL.timecontainer.content; | %SMIL.metadata.qname;)*"> ]]> <!ENTITY % SMIL.excl.content "(%SMIL.timecontainer.content; | %SMIL.metadata.qname;)*"> <!-- External Timing --> <!ENTITY % SMIL.Timesheet.module "IGNORE"> <![%SMIL.Timesheet.module;[ <!ENTITY % SMIL.timesheet.content "(%SMIL.timecontainer.class; %SMIL.media-object; %SMIL.animation.elements; %SMIL.state.elements; %SMIL.content-control; %SMIL.a-control; |%SMIL.metadata.qname;)*"> <!ENTITY % SMIL.timesheet.attrib " %SMIL.media-object.attrib; "> ]]> <!-- end of smil-profile-model-1.mod -->
<!-- ...................................................................... --> <!-- SMIL 3.0 Language DTD ................................................ --> <!-- file: SMIL30Language.dtd This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Jacco van Ossenbruggen, Sjoerd Mullender. Revision: 1.8 Date: 2008/09/07 20:36:50 This is the driver file for the SMIL 3.0 Language Profile DTD. This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//DTD SMIL 3.0 Language//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL30Language.dtd" --> <!-- Define the prefix to be used (none) --> <!ENTITY % NS.prefixed "IGNORE" > <!-- Define the default for the baseProfile attribute --> <!ENTITY % SMIL.baseProfile.default "#FIXED 'Language'"> <!-- Define which modules to include --> <!-- Structure --> <!ENTITY % SMIL.Structure.module "INCLUDE"> <!ENTITY % SMIL.Identity.module "INCLUDE"> <!-- Media Object --> <!ENTITY % SMIL.BasicMedia.module "INCLUDE"> <!ENTITY % SMIL.BrushMedia.module "INCLUDE"> <!ENTITY % SMIL.MediaAccessibility.module "INCLUDE"> <!ENTITY % SMIL.MediaClipMarkers.module "INCLUDE"> <!ENTITY % SMIL.MediaClipping.module "INCLUDE"> <!ENTITY % SMIL.MediaDescription.module "INCLUDE"> <!ENTITY % SMIL.MediaOpacity.module "INCLUDE"> <!ENTITY % SMIL.MediaPanZoom.module "INCLUDE"> <!ENTITY % SMIL.MediaParam.module "INCLUDE"> <!ENTITY % SMIL.MediaRenderAttributes.module "INCLUDE"> <!-- Timing and Synchronization --> <!ENTITY % SMIL.AccessKeyTiming.module "INCLUDE"> <!ENTITY % SMIL.BasicExclTimeContainers.module "INCLUDE"> <!ENTITY % SMIL.BasicInlineTiming.module "INCLUDE"> <!ENTITY % SMIL.BasicPriorityClassContainers.module "INCLUDE"> <!ENTITY % SMIL.BasicTimeContainers.module "INCLUDE"> <!ENTITY % SMIL.DOMTimingMethods.module "IGNORE"> <!ENTITY % SMIL.EventTiming.module "INCLUDE"> <!ENTITY % SMIL.FillDefault.module "INCLUDE"> <!ENTITY % SMIL.MediaMarkerTiming.module "INCLUDE"> <!ENTITY % SMIL.MinMaxTiming.module "IGNORE"> <!ENTITY % SMIL.MultiArcTiming.module "INCLUDE"> <!ENTITY % SMIL.RepeatTiming.module "INCLUDE"> <!ENTITY % SMIL.RepeatValueTiming.module "INCLUDE"> <!ENTITY % SMIL.RestartDefault.module "INCLUDE"> <!ENTITY % SMIL.RestartTiming.module "INCLUDE"> <!ENTITY % SMIL.SyncbaseTiming.module "INCLUDE"> <!ENTITY % SMIL.SyncBehaviorDefault.module "INCLUDE"> <!ENTITY % SMIL.SyncBehavior.module "INCLUDE"> <!ENTITY % SMIL.SyncMaster.module "IGNORE"> <!ENTITY % SMIL.TimeContainerAttributes.module "IGNORE"> <!ENTITY % SMIL.WallclockTiming.module "INCLUDE"> <!-- Content Control --> <!ENTITY % SMIL.BasicContentControl.module "INCLUDE"> <!ENTITY % SMIL.CustomTestAttributes.module "INCLUDE"> <!ENTITY % SMIL.PrefetchControl.module "INCLUDE"> <!ENTITY % SMIL.RequiredContentControl.module "INCLUDE"> <!ENTITY % SMIL.SkipContentControl.module "INCLUDE"> <!-- Layout --> <!ENTITY % SMIL.AlignmentLayout.module "INCLUDE"> <!ENTITY % SMIL.AudioLayout.module "INCLUDE"> <!ENTITY % SMIL.BackgroundTilingLayout.module "INCLUDE"> <!ENTITY % SMIL.BasicLayout.module "INCLUDE"> <!ENTITY % SMIL.MultiWindowLayout.module "INCLUDE"> <!ENTITY % SMIL.OverrideLayout.module "INCLUDE"> <!ENTITY % SMIL.StructureLayout.module "INCLUDE"> <!ENTITY % SMIL.SubRegionLayout.module "INCLUDE"> <!-- smilText --> <!ENTITY % SMIL.BasicText.module "INCLUDE"> <!ENTITY % SMIL.TextMotion.module "INCLUDE"> <!ENTITY % SMIL.TextStyling.module "INCLUDE"> <!-- Linking --> <!ENTITY % SMIL.BasicLinking.module "INCLUDE"> <!ENTITY % SMIL.LinkingAttributes.module "INCLUDE"> <!ENTITY % SMIL.ObjectLinking.module "INCLUDE"> <!-- Metainformation --> <!ENTITY % SMIL.Metainformation.module "INCLUDE"> <!-- Transition Effects --> <!ENTITY % SMIL.BasicTransitions.module "INCLUDE"> <!ENTITY % SMIL.FullScreenTransitionEffects.module "INCLUDE"> <!ENTITY % SMIL.InlineTransitions.module "IGNORE"> <!ENTITY % SMIL.TransitionModifiers.module "INCLUDE"> <!-- Animation --> <!ENTITY % SMIL.BasicAnimation.module "INCLUDE"> <!ENTITY % SMIL.SplineAnimation.module "IGNORE"> <!-- State --> <!ENTITY % SMIL.StateInterpolation.module "INCLUDE"> <!ENTITY % SMIL.StateSubmission.module "INCLUDE"> <!ENTITY % SMIL.StateTest.module "INCLUDE"> <!ENTITY % SMIL.UserState.module "INCLUDE"> <!-- Time Manipulation --> <!ENTITY % SMIL.TimeManipulations.module "IGNORE"> <!-- External Timing --> <!ENTITY % SMIL.Timesheet.module "IGNORE"> <!-- Define which variants to use --> <!ENTITY % SMIL.animation-targetElement "INCLUDE"> <!ENTITY % SMIL.animation-XLinkTarget "IGNORE"> <!ENTITY % SMIL.transition-targetElement "INCLUDE"> <!ENTITY % SMIL.transition-XLinkTarget "IGNORE"> <!ENTITY % SMIL.ContentControl.deprecated.module "INCLUDE"> <!ENTITY % SMIL.MediaClipping.deprecated.module "INCLUDE"> <!ENTITY % SMIL.RepeatTiming.deprecated.module "INCLUDE"> <!ENTITY % SMIL.BasicLinking.deprecated.module "INCLUDE"> <!ENTITY % SMIL.IncludeModuleNamespaces "IGNORE"> <!ENTITY % SMIL.ITS-Attributes.module "INCLUDE"> <!ENTITY % SMIL.RoleAttributes.module "IGNORE"> <!ENTITY % SMIL.submission-post "INCLUDE"> <!-- Define the Content Model --> <!ENTITY % smil-model.mod PUBLIC "-//W3C//ENTITIES SMIL 3.0 Document Model 1.0//EN" "smil-profile-model-1.mod" > <!-- Modular Framework Module ............................................ --> <!ENTITY % smil-framework.module "INCLUDE" > <![%smil-framework.module;[ <!ENTITY % smil-framework.mod PUBLIC "-//W3C//ENTITIES SMIL 3.0 Modular Framework 1.0//EN" "smil-framework-1.mod" > %smil-framework.mod;]]> <!-- List module files to include --> <!ENTITY % SMIL.anim-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Animation//EN" "SMIL-anim.mod"> <!ENTITY % SMIL.control-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Content Control//EN" "SMIL-control.mod"> <!ENTITY % SMIL.layout-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Layout//EN" "SMIL-layout.mod"> <!ENTITY % SMIL.link-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Linking//EN" "SMIL-link.mod"> <!ENTITY % SMIL.media-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Media Objects//EN" "SMIL-media.mod"> <!ENTITY % SMIL.meta-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Document Metainformation//EN" "SMIL-metainformation.mod"> <!ENTITY % SMIL.struct-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Document Structure//EN" "SMIL-struct.mod"> <!ENTITY % SMIL.text-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 SMILtext//EN" "SMIL-smiltext.mod"> <!ENTITY % SMIL.state-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 State//EN" "SMIL-state.mod"> <!ENTITY % SMIL.timing-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Timing//EN" "SMIL-timing.mod"> <!ENTITY % SMIL.transition-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Transition//EN" "SMIL-transition.mod"> <!-- Include module files --> %SMIL.struct-mod; %SMIL.anim-mod; %SMIL.control-mod; %SMIL.meta-mod; %SMIL.layout-mod; %SMIL.link-mod; %SMIL.media-mod; %SMIL.text-mod; %SMIL.state-mod; %SMIL.timing-mod; %SMIL.transition-mod; <!-- end of SMIL30Language.dtd -->
<!-- ...................................................................... --> <!-- SMIL 3.0 Unified Mobile DTD ......................................... --> <!-- file: SMIL30UnifiedMobile.dtd This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Sjoerd Mullender. Revision: 1.3 Date: 2008/09/07 20:36:50 This is the driver file for the SMIL 3.0 Unified Mobile Profile DTD. This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//DTD SMIL 3.0 Unified Mobile//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL30UnifiedMobile.dtd" --> <!-- Define the prefix to be used (none) --> <!ENTITY % NS.prefixed "IGNORE" > <!-- Define the default for the baseProfile attribute --> <!ENTITY % SMIL.baseProfile.default "#FIXED 'UnifiedMobile'"> <!-- Define which modules to include --> <!-- Structure --> <!ENTITY % SMIL.Structure.module "INCLUDE"> <!ENTITY % SMIL.Identity.module "INCLUDE"> <!-- Media Object --> <!ENTITY % SMIL.BasicMedia.module "INCLUDE"> <!ENTITY % SMIL.BrushMedia.module "INCLUDE"> <!ENTITY % SMIL.MediaAccessibility.module "INCLUDE"> <!ENTITY % SMIL.MediaClipMarkers.module "IGNORE"> <!ENTITY % SMIL.MediaClipping.module "INCLUDE"> <!ENTITY % SMIL.MediaDescription.module "INCLUDE"> <!ENTITY % SMIL.MediaOpacity.module "IGNORE"> <!ENTITY % SMIL.MediaPanZoom.module "INCLUDE"> <!ENTITY % SMIL.MediaParam.module "INCLUDE"> <!ENTITY % SMIL.MediaRenderAttributes.module "INCLUDE"> <!-- Timing and Synchronization --> <!ENTITY % SMIL.AccessKeyTiming.module "INCLUDE"> <!ENTITY % SMIL.BasicExclTimeContainers.module "INCLUDE"> <!ENTITY % SMIL.BasicInlineTiming.module "INCLUDE"> <!ENTITY % SMIL.BasicPriorityClassContainers.module "IGNORE"> <!ENTITY % SMIL.BasicTimeContainers.module "INCLUDE"> <!ENTITY % SMIL.DOMTimingMethods.module "IGNORE"> <!ENTITY % SMIL.EventTiming.module "INCLUDE"> <!ENTITY % SMIL.FillDefault.module "IGNORE"> <!ENTITY % SMIL.MediaMarkerTiming.module "IGNORE"> <!ENTITY % SMIL.MinMaxTiming.module "IGNORE"> <!ENTITY % SMIL.MultiArcTiming.module "INCLUDE"> <!ENTITY % SMIL.RepeatTiming.module "INCLUDE"> <!ENTITY % SMIL.RepeatValueTiming.module "IGNORE"> <!ENTITY % SMIL.RestartDefault.module "IGNORE"> <!ENTITY % SMIL.RestartTiming.module "IGNORE"> <!ENTITY % SMIL.SyncbaseTiming.module "IGNORE"> <!ENTITY % SMIL.SyncBehaviorDefault.module "IGNORE"> <!ENTITY % SMIL.SyncBehavior.module "IGNORE"> <!ENTITY % SMIL.SyncMaster.module "IGNORE"> <!ENTITY % SMIL.TimeContainerAttributes.module "IGNORE"> <!ENTITY % SMIL.WallclockTiming.module "IGNORE"> <!-- Content Control --> <!ENTITY % SMIL.BasicContentControl.module "INCLUDE"> <!ENTITY % SMIL.CustomTestAttributes.module "IGNORE"> <!ENTITY % SMIL.PrefetchControl.module "INCLUDE"> <!ENTITY % SMIL.RequiredContentControl.module "INCLUDE"> <!ENTITY % SMIL.SkipContentControl.module "INCLUDE"> <!-- Layout --> <!ENTITY % SMIL.AlignmentLayout.module "INCLUDE"> <!ENTITY % SMIL.AudioLayout.module "INCLUDE"> <!ENTITY % SMIL.BackgroundTilingLayout.module "INCLUDE"> <!ENTITY % SMIL.BasicLayout.module "INCLUDE"> <!ENTITY % SMIL.MultiWindowLayout.module "IGNORE"> <!ENTITY % SMIL.OverrideLayout.module "INCLUDE"> <!ENTITY % SMIL.StructureLayout.module "INCLUDE"> <!ENTITY % SMIL.SubRegionLayout.module "INCLUDE"> <!-- smilText --> <!ENTITY % SMIL.BasicText.module "INCLUDE"> <!ENTITY % SMIL.TextMotion.module "INCLUDE"> <!ENTITY % SMIL.TextStyling.module "INCLUDE"> <!-- Linking --> <!ENTITY % SMIL.BasicLinking.module "INCLUDE"> <!ENTITY % SMIL.LinkingAttributes.module "INCLUDE"> <!ENTITY % SMIL.ObjectLinking.module "IGNORE"> <!-- Metainformation --> <!ENTITY % SMIL.Metainformation.module "INCLUDE"> <!-- Transition Effects --> <!ENTITY % SMIL.BasicTransitions.module "INCLUDE"> <!ENTITY % SMIL.FullScreenTransitionEffects.module "INCLUDE"> <!ENTITY % SMIL.InlineTransitions.module "IGNORE"> <!ENTITY % SMIL.TransitionModifiers.module "IGNORE"> <!-- Animation --> <!ENTITY % SMIL.BasicAnimation.module "INCLUDE"> <!ENTITY % SMIL.SplineAnimation.module "IGNORE"> <!-- State --> <!ENTITY % SMIL.StateInterpolation.module "IGNORE"> <!ENTITY % SMIL.StateSubmission.module "IGNORE"> <!ENTITY % SMIL.StateTest.module "IGNORE"> <!ENTITY % SMIL.UserState.module "IGNORE"> <!-- Time Manipulation --> <!ENTITY % SMIL.TimeManipulations.module "IGNORE"> <!-- External Timing --> <!ENTITY % SMIL.Timesheet.module "IGNORE"> <!-- Define which variants to use --> <!ENTITY % SMIL.animation-targetElement "INCLUDE"> <!ENTITY % SMIL.animation-XLinkTarget "IGNORE"> <!ENTITY % SMIL.transition-targetElement "INCLUDE"> <!ENTITY % SMIL.transition-XLinkTarget "IGNORE"> <!ENTITY % SMIL.ContentControl.deprecated.module "IGNORE"> <!ENTITY % SMIL.MediaClipping.deprecated.module "IGNORE"> <!ENTITY % SMIL.RepeatTiming.deprecated.module "IGNORE"> <!ENTITY % SMIL.BasicLinking.deprecated.module "IGNORE"> <!ENTITY % SMIL.ITS-Attributes.module "INCLUDE"> <!ENTITY % SMIL.RoleAttributes.module "IGNORE"> <!ENTITY % SMIL.submission-post "IGNORE"> <!-- Define the Content Model --> <!ENTITY % smil-model.mod PUBLIC "-//W3C//ENTITIES SMIL 3.0 Document Model 1.0//EN" "smil-profile-model-1.mod" > <!-- Modular Framework Module ............................................ --> <!ENTITY % smil-framework.module "INCLUDE" > <![%smil-framework.module;[ <!ENTITY % smil-framework.mod PUBLIC "-//W3C//ENTITIES SMIL 3.0 Modular Framework 1.0//EN" "smil-framework-1.mod" > %smil-framework.mod;]]> <!-- List module files to include --> <!ENTITY % SMIL.anim-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Animation//EN" "SMIL-anim.mod"> <!ENTITY % SMIL.control-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Content Control//EN" "SMIL-control.mod"> <!ENTITY % SMIL.layout-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Layout//EN" "SMIL-layout.mod"> <!ENTITY % SMIL.link-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Linking//EN" "SMIL-link.mod"> <!ENTITY % SMIL.media-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Media Objects//EN" "SMIL-media.mod"> <!ENTITY % SMIL.meta-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Document Metainformation//EN" "SMIL-metainformation.mod"> <!ENTITY % SMIL.struct-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Document Structure//EN" "SMIL-struct.mod"> <!ENTITY % SMIL.timing-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Timing//EN" "SMIL-timing.mod"> <!ENTITY % SMIL.transition-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Transition//EN" "SMIL-transition.mod"> <!-- Include module files --> %SMIL.struct-mod; %SMIL.anim-mod; %SMIL.control-mod; %SMIL.meta-mod; %SMIL.layout-mod; %SMIL.link-mod; %SMIL.media-mod; %SMIL.timing-mod; %SMIL.transition-mod; <!-- end of SMIL30UnifiedMobile.dtd -->
<!-- ...................................................................... --> <!-- SMIL 3.0 DAISY DTD .................................................. --> <!-- file: SMIL30Daisy.dtd This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Revision: 1.12 Date: 2008/09/07 20:36:50 This is the driver file for the SMIL 3.0 DAISY Profile DTD. This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//DTD SMIL 3.0 Daisy//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL30Daisy.dtd" --> <!-- Define the prefix to be used (none) --> <!ENTITY % NS.prefixed "IGNORE" > <!-- Define the default for the baseProfile attribute --> <!ENTITY % SMIL.baseProfile.default "#FIXED 'Daisy'"> <!-- Define which modules to include --> <!-- Structure --> <!ENTITY % SMIL.Structure.module "INCLUDE"> <!ENTITY % SMIL.Identity.module "INCLUDE"> <!-- Media Object --> <!ENTITY % SMIL.BasicMedia.module "INCLUDE"> <!ENTITY % SMIL.BrushMedia.module "IGNORE"> <!ENTITY % SMIL.MediaAccessibility.module "INCLUDE"> <!ENTITY % SMIL.MediaClipMarkers.module "IGNORE"> <!ENTITY % SMIL.MediaClipping.module "INCLUDE"> <!ENTITY % SMIL.MediaDescription.module "INCLUDE"> <!ENTITY % SMIL.MediaOpacity.module "IGNORE"> <!ENTITY % SMIL.MediaPanZoom.module "IGNORE"> <!ENTITY % SMIL.MediaParam.module "INCLUDE"> <!ENTITY % SMIL.MediaRenderAttributes.module "IGNORE"> <!-- Timing and Synchronization --> <!ENTITY % SMIL.AccessKeyTiming.module "IGNORE"> <!ENTITY % SMIL.BasicExclTimeContainers.module "INCLUDE"> <!ENTITY % SMIL.BasicInlineTiming.module "INCLUDE"> <!ENTITY % SMIL.BasicPriorityClassContainers.module "IGNORE"> <!ENTITY % SMIL.BasicTimeContainers.module "INCLUDE"> <!ENTITY % SMIL.DOMTimingMethods.module "IGNORE"> <!ENTITY % SMIL.EventTiming.module "INCLUDE"> <!ENTITY % SMIL.FillDefault.module "IGNORE"> <!ENTITY % SMIL.MediaMarkerTiming.module "IGNORE"> <!ENTITY % SMIL.MinMaxTiming.module "IGNORE"> <!ENTITY % SMIL.MultiArcTiming.module "INCLUDE"> <!ENTITY % SMIL.RepeatTiming.module "IGNORE"> <!ENTITY % SMIL.RepeatValueTiming.module "IGNORE"> <!ENTITY % SMIL.RestartDefault.module "IGNORE"> <!ENTITY % SMIL.RestartTiming.module "IGNORE"> <!ENTITY % SMIL.SyncbaseTiming.module "IGNORE"> <!ENTITY % SMIL.SyncBehaviorDefault.module "IGNORE"> <!ENTITY % SMIL.SyncBehavior.module "IGNORE"> <!ENTITY % SMIL.SyncMaster.module "IGNORE"> <!ENTITY % SMIL.TimeContainerAttributes.module "IGNORE"> <!ENTITY % SMIL.WallclockTiming.module "IGNORE"> <!-- Content Control --> <!ENTITY % SMIL.BasicContentControl.module "INCLUDE"> <!ENTITY % SMIL.CustomTestAttributes.module "IGNORE"> <!ENTITY % SMIL.PrefetchControl.module "IGNORE"> <!ENTITY % SMIL.RequiredContentControl.module "INCLUDE"> <!ENTITY % SMIL.SkipContentControl.module "INCLUDE"> <!-- Layout --> <!ENTITY % SMIL.AlignmentLayout.module "IGNORE"> <!ENTITY % SMIL.AudioLayout.module "IGNORE"> <!ENTITY % SMIL.BackgroundTilingLayout.module "IGNORE"> <!ENTITY % SMIL.BasicLayout.module "INCLUDE"> <!ENTITY % SMIL.MultiWindowLayout.module "IGNORE"> <!ENTITY % SMIL.OverrideLayout.module "IGNORE"> <!ENTITY % SMIL.StructureLayout.module "INCLUDE"> <!ENTITY % SMIL.SubRegionLayout.module "INCLUDE"> <!-- smilText --> <!ENTITY % SMIL.BasicText.module "IGNORE"> <!ENTITY % SMIL.TextMotion.module "IGNORE"> <!ENTITY % SMIL.TextStyling.module "IGNORE"> <!-- Linking --> <!ENTITY % SMIL.BasicLinking.module "INCLUDE"> <!ENTITY % SMIL.LinkingAttributes.module "IGNORE"> <!ENTITY % SMIL.ObjectLinking.module "IGNORE"> <!-- Metainformation --> <!ENTITY % SMIL.Metainformation.module "INCLUDE"> <!-- Transition Effects --> <!ENTITY % SMIL.BasicTransitions.module "IGNORE"> <!ENTITY % SMIL.FullScreenTransitionEffects.module "IGNORE"> <!ENTITY % SMIL.InlineTransitions.module "IGNORE"> <!ENTITY % SMIL.TransitionModifiers.module "IGNORE"> <!-- Animation --> <!ENTITY % SMIL.BasicAnimation.module "IGNORE"> <!ENTITY % SMIL.SplineAnimation.module "IGNORE"> <!-- State --> <!ENTITY % SMIL.StateInterpolation.module "INCLUDE"> <!ENTITY % SMIL.StateSubmission.module "INCLUDE"> <!ENTITY % SMIL.StateTest.module "INCLUDE"> <!ENTITY % SMIL.UserState.module "INCLUDE"> <!-- Time Manipulation --> <!ENTITY % SMIL.TimeManipulations.module "IGNORE"> <!-- External Timing --> <!ENTITY % SMIL.Timesheet.module "IGNORE"> <!-- Define which variants to use --> <!ENTITY % SMIL.animation-targetElement "IGNORE"> <!ENTITY % SMIL.animation-XLinkTarget "IGNORE"> <!ENTITY % SMIL.transition-targetElement "IGNORE"> <!ENTITY % SMIL.transition-XLinkTarget "IGNORE"> <!ENTITY % SMIL.ContentControl.deprecated.module "IGNORE"> <!ENTITY % SMIL.MediaClipping.deprecated.module "IGNORE"> <!ENTITY % SMIL.RepeatTiming.deprecated.module "IGNORE"> <!ENTITY % SMIL.BasicLinking.deprecated.module "IGNORE"> <!ENTITY % SMIL.ITS-Attributes.module "INCLUDE"> <!ENTITY % SMIL.RoleAttributes.module "INCLUDE"> <!ENTITY % SMIL.submission-post "INCLUDE"> <!-- Define the Content Model --> <!ENTITY % smil-model.mod PUBLIC "-//W3C//ENTITIES SMIL 3.0 Document Model 1.0//EN" "smil-profile-model-1.mod" > <!-- Modular Framework Module ............................................ --> <!ENTITY % smil-framework.module "INCLUDE" > <![%smil-framework.module;[ <!ENTITY % smil-framework.mod PUBLIC "-//W3C//ENTITIES SMIL 3.0 Modular Framework 1.0//EN" "smil-framework-1.mod" > %smil-framework.mod;]]> <!-- List module files to include --> <!ENTITY % SMIL.control-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Content Control//EN" "SMIL-control.mod"> <!ENTITY % SMIL.layout-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Layout//EN" "SMIL-layout.mod"> <!ENTITY % SMIL.link-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Linking//EN" "SMIL-link.mod"> <!ENTITY % SMIL.media-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Media Objects//EN" "SMIL-media.mod"> <!ENTITY % SMIL.meta-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Document Metainformation//EN" "SMIL-metainformation.mod"> <!ENTITY % SMIL.struct-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Document Structure//EN" "SMIL-struct.mod"> <!ENTITY % SMIL.state-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 State//EN" "SMIL-state.mod"> <!ENTITY % SMIL.timing-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Timing//EN" "SMIL-timing.mod"> <!-- Include module files --> %SMIL.struct-mod; %SMIL.control-mod; %SMIL.meta-mod; %SMIL.layout-mod; %SMIL.link-mod; %SMIL.media-mod; %SMIL.state-mod; %SMIL.timing-mod; <!-- end of SMIL30Daisy.dtd -->
<!-- ...................................................................... --> <!-- SMIL 3.0 Tiny DTD ................................................... --> <!-- file: SMIL30Tiny.dtd This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Revision: 1.13 Date: 2008/09/07 20:36:50 This is the driver file for the SMIL 3.0 Tiny Profile DTD. This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//DTD SMIL 3.0 Tiny//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL30Tiny.dtd" --> <!-- Define the prefix to be used (none) --> <!ENTITY % NS.prefixed "IGNORE" > <!-- Define the default for the baseProfile attribute --> <!ENTITY % SMIL.baseProfile.default "#FIXED 'Tiny'"> <!-- Define which modules to include --> <!-- Structure --> <!ENTITY % SMIL.Structure.module "INCLUDE"> <!ENTITY % SMIL.Identity.module "INCLUDE"> <!-- Media Object --> <!ENTITY % SMIL.BasicMedia.module "INCLUDE"> <!ENTITY % SMIL.BrushMedia.module "IGNORE"> <!ENTITY % SMIL.MediaAccessibility.module "INCLUDE"> <!ENTITY % SMIL.MediaClipMarkers.module "IGNORE"> <!ENTITY % SMIL.MediaClipping.module "IGNORE"> <!ENTITY % SMIL.MediaDescription.module "INCLUDE"> <!ENTITY % SMIL.MediaOpacity.module "IGNORE"> <!ENTITY % SMIL.MediaPanZoom.module "IGNORE"> <!ENTITY % SMIL.MediaParam.module "IGNORE"> <!ENTITY % SMIL.MediaRenderAttributes.module "IGNORE"> <!-- Timing and Synchronization --> <!ENTITY % SMIL.AccessKeyTiming.module "IGNORE"> <!ENTITY % SMIL.BasicExclTimeContainers.module "IGNORE"> <!ENTITY % SMIL.BasicInlineTiming.module "INCLUDE"> <!ENTITY % SMIL.BasicPriorityClassContainers.module "IGNORE"> <!ENTITY % SMIL.BasicTimeContainers.module "INCLUDE"> <!ENTITY % SMIL.DOMTimingMethods.module "IGNORE"> <!ENTITY % SMIL.EventTiming.module "IGNORE"> <!ENTITY % SMIL.FillDefault.module "IGNORE"> <!ENTITY % SMIL.MediaMarkerTiming.module "IGNORE"> <!ENTITY % SMIL.MinMaxTiming.module "IGNORE"> <!ENTITY % SMIL.MultiArcTiming.module "IGNORE"> <!ENTITY % SMIL.RepeatTiming.module "IGNORE"> <!ENTITY % SMIL.RepeatValueTiming.module "IGNORE"> <!ENTITY % SMIL.RestartDefault.module "IGNORE"> <!ENTITY % SMIL.RestartTiming.module "IGNORE"> <!ENTITY % SMIL.SyncbaseTiming.module "IGNORE"> <!ENTITY % SMIL.SyncBehaviorDefault.module "IGNORE"> <!ENTITY % SMIL.SyncBehavior.module "IGNORE"> <!ENTITY % SMIL.SyncMaster.module "IGNORE"> <!ENTITY % SMIL.TimeContainerAttributes.module "IGNORE"> <!ENTITY % SMIL.WallclockTiming.module "IGNORE"> <!-- Content Control --> <!ENTITY % SMIL.BasicContentControl.module "IGNORE"> <!ENTITY % SMIL.CustomTestAttributes.module "IGNORE"> <!ENTITY % SMIL.PrefetchControl.module "IGNORE"> <!ENTITY % SMIL.RequiredContentControl.module "INCLUDE"> <!ENTITY % SMIL.SkipContentControl.module "INCLUDE"> <!-- Layout --> <!ENTITY % SMIL.AlignmentLayout.module "IGNORE"> <!ENTITY % SMIL.AudioLayout.module "IGNORE"> <!ENTITY % SMIL.BackgroundTilingLayout.module "IGNORE"> <!ENTITY % SMIL.BasicLayout.module "IGNORE"> <!ENTITY % SMIL.MultiWindowLayout.module "IGNORE"> <!ENTITY % SMIL.OverrideLayout.module "IGNORE"> <!ENTITY % SMIL.StructureLayout.module "INCLUDE"> <!ENTITY % SMIL.SubRegionLayout.module "IGNORE"> <!-- smilText --> <!ENTITY % SMIL.BasicText.module "IGNORE"> <!ENTITY % SMIL.TextMotion.module "IGNORE"> <!ENTITY % SMIL.TextStyling.module "IGNORE"> <!-- Linking --> <!ENTITY % SMIL.BasicLinking.module "IGNORE"> <!ENTITY % SMIL.LinkingAttributes.module "IGNORE"> <!ENTITY % SMIL.ObjectLinking.module "IGNORE"> <!-- Metainformation --> <!ENTITY % SMIL.Metainformation.module "INCLUDE"> <!-- Transition Effects --> <!ENTITY % SMIL.BasicTransitions.module "IGNORE"> <!ENTITY % SMIL.FullScreenTransitionEffects.module "IGNORE"> <!ENTITY % SMIL.InlineTransitions.module "IGNORE"> <!ENTITY % SMIL.TransitionModifiers.module "IGNORE"> <!-- Animation --> <!ENTITY % SMIL.BasicAnimation.module "IGNORE"> <!ENTITY % SMIL.SplineAnimation.module "IGNORE"> <!-- State --> <!ENTITY % SMIL.StateInterpolation.module "IGNORE"> <!ENTITY % SMIL.StateSubmission.module "IGNORE"> <!ENTITY % SMIL.StateTest.module "IGNORE"> <!ENTITY % SMIL.UserState.module "IGNORE"> <!-- Time Manipulation --> <!ENTITY % SMIL.TimeManipulations.module "IGNORE"> <!-- External Timing --> <!ENTITY % SMIL.Timesheet.module "IGNORE"> <!-- Define which variants to use --> <!ENTITY % SMIL.animation-targetElement "IGNORE"> <!ENTITY % SMIL.animation-XLinkTarget "IGNORE"> <!ENTITY % SMIL.transition-targetElement "IGNORE"> <!ENTITY % SMIL.transition-XLinkTarget "IGNORE"> <!ENTITY % SMIL.ContentControl.deprecated.module "IGNORE"> <!ENTITY % SMIL.MediaClipping.deprecated.module "IGNORE"> <!ENTITY % SMIL.RepeatTiming.deprecated.module "IGNORE"> <!ENTITY % SMIL.BasicLinking.deprecated.module "IGNORE"> <!ENTITY % SMIL.ITS-Attributes.module "IGNORE"> <!ENTITY % SMIL.RoleAttributes.module "IGNORE"> <!ENTITY % SMIL.submission-post "IGNORE"> <!-- Define the Content Model --> <!ENTITY % smil-model.mod PUBLIC "-//W3C//ENTITIES SMIL 3.0 Document Model 1.0//EN" "smil-profile-model-1.mod" > <!-- Modular Framework Module ............................................ --> <!ENTITY % smil-framework.module "INCLUDE" > <![%smil-framework.module;[ <!ENTITY % smil-framework.mod PUBLIC "-//W3C//ENTITIES SMIL 3.0 Modular Framework 1.0//EN" "smil-framework-1.mod" > %smil-framework.mod;]]> <!-- List module files to include --> <!ENTITY % SMIL.control-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Content Control//EN" "SMIL-control.mod"> <!ENTITY % SMIL.layout-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Layout//EN" "SMIL-layout.mod"> <!ENTITY % SMIL.media-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Media Objects//EN" "SMIL-media.mod"> <!ENTITY % SMIL.meta-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Document Metainformation//EN" "SMIL-metainformation.mod"> <!ENTITY % SMIL.struct-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Document Structure//EN" "SMIL-struct.mod"> <!ENTITY % SMIL.timing-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Timing//EN" "SMIL-timing.mod"> <!-- Include module files --> %SMIL.struct-mod; %SMIL.control-mod; %SMIL.meta-mod; %SMIL.layout-mod; %SMIL.media-mod; %SMIL.timing-mod; <!-- end of SMIL30Tiny.dtd -->
<!-- ...................................................................... --> <!-- SMIL 3.0 smilText DTD ................................................ --> <!-- file: SMIL30smilText.dtd This is SMIL 3.0. Copyright: 2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor: Sjoerd Mullender, CWI Revision: 1.4 Date: 2008/09/07 20:39:37 This is the driver file for the SMIL 3.0 smilText Profile DTD. This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//DTD SMIL 3.0 smilText//EN" SYSTEM "http://www.w3.org/2008/SMIL30/SMIL30smilText.dtd" --> <!-- Define the prefix to be used (none) --> <!ENTITY % NS.prefixed "IGNORE" > <!-- Define the default for the baseProfile attribute --> <!ENTITY % SMIL.baseProfile.default "#FIXED 'smilText'"> <!-- Define which modules to include --> <!-- Structure --> <!ENTITY % SMIL.Structure.module "IGNORE"> <!ENTITY % SMIL.Identity.module "INCLUDE"> <!-- Media Object --> <!ENTITY % SMIL.BasicMedia.module "IGNORE"> <!ENTITY % SMIL.BrushMedia.module "IGNORE"> <!ENTITY % SMIL.MediaAccessibility.module "IGNORE"> <!ENTITY % SMIL.MediaClipMarkers.module "IGNORE"> <!ENTITY % SMIL.MediaClipping.module "IGNORE"> <!ENTITY % SMIL.MediaDescription.module "IGNORE"> <!ENTITY % SMIL.MediaOpacity.module "IGNORE"> <!ENTITY % SMIL.MediaPanZoom.module "IGNORE"> <!ENTITY % SMIL.MediaParam.module "IGNORE"> <!ENTITY % SMIL.MediaRenderAttributes.module "IGNORE"> <!-- Timing and Synchronization --> <!ENTITY % SMIL.AccessKeyTiming.module "IGNORE"> <!ENTITY % SMIL.BasicExclTimeContainers.module "IGNORE"> <!ENTITY % SMIL.BasicInlineTiming.module "IGNORE"> <!ENTITY % SMIL.BasicPriorityClassContainers.module "IGNORE"> <!ENTITY % SMIL.BasicTimeContainers.module "IGNORE"> <!ENTITY % SMIL.DOMTimingMethods.module "IGNORE"> <!ENTITY % SMIL.EventTiming.module "IGNORE"> <!ENTITY % SMIL.FillDefault.module "IGNORE"> <!ENTITY % SMIL.MediaMarkerTiming.module "IGNORE"> <!ENTITY % SMIL.MinMaxTiming.module "IGNORE"> <!ENTITY % SMIL.MultiArcTiming.module "IGNORE"> <!ENTITY % SMIL.RepeatTiming.module "IGNORE"> <!ENTITY % SMIL.RepeatValueTiming.module "IGNORE"> <!ENTITY % SMIL.RestartDefault.module "IGNORE"> <!ENTITY % SMIL.RestartTiming.module "IGNORE"> <!ENTITY % SMIL.SyncbaseTiming.module "IGNORE"> <!ENTITY % SMIL.SyncBehaviorDefault.module "IGNORE"> <!ENTITY % SMIL.SyncBehavior.module "IGNORE"> <!ENTITY % SMIL.SyncMaster.module "IGNORE"> <!ENTITY % SMIL.TimeContainerAttributes.module "IGNORE"> <!ENTITY % SMIL.WallclockTiming.module "IGNORE"> <!-- Content Control --> <!ENTITY % SMIL.BasicContentControl.module "IGNORE"> <!ENTITY % SMIL.CustomTestAttributes.module "IGNORE"> <!ENTITY % SMIL.PrefetchControl.module "IGNORE"> <!ENTITY % SMIL.RequiredContentControl.module "INCLUDE"> <!ENTITY % SMIL.SkipContentControl.module "IGNORE"> <!-- Layout --> <!ENTITY % SMIL.AlignmentLayout.module "IGNORE"> <!ENTITY % SMIL.AudioLayout.module "IGNORE"> <!ENTITY % SMIL.BackgroundTilingLayout.module "IGNORE"> <!ENTITY % SMIL.BasicLayout.module "IGNORE"> <!ENTITY % SMIL.MultiWindowLayout.module "IGNORE"> <!ENTITY % SMIL.OverrideLayout.module "IGNORE"> <!ENTITY % SMIL.StructureLayout.module "IGNORE"> <!ENTITY % SMIL.SubRegionLayout.module "IGNORE"> <!-- smilText --> <!ENTITY % SMIL.BasicText.module "INCLUDE"> <!ENTITY % SMIL.TextMotion.module "INCLUDE"> <!ENTITY % SMIL.TextStyling.module "INCLUDE"> <!-- Linking --> <!ENTITY % SMIL.BasicLinking.module "IGNORE"> <!ENTITY % SMIL.LinkingAttributes.module "IGNORE"> <!ENTITY % SMIL.ObjectLinking.module "IGNORE"> <!-- Metainformation --> <!ENTITY % SMIL.Metainformation.module "INCLUDE"> <!-- Transition Effects --> <!ENTITY % SMIL.BasicTransitions.module "IGNORE"> <!ENTITY % SMIL.FullScreenTransitionEffects.module "IGNORE"> <!ENTITY % SMIL.InlineTransitions.module "IGNORE"> <!ENTITY % SMIL.TransitionModifiers.module "IGNORE"> <!-- Animation --> <!ENTITY % SMIL.BasicAnimation.module "IGNORE"> <!ENTITY % SMIL.SplineAnimation.module "IGNORE"> <!-- State --> <!ENTITY % SMIL.StateInterpolation.module "IGNORE"> <!ENTITY % SMIL.StateSubmission.module "IGNORE"> <!ENTITY % SMIL.StateTest.module "IGNORE"> <!ENTITY % SMIL.UserState.module "IGNORE"> <!-- Time Manipulation --> <!ENTITY % SMIL.TimeManipulations.module "IGNORE"> <!-- External Timing --> <!ENTITY % SMIL.Timesheet.module "IGNORE"> <!-- Define which variants to use --> <!ENTITY % SMIL.animation-targetElement "IGNORE"> <!ENTITY % SMIL.animation-XLinkTarget "IGNORE"> <!ENTITY % SMIL.transition-targetElement "IGNORE"> <!ENTITY % SMIL.transition-XLinkTarget "IGNORE"> <!ENTITY % SMIL.ContentControl.deprecated.module "IGNORE"> <!ENTITY % SMIL.MediaClipping.deprecated.module "IGNORE"> <!ENTITY % SMIL.RepeatTiming.deprecated.module "IGNORE"> <!ENTITY % SMIL.BasicLinking.deprecated.module "IGNORE"> <!ENTITY % SMIL.ITS-Attributes.module "INCLUDE"> <!ENTITY % SMIL.RoleAttributes.module "IGNORE"> <!ENTITY % SMIL.submission-post "IGNORE"> <!ENTITY % SMIL.TextExternal.module "INCLUDE"> <!-- Define the Content Model --> <!ENTITY % smil-model.mod PUBLIC "-//W3C//ENTITIES SMIL 3.0 Document Model 1.0//EN" "smil-profile-model-1.mod" > <!-- Modular Framework Module ............................................ --> <!ENTITY % smil-framework.module "INCLUDE" > <![%smil-framework.module;[ <!ENTITY % smil-framework.mod PUBLIC "-//W3C//ENTITIES SMIL 3.0 Modular Framework 1.0//EN" "smil-framework-1.mod" > %smil-framework.mod;]]> <!-- List module files to include --> <!ENTITY % SMIL.control-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Content Control//EN" "SMIL-control.mod"> <!ENTITY % SMIL.meta-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Document Metainformation//EN" "SMIL-metainformation.mod"> <!ENTITY % SMIL.struct-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 Document Structure//EN" "SMIL-struct.mod"> <!ENTITY % SMIL.text-mod PUBLIC "-//W3C//ELEMENTS SMIL 3.0 SMILtext//EN" "SMIL-smiltext.mod"> <!-- Include module files --> %SMIL.struct-mod; %SMIL.control-mod; %SMIL.meta-mod; %SMIL.text-mod; <!-- end of SMIL30smilText.dtd -->
<!-- ...................................................................... --> <!-- SMIL 3.0 Datatypes Module ........................................... --> <!-- file: smil-datatypes-1.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Jacco van Ossenbruggen, Sjoerd Mullender. Revision: 1.6 Date: 2008/09/07 20:36:49 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ENTITIES SMIL 3.0 Datatypes 1.0//EN" SYSTEM "http://www.w3.org/2008/SMIL30/smil-datatypes-1.mod" ...................................................................... --> <!-- Datatypes defines containers for the following datatypes, many of these imported from other specifications and standards. --> <!ENTITY % Character.datatype "CDATA"> <!-- a single character from [ISO10646] --> <!ENTITY % Color.datatype "CDATA"> <!-- a CSS2 color specification --> <!ENTITY % ContentType.datatype "CDATA"> <!-- media type, as per [RFC2045] --> <!ENTITY % LanguageCode.datatype "CDATA"> <!-- a language code, as per [BCP47] --> <!ENTITY % LanguageCodes.datatype "CDATA"> <!-- comma-separated list of language codes, as per [BCP47] --> <!ENTITY % Number.datatype "CDATA"> <!-- one or more digits --> <!ENTITY % Script.datatype "CDATA"> <!-- script expression --> <!ENTITY % Text.datatype "CDATA"> <!-- used for titles etc. --> <!ENTITY % TimeValue.datatype "CDATA"> <!-- a Number, possibly with its dimension, or a reserved word like 'indefinite' --> <!ENTITY % URI.datatype "CDATA" > <!-- used for URI (IRI) references --> <!-- end of smil-datatypes-1.mod -->
<!-- ...................................................................... --> <!-- SMIL 3.0 Common Attributes Module ................................... --> <!-- file: smil-attribs-1.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Warner ten Kate, Jacco van Ossenbruggen, Sjoerd Mullender. Revision: 1.16 Date: 2008/09/07 20:36:49 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ENTITIES SMIL 3.0 Common Attributes 1.0//EN" SYSTEM "http://www.w3.org/2008/SMIL30/smil-attribs-1.mod" ...................................................................... --> <!-- Common Attributes This module declares the common attributes for the SMIL DTD Modules. --> <!ENTITY % SMIL.pfx ""> <!ENTITY % SMIL.Structure.module "IGNORE"> <![%SMIL.Structure.module;[ <!ENTITY % SMIL.id.attrib "xml:id ID #IMPLIED" > <!ENTITY % SMIL.class.attrib "%SMIL.pfx;class CDATA #IMPLIED" > ]]> <!ENTITY % SMIL.TextExternal.module "IGNORE"> <![%SMIL.TextExternal.module;[ <!ENTITY % SMIL.id.attrib "xml:id ID #IMPLIED" > ]]> <!ENTITY % SMIL.id.attrib ""> <!ENTITY % SMIL.class.attrib ""> <!-- the title and xml:lang attributes are defined both in the Structure module and the MediaDescription module, but they are defined identically --> <!ENTITY % SMIL.Structure.module "IGNORE"> <![%SMIL.Structure.module;[ <!ENTITY % SMIL.title.attrib "%SMIL.pfx;title %Text.datatype; #IMPLIED" > <!ENTITY % SMIL.xml.lang.attrib "xml:lang %LanguageCode.datatype; #IMPLIED" > ]]> <!ENTITY % SMIL.MediaDescription.module "IGNORE"> <![%SMIL.MediaDescription.module;[ <!ENTITY % SMIL.title.attrib "%SMIL.pfx;title %Text.datatype; #IMPLIED" > <!ENTITY % SMIL.xml.lang.attrib "xml:lang %LanguageCode.datatype; #IMPLIED" > ]]> <![%SMIL.TextExternal.module;[ <!ENTITY % SMIL.xml.lang.attrib "xml:lang %LanguageCode.datatype; #IMPLIED" > ]]> <!ENTITY % SMIL.title.attrib ""> <!ENTITY % SMIL.xml.lang.attrib ""> <!ENTITY % SMIL.Identity.module "IGNORE"> <![%SMIL.Identity.module;[ <!-- the baseProfile declaration may be overridden by the profile --> <!ENTITY % SMIL.baseProfile.default "#IMPLIED"> <!ENTITY % SMIL.Identity.attrib " %SMIL.pfx;version (3.0) #FIXED '3.0' %SMIL.pfx;baseProfile NMTOKEN %SMIL.baseProfile.default; "> ]]> <!ENTITY % SMIL.Identity.attrib ""> <!ENTITY % SMIL.Metainformation.module "IGNORE"> <![%SMIL.Metainformation.module;[ <!ENTITY % SMIL.label.attrib " %SMIL.pfx;label %URI.datatype; #IMPLIED "> ]]> <!ENTITY % SMIL.label.attrib ""> <!ENTITY % SMIL.MediaAccessibility.module "IGNORE"> <![%SMIL.MediaAccessibility.module;[ <!ENTITY % SMIL.Accessibility.attrib " %SMIL.pfx;alt %Text.datatype; #IMPLIED %SMIL.pfx;longdesc %URI.datatype; #IMPLIED %SMIL.pfx;readIndex CDATA '0' "> ]]> <!ENTITY % SMIL.Accessibility.attrib ""> <!ENTITY % SMIL.Core.extra.attrib "" > <!ENTITY % SMIL.Core.attrib " xml:base %URI.datatype; #IMPLIED %SMIL.id.attrib; %SMIL.class.attrib; %SMIL.title.attrib; %SMIL.Accessibility.attrib; %SMIL.label.attrib; %SMIL.Identity.attrib; %SMIL.xmlns.extra.attrib; %SMIL.Core.extra.attrib; "> <!ENTITY % SMIL.RoleAttributes.module "IGNORE"> <![%SMIL.RoleAttributes.module;[ <!ENTITY % XHTMLNS " xmlns:xhtml CDATA 'http://www.w3.org/1999/xhtml' "> <!ENTITY % XHTMLPR "xhtml:"> <!ENTITY % XHTML-Role-attrib " %XHTMLPR;role CDATA #IMPLIED "> ]]> <!ENTITY % XHTMLNS ""> <!ENTITY % XHTML-Role-attrib ""> <!ENTITY % SMIL.ITS-Attributes.module "IGNORE"> <![%SMIL.ITS-Attributes.module;[ <!-- Entity for the definition of the ITS namespace, necessary for DTD processing --> <!ENTITY % ITSNS " xmlns:its CDATA 'http://www.w3.org/2005/11/its' "> <!-- Prefix commonly used for ITS markup --> <!ENTITY % ITSPR "its:"> <!-- Entity which contains local ITS markup for internationalization and localization purposes. Explanatations: - its:translate : Attribute to express translation information. See http://www.w3.org/TR/2007/REC-its-20070403/#trans-datacat . - its:locNote : Attribute for localization notes. See http://www.w3.org/TR/2007/REC-its-20070403/#locNote-datacat . - its:locNoteType: Attribute for the localization note type (description or alert). See http://www.w3.org/TR/2007/REC-its-20070403/#locNote-datacat . - its:term : Attribute to specify terms. See http://www.w3.org/TR/2007/REC-its-20070403/#terminology . - its:termInfoRef : Attribute to provide references to additional information about a term. See http://www.w3.org/TR/2007/REC-its-20070403/#terminology . - its:dir : Attribute to supply information about text directionality. See http://www.w3.org/TR/2007/REC-its-20070403/#directionality . --> <!ENTITY % ITS-LOCAL-ATTR " %ITSPR;translate (yes | no) #IMPLIED %ITSPR;locNote CDATA #IMPLIED %ITSPR;locNoteType (alert | description) #IMPLIED %ITSPR;locNoteRef CDATA #IMPLIED %ITSPR;termInfoRef CDATA #IMPLIED %ITSPR;term (yes | no) #IMPLIED %ITSPR;dir (ltr | rtl | lro | rlo) #IMPLIED "> ]]> <!ENTITY % ITSNS ""> <!ENTITY % ITS-LOCAL-ATTR ""> <!ENTITY % SMIL.I18n.extra.attrib "" > <!ENTITY % SMIL.I18n.attrib " %SMIL.xml.lang.attrib; %SMIL.I18n.extra.attrib; %ITS-LOCAL-ATTR; "> <!-- ITS-LOCAL-ATTR contains attribute declarations for internationalization and localization related markup. See http://www.w3.org/TR/2007/REC-its-20070403/ for more information. --> <![%SMIL.MediaDescription.module;[ <!ENTITY % SMIL.Description.attrib " %SMIL.pfx;abstract %Text.datatype; #IMPLIED %SMIL.pfx;author %Text.datatype; #IMPLIED %SMIL.pfx;copyright %Text.datatype; #IMPLIED "> ]]> <!ENTITY % SMIL.Description.attrib ""> <!ENTITY % SMIL.LinkingAttributes.module "IGNORE"> <![%SMIL.LinkingAttributes.module;[ <!ENTITY % SMIL.tabindex.attrib " %SMIL.pfx;tabindex %Number.datatype; #IMPLIED "> ]]> <!ENTITY % SMIL.tabindex.attrib ""> <!-- ================== BasicLayout ======================================= --> <!ENTITY % SMIL.BasicLayout.module "IGNORE"> <![%SMIL.BasicLayout.module;[ <!ENTITY % SMIL.regionAttr.attrib " %SMIL.pfx;region CDATA #IMPLIED "> <!-- add one & for each level of indirection --> <!ENTITY % SMIL.backgroundOpacity.attrib " %SMIL.pfx;backgroundOpacity CDATA '100&#38;#38;#37;' "> <!ENTITY % SMIL.backgroundColor.attrib " %SMIL.pfx;backgroundColor %Color.datatype; #IMPLIED "> <!ENTITY % SMIL.backgroundColor.deprecated.attrib " %SMIL.pfx;background-color %Color.datatype; #IMPLIED "> <!ENTITY % SMIL.region-positioning.attrib " %SMIL.pfx;top CDATA 'auto' %SMIL.pfx;bottom CDATA 'auto' %SMIL.pfx;left CDATA 'auto' %SMIL.pfx;right CDATA 'auto' "> <!ENTITY % SMIL.region-size.attrib " %SMIL.pfx;height CDATA 'auto' %SMIL.pfx;width CDATA 'auto' "> <!ENTITY % SMIL.z-index.attrib " %SMIL.pfx;z-index CDATA #IMPLIED "> <!ENTITY % SMIL.fit.attrib " %SMIL.pfx;fit (hidden|fill|meet|meetBest|scroll|slice) #IMPLIED "> ]]> <!ENTITY % SMIL.regionAttr.attrib ""> <!ENTITY % SMIL.backgroundOpacity.attrib ""> <!ENTITY % SMIL.backgroundColor.attrib ""> <!ENTITY % SMIL.backgroundColor.deprecated.attrib ""> <!ENTITY % SMIL.region-positioning.attrib ""> <!ENTITY % SMIL.region-size.attrib ""> <!ENTITY % SMIL.z-index.attrib ""> <!ENTITY % SMIL.fit.attrib ""> <!-- ================== SubRegionLayout =================================== --> <!ENTITY % SMIL.SubRegionLayout.module "IGNORE"> <![%SMIL.SubRegionLayout.module;[ <!-- requires BasicLayout --> <!ENTITY % SMIL.SubRegionLayout.attrib " %SMIL.region-positioning.attrib; %SMIL.region-size.attrib; "> ]]> <!ENTITY % SMIL.SubRegionLayout.attrib ""> <!-- ================== OverrideLayout ==================================== --> <!ENTITY % SMIL.OverrideLayout.module "IGNORE"> <![%SMIL.OverrideLayout.module;[ <!-- requires BasicLayout --> <!ENTITY % SMIL.OverrideLayout.attrib " %SMIL.backgroundColor.attrib; %SMIL.backgroundOpacity.attrib; %SMIL.fit.attrib; %SMIL.z-index.attrib; "> ]]> <!ENTITY % SMIL.OverrideLayout.attrib ""> <!-- ================ Registration Point attribute for media elements ===== --> <!-- integrating language using AlignmentLayout must include regPoint --> <!-- attribute on media elements for regPoint elements to be useful --> <!ENTITY % SMIL.AlignmentLayout.module "IGNORE"> <![%SMIL.AlignmentLayout.module;[ <!ENTITY % SMIL.regPointAttr.attrib " %SMIL.pfx;regPoint CDATA #IMPLIED "> <!ENTITY % SMIL.regAlign.attrib " %SMIL.pfx;regAlign (topLeft|topMid|topRight|midLeft|center| midRight|bottomLeft|bottomMid|bottomRight) #IMPLIED "> <!ENTITY % SMIL.mediaAlign.attrib " %SMIL.pfx;mediaAlign (topLeft|topMid|topRight|midLeft|center| midRight|bottomLeft|bottomMid|bottomRight) #IMPLIED "> <!ENTITY % SMIL.soundAlign.attrib " %SMIL.pfx;soundAlign (left|both|right) #IMPLIED "> ]]> <!ENTITY % SMIL.regPointAttr.attrib ""> <!ENTITY % SMIL.regAlign.attrib ""> <!ENTITY % SMIL.mediaAlign.attrib ""> <!ENTITY % SMIL.soundAlign.attrib ""> <!ENTITY % SMIL.RegistrationPoint.attrib " %SMIL.regPointAttr.attrib; %SMIL.regAlign.attrib; %SMIL.mediaAlign.attrib; "> <!--=================== Content Control =======================--> <!-- customTest Attribute, do not confuse with customTest element! --> <!ENTITY % SMIL.CustomTestAttributes.module "IGNORE"> <![%SMIL.CustomTestAttributes.module;[ <!ENTITY % SMIL.customTestAttr.attrib " %SMIL.pfx;customTest CDATA #IMPLIED "> ]]> <!ENTITY % SMIL.customTestAttr.attrib ""> <!-- ========================= SkipContentControl Module ================== --> <!ENTITY % SMIL.SkipContentControl.module "IGNORE"> <![%SMIL.SkipContentControl.module;[ <!ENTITY % SMIL.skip-content.attrib " %SMIL.pfx;skip-content (true|false) 'true' "> ]]> <!ENTITY % SMIL.skip-content.attrib ""> <!-- Content Control Test Attributes --> <!ENTITY % SMIL.BasicContentControl.module "IGNORE"> <!ENTITY % SMIL.ContentControl.deprecated.module "IGNORE"> <![%SMIL.BasicContentControl.module;[ <!ENTITY % SMIL.BasicContentControl.attrib " %SMIL.pfx;systemAudioDesc (on|off) #IMPLIED %SMIL.pfx;systemBaseProfile NMTOKEN #IMPLIED %SMIL.pfx;systemBitrate CDATA #IMPLIED %SMIL.pfx;systemCaptions (on|off) #IMPLIED %SMIL.pfx;systemComponent CDATA #IMPLIED %SMIL.pfx;systemCPU NMTOKEN #IMPLIED %SMIL.pfx;systemLanguage CDATA #IMPLIED %SMIL.pfx;systemOperatingSystem NMTOKEN #IMPLIED %SMIL.pfx;systemOverdubOrSubtitle (overdub|subtitle) #IMPLIED %SMIL.pfx;systemScreenDepth CDATA #IMPLIED %SMIL.pfx;systemScreenSize CDATA #IMPLIED %SMIL.pfx;systemVersion (3.0) #IMPLIED "> <![%SMIL.ContentControl.deprecated.module;[ <!ENTITY % SMIL.BasicContentControl.deprecated.attrib " %SMIL.pfx;system-bitrate CDATA #IMPLIED %SMIL.pfx;system-captions (on|off) #IMPLIED %SMIL.pfx;system-language CDATA #IMPLIED %SMIL.pfx;system-overdub-or-caption (overdub|caption) #IMPLIED %SMIL.pfx;system-screen-depth CDATA #IMPLIED %SMIL.pfx;system-screen-size CDATA #IMPLIED "> ]]> ]]> <!ENTITY % SMIL.BasicContentControl.attrib ""> <!ENTITY % SMIL.BasicContentControl.deprecated.attrib ""> <!ENTITY % SMIL.RequiredContentControl.module "IGNORE"> <![%SMIL.RequiredContentControl.module;[ <!ENTITY % SMIL.RequiredContentControl.attrib " %SMIL.pfx;systemRequired CDATA #IMPLIED "> <![%SMIL.ContentControl.deprecated.module;[ <!ENTITY % SMIL.RequiredContentControl.deprecated.attrib " %SMIL.pfx;system-required CDATA #IMPLIED "> ]]> ]]> <!ENTITY % SMIL.RequiredContentControl.attrib ""> <!ENTITY % SMIL.RequiredContentControl.deprecated.attrib ""> <!ENTITY % SMIL.Test.attrib " %SMIL.BasicContentControl.attrib; %SMIL.BasicContentControl.deprecated.attrib; %SMIL.RequiredContentControl.attrib; %SMIL.RequiredContentControl.deprecated.attrib; "> <!-- SMIL Animation Module =============================================== --> <!ENTITY % SMIL.BasicAnimation.module "IGNORE"> <![%SMIL.BasicAnimation.module;[ <!ENTITY % SMIL.BasicAnimation.attrib " %SMIL.pfx;values CDATA #IMPLIED %SMIL.pfx;from CDATA #IMPLIED %SMIL.pfx;to CDATA #IMPLIED %SMIL.pfx;by CDATA #IMPLIED "> ]]> <!ENTITY % SMIL.BasicAnimation.attrib ""> <!-- SMIL SMILtext Module ================================================ --> <!ENTITY % SMIL.BasicText.module "IGNORE"> <![%SMIL.BasicText.module;[ <!ENTITY % SMIL.BasicText.attrib " %SMIL.pfx;textWrapOption (wrap|noWrap|inherit) 'wrap' xml:space (default|preserve) 'default' "> ]]> <!ENTITY % SMIL.BasicText.attrib ""> <!ENTITY % SMIL.TextMotion.module "IGNORE"> <![%SMIL.TextMotion.module;[ <!ENTITY % SMIL.textMode-motion-values "|crawl|scroll|jump"> <!ENTITY % SMIL.TextMotion.attrib " %SMIL.pfx;textConceal (none|initial|final|both|inherit) 'inherit' %SMIL.pfx;textRate CDATA 'auto' "> ]]> <!ENTITY % SMIL.textMode-motion-values ""> <!ENTITY % SMIL.TextMotion.attrib ""> <!ENTITY % SMIL.TextStyling.module "IGNORE"> <![%SMIL.TextStyling.module;[ <!ENTITY % SMIL.textAlign.attrib " %SMIL.pfx;textAlign (start|end|left|right|center|inherit) 'inherit' "> <!ENTITY % SMIL.textDirection.attrib " %SMIL.pfx;textDirection (ltr|rtl|ltro|rtlo|inherit) 'inherit' "> <!ENTITY % SMIL.textMode.attrib " %SMIL.pfx;textMode (append|replace%SMIL.textMode-motion-values;|inherit) 'inherit' "> <!ENTITY % SMIL.textPlace.attrib " %SMIL.pfx;textPlace (start|center|end|inherit) 'inherit' "> <!ENTITY % SMIL.textWritingMode.attrib " %SMIL.pfx;textWritingMode (lr-tb|rl-tb|tb-lr|tb-rl|lr|rl|inherit) 'inherit' "> <!ENTITY % SMIL.TextStyling.attrib " %SMIL.pfx;textBackgroundColor %Color.datatype; 'transparent' %SMIL.pfx;textColor %Color.datatype; #IMPLIED %SMIL.pfx;textFontFamily CDATA 'inherit' %SMIL.pfx;textFontSize CDATA 'inherit' %SMIL.pfx;textFontStyle (normal|italic|oblique|reverseOblique|inherit) 'inherit' %SMIL.pfx;textFontWeight (normal|bold|inherit) 'inherit' %SMIL.pfx;textStyle IDREF #IMPLIED "> ]]> <!ENTITY % SMIL.textAlign.attrib ""> <!ENTITY % SMIL.textDirection.attrib ""> <!ENTITY % SMIL.textMode.attrib ""> <!ENTITY % SMIL.textPlace.attrib ""> <!ENTITY % SMIL.textWritingMode.attrib ""> <!ENTITY % SMIL.TextStyling.attrib ""> <!-- SMIL State Module =================================================== --> <!ENTITY % SMIL.StateTest.module "IGNORE"> <![%SMIL.StateTest.module;[ <!ENTITY % SMIL.StateTest.attrib " %SMIL.pfx;expr CDATA #IMPLIED "> ]]> <!ENTITY % SMIL.StateTest.attrib ""> <!-- SMIL Timing Module ================================================== --> <!ENTITY % SMIL.begin.attrib "%SMIL.pfx;begin %TimeValue.datatype; #IMPLIED"> <!ENTITY % SMIL.end.attrib "%SMIL.pfx;end %TimeValue.datatype; #IMPLIED"> <!ENTITY % SMIL.BasicInlineTiming.module "IGNORE"> <![%SMIL.BasicInlineTiming.module;[ <!ENTITY % SMIL.BasicInlineTiming.attrib " %SMIL.begin.attrib; %SMIL.pfx;dur %TimeValue.datatype; #IMPLIED %SMIL.end.attrib; "> ]]> <!ENTITY % SMIL.AccessKeyTiming.module "IGNORE"> <![%SMIL.AccessKeyTiming.module;[ <!ENTITY % SMIL.BasicInlineTiming.attrib " %SMIL.begin.attrib; %SMIL.end.attrib; "> ]]> <!ENTITY % SMIL.EventTiming.module "IGNORE"> <![%SMIL.EventTiming.module;[ <!ENTITY % SMIL.BasicInlineTiming.attrib " %SMIL.begin.attrib; %SMIL.end.attrib; "> ]]> <!ENTITY % SMIL.MediaMarkerTiming.module "IGNORE"> <![%SMIL.MediaMarkerTiming.module;[ <!ENTITY % SMIL.BasicInlineTiming.attrib " %SMIL.begin.attrib; %SMIL.end.attrib; "> ]]> <!ENTITY % SMIL.RepeatValueTiming.module "IGNORE"> <![%SMIL.RepeatValueTiming.module;[ <!ENTITY % SMIL.BasicInlineTiming.attrib " %SMIL.begin.attrib; %SMIL.end.attrib; "> ]]> <!ENTITY % SMIL.SyncbaseTiming.module "IGNORE"> <![%SMIL.SyncbaseTiming.module;[ <!ENTITY % SMIL.BasicInlineTiming.attrib " %SMIL.begin.attrib; %SMIL.end.attrib; "> ]]> <!ENTITY % SMIL.WallclockTiming.module "IGNORE"> <![%SMIL.WallclockTiming.module;[ <!ENTITY % SMIL.BasicInlineTiming.attrib " %SMIL.begin.attrib; %SMIL.end.attrib; "> ]]> <!ENTITY % SMIL.BasicInlineTiming.attrib ""> <!ENTITY % SMIL.RepeatTiming.module "IGNORE"> <!ENTITY % SMIL.RepeatTiming.deprecated.module "IGNORE"> <![%SMIL.RepeatTiming.module;[ <!ENTITY % SMIL.RepeatTiming.attrib " %SMIL.pfx;repeatCount %Number.datatype; #IMPLIED %SMIL.pfx;repeatDur %TimeValue.datatype; #IMPLIED "> <![%SMIL.RepeatTiming.deprecated.module;[ <!ENTITY % SMIL.RepeatTiming.deprecated.attrib " %SMIL.pfx;repeat %TimeValue.datatype; #IMPLIED "> ]]> ]]> <!ENTITY % SMIL.RepeatTiming.attrib ""> <!ENTITY % SMIL.RepeatTiming.deprecated.attrib ""> <!ENTITY % SMIL.MinMaxTiming.module "IGNORE"> <![%SMIL.MinMaxTiming.module;[ <!ENTITY % SMIL.MinMaxTiming.attrib " %SMIL.pfx;min %TimeValue.datatype; '0' %SMIL.pfx;max %TimeValue.datatype; 'indefinite' "> ]]> <!ENTITY % SMIL.MinMaxTiming.attrib ""> <!ENTITY % SMIL.BasicTimeContainers.module "IGNORE"> <![%SMIL.BasicTimeContainers.module;[ <!ENTITY % SMIL.IncludeFillEndsync "INCLUDE"> ]]> <!ENTITY % SMIL.BasicExclTimeContainers.module "IGNORE"> <![%SMIL.BasicExclTimeContainers.module;[ <!ENTITY % SMIL.IncludeFillEndsync "INCLUDE"> ]]> <!ENTITY % SMIL.TimeContainerAttributes.module "IGNORE"> <![%SMIL.TimeContainerAttributes.module;[ <!ENTITY % SMIL.IncludeFillEndsync "INCLUDE"> ]]> <!ENTITY % SMIL.IncludeFillEndsync "IGNORE"> <![%SMIL.IncludeFillEndsync;[ <!ENTITY % SMIL.fill.attrib " %SMIL.pfx;fill (remove|freeze|hold|transition|auto|default) 'default' "> <!ENTITY % SMIL.endsync.attrib " %SMIL.pfx;endsync CDATA 'last' "> <!-- endsync has a different default when applied to media elements --> <!ENTITY % SMIL.endsync.media.attrib " %SMIL.pfx;endsync CDATA 'media' "> ]]> <!ENTITY % SMIL.fill.attrib ""> <!ENTITY % SMIL.endsync.attrib ""> <!ENTITY % SMIL.endsync.media.attrib ""> <!ENTITY % SMIL.FillDefault.module "IGNORE"> <![%SMIL.FillDefault.module;[ <!ENTITY % SMIL.fillDefault.attrib " %SMIL.pfx;fillDefault (remove|freeze|hold|transition|auto|inherit) 'inherit' "> ]]> <!ENTITY % SMIL.fillDefault.attrib ""> <![%SMIL.TimeContainerAttributes.module;[ <!ENTITY % SMIL.TimeContainerAttributes.attrib " %SMIL.pfx;timeAction CDATA #IMPLIED %SMIL.pfx;timeContainer CDATA #IMPLIED "> ]]> <!ENTITY % SMIL.TimeContainerAttributes.attrib ""> <!ENTITY % SMIL.RestartTiming.module "IGNORE"> <![%SMIL.RestartTiming.module;[ <!ENTITY % SMIL.RestartTiming.attrib " %SMIL.pfx;restart (always|whenNotActive|never|default) 'default' "> ]]> <!ENTITY % SMIL.RestartTiming.attrib ""> <!ENTITY % SMIL.RestartDefault.module "IGNORE"> <![%SMIL.RestartDefault.module;[ <!ENTITY % SMIL.RestartDefaultTiming.attrib " %SMIL.pfx;restartDefault (inherit|always|never|whenNotActive) 'inherit' "> ]]> <!ENTITY % SMIL.RestartDefaultTiming.attrib ""> <!ENTITY % SMIL.SyncBehavior.module "IGNORE"> <![%SMIL.SyncBehavior.module;[ <!ENTITY % SMIL.SyncBehavior.attrib " %SMIL.pfx;syncBehavior (canSlip|locked|independent|default) 'default' %SMIL.pfx;syncTolerance %TimeValue.datatype; 'default' "> ]]> <!ENTITY % SMIL.SyncBehavior.attrib ""> <!ENTITY % SMIL.SyncBehaviorDefault.module "IGNORE"> <![%SMIL.SyncBehaviorDefault.module;[ <!ENTITY % SMIL.SyncBehaviorDefault.attrib " %SMIL.pfx;syncBehaviorDefault (canSlip|locked|independent|inherit) 'inherit' %SMIL.pfx;syncToleranceDefault %TimeValue.datatype; 'inherit' "> ]]> <!ENTITY % SMIL.SyncBehaviorDefault.attrib ""> <!ENTITY % SMIL.SyncMaster.module "IGNORE"> <![%SMIL.SyncMaster.module;[ <!ENTITY % SMIL.SyncMaster.attrib " %SMIL.pfx;syncMaster (true|false) 'false' "> ]]> <!ENTITY % SMIL.SyncMaster.attrib ""> <!-- ================== Time Manipulations ================================ --> <!ENTITY % SMIL.TimeManipulations.module "IGNORE"> <![%SMIL.TimeManipulations.module;[ <!ENTITY % SMIL.TimeManipulations.attrib " %SMIL.pfx;accelerate %Number.datatype; '0' %SMIL.pfx;decelerate %Number.datatype; '0' %SMIL.pfx;speed %Number.datatype; '1.0' %SMIL.pfx;autoReverse (true|false) 'false' "> ]]> <!ENTITY % SMIL.TimeManipulations.attrib ""> <!-- ================== Media Objects ===================================== --> <!ENTITY % SMIL.MediaClipping.module "IGNORE"> <![%SMIL.MediaClipping.module;[ <!ENTITY % SMIL.MediaClip.attrib " %SMIL.pfx;clipBegin CDATA #IMPLIED %SMIL.pfx;clipEnd CDATA #IMPLIED "> <!ENTITY % SMIL.MediaClipping.deprecated.module "IGNORE"> <![%SMIL.MediaClipping.deprecated.module;[ <!ENTITY % SMIL.MediaClip.attrib.deprecated " %SMIL.pfx;clip-begin CDATA #IMPLIED %SMIL.pfx;clip-end CDATA #IMPLIED "> ]]> ]]> <!ENTITY % SMIL.MediaClip.attrib ""> <!ENTITY % SMIL.MediaClip.attrib.deprecated ""> <!ENTITY % SMIL.MediaParam.module "IGNORE"> <![%SMIL.MediaParam.module;[ <!ENTITY % SMIL.MediaObject.attrib " %SMIL.pfx;paramGroup NMTOKEN #IMPLIED "> ]]> <!ENTITY % SMIL.MediaObject.attrib ""> <!ENTITY % SMIL.MediaRenderAttributes.module "IGNORE"> <![%SMIL.MediaRenderAttributes.module;[ <!ENTITY % SMIL.MediaRenderAttributes.attrib " %SMIL.pfx;erase (whenDone|never) 'whenDone' %SMIL.pfx;sensitivity CDATA 'opaque' "> ]]> <!ENTITY % SMIL.MediaRenderAttributes.attrib ""> <!ENTITY % SMIL.MediaOpacity.module "IGNORE"> <![%SMIL.MediaOpacity.module;[ <!ENTITY % SMIL.MediaOpacity.attrib " %SMIL.pfx;chromaKey CDATA #IMPLIED %SMIL.pfx;chromaKeyOpacity CDATA #IMPLIED %SMIL.pfx;chromaKeyTolerance CDATA #IMPLIED %SMIL.pfx;mediaOpacity CDATA #IMPLIED %SMIL.pfx;mediaBackgroundOpacity CDATA #IMPLIED "> ]]> <!ENTITY % SMIL.MediaOpacity.attrib ""> <!ENTITY % SMIL.MediaPanZoom.module "IGNORE"> <![%SMIL.MediaPanZoom.module;[ <!ENTITY % SMIL.MediaPanZoom.attrib " %SMIL.pfx;panZoom CDATA #IMPLIED "> ]]> <!ENTITY % SMIL.MediaPanZoom.attrib ""> <!-- ================== Transitions Media ================================= --> <!ENTITY % SMIL.BasicTransitions.module "IGNORE"> <![%SMIL.BasicTransitions.module;[ <!ENTITY % SMIL.Transition.attrib " %SMIL.pfx;transIn CDATA #IMPLIED %SMIL.pfx;transOut CDATA #IMPLIED "> ]]> <!ENTITY % SMIL.Transition.attrib ""> <!-- ================== Timesheets ======================================== --> <!ENTITY % SMIL.Timesheet.module "IGNORE"> <![%SMIL.Timesheet.module;[ <!ENTITY % SMIL.Timesheet.attrib " %SMIL.pfx;first CDATA #IMPLIED %SMIL.pfx;last CDATA #IMPLIED %SMIL.pfx;next CDATA #IMPLIED %SMIL.pfx;prev CDATA #IMPLIED "> ]]> <!ENTITY % SMIL.Timesheet.attrib ""> <!-- ================== Module Namespace Prefixes ========================= --> <!ENTITY % SMIL.IncludeModuleNamespaces "IGNORE"> <![%SMIL.IncludeModuleNamespaces;[ <!ENTITY % SMIL.ModuleNamespaces " xmlns:Structure %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/Structure' xmlns:Identity %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/Identity' xmlns:BasicMedia %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/BasicMedia' xmlns:BrushMedia %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/BrushMedia' xmlns:MediaAccessibility %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/MediaAccessibility' xmlns:MediaClipMarkers %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/MediaClipMarkers' xmlns:MediaClipping %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/MediaClipping' xmlns:MediaDescription %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/MediaDescription' xmlns:MediaOpacity %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/MediaOpacity' xmlns:MediaPanZoom %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/MediaPanZoom' xmlns:MediaParam %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/MediaParam' xmlns:MediaRenderAttributes %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/MediaRenderAttributes' xmlns:AccessKeyTiming %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/AccessKeyTiming' xmlns:BasicExclTimeContainers %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/BasicExclTimeContainers' xmlns:BasicInlineTiming %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/BasicInlineTiming' xmlns:BasicPriorityClassContainers %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/BasicPriorityClassContainers' xmlns:BasicTimeContainers %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/BasicTimeContainers' xmlns:DOMTimingMethods %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/DOMTimingMethods' xmlns:EventTiming %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/EventTiming' xmlns:FillDefault %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/FillDefault' xmlns:MediaMarkerTiming %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/MediaMarkerTiming' xmlns:MinMaxTiming %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/MinMaxTiming' xmlns:MultiArcTiming %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/MultiArcTiming' xmlns:RepeatTiming %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/RepeatTiming' xmlns:RepeatValueTiming %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/RepeatValueTiming' xmlns:RestartDefault %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/RestartDefault' xmlns:RestartTiming %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/RestartTiming' xmlns:SyncbaseTiming %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/SyncbaseTiming' xmlns:SyncBehaviorDefault %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/SyncBehaviorDefault' xmlns:SyncBehavior %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/SyncBehavior' xmlns:SyncMaster %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/SyncMaster' xmlns:TimeContainerAttributes %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/TimeContainerAttributes' xmlns:WallclockTiming %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/WallclockTiming' xmlns:BasicContentControl %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/BasicContentControl' xmlns:CustomTestAttributes %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/CustomTestAttributes' xmlns:PrefetchControl %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/PrefetchControl' xmlns:RequiredContentControl %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/RequiredContentControl' xmlns:SkipContentControl %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/SkipContentControl' xmlns:AlignmentLayout %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/AlignmentLayout' xmlns:AudioLayout %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/AudioLayout' xmlns:BackgroundTilingLayout %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/BackgroundTilingLayout' xmlns:BasicLayout %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/BasicLayout' xmlns:MultiWindowLayout %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/MultiWindowLayout' xmlns:OverrideLayout %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/OverrideLayout' xmlns:StructureLayout %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/StructureLayout' xmlns:SubRegionLayout %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/SubRegionLayout' xmlns:BasicText %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/BasicText' xmlns:TextMotion %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/TextMotion' xmlns:TextStyling %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/TextStyling' xmlns:BasicLinking %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/BasicLinking' xmlns:LinkingAttributes %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/LinkingAttributes' xmlns:ObjectLinking %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/ObjectLinking' xmlns:Metainformation %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/Metainformation' xmlns:BasicTransitions %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/BasicTransitions' xmlns:FullScreenTransitionEffects %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/FullScreenTransitionEffects' xmlns:InlineTransitions %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/InlineTransitions' xmlns:TransitionModifiers %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/TransitionModifiers' xmlns:BasicAnimation %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/BasicAnimation' xmlns:SplineAnimation %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/SplineAnimation' xmlns:StateInterpolation %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/StateInterpolation' xmlns:StateSubmission %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/StateSubmission' xmlns:StateTest %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/StateTest' xmlns:UserState %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/UserState' xmlns:TimeManipulations %URI.datatype; #FIXED 'http://www.w3.org/2008/SMIL30/TimeManipulations' "> ]]> <!ENTITY % SMIL.ModuleNamespaces ""> <!-- end of smil-attribs-1.mod -->
<!-- ...................................................................... --> <!-- SMIL Qualified Names Module ......................................... --> <!-- file: smil-qname-1.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Jacco van Ossenbruggen, Sjoerd Mullender. Revision: 1.9 Date: 2008/09/07 20:36:50 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ENTITIES SMIL 3.0 Qualified Names 1.0//EN" SYSTEM "http://www.w3.org/2008/SMIL30/smil-qname-1.mod" ...................................................................... --> <!-- SMIL Qualified Names This module is contained in two parts, labeled Section 'A' and 'B': Section A declares parameter entities to support namespace- qualified names, namespace declarations, and name prefixing for SMIL and extensions. Section B declares parameter entities used to provide namespace-qualified names for all SMIL element types: %SMIL.animation.qname; the xmlns-qualified name for <animation> %SMIL.video.qname; the xmlns-qualified name for <video> ... SMIL extensions would create a module similar to this one, using the '%smil-qname-extra.mod;' parameter entity to insert it within Section A. A template module suitable for this purpose ('template-qname-1.mod') is included in the XHTML distribution. --> <!-- Section A: SMIL XML Namespace Framework :::::::::::::::::::::::::::::: --> <!-- 1. Declare a %SMIL.prefixed; conditional section keyword, used to activate namespace prefixing. The default value should inherit '%NS.prefixed;' from the DTD driver, so that unless overridden, the default behavior follows the overall DTD prefixing scheme. --> <!ENTITY % NS.prefixed "IGNORE" > <!ENTITY % SMIL.prefixed "%NS.prefixed;" > <!-- 2. Declare parameter entities (e.g., %SMIL.xmlns;) containing the URI reference used to identify the SMIL namespace: --> <!ENTITY % SMIL.xmlns "http://www.w3.org/ns/SMIL" > <!-- 3. Declare parameter entities (e.g., %SMIL.prefix;) containing the default namespace prefix string(s) to use when prefixing is enabled. This may be overridden in the DTD driver or the internal subset of a document instance. If no default prefix is desired, this may be declared as an empty string. NOTE: As specified in [XMLNAMES], the namespace prefix serves as a proxy for the URI reference, and is not in itself significant. --> <!ENTITY % SMIL.prefix "smil" > <!-- 4. Declare parameter entities (e.g., %SMIL.pfx;) containing the colonized prefix(es) (e.g., '%SMIL.prefix;:') used when prefixing is active, an empty string when it is not. --> <![%SMIL.prefixed;[ <!ENTITY % SMIL.pfx "%SMIL.prefix;:" > ]]> <!ENTITY % SMIL.pfx "" > <!-- 5. The parameter entity %SMIL.xmlns.extra.attrib; may be redeclared to contain any non-SMIL namespace declaration attributes for namespaces embedded in SMIL. When prefixing is active it contains the prefixed xmlns attribute and any namespace declarations embedded in SMIL, otherwise an empty string. --> <![%SMIL.prefixed;[ <!ENTITY % SMIL.xmlns.extra.attrib "xmlns:%SMIL.prefix; %URI.datatype; #FIXED '%SMIL.xmlns;'" > ]]> <!ENTITY % SMIL.xmlns.extra.attrib "" > <!ENTITY % XHTML.xmlns.extra.attrib "%SMIL.xmlns.extra.attrib;" > <!-- Declare the two parameter entities used to support XLink, first the parameter entity container for the URI used to identify the XLink namespace: --> <!ENTITY % XLINK.xmlns "http://www.w3.org/1999/xlink" > <!-- This contains the XLink namespace declaration attribute. --> <!ENTITY % XLINK.xmlns.attrib "xmlns:xlink %URI.datatype; #FIXED '%XLINK.xmlns;'" > <!-- declare qualified name extensions here --> <!ENTITY % smil-qname-extra.mod "" > %smil-qname-extra.mod; <!-- Section B: SMIL Qualified Names :::::::::::::::::::::::::::::::::::::: --> <!-- This section declares parameter entities used to provide namespace-qualified names for all SMIL element types. --> <!-- Structure Module --> <!ENTITY % SMIL.smil.qname "%SMIL.pfx;smil" > <!ENTITY % SMIL.head.qname "%SMIL.pfx;head" > <!ENTITY % SMIL.body.qname "%SMIL.pfx;body" > <!-- BasicMedia Module --> <!ENTITY % SMIL.ref.qname "%SMIL.pfx;ref" > <!ENTITY % SMIL.animation.qname "%SMIL.pfx;animation" > <!ENTITY % SMIL.audio.qname "%SMIL.pfx;audio" > <!ENTITY % SMIL.img.qname "%SMIL.pfx;img" > <!ENTITY % SMIL.text.qname "%SMIL.pfx;text" > <!ENTITY % SMIL.textstream.qname "%SMIL.pfx;textstream" > <!ENTITY % SMIL.video.qname "%SMIL.pfx;video" > <!-- MediaParam Module --> <!ENTITY % SMIL.param.qname "%SMIL.pfx;param" > <!ENTITY % SMIL.paramGroup.qname "%SMIL.pfx;paramGroup" > <!-- BrushMedia Module --> <!ENTITY % SMIL.brush.qname "%SMIL.pfx;brush" > <!-- BasicTimeContainers Module --> <!ENTITY % SMIL.par.qname "%SMIL.pfx;par" > <!ENTITY % SMIL.seq.qname "%SMIL.pfx;seq" > <!-- BasicExclTimeContainers Module --> <!ENTITY % SMIL.excl.qname "%SMIL.pfx;excl" > <!-- BasicPriorityClassContainers Module --> <!ENTITY % SMIL.priorityClass.qname "%SMIL.pfx;priorityClass"> <!-- BasicContentControl Module --> <!ENTITY % SMIL.switch.qname "%SMIL.pfx;switch" > <!-- CustomTestAttributes Module --> <!ENTITY % SMIL.customAttributes.qname "%SMIL.pfx;customAttributes" > <!ENTITY % SMIL.customTest.qname "%SMIL.pfx;customTest" > <!-- PrefetchControl Module --> <!ENTITY % SMIL.prefetch.qname "%SMIL.pfx;prefetch" > <!-- StructureLayout Module --> <!ENTITY % SMIL.layout.qname "%SMIL.pfx;layout" > <!-- BasicLayout Module --> <!ENTITY % SMIL.region.qname "%SMIL.pfx;region" > <!ENTITY % SMIL.root-layout.qname "%SMIL.pfx;root-layout" > <!-- MultiWindowLayout Module --> <!ENTITY % SMIL.topLayout.qname "%SMIL.pfx;topLayout" > <!-- AlignmentLayout Module --> <!ENTITY % SMIL.regPoint.qname "%SMIL.pfx;regPoint" > <!-- BasicText Module --> <!ENTITY % SMIL.br.qname "%SMIL.pfx;br" > <!ENTITY % SMIL.clear.qname "%SMIL.pfx;clear" > <!ENTITY % SMIL.smilText.qname "%SMIL.pfx;smilText" > <!ENTITY % SMIL.tev.qname "%SMIL.pfx;tev" > <!-- TextStyling Module --> <!ENTITY % SMIL.div.qname "%SMIL.pfx;div" > <!ENTITY % SMIL.p.qname "%SMIL.pfx;p" > <!ENTITY % SMIL.span.qname "%SMIL.pfx;span" > <!ENTITY % SMIL.textStyle.qname "%SMIL.pfx;textStyle" > <!ENTITY % SMIL.textStyling.qname "%SMIL.pfx;textStyling" > <!-- BasicLinking --> <!ENTITY % SMIL.a.qname "%SMIL.pfx;a" > <!ENTITY % SMIL.anchor.qname "%SMIL.pfx;anchor" > <!ENTITY % SMIL.area.qname "%SMIL.pfx;area" > <!-- Metainformation Module --> <!ENTITY % SMIL.meta.qname "%SMIL.pfx;meta" > <!ENTITY % SMIL.metadata.qname "%SMIL.pfx;metadata" > <!-- BasicTransitions Module --> <!ENTITY % SMIL.transition.qname "%SMIL.pfx;transition" > <!-- InlineTransitions Module --> <!ENTITY % SMIL.transitionFilter.qname "%SMIL.pfx;transitionFilter" > <!-- BasicAnimation Module --> <!ENTITY % SMIL.animate.qname "%SMIL.pfx;animate" > <!ENTITY % SMIL.animateColor.qname "%SMIL.pfx;animateColor" > <!ENTITY % SMIL.animateMotion.qname "%SMIL.pfx;animateMotion" > <!ENTITY % SMIL.set.qname "%SMIL.pfx;set" > <!-- UserState Module --> <!ENTITY % SMIL.delvalue.qname "%SMIL.pfx;delvalue" > <!ENTITY % SMIL.newvalue.qname "%SMIL.pfx;newvalue" > <!ENTITY % SMIL.setvalue.qname "%SMIL.pfx;setvalue" > <!ENTITY % SMIL.state.qname "%SMIL.pfx;state" > <!-- StateSubmission Module --> <!ENTITY % SMIL.send.qname "%SMIL.pfx;send" > <!ENTITY % SMIL.submission.qname "%SMIL.pfx;submission" > <!-- External Timing (Timesheets) --> <!ENTITY % SMIL.item.qname "%SMIL.pfx;item" > <!ENTITY % SMIL.timesheet.qname "%SMIL.pfx;timesheet" > <!-- end of smil-qname-1.mod -->
<!-- ...................................................................... --> <!-- SMIL 3.0 Modular Framework Module ................................... --> <!-- file: smil-framework-1.mod This is SMIL 3.0. Copyright: 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. Editor for SMIL 3.0: Sjoerd Mullender, CWI Editor for previous versions of SMIL: Jacco van Ossenbruggen, Sjoerd Mullender. Revision: 1.7 Date: 2008/09/07 20:36:49 This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//W3C//ENTITIES SMIL 3.0 Modular Framework 1.0//EN" SYSTEM "http://www.w3.org/2008/SMIL30/smil-framework-1.mod" .................................................................. --> <!-- Modular Framework This required module instantiates the modules needed to support the SMIL 3.0 modularization model, including: + datatypes + namespace-qualified names + common attributes + document model --> <!ENTITY % smil-datatypes.module "INCLUDE" > <![%smil-datatypes.module;[ <!ENTITY % smil-datatypes.mod PUBLIC "-//W3C//ENTITIES SMIL 3.0 Datatypes 1.0//EN" "smil-datatypes-1.mod" > %smil-datatypes.mod;]]> <!ENTITY % smil-qname.module "INCLUDE" > <![%smil-qname.module;[ <!ENTITY % smil-qname.mod PUBLIC "-//W3C//ENTITIES SMIL 3.0 Qualified Names 1.0//EN" "smil-qname-1.mod" > %smil-qname.mod;]]> <!ENTITY % smil-attribs.module "INCLUDE" > <![%smil-attribs.module;[ <!ENTITY % smil-attribs.mod PUBLIC "-//W3C//ENTITIES SMIL 3.0 Common Attributes 1.0//EN" "smil-attribs-1.mod" > %smil-attribs.mod;]]> <!ENTITY % smil-model.module "INCLUDE" > <![%smil-model.module;[ <!-- A content model MUST be defined by the driver file --> %smil-model.mod;]]> <!-- end of smil-framework-1.mod -->
Note: Modules marked with (**) are new Modules added in SMIL3.0. Modules marked with (*) are revised modules from SMIL 2.1
Module Name | specified in |
AccessKeyTiming | SMIL 3.0 Timing |
AlignmentLayout | SMIL 3.0 Layout |
AudioLayout | SMIL 3.0 Layout |
BackgroundTilingLayout | SMIL 3.0 Layout |
BasicAnimation | SMIL 3.0 Animation |
BasicContentControl | SMIL 3.0 ContentControl |
BasicInlineTiming | SMIL 3.0 Timing |
BasicExclTimeContainers | SMIL 3.0 Timing |
BasicLayout (*) | SMIL 3.0 Layout |
BasicLinking | SMIL 3.0 Linking |
BasicMedia | SMIL 3.0 Media Object |
BasicPriorityClassContainers | SMIL 3.0 Timing |
BasicText (**) | SMIL 3.0 smilText |
BasicTimeContainers | SMIL 3.0 Timing |
BasicTransitions | SMIL 3.0 Transitions |
BrushMedia | SMIL 3.0 Media Object |
CustomTestAttributes | SMIL 3.0 ContentControl |
DOMTimingMethods (**) | SMIL 3.0 Timing |
EventTiming | SMIL 3.0 Timing |
FillDefault | SMIL 3.0 Timing |
FullScreenTransitionEffects | SMIL 3.0 Transitions |
Identity (**) | SMIL 3.0 Structure |
InlineTransitions | SMIL 3.0 Transitions |
LinkingAttributes | SMIL 3.0 Linking |
MediaAccessibility | SMIL 3.0 Media Object |
MediaClipMarkers | SMIL 3.0 Media Object |
MediaClipping | SMIL 3.0 Media Object |
MediaDescription | SMIL 3.0 Media Object |
MediaMarkerTiming | SMIL 3.0 Timing |
MediaOpacity (**) | SMIL 3.0 Media Object |
MediaPanZoom (**) | SMIL 3.0 Media Object |
MediaParam (*) | SMIL 3.0 Media Object |
MediaRenderAttributes (**) | SMIL 3.0 Media Object |
Metainformation | SMIL 3.0 Metadata |
MinMaxTiming | SMIL 3.0 Timing |
MultiArcTiming | SMIL 3.0 Timing |
MultiWindowLayout | SMIL 3.0 Layout |
ObjectLinking | SMIL 3.0 Linking |
OverrideLayout | SMIL 3.0 Layout |
PrefetchControl | SMIL 3.0 ContentControl |
RepeatTiming | SMIL 3.0 Timing |
RepeatValueTiming | SMIL 3.0 Timing |
RequiredContentControl (**) | SMIL 3.0 Content Control |
RestartDefault | SMIL 3.0 Timing |
RestartTiming | SMIL 3.0 Timing |
SkipContentControl | SMIL 3.0 ContentControl |
SplineAnimation | SMIL 3.0 Animation |
StateInterpolation (**) | SMIL 3.0 State |
StateSubmission (**) | SMIL 3.0 State |
StateTest (**) | SMIL 3.0 State |
Structure | SMIL 3.0 Structure |
StructureLayout (**) | SMIL 3.0 Layout |
SubRegionLayout | SMIL 3.0 Layout |
SyncbaseTiming | SMIL 3.0 Timing |
SyncBehavior | SMIL 3.0 Timing |
SyncBehaviorDefault | SMIL 3.0 Timing |
SyncMaster | SMIL 3.0 Timing |
TextMotion (**) | SMIL 3.0 smilText |
TextStyling (**) | SMIL 3.0 smilText |
TimeContainerAttributes | SMIL 3.0 Timing |
TimeManipulations | SMIL 3.0 Time manipulations |
TransitionModifiers | SMIL 3.0 Transitions |
UserState (**) | SMIL 3.0 State |
WallclockTiming | SMIL 3.0 Timing |
Note: Elements marked with (**) are new elements added in SMIL 3.0.
Element Name |
specified in |
---|---|
a | SMIL 3.0 Linking |
anchor | SMIL 3.0 Linking |
animate | SMIL 3.0 Animation |
animateColor | SMIL 3.0 Animation |
animateMotion | SMIL 3.0 Animation |
animation | SMIL 3.0 Media Object |
area | SMIL 3.0 Linking |
audio | SMIL 3.0 Media Object |
body | SMIL 3.0 Structure |
br (**) | SMIL 3.0 smilText |
brush | SMIL 3.0 Media Object |
clear (**) | SMIL 3.0 smilText |
customAttributes | SMIL 3.0 Content Control |
customTest | SMIL 3.0 Content Control |
delvalue (**) | SMIL 3.0 State |
div (**) | SMIL 3.0 smilText |
excl | SMIL 3.0 Timing and Synchronization |
head | SMIL 3.0 Structure |
img | SMIL 3.0 Media Object |
layout | SMIL 3.0 Layout |
meta | SMIL 3.0 Metainformation |
metadata | SMIL 3.0 Metainformation |
newvalue (**) | SMIL 3.0 State |
p (**) | SMIL 3.0 smilText |
par | SMIL 3.0 Timing and Synchronization |
param | SMIL 3.0 Media Object |
paramGroup | SMIL 3.0 Media Object |
prefetch | SMIL 3.0 Content Control |
priorityClass | SMIL 3.0 Timing and Synchronization |
ref | SMIL 3.0 Media Object |
region | SMIL 3.0 Layout |
regPoint | SMIL 3.0 Layout |
root-layout | SMIL 3.0 Layout |
send (**) | SMIL 3.0 State |
seq | SMIL 3.0 Timing and Synchronization |
set | SMIL 3.0 Animation |
setvalue (**) | SMIL 3.0 State |
smil | SMIL 3.0 Structure |
smilText (**) | SMIL 3.0 smilText |
span (**) | SMIL 3.0 smilText |
state (**) | SMIL 3.0 State |
submission (**) | SMIL 3.0 State |
switch | SMIL 3.0 Content Control |
tev (**) | SMIL 3.0 smilText |
text | SMIL 3.0 Media Object |
textStyle (**) | SMIL 3.0 smilText |
textStyling (**) | SMIL 3.0 smilText |
textstream | SMIL 3.0 Media Object |
topLayout | SMIL 3.0 Layout |
transition | SMIL 3.0 Transition Effects |
transitionFilter | SMIL 3.0 Transition Effects |
video | SMIL 3.0 Media Object Chapter |