Presentation is loading. Please wait.

Presentation is loading. Please wait.

Timing in XML XML and XSL Timing framework in XML Approaches Inline syntax (SMIL) Styled Timing Timesheets Timesheets and SMIL comparison.

Similar presentations


Presentation on theme: "Timing in XML XML and XSL Timing framework in XML Approaches Inline syntax (SMIL) Styled Timing Timesheets Timesheets and SMIL comparison."— Presentation transcript:

1 Timing in XML XML and XSL Timing framework in XML Approaches Inline syntax (SMIL) Styled Timing Timesheets Timesheets and SMIL comparison.

2 XML : : Record Type Attribute Value Attributes Name

3 XSL Extensible Stylesheet Language XML XSL Language used to describe how an XML source document is transformed. Rules Interne t Parser IIS

4 XSL </xsl:stylesheet </xsl:stylesheet color:#CCCCCC } Employees First name Last name Set title color... Create table title... Recursion...

5 Browser

6 Timing framework in XML Should be independent of the semantic of XML document. Should provide independent timing control of various components of the document (i.e: layout, style, content) to facilitate building templates

7 Inline syntax -Attributes added to language elements -Approach used in SMIL Styled Timing CSS or XSL stylesheets used to apply timing to a language Timesheets Separate timing from both content and presentation style Inline syntax -Attributes added to language elements -Approach used in SMIL Styled Timing CSS or XSL stylesheets used to apply timing to a language Timesheets Separate timing from both content and presentation style Timing approaches in XML

8 Inline Syntax approach Easy to understand, easy to author Generalized, extensible semantics with timeAction timeaction: Attribute in SMIL2.0 that let the author specify actions to apply while element is active in time Better when document structure aligned to timing structure

9 Synchronized Multimedia Integration Language -SMIL Three synchronization elements support common timing use-cases: -Parallel element par that will play the grouped media all together. -Sequence element seq that will play the grouped media one at a time as a sequence. -Exclusive element excl that will play the grouped media one at a time, but in any order.

10 SMIL t\:*, p, span {behavior:url(#default#time2);}.highlight { background-color:yellow; font-weight:bold } Highlight class

11 SMIL <t:audio src="media/talk.mp3“ syncBehavior="locked" /> SMIL Timing syntax consists of a set of attributes for controlling the behavior of media, and several types of time containers that group media together for coordinated presentation. Rap every thing in par timeAction for highlighting the span

12 Demo http://cimic.rutgers.edu/~ahgomaa/smil.html

13 Timing in XML Styled Timing CSS or XSL stylesheets used to apply timing to a language Timesheets Separate timing from both content and presentation style Styled Timing CSS or XSL stylesheets used to apply timing to a language Timesheets Separate timing from both content and presentation style Inline syntax -Attributes added to language elements -Approach used in SMIL Inline syntax -Attributes added to language elements -Approach used in SMIL 13

14 Styled Timing Timing in style sheets is considered to be the presentation style characteristic. In HTML, timing properties of the element in the body section are collected in the CSS Advantage: -Content structure is separate from presentation, so it facilitate template creation. Disadvantage: -If different timing with identical contents, work is duplicated. -Hard to provide timing control of the other styling rules

15 Timing in XML Timesheets Separate timing from both content and presentation style Timesheets Separate timing from both content and presentation style Inline syntax -Attributes added to language elements -Approach used in SMIL Styled Timing CSS or XSL stylesheets used to apply timing to a language Inline syntax -Attributes added to language elements -Approach used in SMIL Styled Timing CSS or XSL stylesheets used to apply timing to a language

16 XML Document Timing principals in XML Interne t Timing is a relation between the 2 other entities rather than a property to them Contents Provides structure to the content and the links Formatting style and (spatial) layout of presenting the content Timing describes the temporal relations between the elements in the content and formatting section

17 Relation Versus Property The objective is let the list element appear each one after another. - In assign property, the order is derived from the order of the list. - In assign relation, the order has been reserved from the order of the list. This shows immediately the independence created by the principle

18 Timesheets must support 1.Describing a timing structure independent from the document structure. 2.Applying timing and synchronization to a document without modifying the original document 3.Coordinating multiple documents 4.Defining multiple independent time actions on an element. Inline and styled timing can only define a single timeAction.

19 Timesheets versus SMIL Only concerned with the timing properties of the document only. Do not instantiate the entities they select. Timesheets assign relations between the entities involved. Timesheet is modifying the actual (active) content of the document, Unselected entities do not contribute to the presentation rendition of the document. Media declaration language with a layout construction, with timing embedded. Instantiate the entities they select SMIL assign properties to the entities involved. interpret the entity selection as object instantiation Timesheets should not be understood as a SMIL layer on top of the XML document

20 Timesheets may be used –document structure and timing structure do not align –synchronization spans multiple documents –inline syntax impractical or illegal Copyright restrictions Digital Talking Books


Download ppt "Timing in XML XML and XSL Timing framework in XML Approaches Inline syntax (SMIL) Styled Timing Timesheets Timesheets and SMIL comparison."

Similar presentations


Ads by Google