Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /osmf/trunk/samples/SMPTETTPluginTest/html-template/dfxp-testsuite/Styling/Styling001.xml [000000] .. [r2359] Maximize Restore

  Switch to side-by-side view

--- a
+++ b/osmf/trunk/samples/SMPTETTPluginTest/html-template/dfxp-testsuite/Styling/Styling001.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tt xml:lang="en"
+    xmlns="http://www.w3.org/ns/ttml"
+    xmlns:tts="http://www.w3.org/ns/ttml#styling"
+    xmlns:ttm="http://www.w3.org/ns/ttml#metadata">
+  <head>
+    <metadata> 
+      <ttm:title>Styling Test - styling element - 001</ttm:title>
+      <ttm:desc>Test two different styles in the style element.</ttm:desc>
+      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
+    </metadata>
+    <ttp:profile use="dfxp-presentation" xmlns:ttp="http://www.w3.org/ns/ttml#parameter">
+      <ttp:features xml:base="http://www.w3.org/ns/ttml/feature/">
+        <ttp:feature>#color</ttp:feature>
+        <ttp:feature>#backgroundColor</ttp:feature>
+        <ttp:feature>#textAlign</ttp:feature>
+        <ttp:feature>#styling-referential</ttp:feature>
+        <ttp:feature>#styling-inheritance-content</ttp:feature>
+      </ttp:features>
+    </ttp:profile>
+    <styling>
+    	<style xml:id="s1" tts:color="red" tts:textDecoration="none" tts:textAlign="center" tts:backgroundColor="blue" />
+    	<style xml:id="s2" tts:color="blue" tts:textDecoration="underline" tts:textAlign="left" tts:backgroundColor="green" />
+    </styling>
+  </head>
+  <body>
+    <div style="s1">
+    	<p begin="0s" end="5s">This caption is aligned in the center, has a blue background, red text and no decoration.</p>
+     	<p begin="5s" end="10s" style="s2">This caption is left aligned, has a green background and blue underlined text.</p>
+   	 </div>
+  </body>
+</tt>