Initial population of ttml11 subtree.
authorGlenn Adams <glenn@skynav.com>
Wed, 11 Apr 2012 22:47:38 -0600
changeset 238 30436be2cc60
parent 237 585fb295764c
child 239 9bbcbd072f4f
Initial population of ttml11 subtree.
ttml11/spec/acknowledgements.xml
ttml11/spec/build.xml
ttml11/spec/entities.dtd
ttml11/spec/entitiescr.dtd
ttml11/spec/entitiesedcopy.dtd
ttml11/spec/entitieswd.dtd
ttml11/spec/status.xml
ttml11/spec/ttml11.xml
ttml11/spec/xmlspec-ttml11.dtd
ttml11/spec/xmlspec-ttml11.xsl
ttml11/spec/xmlspec.dtd
ttml11/spec/xmlspec.xsl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml11/spec/acknowledgements.xml	Wed Apr 11 22:47:38 2012 -0600
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<inform-div1 id="acknowledgments">
+<head>Acknowledgments</head>
+<p>The editor acknowledges the members of the Timed Text Working
+Group, the members of other W3C Working Groups, and industry experts
+in other forums who have contributed directly or indirectly to the
+process or content of creating this document.</p>
+<p>The current and former members of the Timed Text Working Group are:
+&acknowledgements-current;
+</p>
+<p>The editor wishes to especially acknowledge the following contributions
+by members: Micheal Dolan (SMPTE time codes, streaming; SMPTE liaison), David
+Kirby (introductory example document; SMPTE time codes, descriptive metadata; EBU/AAF liaison), Geoff Freed (styling
+and example images of style properties), Sean Hayes (advanced profile
+concepts, including applicative timing), Eric Hodge (timing),
+Thierry Michel (metadata), and Dave Singer (animation, scrolling).</p>
+<p>The Timed Text Working Group has benefited in its work from the
+participation and contributions of a number of people not currently
+members of the Working Group, including in particular those named
+below. Affiliations given are those current at the time of their work
+with the WG.</p>
+<p>
+John Birch, Screen Subtitling Systems;
+Bert Bos, W3C (chair, CSS WG);
+Martin D&uuml;rst, W3C (leader, I18N Activity);
+Al Gilman (chair, WAI Protocol and Formats WG);
+Philipp Hoschka, W3C (leader, Interaction Domain);
+Chris Lilley, W3C (chair, SVG WG).
+</p>
+<p>The editor wishes to especially acknowledge the following contributions
+by non-members: John Birch (dynamic flow).</p>
+</inform-div1>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml11/spec/build.xml	Wed Apr 11 22:47:38 2012 -0600
@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Apache Ant script to build spec.
+     Philippe Le Hegaret, W3C -->
+      
+<project name="TimedText" default="main" basedir=".">
+    <path id="saxon8.classpath">
+        <pathelement location="saxon8/saxon8.jar"/>
+    </path>
+    <property name="htmlOutputDir" value="./"/>
+    <property name="stylesheet" value="xmlspec-ttaf1-dfxp.xsl"/>
+    <property name="glossary" value="extract-glist.xsl"/>
+	<property name="generateBPlist" value="generateBPlist.xsl"/>
+    <property name="diffformat" value="diffspec.xsl"/>
+    <property name="last-public-draft" value="20070706"/>
+    
+    <property name="jing.jar" value="${basedir}/jing/jing.jar"/>
+    <property name="rnc.dir" value="${basedir}/rnc"/>
+    <property name="rnc.schema" value="${rnc.dir}/ttaf1-dfxp.rnc"/>
+    <property name="profiles.dir" value="${basedir}/profiles"/>
+
+    <patternset id="escapable">
+      <include name="examples/*.xml"/>
+      <include name="rnc/*.rnc"/>
+      <include name="xsd/*.xsd"/>
+      <include name="profiles/*.xml"/>
+    </patternset>
+
+    <patternset id="escaped">
+      <include name="examples/*.esc"/>
+      <include name="rnc/*.esc"/>
+      <include name="xsd/*.esc"/>
+      <include name="profiles/*.esc"/>
+    </patternset>
+
+    <target name="clean-escapes" description="Clean escaped entites.">
+      <delete quiet="true">
+	<fileset dir="${basedir}">
+	  <patternset refid="escaped"/>
+	</fileset>
+      </delete>
+    </target>
+
+    <target name="clean" depends="clean-escapes">
+        <delete quiet="true" file="ttaf1-dfxp.html"/>
+    </target>
+
+    <target name="validate-schema-rnc" description="Validates DFXP's RNC Schema.">
+        <java fork="true" jar="${jing.jar}" dir="${rnc.dir}">
+            <arg value="-c"/>
+            <arg value="ttaf1-dfxp.rnc"/>
+        </java>
+    </target>
+
+    <target name="validate-profile-transformation" description="Validates transformation profile.">
+        <java fork="true" jar="${jing.jar}">
+            <arg value="-c"/>
+            <arg value="${rnc.schema}"/>
+            <arg value="${profiles.dir}/dfxp-presentation.xml"/>
+        </java>
+    </target>
+
+    <target name="validate-profile-presentation" description="Validates presentation profile.">
+        <java fork="true" jar="${jing.jar}">
+            <arg value="-c"/>
+            <arg value="${rnc.schema}"/>
+            <arg value="${profiles.dir}/dfxp-presentation.xml"/>
+        </java>
+    </target>
+
+    <target name="validate-profile-full" description="Validates full profile.">
+        <java fork="true" jar="${jing.jar}">
+            <arg value="-c"/>
+            <arg value="${rnc.schema}"/>
+            <arg value="${profiles.dir}/dfxp-full.xml"/>
+        </java>
+    </target>
+
+    <target name="validate-profiles"
+	    depends="validate-profile-transformation,validate-profile-presentation,validate-profile-full"/>
+
+    <target name="validate-xsl" description="Validates all XML files.">
+        <xmlvalidate lenient="true">
+            <fileset dir="." includes="*.xsl"/>
+        </xmlvalidate>
+    </target>
+
+    <target name="validate-svg" description="Validates all SVG files.">
+        <xmlvalidate lenient="false" warn="yes">
+            <fileset dir="." includes="*.svg"/>
+        </xmlvalidate>
+    </target>
+
+    <target name="build-escapes" description="Generate escaped entites.">
+      <apply executable="sed">
+        <arg value="-f"/>
+        <arg value="escape.sed"/>
+	<fileset dir="${basedir}">
+	  <patternset refid="escapable"/>
+	</fileset>
+	<redirector>
+	  <outputmapper>
+    	    <mapper type="glob" from="*" to="*.esc"/>
+	  </outputmapper>
+	</redirector>
+      </apply>
+    </target>
+
+    <target name="validate-tt-specs" description="Validates all Timed Text spec files."
+        depends="build-escapes">
+        <xmlvalidate lenient="false" warn="yes" file="ttaf1-dfxp.xml"/>
+    </target>
+
+    <target name="validate" depends="validate-xsl,validate-svg,validate-tt-specs,validate-schema-rnc,validate-profiles"/>
+
+    <target name="updateAcks"
+        description="Update acknowledgements. Before running this, 
+	update ackcurrent.xml via  and ackold.xml
+	via http://www.w3.org/2000/09/dbwg/details?group=34314&amp;former=1&amp;public=1 .">
+        <get src="http://www.w3.org/2000/09/dbwg/details?group=34314&amp;public=1" dest="ackcurrent.xml"/>
+        <get src="http://www.w3.org/2000/09/dbwg/details?group=34314&amp;former=1&amp;public=1" dest="ackold.xml"/>
+        <java fork="true" classname="net.sf.saxon.Transform">
+            <classpath refid="saxon8.classpath"/>
+            <arg value="-o"/>
+            <arg value="acknowledgements-current.txt"/>
+            <arg value="ackcurrent.xml"/>
+            <arg value="generate-acknowledgements.xsl"/>
+            <arg value="participating=1"/>
+        </java>
+        <java fork="true" classname="net.sf.saxon.Transform">
+            <classpath refid="saxon8.classpath"/>
+            <arg value="-o"/>
+            <arg value="acknowledgements-old.txt"/>
+            <arg value="ackold.xml"/>
+            <arg value="generate-acknowledgements.xsl"/>
+            <arg value="participating=0"/>
+        </java>
+    </target>
+
+    <target name="html" description="Transforms xml into html.">
+        <echo>Generating ttaf1-dfxp.html</echo>
+        <java fork="true" classname="net.sf.saxon.Transform">
+            <classpath refid="saxon8.classpath"/>
+            <arg value="-o"/>
+            <arg value="${htmlOutputDir}ttaf1-dfxp.html"/>
+            <arg value="ttaf1-dfxp.xml"/>
+            <arg value="${stylesheet}"/>
+            <arg value="showAssertions=true"/>
+        </java>    
+    </target>
+
+    <path id="diffmk.classpath">
+        <pathelement location="${basedir}/diffmk.jar"/>
+        <pathelement location="${basedir}/DiffMk.properties"/>
+    </path>
+    <target name="generateXMLdiff">
+  <java classname="com.sun.xtc.diffmk.DiffMk" fork="true">
+            <arg value="-doctype"/>
+            <arg value="xmlspec"/>
+            <arg value="-diff"/>
+            <arg value="both"/>
+            <arg value="-words"/>
+            <arg value="tt-tr${last-public-draft}.xml"/>
+            <arg value="ttaf1-dfxp.xml"/>
+            <arg value="tt-diff${last-public-draft}.xml"/>
+            <classpath path="diffmk.jar:DiffMk.properties"> </classpath>
+        </java>
+    </target>
+    <target name="generateHTMLdiff">
+        <java fork="true" classname="net.sf.saxon.Transform">
+            <classpath refid="saxon8.classpath"/>
+            <arg value="-o"/>
+            <arg value="${htmlOutputDir}tt-diff${last-public-draft}.html"/>
+            <arg value="tt-diff${last-public-draft}.xml"/>
+            <arg value="diffspec.xsl"/>
+        </java>
+    </target>
+
+    <target name="postprocess-diff">
+      <java fork="true" classname="net.sf.saxon.Transform">
+            <classpath refid="saxon8.classpath"/>
+            <arg value="-o"/>
+            <arg value="temp-tt-diff${last-public-draft}.xml"/>
+            <arg value="tt-diff${last-public-draft}.xml"/>
+            <arg value="diff-postprocess.xsl"/>
+        </java>
+        <copy tofile="tt-diff${last-public-draft}.xml"
+            file="temp-tt-diff${last-public-draft}.xml" overwrite="true"/>
+        <delete file="temp-tt-diff${last-public-draft}.xml"/>
+    </target>
+
+    <target name="diff" depends="generateXMLdiff, postprocess-diff, generateHTMLdiff"/>
+
+    <target name="changelog" description="Update the CVS change log to be added into the specification">
+      <!--        <cvschangelog destfile="changelog.xml"/> -->
+      <get src="http://www.w3.org/2000/06/webdata/xslt?xslfile=http%3A%2F%2Fwww.w3.org%2F2008%2F05%2Fcvswebrss.xsl&amp;xmlfile=http%3A%2F%2Fcgi.w3.org%2Fcgi-bin%2Ftidy%3FdocAddr%3Dhttp%253A%252F%252Fdev.w3.org%252Fcvsweb%252F2008%252Fws%252Ftt%252Fttaf1-dfxp.xml%26forceXML%3Don" dest="changelog.xml"/>
+    </target>
+
+    <target name="generate" description="Generate the specification without updating changelog and acknowledgments sections"
+	    depends="validate-tt-specs,html">
+      <echo>WARNING: changelog.xml and acknowledgments.xml MAY be out of date. Use "main" target if necessary.</echo>
+    </target>
+    
+    <target name="main" description="Generate the specification for a CVS commit"
+	    depends="changelog,validate-tt-specs,html">
+<!--	    depends="updateAcks,changelog,validate-tt-specs,html"> -->
+      <echo>ttaf1-dfxp.html is ready for CVS commit</echo>
+      <echo>Use target "generate" to avoid regenerating changelog.xml and acknowledgments.xml</echo>
+    </target>
+
+</project>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml11/spec/entities.dtd	Wed Apr 11 22:47:38 2012 -0600
@@ -0,0 +1,28 @@
+
+<!-- comment / uncomment the appropriate entity -->
+<!ENTITY % sub.entities SYSTEM "entitiesedcopy.dtd" >
+<!-- <!ENTITY % sub.entities SYSTEM "entitieswd.dtd" > -->
+<!-- <!ENTITY % sub.entities SYSTEM "entitiescr.dtd" > -->
+%sub.entities;
+
+<!-- Titles -->
+<!ENTITY title "Timed Text Markup Language (TTML) 1.0 (Second Edition)" >
+
+<!-- XML Namespaces used in the drafts -->
+<!ENTITY nsuri "http://www.w3.org/ns/ttml" >
+
+<!--
+<!ENTITY schema "http://www.w3.org/2008/02/tt.xsd" >
+-->
+
+<!-- Acknowledgements -->
+
+<!ENTITY acknowledgements SYSTEM "acknowledgements.xml" >
+<!ENTITY acknowledgements-current SYSTEM "acknowledgements-current.txt" >
+<!ENTITY acknowledgements-old SYSTEM "acknowledgements-old.txt" >
+
+<!-- Misc entities. Feel free to add more -->
+
+<!ENTITY EII "<emph>element information item</emph>">
+<!ENTITY AII "<emph>attribute information item</emph>">
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml11/spec/entitiescr.dtd	Wed Apr 11 22:47:38 2012 -0600
@@ -0,0 +1,31 @@
+<?xml version='1.0' encoding='ISO-8859-1' ?>
+
+<!--
+  Date parameters
+  -->
+<!ENTITY draft.year "2010">
+<!ENTITY draft.month "February">
+<!ENTITY draft.mm "02">
+<!ENTITY draft.day "23">
+<!ENTITY draft.dd "23">
+
+<!ENTITY draft.date "&draft.year;&draft.mm;&draft.dd;">
+
+<!ENTITY prefix "ttaf1-dfxp">
+
+<!ENTITY w3c.tr.latest  "http://www.w3.org/TR">	
+
+<!-- Latest version links. don't touch -->
+<!ENTITY latest "&w3c.tr.latest;/&prefix;/">
+
+<!ENTITY w3c.tr  "&w3c.tr.latest;/&draft.year;">	
+
+<!ENTITY document.role "public">
+
+<!-- The following is used for document .-->
+<!ENTITY document.status "W3C Candidate Recommendation">
+<!ENTITY w3c.status "CR">
+<!ENTITY doctype "cr">
+
+<!ENTITY w3c-designation
+  "&w3c.tr.latest;/&draft.year;/&w3c.status;-&prefix;-&draft.date;/">
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml11/spec/entitiesedcopy.dtd	Wed Apr 11 22:47:38 2012 -0600
@@ -0,0 +1,34 @@
+<?xml version='1.0' encoding='ISO-8859-1' ?>
+
+<!--
+  Date parameters
+  ** DO NOT CHANGE **
+  for publication, change them in entitieswd.dtd
+  -->
+<!ENTITY draft.year "@@@@">
+<!ENTITY draft.month "@@@@">
+<!ENTITY draft.mm "@@">
+<!ENTITY draft.day "@@">
+<!ENTITY draft.dd "@@">
+
+<!-- Don't touch after this line -->
+
+<!ENTITY draft.date "&draft.year;&draft.mm;&draft.dd;">
+
+<!ENTITY prefix "ttaf1-dfxp">
+
+<!ENTITY w3c-designation "&prefix;.html">
+
+<!ENTITY w3c.tr.latest  "http://dvcs.w3.org/hg/ttml/raw-file/tip/ttml10/spec">
+
+<!-- Latest version links. don't touch -->
+<!ENTITY latest "&w3c.tr.latest;/&w3c-designation;?content-type=text/html;charset=utf-8">
+
+<!ENTITY w3c.tr  "">	
+
+<!ENTITY document.role "editors-copy">
+
+<!ENTITY doctype "wd">
+
+<!ENTITY status "<status><p></p></status>">
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml11/spec/entitieswd.dtd	Wed Apr 11 22:47:38 2012 -0600
@@ -0,0 +1,31 @@
+<?xml version='1.0' encoding='ISO-8859-1' ?>
+
+<!--
+  Date parameters
+  -->
+<!ENTITY draft.year "2009">
+<!ENTITY draft.month "June">
+<!ENTITY draft.mm "06">
+<!ENTITY draft.day "02">
+<!ENTITY draft.dd "02">
+
+<!ENTITY draft.date "&draft.year;&draft.mm;&draft.dd;">
+
+<!ENTITY prefix "ttaf1-dfxp">
+
+<!ENTITY w3c.tr.latest  "http://www.w3.org/TR">	
+
+<!-- Latest version links. don't touch -->
+<!ENTITY latest "&w3c.tr.latest;/&prefix;/">
+
+<!ENTITY w3c.tr  "&w3c.tr.latest;/&draft.year;">
+
+<!ENTITY document.role "public">
+
+<!-- The following is used for document .-->
+<!ENTITY document.status "W3C Working Draft">
+<!ENTITY w3c.status "WD">
+<!ENTITY doctype "wd">
+
+<!ENTITY w3c-designation
+  "&w3c.tr.latest;/&draft.year;/&w3c.status;-&prefix;-&draft.date;/">
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml11/spec/status.xml	Wed Apr 11 22:47:38 2012 -0600
@@ -0,0 +1,72 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<status id="status">
+<p>
+<emph>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 <loc
+href="http://www.w3.org/TR/">W3C technical reports index</loc> at
+http://www.w3.org/TR/.</emph>
+</p>
+<p>
+This is the Proposed Recommendation of the Timed Text (TTML) &versionOfTT;. W3C publishes a technical report as a Proposed Recommendation
+to indicate that the document is believed to be stable, and to
+encourage implementation by the developer community. The W3C
+membership and other interested parties are invited to review the
+document and send comments to <loc
+href="mailto:public-tt@w3.org">public-tt@w3.org</loc> (with <loc
+href="http://lists.w3.org/Archives/Public/public-tt/">public
+archive</loc>) through 23 March 2010.
+</p>
+<p>This document is based on feedback from implementers. The list of
+changes made since the previous version is available in
+<specref ref="change-history-cr3-to-pr1"/>. A list of <a href='http://www.w3.org/2010/08/ttml-issues.html'>issues</a> is also available.
+</p>
+<p>
+A <loc href='http://www.w3.org/2008/10/dfxp-testsuite.zip'>test
+suite</loc> is available, along with
+its <loc href='http://www.w3.org/2008/10/dfxp-test-coverage.html'>coverage
+report</loc> and
+a <loc href='http://www.w3.org/2009/05/dfxp-results.html'>implementation
+report</loc>. Note that the test suite and implementations are work in
+progress and may not reflect all of the changes of this document.
+</p>
+<p>
+The entrance criteria to the Proposed Recommendation phase require at
+least two independently developed interoperable implementations of
+each required and optional feature.
+</p>
+<p>
+The dynamicFlow feature and the property value reverse oblique text
+have removed due to lack of implementations.
+</p>
+
+<p>
+Publication as a Proposed Recommendation does not imply endorsement by
+the W3C Membership. This is a draft document and may be updated,
+replaced or obsoleted by other documents at any time. It is
+inappropriate to cite this document as other than work in progress.
+</p>
+<p>
+This document has been produced by the <loc
+href="http://www.w3.org/AudioVideo/TT/">Timed Text (TT) Working Group</loc> as
+part of the W3C <loc href="http://www.w3.org/2008/WebVideo/">Video
+in the Web Activity</loc>, following the procedures set out for the W3C <loc
+href="http://www.w3.org/Consortium/Process/">Process</loc>.  The authors of this
+document are listed in the header of this document.
+</p>
+
+<p>This document was produced by a group operating under the <loc
+href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February
+2004 W3C Patent Policy</loc>. W3C maintains a <loc 
+href="http://www.w3.org/2004/01/pp-impl/34314/status#disclosures">public list of any patent
+disclosures</loc> 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 <loc
+href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential
+Claim(s)</loc> must disclose the information in accordance with <loc
+href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section
+6 of the W3C Patent Policy</loc>. </p>
+
+</status>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml11/spec/ttml11.xml	Wed Apr 11 22:47:38 2012 -0600
@@ -0,0 +1,12974 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- $Id$ -->
+<!DOCTYPE spec PUBLIC "-//W3C//DTD Specification V2.10//EN" "xmlspec-ttml11.dtd" [
+<!ENTITY % entities SYSTEM "entities.dtd" >
+%entities;
+<!ENTITY status SYSTEM "status.xml">
+<!ENTITY document.status "Editors' copy $Date$">
+<!ENTITY title "&title;">
+<!ENTITY prevloc "http://www.w3.org/TR/2010/REC-ttaf1-dfxp-20101118/">
+<!ENTITY versionOfTT "1.0">
+<!ENTITY tbd "<phrase role='tbd'>To Be Defined</phrase>">
+<!ENTITY sp "&#x0020;">
+<!ENTITY sect "&#x00a7;">
+<!ENTITY aring "&#x00e5;">
+<!ENTITY ccedil "&#x00e7;">
+<!ENTITY Ccedil "&#x00c7;">
+<!ENTITY mult "&#x00d7;">
+<!ENTITY uuml "&#x00fc;">
+<!ENTITY nbsp "&#x00a0;">
+<!ENTITY ndash "&#x2013;">
+<!ENTITY mdash "&#x2014;">
+<!ENTITY prime "&#x2032;">
+<!ENTITY hArr "&#x21d4;">
+<!ENTITY trade "&#x2122;">
+<!ENTITY hellip "&#x2026;">
+<!ENTITY isin "&#x2208;">
+<!ENTITY minus "&#x2212;">
+<!ENTITY le "&#x2264;">
+<!ENTITY ge "&#x2265;">
+<!ENTITY plusmn "&#x00B1;">
+<!ENTITY dfxp-ex1 SYSTEM "./examples/ex1.xml.esc">
+<!ENTITY dfxp-ex1-x-0 SYSTEM "./examples/ex1-x-0.xml.esc">
+<!ENTITY dfxp-ex1-p-0 SYSTEM "./examples/ex1-p-0.xml.esc">
+<!ENTITY dfxp-ex1-x-1 SYSTEM "./examples/ex1-x-1.xml.esc">
+<!ENTITY dfxp-ex1-x-2 SYSTEM "./examples/ex1-x-2.xml.esc">
+<!ENTITY rnc-dfxp-driver SYSTEM "./rnc/ttml11.rnc.esc">
+<!ENTITY rnc-dfxp-animation-module SYSTEM "./rnc/ttml11-animation.rnc.esc">
+<!ENTITY rnc-dfxp-classes-module SYSTEM "./rnc/ttml11-classes.rnc.esc">
+<!ENTITY rnc-dfxp-content-module SYSTEM "./rnc/ttml11-content.rnc.esc">
+<!ENTITY rnc-dfxp-core-attribs-module SYSTEM "./rnc/ttml11-core-attribs.rnc.esc">
+<!ENTITY rnc-dfxp-datatypes-module SYSTEM "./rnc/ttml11-datatypes.rnc.esc">
+<!ENTITY rnc-dfxp-document-module SYSTEM "./rnc/ttml11-document.rnc.esc">
+<!ENTITY rnc-dfxp-head-module SYSTEM "./rnc/ttml11-head.rnc.esc">
+<!ENTITY rnc-dfxp-metadata-module SYSTEM "./rnc/ttml11-metadata.rnc.esc">
+<!ENTITY rnc-dfxp-metadata-items-module SYSTEM "./rnc/ttml11-metadata-items.rnc.esc">
+<!ENTITY rnc-dfxp-metadata-attribs-module SYSTEM "./rnc/ttml11-metadata-attribs.rnc.esc">
+<!ENTITY rnc-dfxp-parameters-module SYSTEM "./rnc/ttml11-parameters.rnc.esc">
+<!ENTITY rnc-dfxp-parameter-items-module SYSTEM "./rnc/ttml11-parameter-items.rnc.esc">
+<!ENTITY rnc-dfxp-parameter-attribs-module SYSTEM "./rnc/ttml11-parameter-attribs.rnc.esc">
+<!ENTITY rnc-dfxp-styling-attribs-module SYSTEM "./rnc/ttml11-styling-attribs.rnc.esc">
+<!ENTITY rnc-dfxp-styling-module SYSTEM "./rnc/ttml11-styling.rnc.esc">
+<!ENTITY rnc-dfxp-layout-module SYSTEM "./rnc/ttml11-layout.rnc.esc">
+<!ENTITY rnc-dfxp-timing-attribs-module SYSTEM "./rnc/ttml11-timing-attribs.rnc.esc">
+<!ENTITY xsd-dfxp-driver SYSTEM "./xsd/ttml11.xsd.esc">
+<!ENTITY xsd-dfxp-animation-module SYSTEM "./xsd/ttml11-animation.xsd.esc">
+<!ENTITY xsd-dfxp-content-module SYSTEM "./xsd/ttml11-content.xsd.esc">
+<!ENTITY xsd-dfxp-core-attribs-module SYSTEM "./xsd/ttml11-core-attribs.xsd.esc">
+<!ENTITY xsd-dfxp-datatypes-module SYSTEM "./xsd/ttml11-datatypes.xsd.esc">
+<!ENTITY xsd-dfxp-document-module SYSTEM "./xsd/ttml11-document.xsd.esc">
+<!ENTITY xsd-dfxp-head-module SYSTEM "./xsd/ttml11-head.xsd.esc">
+<!ENTITY xsd-dfxp-metadata-module SYSTEM "./xsd/ttml11-metadata.xsd.esc">
+<!ENTITY xsd-dfxp-metadata-items-module SYSTEM "./xsd/ttml11-metadata-items.xsd.esc">
+<!ENTITY xsd-dfxp-metadata-attribs-module SYSTEM "./xsd/ttml11-metadata-attribs.xsd.esc">
+<!ENTITY xsd-dfxp-parameters-module SYSTEM "./xsd/ttml11-parameters.xsd.esc">
+<!ENTITY xsd-dfxp-parameter-items-module SYSTEM "./xsd/ttml11-parameter-items.xsd.esc">
+<!ENTITY xsd-dfxp-parameter-attribs-module SYSTEM "./xsd/ttml11-parameter-attribs.xsd.esc">
+<!ENTITY xsd-dfxp-styling-attribs-module SYSTEM "./xsd/ttml11-styling-attribs.xsd.esc">
+<!ENTITY xsd-dfxp-styling-module SYSTEM "./xsd/ttml11-styling.xsd.esc">
+<!ENTITY xsd-dfxp-layout-module SYSTEM "./xsd/ttml11-layout.xsd.esc">
+<!ENTITY xsd-dfxp-timing-attribs-module SYSTEM "./xsd/ttml11-timing-attribs.xsd.esc">
+<!ENTITY xsd-dfxp-xml-attrs-module SYSTEM "./xsd/xml.xsd.esc">
+<!ENTITY profile-dfxp-presentation SYSTEM "./profiles/dfxp-presentation.xml.esc">
+<!ENTITY profile-dfxp-transformation SYSTEM "./profiles/dfxp-transformation.xml.esc">
+<!ENTITY profile-dfxp-full SYSTEM "./profiles/dfxp-full.xml.esc">
+]>
+<?xml-stylesheet type='text/xsl' href='xmlspec-ttml11.xsl'?>
+<spec w3c-doctype="&doctype;" role="&document.role;">
+<header>
+<title>&title;</title>
+<w3c-designation>&w3c-designation;</w3c-designation>
+<w3c-doctype>&document.status;</w3c-doctype>
+<pubdate>
+<day>&draft.day;</day>
+<month>&draft.month;</month>
+<year>&draft.year;</year>
+</pubdate>
+<publoc>
+<loc href="&w3c-designation;">&w3c-designation;</loc>
+</publoc>
+<prevlocs>
+<loc href="&prevloc;">&prevloc;</loc>
+</prevlocs>
+<latestloc>
+<loc href="&latest;">&latest;</loc>
+</latestloc>
+<authlist id="editors" role="editor">
+<author>
+<name>Glenn Adams</name>
+<affiliation>Cox Communications, Inc.</affiliation>
+</author>
+</authlist>
+<authlist id="contributors" role="contributor">
+<author>
+<name>Mike Dolan</name>
+<affiliation>Invited Expert</affiliation>
+</author>
+<author>
+<name>Geoff Freed</name>
+<affiliation>WGBH National Center for Accessible Media</affiliation>
+</author>
+<author>
+<name>Sean Hayes</name>
+<affiliation>Microsoft</affiliation>
+</author>
+<author>
+<name>Erik Hodge</name>
+<affiliation>RealNetworks</affiliation>
+</author>
+<author>
+<name>David Kirby</name>
+<affiliation>British Broadcasting Corporation (BBC)</affiliation>
+</author>
+<author>
+<name>Thierry Michel</name>
+<affiliation>W3C</affiliation>
+</author>
+<author>
+<name>Dave Singer</name>
+<affiliation>Apple Computer</affiliation>
+</author>
+</authlist>
+<abstract id="abstract">
+<p>This document specifies the Timed Text Markup Language (TTML) in terms of a
+vocabulary and semantics thereof.</p>
+<p>The Timed Text Markup Language is a content type that represents
+timed text media for the purpose of interchange among authoring
+systems. Timed text is textual information that is intrinsically or
+extrinsically associated with timing information.</p>
+<p>It is intended to be used
+for the purpose of transcoding or exchanging timed text information
+among legacy distribution content formats presently in use for
+subtitling and captioning functions.</p>
+<p>In addition to being used for interchange among legacy distribution content
+formats, TTML content may be used directly as a distribution format,
+for example, providing a standard content format to reference from a <el>&lt;text&gt;</el> or 
+<el>&lt;textstream&gt;</el> media object element in a <bibref
+ref="smil21"/> document.</p>
+</abstract>
+&status;
+<langusage><language id='en-us'>English</language></langusage>
+<revisiondesc><p>Last Modified: $Date$</p></revisiondesc>
+</header>
+<body>
+<div1 id="intro">
+<head>Introduction</head>
+<p><emph>Unless specified otherwise, this section and its sub-sections are non-normative.</emph></p>
+<p>The Timed Text Markup Language (TTML) 1.0
+provides a standardized representation of a particular subset of
+textual information with which stylistic, layout, and timing semantics are associated by
+an author or an authoring system for the purpose of interchange and potential presentation.</p>
+<p>TTML is expressly designed to meet only a limited set of requirements
+established by <bibref ref="ttaf1-req"/>, and summarized in <specref
+ref="requirements"/>. In particular, only those requirements which service the
+need of performing interchange with existing, legacy distribution systems are
+satisfied.</p>
+<p>In addition to being used for interchange among legacy distribution content
+formats, TTML content may be used directly as a distribution format, providing, for
+example, a standard content format to reference from a <el>&lt;text&gt;</el> or 
+<el>&lt;textstream&gt;</el> media object element in a <bibref
+ref="smil21"/> document. Certain properties of TTML support
+streamability of content, as described in <specref ref="streaming"/>.</p>
+<note>
+<p>While TTML was not expressly designed for direct (embedded) integration into a
+SMIL document instance, such integration is not precluded.</p>
+</note>
+<note>
+<p>In some contexts of use, it may be appropriate to employ
+animated content to depict sign language representations of the same content
+as expressed by a Timed Text document instance. This use case is not
+explicitly addressed by TTML mechanisms, but may be addressed by some
+external multimedia integration technology, such as SMIL.</p>
+</note>
+<div2 id="model">
+<head>System Model</head>
+<p>Use of TTML is intended to function in a wider context of Timed Text
+Authoring and Distribution mechanisms that are based upon a system
+model, depicted in <specref ref="model-graphic"/>, wherein the Timed Text Markup Language
+serves as a bidirectional interchange format among a heterogeneous collection of
+authoring systems, and as a unidirectional interchange format to a
+heterogeneous collection of distribution formats after undergoing transcoding
+or compilation to the target distribution formats as required, and where one
+particular distribution format is TTML.</p>
+<table id="model-graphic" role="example-images">
+<caption>Figure 1 &ndash; System Model</caption>
+<tbody>
+<tr>
+<td><graphic id="graphic-model" source="images/model.png" alt="System Model"/></td>
+</tr>
+</tbody>
+</table>
+</div2>
+<div2 id="example">
+<head>Document Example</head>
+<p>A TTML document instance consists of a <el>tt</el> document element that contains
+a header and a body, where the header specifies document level metadata, styling
+definitions and layout definitions, and the body specifies text content intermixed
+with references to style and layout information and inline timing information.</p>
+<table id="dfxp-example-document-structure" role="example">
+<caption>Example Fragment &ndash; TTML Document Structure</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;tt xml:lang="" xmlns="http://www.w3.org/ns/ttml"&gt;
+  &lt;head&gt;
+    &lt;metadata/&gt;
+    &lt;styling/&gt;
+    &lt;layout/&gt;
+  &lt;/head&gt;
+  &lt;body/&gt;
+&lt;/tt&gt;
+</eg>
+</td></tr>
+</tbody>
+</table>
+<p>Document level metadata may specify a document title, description,
+and copyright information. In addition, arbitrary metadata drawn from
+other namespaces may be specified.</p>
+<table id="dfxp-example-metadata" role="example">
+<caption>Example Fragment &ndash; TTML Metadata</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;metadata xmlns:ttm="http://www.w3.org/ns/ttml#metadata"&gt;
+  &lt;ttm:title&gt;Timed Text TTML Example&lt;/ttm:title&gt;
+  &lt;ttm:copyright&gt;The Authors (c) 2006&lt;/ttm:copyright&gt;
+&lt;/metadata&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>Styling information may be specified in the form of style specification
+definitions that are referenced by layout and content information.</p>
+<p>In <specref ref="dfxp-example-styling"/>, four style sets of specifications
+are defined, with one set serving as a collection of default styles.</p>
+<table id="dfxp-example-styling" role="example">
+<caption>Example Fragment &ndash; TTML Styling</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;styling xmlns:tts="http://www.w3.org/ns/ttml#styling"&gt;
+  &lt;!-- s1 specifies default color, font, and text alignment --&gt;
+  &lt;style xml:id="s1"
+    tts:color="white"
+    tts:fontFamily="proportionalSansSerif"
+    tts:fontSize="22px"
+    tts:textAlign="center"
+  /&gt;
+  &lt;!-- alternative using yellow text but otherwise the same as style s1 --&gt;
+  &lt;style xml:id="s2" style="s1" tts:color="yellow"/&gt;
+  &lt;!-- a style based on s1 but justified to the right --&gt;
+  &lt;style xml:id="s1Right" style="s1" tts:textAlign="end" /&gt;     
+  &lt;!-- a style based on s2 but justified to the left --&gt;
+  &lt;style xml:id="s2Left" style="s2" tts:textAlign="start" /&gt;
+&lt;/styling&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>Layout information defines one or more regions into which content
+is intended to be presented. A region definition may reference one or
+more sets of style specifications in order to permit content flowed in the
+region to inherit from these styles.
+In <specref ref="dfxp-example-layout"/>, the region definition makes
+reference to style specification <code>s1</code> which allows all content
+flowed into the region to inherit from the region's styles (in the case
+that a style is not already explicitly specified on content or inherited
+via the content hierarchy.)</p>
+<table id="dfxp-example-layout" role="example">
+<caption>Example Fragment &ndash; TTML Layout</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;layout xmlns:tts="http://www.w3.org/ns/ttml#styling"&gt;
+  &lt;region xml:id="subtitleArea"
+    style="s1"
+    tts:extent="560px 62px"
+    tts:padding="5px 3px"
+    tts:backgroundColor="black"
+    tts:displayAlign="after"
+  /&gt;
+&lt;/layout&gt;  
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>The content of a TTML document instance is expressed in its
+body, which is organized in terms of block and inline text elements.
+The hierarchical organization of content elements serves a primary role in
+determining both spatial and temporal relationships. For example, in
+<specref ref="dfxp-example-body"/>, each paragraph (<el>p</el> element)
+is flowed into its target region in the specified lexical order; furthermore,
+the active time interval of each paragraph is timed in accordance to its
+parent or sibling according to the applicable time containment semantics &mdash;
+in this case, the division parent is interpreted as a parallel time
+container.</p>
+<table id="dfxp-example-body" role="example">
+<caption>Example Fragment &ndash; TTML Body</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;body region="subtitleArea"&gt;
+  &lt;div&gt;
+    &lt;p xml:id="subtitle1" begin="0.76s" end="3.45s"&gt;
+      It seems a paradox, does it not,
+    &lt;/p&gt;
+    &lt;p xml:id="subtitle2" begin="5.0s" end="10.0s"&gt;
+      that the image formed on&lt;br/&gt;
+      the Retina should be inverted?
+    &lt;/p&gt;
+    &lt;p xml:id="subtitle3" begin="10.0s" end="16.0s" style="s2"&gt;
+      It is puzzling, why is it&lt;br/&gt;
+      we do not see things upside-down?
+    &lt;/p&gt;
+    &lt;p xml:id="subtitle4" begin="17.2s" end="23.0s"&gt;
+      You have never heard the Theory,&lt;br/&gt;
+      then, that the Brain also is inverted?
+    &lt;/p&gt;
+    &lt;p xml:id="subtitle5" begin="23.0s" end="27.0s" style="s2"&gt;
+      No indeed! What a beautiful fact!
+    &lt;/p&gt;
+    &lt;p xml:id="subtitle6a" begin="28.0s" end="34.6s" style="s2Left"&gt;
+      But how is it proved?
+    &lt;/p&gt;
+    &lt;p xml:id="subtitle6b" begin="28.0s" end="34.6s" style="s1Right"&gt;
+      Thus: what we call
+    &lt;/p&gt;
+    &lt;p xml:id="subtitle7" begin="34.6s" end="45.0s" style="s1Right"&gt;
+      the vertex of the Brain&lt;br/&gt;
+      is really its base
+    &lt;/p&gt;
+    &lt;p xml:id="subtitle8" begin="45.0s" end="52.0s" style="s1Right"&gt;
+      and what we call its base&lt;br/&gt;
+      is really its vertex,
+    &lt;/p&gt;
+    &lt;p xml:id="subtitle9a" begin="53.5s" end="58.7s"&gt;
+      it is simply a question of nomenclature.
+    &lt;/p&gt;
+    &lt;p xml:id="subtitle9b" begin="53.5s" end="58.7s" style="s2"&gt;
+      How truly delightful!
+    &lt;/p&gt;
+  &lt;/div&gt;    
+&lt;/body&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>The first subtitle <specref ref="dfxp-example-subtitle-1"/> is
+presented during the time interval 0.76 to 3.45 seconds.
+This
+subtitle inherits its font family, font size,
+foreground color, and text alignment from the region into which it is
+presented. Since no region is explicitly specified on the paragraph,
+the nearest ancestor that specifies a region determines the
+region. Note also that content is presented
+at the bottom (after edge) of the containing region due to the <code>tts:displayAlign="after"</code>
+being specified on the region definition.</p>
+<note role="explanation">
+<p>The notation "[<emph>X</emph>,<emph>Y</emph>]" denotes a closed
+interval from <emph>X</emph> to <emph>Y</emph>, including
+<emph>X</emph> and <emph>Y</emph>;
+"[<emph>X</emph>,<emph>Y</emph>)" denotes a right half-open
+interval from <emph>X</emph> to <emph>Y</emph>, including
+<emph>X</emph> but not including <emph>Y</emph>;
+"(<emph>X</emph>,<emph>Y</emph>]" denotes a left half-open
+interval from <emph>X</emph> to <emph>Y</emph>, not including
+<emph>X</emph> but including <emph>Y</emph>;
+"(<emph>X</emph>,<emph>Y</emph>)" denotes an open
+interval from <emph>X</emph> to <emph>Y</emph>, not including
+<emph>X</emph> or <emph>Y</emph>.
+</p>
+</note>
+<table id="dfxp-example-subtitle-1" role="example-images">
+<caption>Subtitle 1 &ndash; Time Interval [0.76, 3.45)</caption>
+<tbody>
+<tr>
+<td><graphic source="images/subtitle1.png" alt="Subtitle 1"/></td>
+</tr>
+</tbody>
+</table>
+<p>The second subtitle continues with the default style, except that it contains
+two lines of text with an intervening author-specified line break. Note the effects of
+the use of <code>tts:textAlign="center"</code> to specify the paragraph's alignment
+in the inline progression direction.</p>
+<table id="dfxp-example-subtitle-2" role="example-images">
+<caption>Subtitle 2 &ndash; Time Interval [5.0, 10.0)</caption>
+<tbody>
+<tr>
+<td><graphic source="images/subtitle2.png" alt="Subtitle 2"/></td>
+</tr>
+</tbody>
+</table>
+<p>The third subtitle continues, using a variant style which overrides the default style's
+foreground color with a different color.</p>
+<table id="dfxp-example-subtitle-3" role="example-images">
+<caption>Subtitle 3 &ndash; Time Interval [10.0, 16.0)</caption>
+<tbody>
+<tr>
+<td><graphic source="images/subtitle3.png" alt="Subtitle 3"/></td>
+</tr>
+</tbody>
+</table>
+<p>The fourth subtitle reverts to the default style.</p>
+<table id="dfxp-example-subtitle-4" role="example-images">
+<caption>Subtitle 4 &ndash; Time Interval [17.2, 23.0)</caption>
+<tbody>
+<tr>
+<td><graphic source="images/subtitle4.png" alt="Subtitle 4"/></td>
+</tr>
+</tbody>
+</table>
+<p>The fifth subtitle continues, again using a variant style which
+overrides the default style's foreground color with a different color.</p>
+<table id="dfxp-example-subtitle-5" role="example-images">
+<caption>Subtitle 5 &ndash; Time Interval [23.0, 27.0)</caption>
+<tbody>
+<tr>
+<td><graphic source="images/subtitle5.png" alt="Subtitle 5"/></td>
+</tr>
+</tbody>
+</table>
+<p>During the next active time interval, two distinct subtitles are simultaneously active, with
+the paragraph expressing each subtitle using a different style that overrides color and paragraph
+text alignment of the default style. Note that the flow order is determined by the lexical
+order of elements as they appear in the content hierarchy.</p>
+<table id="dfxp-example-subtitle-6" role="example-images">
+<caption>Subtitles 6a and 6b &ndash; Time Interval [28.0, 34.6)</caption>
+<tbody>
+<tr>
+<td><graphic source="images/subtitle6.png" alt="Subtitles 6a and 6b"/></td>
+</tr>
+</tbody>
+</table>
+<p>The next subtitle is specified in a similar manner using
+a style override to give a paragraph right (end) justified in the
+inline progression direction.</p>
+<table id="dfxp-example-subtitle-7" role="example-images">
+<caption>Subtitle 7 &ndash; Time Interval [34.6, 45.0)</caption>
+<tbody>
+<tr>
+<td><graphic source="images/subtitle7.png" alt="Subtitles 7a and 7b"/></td>
+</tr>
+</tbody>
+</table>
+<p>The eighth subtitle uses the same style override as the previous
+subtitle in order to maintain the right (end) justification of the
+paragraph.</p>
+<table id="dfxp-example-subtitle-8" role="example-images">
+<caption>Subtitle 8 &ndash; Time Interval [47.3, 49.0)</caption>
+<tbody>
+<tr>
+<td><graphic source="images/subtitle8.png" alt="Subtitle 8"/></td>
+</tr>
+</tbody>
+</table>
+<p>During the final (ninth) active time interval, two distinct
+subtitles are again simultaneously active, but with a different
+style applied to the second paragraph to override the default color.
+Note that the flow order is determined by the lexical order of
+elements as they appear in the content hierarchy.</p>
+<table id="dfxp-example-subtitle-9" role="example-images">
+<caption>Subtitles 9a and 9b &ndash; Time Interval [53.5, 58.7)</caption>
+<tbody>
+<tr>
+<td><graphic source="images/subtitle9.png" alt="Subtitles 9a and 9b"/></td>
+</tr>
+</tbody>
+</table>
+<p>The examples shown above demonstrate the primary types of information that may
+be authored using TTML: metadata, styling, layout, timing, and content. In typical cases,
+styling and layout information are separately specified in a document instance. Content information
+is expressed in a hierarchical fashion that embodies the organization of both spatial (flow) and
+timing information. Content makes direct or indirect references to styling and layout information
+and may specify inline overrides to styling.</p>
+</div2>
+</div1>
+<div1 id="definitions">
+<head>Definitions</head>
+<div2 id="acronyms">
+<head>Acronyms</head>
+<glist role="acronyms">
+<gitem>
+<label>DFXP</label>
+<def>
+<p>Distribution Format Exchange Profile</p>
+</def>
+</gitem>
+<gitem>
+<label>TT</label>
+<def>
+<p>Timed Text</p>
+</def>
+</gitem>
+  <gitem>
+    <label>TTML</label>
+    <def>
+      <p>Timed Text Markup Language</p>
+    </def>
+  </gitem>
+  <gitem>
+<label>TT AS</label>
+<def>
+<p>Timed Text Authoring System</p>
+</def>
+</gitem>
+<gitem>
+<label>TT AF</label>
+<def>
+<p>Timed Text Authoring Format</p>
+</def>
+</gitem>
+<gitem>
+<label>TT WG</label>
+<def>
+<p>Timed Text Working Group</p>
+</def>
+</gitem>
+</glist>
+</div2>
+<div2 id="terms">
+<head>Terminology</head>
+<glist>
+<gitem>
+<label>Abstract Document Instance</label>
+<def>
+<p>An instance of an abstract data set as represented by a
+<emph>Reduced XML Infoset</emph>.</p>
+</def>
+</gitem>
+<gitem>
+<label>Abstract Document Type</label>
+<def>
+<p>A set of constraints that defines a class of <emph>XML Information
+Set</emph>s <bibref ref="infoset"/>.</p>
+</def>
+</gitem>
+<gitem>
+<label>Attribute Information Item</label>
+<def>
+<p>Each specified or defaulted attribute  of an XML document corresponds with an attribute information
+item as defined by <bibref ref="infoset"/>, &sect;2.3.</p>
+</def>
+</gitem>
+<gitem>
+<label>Character Information Item</label>
+<def>
+<p>Each data character appearing in an XML document corresponds with a character information
+item as defined by <bibref ref="infoset"/>, &sect;2.6.</p>
+</def>
+</gitem>
+<gitem>
+<label>Content Processor</label>
+<def>
+<p>A processing system capable of importing (receiving) Timed Text Markup Language
+content for the purpose of transforming, presenting, or otherwise processing the content.</p>
+</def>
+</gitem>
+<gitem>
+<label>Content Profile</label>
+<def>
+<p>A collection of features and extensions that are (or may be) employed by
+Timed Text Markup Language content.</p>
+</def>
+</gitem>
+<gitem>
+<label>Content Region</label>
+<def>
+<p>A logical region into which rendered content is placed when modeling or
+performing presentation processing.</p>
+</def>
+</gitem>
+<gitem>
+<label>Element Information Item</label>
+<def>
+<p>Each element appearing in an XML document corresponds with an element information
+item as defined by <bibref ref="infoset"/>, &sect;2.2.</p>
+</def>
+</gitem>
+<gitem>
+<label>Exchange Profile</label>
+<def>
+<p>A content profile that serves a set of needs
+for content interchange.</p>
+</def>
+</gitem>
+<gitem>
+<label>Extension</label>
+<def>
+<p>A syntactic or semantic expression or capability that is defined and
+labeled (using a extension designation) in another (public or private)
+specification.</p>
+</def>
+</gitem>
+<gitem>
+<label>Feature</label>
+<def>
+<p>A syntactic or semantic expression or capability that is defined and
+labeled (using a feature designation) in this specification (or a
+future revision of this specification).</p>
+</def>
+</gitem>
+<gitem>
+<label>Processor</label>
+<def>
+<p>See <emph>Content Processor</emph>.</p>
+</def>
+</gitem>
+<gitem>
+<label>Processor Profile</label>
+<def>
+<p>A collection of features and extensions that must or may be implemented (supported) by
+a content processor.</p>
+</def>
+</gitem>
+<gitem>
+<label>Profile Definition Document</label>
+<def>
+<p>A document that defines a specific collection of features and extensions
+for which support is required or optional in a recipient content
+processor.</p>
+</def>
+</gitem>
+<gitem>
+<label>Region</label>
+<def>
+<p>A logical construct that models authorial intention regarding
+desired or potential presentation processing, and which is represented as
+a rectangular area of a presentation surface into which content
+is composed and rendered during presentation processing.</p>
+</def>
+</gitem>
+<gitem>
+<label>Reduced XML Infoset</label>
+<def>
+<p>An XML Information Set <bibref ref="infoset"/> that satisfieds the
+constraints specify by <specref ref="reduced-infoset"/>.</p>
+</def>
+</gitem>
+<gitem>
+<label>Root Container Region</label>
+<def>
+<p>A logical region that establishes a coordinate system into which
+content regions are placed and optionally clipped.</p>
+</def>
+</gitem>
+<gitem>
+<label>Timed Text</label>
+<def>
+<p>Textual information that is intrinsically or extrinsically
+associated with timing information.</p>
+</def>
+</gitem>
+<gitem>
+<label>Timed Text Markup Language</label>
+<def>
+<p>A content type that represents timed text media for the purpose of
+interchange among authoring systems.</p>
+</def>
+</gitem>
+<gitem>
+<label>Timed Text Authoring System</label>
+<def>
+<p>A content authoring system capable of importing and exporting
+Timed Text Markup Language content.</p>
+</def>
+</gitem>
+</glist>
+</div2>
+<div2 id="conventions">
+<head>Documentation Conventions</head>
+<p>Within normative prose in this specification, the words
+<emph>may</emph>, <emph>should</emph>, and <emph>must</emph> are
+defined as follows:</p>
+<glist role="conformance-keywords">
+<gitem>
+<label>may</label>
+<def>
+<p>Conforming documents and/or TTML processors are permitted to,
+but need not behave as described. </p>
+</def>
+</gitem>
+<gitem>
+<label>should</label>
+<def>
+<p>Conforming documents and/or TTML processors are strongly
+recommended to, but need not behave as described.</p>
+</def>
+</gitem>
+<gitem>
+<label>must</label>
+<def>
+<p>Conforming documents and/or TTML processors are required
+to behave as described; otherwise, they are in error. </p>
+</def>
+</gitem>
+</glist>
+<p>All normative syntactic definitions of XML representations and
+other related terms are depicted with a light orange background color
+and labeled as "XML Representation" or "Syntax Representation", such
+as in the following:</p>
+<table id="elt-syntax-example" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: example</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;example
+  <phrase role="reqattr">count</phrase> = integer
+  size = (<emph>large</emph>|<emph>medium</emph>|<emph>small</emph>) : medium&gt;
+  <emph>Content:</emph> (all | any*)
+&lt;/example&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>In an XML representation, bold-face attribute names (e.g. <phrase
+role="strong">count</phrase> above) indicate a required attribute
+information item, and the rest are optional. Where an attribute
+information item has an enumerated type definition, the values are
+shown separated by vertical bars, as for <code>size</code> above; if
+there is a default value, it is shown following a colon. Where an
+attribute information item has a built-in simple type definition
+defined in <bibref ref="xsd-2"/>, a hyperlink to its definition
+therein is given.</p>
+<p>The allowed content of the information item is shown as a grammar
+fragment, using the Kleene operators <code>?</code>, <code>*</code>
+and <code>+</code>. Each element name therein is a hyperlink to its
+own illustration.</p>
+<p>All content of this specification that is not explicitly marked as
+non-normative is considered to be normative. If a section or appendix
+header contains the expression "Non-Normative", then the entirety
+of the section or appendix is considered non-normative.</p>
+<p>All paragraphs marked as a <phrase role="strong">Note</phrase> are considered non-normative.</p>
+<p>Example code fragments are depicted with a light blue-green
+background color and labeled as "Example Fragment", such as in
+the following:</p>
+<table id="example-fragment-1" role="example">
+<caption>Example Fragment &ndash; Sample</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;tt xml:lang="" xmlns="http://www.w3.org/ns/ttml"&gt;
+  &lt;head&gt;
+    &lt;metadata/&gt;
+    &lt;styling/&gt;
+    &lt;layout/&gt;
+  &lt;/head&gt;
+  &lt;body/&gt;
+&lt;/tt&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+</div2>
+</div1>
+<div1 id="conformance">
+<head>Conformance</head>
+<p>This section specifies the general conformance requirements for
+TTML content and processors.</p>
+<div2 id="conformance-content">
+<head>Content Conformance</head>
+<p>A TTML document instance conforms to this specification if the following criteria are
+satisfied:</p>
+<olist>
+<item>
+<p>When transporting a document instance in a context in which a MIME
+Media Type <bibref ref="mime-media"/> identifies the content type of the interchanged document
+instance, then the specified media type is
+<code>application/ttml+xml</code> in conformance with <bibref
+ref="rfc3023"/> &sect; 7, with which an optional
+<code>profile</code> parameter may appear, the value of which
+conforms to
+a profile designator as
+defined by
+<specref ref="vocabulary-profiles"/>.</p>
+</item>
+<item>
+<p>The document instance is or can be represented as a Reduced XML
+Infoset as defined by <specref ref="reduced-infoset"/>.</p>
+</item>
+<item>
+<p>The Reduced XML
+Infoset that corresponds to the document instance is or can
+be associated with one of the TTML Abstract
+Document Types defined by
+<specref ref="doctypes"/>.</p>
+</item>
+<item>
+<p>The Reduced XML Infoset that corresponds to the document instance is a
+Valid Abstract Document Instance of the associated
+Abstract Document Type.</p>
+</item>
+<item>
+<p>The Reduced XML Infoset satisfies all additional mandatory syntactic and
+semantic constraints defined by this specification. In addition, this Infoset
+should satisfy the web content accessibility guidelines specified by
+<bibref ref="wcag"/>.</p>
+</item>
+</olist>
+</div2>
+<div2 id="conformance-processor">
+<head>Processor Conformance</head>
+<div3 id="conformance-generic-processor">
+<head>Generic Processor Conformance</head>
+<p>A TTML processor conforms to this specification if the following
+generic processor criteria are
+satisfied:</p>
+<olist>
+<item>
+<p>The processor provides at least one mechanism for notionally
+instantiating a Reduced XML
+Infoset representation of a conformant TTML document
+instance.</p>
+</item>
+<item>
+<p>If a process does or can perform validation of a candidate TTML
+document instance, then it provides at least one mechanism to
+implicitly or explicitly associate the
+Reduced XML Infoset representation
+of a conformant TTML document instance with one of the
+TTML Abstract Document Types defined by
+<specref ref="doctypes"/>.</p>
+</item>
+<item>
+<p>The processor does not <emph>a priori</emph> reject or abort the
+processing of a conformant TTML document instance
+unless the processor does not support some required
+(mandatory) feature specified or implied by a TTML content profile
+declared to apply to the document instance.</p>
+</item>
+<item>
+<p>The processor supports all mandatory processing semantics defined by this specification.</p>
+</item>
+<item>
+<p>If the processor supports some optional processing semantics defined by this specification,
+then it does so in a manner consistent with the defined semantics.</p>
+</item>
+</olist>
+</div3>
+<div3 id="conformance-transformation-processor">
+<head>Transformation Processor Conformance</head>
+<p>A TTML processor is a conformant TTML transformation processor if
+the following criteria are satisfied:</p>
+<olist>
+<item>
+<p>The processor satisfies all requirements specified by
+<specref ref="conformance-generic-processor"/>.</p>
+</item>
+<item>
+<p>The processor supports the DFXP Transformation profile as specified
+by <specref ref="profile-dfxp-transformation"/>.</p>
+</item>
+</olist>
+</div3>
+<div3 id="conformance-presentation-processor">
+<head>Presentation Processor Conformance</head>
+<olist>
+<item>
+<p>The processor satisfies all requirements specified by
+<specref ref="conformance-generic-processor"/>.</p>
+</item>
+<item>
+<p>The processor supports the DFXP Presentation profile as specified
+by <specref ref="profile-dfxp-presentation"/>.</p>
+</item>
+</olist>
+</div3>
+</div2>
+<div2 id="claims">
+<head>Claims</head>
+<p>Any claim of compliance with respect to TTML content or processor
+conformance must make
+reference to an implementation compliance statement (ICS).</p>
+<p>An implementation compliance statement must identify all mandatory
+and optional features of this specification that are satisfied by the
+content or processor implementation. In particular, the statement must
+identify the utilized or supported TTML vocabulary profile(s) as
+defined by <specref ref="vocabulary-profiles"/>, and, if a subset or
+superset profile is used or supported, then what features are excluded
+or included in the subset or superset profile.</p>
+<p>A TTML document instance for which a compliance claim is made
+must specify
+either (1)
+a <att>ttp:profile</att> attribute on its root
+<el>tt</el>
+element
+as defined by <specref ref="parameter-attribute-profile"/>
+or (2)
+a <el>ttp:profile</el> element as a child of the
+<el>head</el> element as defined by
+<specref ref="parameter-vocabulary-profile"/>.</p>
+</div2>
+</div1>
+<div1 id="doctypes">
+<head>Document Types</head>
+<p>This section defines the following TTML Abstract Document Types:</p>
+<ulist>
+<item><p><specref ref="dfxp-content-doctype"/></p></item>
+</ulist>
+<p>Each abstract document type consists of the following constraints:</p>
+<ulist>
+<item><p>a non-empty collection of element types, where each element type consists of a name,
+a (possibly empty) collection of attributes, and a content specification</p></item>
+<item><p>a non-empty collection of element types that may appear as the document element</p></item>
+</ulist>
+<p>An Abstract Document Instance may be assessed in terms of validity,
+and is considered to be a Valid Abstract Document Instance if it
+satisfies the following condition: if after</p>
+<olist>
+<item>
+<p>pruning all element information
+items whose names are not members of the collection of element types defined
+by the associated abstract document type, then</p>
+</item>
+<item>
+<p>pruning character
+information item children from any remaining element in case that all
+character children of the element denote XML whitespace characters and the element's type
+is defined as empty in the associated Abstract Document Type, and then</p>
+</item>
+<item>
+<p>pruning all attribute
+information items having expanded names such that the namespace URI of the
+expanded names are not listed in <specref
+ref="namespace-vocab-table"/>,</p>
+</item>
+</olist>
+<p>then the document element is one of the document
+element types permitted by the associated abstract document type,
+the descendants of the document
+element satisfy their respective element type's content
+specifications, all required attributes are present, and the declared
+value of each attribute satisfies the type declared by the
+associated abstract document type.</p>
+<note>
+<p>While a conformant processor may not <emph>a priori</emph> reject a
+conformant document instance that adheres to a
+supported content profile, a given document instance may be
+constrained by the author or authoring tool to satisfy a more
+restrictive definition of validity.</p>
+</note>
+<div2 id="dfxp-content-doctype">
+<head>DFXP Content</head>
+<p>DFXP Content is an abstract document type of a profile of the Timed Text Markup Language intended
+to be used for interchange among distribution systems. This document type
+is defined in terms of the
+element and attribute vocabulary
+specified in <specref ref="vocabulary"/>.</p>
+<p>This specification defines two types of normative schemas that may be used to validate a subset of
+conformant DFXP Content document instances:</p>
+<ulist>
+<item><p><specref ref="dfxp-schema-rnc"/></p></item>
+<item><p><specref ref="dfxp-schema-xsd"/></p></item>
+</ulist>
+<p>The (root) document element of a DFXP Content document instance must be a
+<el>tt</el> element, as defined by <specref
+ref="document-structure-vocabulary-tt"/>.</p>
+<note role="clarification">
+<p>The schemas included in this specification do not validate all syntactic constraints
+defined by this specification. In particular, performing validation with one of the above
+referenced schemas may result in a <emph>false positive</emph> indication of validity.
+However, with one exception, their
+use will not produce a <emph>false negative</emph> indication of validity
+when used with a compliant validating
+processor.</p>
+<p>In exception to the above statement about false negatives,
+if the Relax NG schema included in this specification is used to validate a
+TTML Document containing elements in a foreign namespace and the <att>xml:id</att>
+attribute is used with any of those (foreign) elements,
+then an error will be reported even though such usage is permitted by this
+specification. In this case, the false negative arises due
+to a specific limitation in expressing wildcard patterns involving <code>xsd:ID</code>
+typed attributes in Relax NG schemas.
+Note that this specification defines the formal validity of a TTML Document to be
+based on an abstract document instance from which all foreign namespace elements and
+attributes have been removed. Therefore, the exceptional reporting of this false
+negative does not impact the formal assessment of TTML Document validity.</p>
+</note>
+</div2>
+</div1>
+<div1 id="vocabulary">
+<head>Vocabulary</head>
+<p>This section defines the
+namespaces, profiles, and vocabulary (as an element an attribute
+catalog) of the Timed Text Markup Language (TTML) as follows:</p>
+<ulist>
+<item><p><specref ref="vocabulary-namespaces"/></p></item>
+<item><p><specref ref="vocabulary-profiles"/></p></item>
+<item><p><specref ref="vocabulary-overview"/></p></item>
+</ulist>
+<div2 id="vocabulary-namespaces">
+<head>Namespaces</head>
+<p>The Timed Text Markup Language (TTML) employs a number of
+namespaces for elements and certain
+global attributes. The following table specifies this set of namespaces
+and indicates the default prefix used within this specification and the
+normative URI that denotes each namespace.</p>
+<note role="explanation">
+<p>In a specific document instance, it is not required that the default
+prefixes shown below are used. Any prefix or namespace binding that satisfies the constraints
+of XML Namespaces may be used that is associated with the specified namespace URI.</p>
+</note>
+<table id="namespace-vocab-table" role="common">
+<caption>Table 1 &ndash; Namespaces</caption>
+<col width="30%"/>
+<tbody>
+<tr>
+<th>Name</th>
+<th>Prefix</th>
+<th>Value</th>
+</tr>
+<tr>
+<td>TT</td>
+<td><code>tt:</code></td>
+<td><code>http://www.w3.org/ns/ttml</code></td>
+</tr>
+<tr>
+<td>TT Parameter</td>
+<td><code>ttp:</code></td>
+<td><code>http://www.w3.org/ns/ttml#parameter</code></td>
+</tr>
+<tr>
+<td>TT Style</td>
+<td><code>tts:</code></td>
+<td><code>http://www.w3.org/ns/ttml#styling</code></td>
+</tr>
+<tr>
+<td>TT Metadata</td>
+<td><code>ttm:</code></td>
+<td><code>http://www.w3.org/ns/ttml#metadata</code></td>
+</tr>
+<tr>
+<td>TT Profile</td>
+<td><emph>none</emph></td>
+<td><code>http://www.w3.org/ns/ttml/profile/</code></td>
+</tr>
+<tr>
+<td>TT Feature</td>
+<td><emph>none</emph></td>
+<td><code>http://www.w3.org/ns/ttml/feature/</code></td>
+</tr>
+<tr>
+<td>TT Extension</td>
+<td><emph>none</emph></td>
+<td><code>http://www.w3.org/ns/ttml/extension/</code></td>
+</tr>
+</tbody>
+</table>
+<note role="clarification">
+<p>If a reference to an element type is used in this specification and the name
+of the element type is not namespace qualified, then the TT Namespace applies.</p>
+<p>For certain namespaces defined above, the default prefix
+is specified as <emph>none</emph> if no XML vocabulary is defined in
+the namespace by this specification (nor expected to be defined in a
+future version of this specification). In such cases, the use of the
+namespace URI is for purposes other than defining XML vocabulary,
+e.g., for designating profiles, features, extensions and for
+dereferencing standard profile definitions.</p>
+</note>
+<p>All TTML Namespaces are <loc
+href="http://www.w3.org/2001/tag/doc/namespaceState#namespacedef"><emph>mutable</emph></loc>
+<bibref ref="nsstate"/>; all undefined names in these namespaces are reserved for future
+standardization by the W3C.</p>
+</div2>
+<div2 id="vocabulary-profiles">
+<head>Profiles</head>
+<p>The Timed Text Markup Language (TTML) employs a number of
+standard, predefined profiles of its
+vocabulary and associated semantics.
+The following table specifies this set of
+profiles, indicating
+a normative name
+and designator for each
+predefined profile,
+and where each of these profiles is formally elaborated in
+<specref ref="profiles"/>.</p>
+<table id="profile-vocab-table" role="common">
+<caption>Table 2 &ndash; Profiles</caption>
+<col width="25%"/>
+<tbody>
+<tr>
+<th>Name</th>
+<th>Designator</th>
+</tr>
+<tr>
+<td>DFXP Transformation</td>
+<td><code>http://www.w3.org/ns/ttml/profile/dfxp-transformation</code></td>
+</tr>
+<tr>
+<td>DFXP Presentation</td>
+<td><code>http://www.w3.org/ns/ttml/profile/dfxp-presentation</code></td>
+</tr>
+<tr>
+<td>DFXP Full</td>
+<td><code>http://www.w3.org/ns/ttml/profile/dfxp-full</code></td>
+</tr>
+</tbody>
+</table>
+<p/>
+<p>A profile designator must adhere to the
+<code>xsd:anyURI</code> data type defined by <bibref ref="xsd-2"/>,
+&sect;3.2.17. If the profile designator is expressed as a relative URI,
+then it must be absolutized by using the TT Profile Namespace value as
+the base URI.</p>
+<note role="example">
+<p>For example, if a profile designator is expressed as
+<code>dfxp-presentation</code>, then the absolutized profile designator
+would be
+<code>http://www.w3.org/ns/ttml/profile/dfxp-presentation</code>.</p>
+</note>
+<p>A profile designator is not restricted to the set of designators enumerated
+in <specref ref="profile-vocab-table"/>, but may be any URI that
+feasibly dereferences a TTML Profile Definition Document.</p>
+<p>The profile of TTML that must be supported by a
+TTML content processor in order to process a document
+instance is specified either (1) by specifying a
+<att>ttp:profile</att> attribute on the root <el>tt</el> element, as
+defined by <specref ref="parameter-attribute-profile"/>, or (2) by
+including one or more <el>ttp:profile</el>
+elements in the <el>head</el> element, in
+accordance with <specref ref="parameter-vocabulary-profile"/>.</p>
+<p>If a <el>ttp:profile</el> element appears as a
+descendant of the <el>tt</el> element, then the <loc
+href="#parameter-attribute-profile"><att>ttp:profile</att></loc>
+attribute should not be specified on the <el>tt</el> element. If both
+a <el>ttp:profile</el> element and a <att>ttp:profile</att>
+attribute are present (in a given document instance), then the
+<att>ttp:profile</att> attribute must be ignored for the purpose of
+determining the declared profile requirements.</p>
+<p>If more than one <el>ttp:profile</el> element appears in
+a TTML document instance, then all specified profiles apply
+simultaneously.  In such a case, if some feature or some extension is
+specified by one profile to be used (mandatory and enabled) and by
+another profile to be required (mandatory) or optional (voluntary),
+then that feature or extension must be considered to be used
+(mandatory and enabled); if some feature or some extension is
+specified by one profile to be merely required (mandatory) and by
+another profile to be optional (voluntary), then that feature or
+extension must be considered to be required (mandatory).</p>
+<p>If neither
+<loc href="#parameter-attribute-profile"><att>ttp:profile</att></loc>
+attribute nor
+<loc href="#parameter-vocabulary-profile"><el>ttp:profile</el></loc>
+element is present in a TTML document instance, and if the document
+interchange context does not specify a profile,
+then the DFXP Transformation
+profile applies.</p>
+<note role="elaboration">
+<p>It is intended that the <att>ttp:profile</att> attribute be used when
+the author wishes to reference one of the standard, predefined profiles of
+TTML content, and does not wish to modify (by supersetting or subsetting)
+that profile. This attribute may also be used by an author to indicate the use
+of a non-standard profile, in which case the specified profile designator expresses
+a URI that denotes an externally defined TTML Profile Definition Document.
+However, it is not required that a conformant TTML content processor be able
+to dereference such an externally specified profile definition.</p>
+<p>In contrast, it is intended that the <el>ttp:profile</el> element be
+used when the author wishes to make use of a modified predefined profile or
+wishes to include in the document instance a non-standard profile definition
+not based upon one of the predefined profiles.</p>
+<p>A predefined profile is supersetted by specifying some feature or extension to
+be required (mandatory) that was either not specified in the underlying, baseline
+profile or was specified as optional (voluntary) in the baseline profile.
+A predefined profile is subsetted by specifying some feature or extension to
+be optional (voluntary) that was specified as required in the underlying, baseline
+profile.</p>
+<p>When a baseline profile is modified by subsetting, the resulting, derived profile
+is referred to as a <emph>subtractive</emph> profile; when modified by supersetting, the result
+is referred to as an <emph>additive</emph> profile.
+It is also possible to define a derived profile that is simultaneously subtractive
+and additive.</p>
+</note>
+<p>If a TTML document instance makes use of a feature defined by
+<specref ref="feature-designations"/> and if the intended use of the
+document requires the recognition and processing of that feature, then
+the document must include a <emph>required feature</emph> or
+a <emph>used feature</emph>
+specification in one of its declared or
+referenced profiles.  If a TTML document instance makes use
+of an extension designatable by <specref
+ref="extension-designations"/> and if the intended use of the document
+requires the recognition and processing of that extension, then the
+document must include a <emph>required extension</emph> or
+a <emph>used extension</emph> specification
+in one of its declared or referenced
+profiles.</p>
+<note role="elaboration">
+<p>A required or used feature
+specification is expressed directly (or indirectly by referring to a
+profile) by means of a <loc
+href="#parameter-vocabulary-feature"><el>ttp:feature</el></loc>
+element where the value of its <att>value</att> attribute is
+<code>required</code> or <code>use</code>,
+respectively.  A required or used
+extension specification is expressed directly (or indirectly by
+referring to a profile) by means of a <loc
+href="#parameter-vocabulary-extension"><el>ttp:extension</el></loc>
+element where the value of its <att>value</att> attribute is
+<code>required</code> or <code>use</code>,
+respectively.</p>
+</note>
+<p>An example of an author defined
+additive, derived profile of the DFXP Presentation
+profile is shown
+below in <specref ref="dfxp-example-sub-profile"/>.</p>
+<table id="dfxp-example-sub-profile" role="example">
+<caption>Example Fragment &ndash; DFXP Additive Profile</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;tt xml:lang="" xmlns="http://www.w3.org/ns/ttml"&gt;
+ &lt;head&gt;
+   &lt;profile use="dfxp-presentation" xmlns="http://www.w3.org/ns/ttml#parameter"&gt;
+     &lt;features xml:base="http://www.w3.org/ns/ttml/feature/"&gt;
+       &lt;feature value="required"&gt;#fontStyle-italic&lt;/feature&gt;
+     &lt;/features&gt;
+   &lt;/profile&gt;
+ &lt;/head&gt;
+ &lt;body/&gt;
+&lt;/tt&gt;
+</eg>
+</td></tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, the baseline profile is declared to be
+the DFXP Presentation profile, which is then additively modified by making the
+<code>#fontStyle-italic</code> feature required (rather than
+optional as it is defined
+in <specref ref="profile-dfxp-presentation"/>). Note also the resetting of the
+default XMLNS binding on the <el>profile</el> element to the TT Parameter Namespace.</p>
+</note>
+</div2>
+<div2 id="vocabulary-overview">
+<head>Catalog</head>
+<p>The vocabulary of the Timed Text Markup Language (TTML) is
+defined in the following major catalogs (divisions of vocabulary):</p>
+<ulist>
+<item><p><specref ref="core-vocabulary-overview"/></p></item>
+<item><p><specref ref="extension-vocabulary-overview"/></p></item>
+</ulist>
+<p>The core catalog defines the baseline, core vocabulary of TTML,
+and, in particular, the vocabulary of DFXP Content. The extension catalog
+serves as a placeholder for extensions to the core vocabulary defined
+by TTML.</p>
+<div3 id="core-vocabulary-overview">
+<head>Core Catalog</head>
+<p>The core vocabulary catalog is intended to satisfy the needs of
+TTML while providing a baseline vocabulary for future profiles. This vocabulary
+is divided into distinct categories, specified in detail
+in the following sections:</p>
+<ulist>
+<item><p><specref ref="parameters"/></p></item>
+<item><p><specref ref="content"/></p></item>
+<item><p><specref ref="styling"/></p></item>
+<item><p><specref ref="layout"/></p></item>
+<item><p><specref ref="timing"/></p></item>
+<item><p><specref ref="animation"/></p></item>
+<item><p><specref ref="metadata"/></p></item>
+</ulist>
+<p>The core element vocabulary specified for use with a TTML document
+instance is enumerated in
+<specref ref="element-vocab-table"/>.</p>
+<table id="element-vocab-table" role="common">
+<caption>Table 3 &ndash; Element Vocabulary</caption>
+<col width="25%"/>
+<tbody>
+<tr>
+<th>Module</th>
+<th>Elements</th>
+</tr>
+<tr>
+<td>
+Animation
+</td>
+<td>
+<loc href="#animation-vocabulary-set">set</loc>
+</td>
+</tr>
+<tr>
+<td>
+Content
+</td>
+<td>
+<loc href="#document-structure-vocabulary-body">body</loc>,
+<loc href="#content-vocabulary-div">div</loc>,
+<loc href="#content-vocabulary-p">p</loc>,
+<loc href="#content-vocabulary-span">span</loc>,
+<loc href="#content-vocabulary-br">br</loc>
+</td>
+</tr>
+<tr>
+<td>
+Document
+</td>
+<td>
+<loc href="#document-structure-vocabulary-tt">tt</loc>
+</td>
+</tr>
+<tr>
+<td>
+Head
+</td>
+<td>
+<loc href="#document-structure-vocabulary-head">head</loc>
+</td>
+</tr>
+<tr>
+<td>
+Layout
+</td>
+<td>
+<loc href="#layout-vocabulary-layout">layout</loc>,
+<loc href="#layout-vocabulary-region">region</loc>
+</td>
+</tr>
+<tr>
+<td>
+Metadata
+</td>
+<td>
+<loc href="#metadata-vocabulary-metadata">metadata</loc>
+</td>
+</tr>
+<tr>
+<td>
+Metadata Items
+</td>
+<td>
+<loc href="#metadata-vocabulary-actor">ttm:actor</loc>,
+<loc href="#metadata-vocabulary-agent">ttm:agent</loc>,
+<loc href="#metadata-vocabulary-copyright">ttm:copyright</loc>,
+<loc href="#metadata-vocabulary-desc">ttm:desc</loc>,
+<loc href="#metadata-vocabulary-name">ttm:name</loc>,
+<loc href="#metadata-vocabulary-title">ttm:title</loc>
+</td>
+</tr>
+<tr>
+<td>Parameter Items</td>
+<td><loc href="#parameter-vocabulary-profile">ttp:profile</loc>,
+<loc href="#parameter-vocabulary-features">ttp:features</loc>,
+<loc href="#parameter-vocabulary-feature">ttp:feature</loc>,
+<loc href="#parameter-vocabulary-extensions">ttp:extensions</loc>,
+<loc href="#parameter-vocabulary-extension">ttp:extension</loc>
+</td>
+</tr>
+<tr>
+<td>
+Styling
+</td>
+<td>
+<loc href="#styling-vocabulary-styling">styling</loc>,
+<loc href="#styling-vocabulary-style">style</loc>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<p>Element vocabulary groups that are used in defining content models
+for TTML element types are enumerated in <specref ref="element-vocab-group-table"/>.</p>
+<table id="element-vocab-group-table" role="common">
+<caption>Table 4 &ndash; Element Vocabulary Groups</caption>
+<col width="25%"/>
+<tbody>
+<tr>
+<th>Group</th>
+<th>Elements</th>
+</tr>
+<tr>
+<td>
+Animation.class
+</td>
+<td>
+<loc href="#animation-vocabulary-set">set</loc>
+</td>
+</tr>
+<tr>
+<td>
+Block.class
+</td>
+<td>
+<loc href="#content-vocabulary-div">div</loc> |
+<loc href="#content-vocabulary-p">p</loc>
+</td>
+</tr>
+<tr>
+<td>
+Inline.class
+</td>
+<td>
+<loc href="#content-vocabulary-span">span</loc> |
+<loc href="#content-vocabulary-span">br</loc> |
+<code>#PCDATA</code>
+</td>
+</tr>
+<tr>
+<td>
+Metadata.class
+</td>
+<td>
+<loc href="#metadata-vocabulary-metadata">metadata</loc> |
+<loc href="#metadata-vocabulary-copyright">ttm:agent</loc> |
+<loc href="#metadata-vocabulary-copyright">ttm:copyright</loc> |
+<loc href="#metadata-vocabulary-desc">ttm:desc</loc> |
+<loc href="#metadata-vocabulary-title">ttm:title</loc>
+</td>
+</tr>
+<tr>
+<td>Parameters.class</td>
+<td><loc
+href="#parameter-vocabulary-profile">ttp:profile</loc></td>
+</tr>
+</tbody>
+</table>
+<p/>
+<p>The attribute vocabulary specified for use with the core vocabulary
+catalog is enumerated in
+<specref ref="attribute-vocab-table"/>.</p>
+<table id="attribute-vocab-table" role="common">
+<caption>Table 5 &ndash; Attribute Vocabulary</caption>
+<col width="25%"/>
+<tbody>
+<tr>
+<th>Module</th>
+<th>Attributes</th>
+</tr>
+<tr>
+<td>
+Core Attributes
+</td>
+<td>
+<loc href="#content-attribute-id">xml:id</loc>,
+<loc href="#content-attribute-lang">xml:lang</loc>,
+<loc href="#content-attribute-space">xml:space</loc>
+</td>
+</tr>
+<tr>
+<td>
+Layout
+</td>
+<td>
+<loc href="#layout-attribute-region">region</loc>
+</td>
+</tr>
+<tr>
+<td>
+Metadata Attributes
+</td>
+<td>
+<loc href="#metadata-attribute-agent">ttm:agent</loc>,
+<loc href="#metadata-attribute-role">ttm:role</loc>
+</td>
+</tr>
+<tr>
+<td>
+Parameter Attributes
+</td>
+<td>
+<loc href="#parameter-attribute-cellResolution">ttp:cellResolution</loc>,
+<loc href="#parameter-attribute-clockMode">ttp:clockMode</loc>,
+<loc href="#parameter-attribute-dropMode">ttp:dropMode</loc>,
+<loc href="#parameter-attribute-frameRate">ttp:frameRate</loc>,
+<loc href="#parameter-attribute-frameRateMultiplier">ttp:frameRateMultipler</loc>,
+<loc href="#parameter-attribute-markerMode">ttp:markerMode</loc>,
+<loc href="#parameter-attribute-pixelAspectRatio">ttp:pixelAspectRatio</loc>,
+<loc href="#parameter-attribute-profile">ttp:profile</loc>,
+<loc href="#parameter-attribute-subFrameRate">ttp:subFrameRate</loc>,
+<loc href="#parameter-attribute-tickRate">ttp:tickRate</loc>,
+<loc href="#parameter-attribute-timeBase">ttp:timeBase</loc>
+</td>
+</tr>
+<tr>
+<td>
+Styling
+</td>
+<td>
+<loc href="#style-attribute-style">style</loc>
+</td>
+</tr>
+<tr>
+<td>
+Styling Attributes
+</td>
+<td>
+<loc href="#style-attribute-backgroundColor">tts:backgroundColor</loc>,
+<loc href="#style-attribute-color">tts:color</loc>,
+<loc href="#style-attribute-direction">tts:direction</loc>,
+<loc href="#style-attribute-display">tts:display</loc>,
+<loc href="#style-attribute-displayAlign">tts:displayAlign</loc>,
+<loc href="#style-attribute-extent">tts:extent</loc>,
+<loc href="#style-attribute-fontFamily">tts:fontFamily</loc>,
+<loc href="#style-attribute-fontSize">tts:fontSize</loc>,
+<loc href="#style-attribute-fontStyle">tts:fontStyle</loc>,
+<loc href="#style-attribute-fontWeight">tts:fontWeight</loc>,
+<loc href="#style-attribute-lineHeight">tts:lineHeight</loc>,
+<loc href="#style-attribute-opacity">tts:opacity</loc>,
+<loc href="#style-attribute-origin">tts:origin</loc>,
+<loc href="#style-attribute-overflow">tts:overflow</loc>,
+<loc href="#style-attribute-padding">tts:padding</loc>,
+<loc href="#style-attribute-showBackground">tts:showBackground</loc>,
+<loc href="#style-attribute-textAlign">tts:textAlign</loc>,
+<loc href="#style-attribute-textDecoration">tts:textDecoration</loc>,
+<loc href="#style-attribute-textOutline">tts:textOutline</loc>,
+<loc href="#style-attribute-unicodeBidi">tts:unicodeBidi</loc>,
+<loc href="#style-attribute-visibility">tts:visibility</loc>,
+<loc href="#style-attribute-wrapOption">tts:wrapOption</loc>,
+<loc href="#style-attribute-writingMode">tts:writingMode</loc>,
+<loc href="#style-attribute-zIndex">tts:zIndex</loc>
+</td>
+</tr>
+<tr>
+<td>
+Timing Attributes
+</td>
+<td>
+<loc href="#timing-attribute-begin">begin</loc>,
+<loc href="#timing-attribute-dur">dur</loc>,
+<loc href="#timing-attribute-end">end</loc>,
+<loc href="#timing-attribute-timeContainer">timeContainer</loc>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>Only those attributes defined as either (1) global, i.e., namespace qualified, or
+(2) shared element-specific, i.e., not namespace qualified but shared across multiple
+element types, are listed in <specref ref="attribute-vocab-table"/> above.
+</p>
+</note>
+<note role="explanation">
+<p>All vocabulary defined by TTML consistently makes use of
+the so-called <emph>lowerCamelCase</emph> naming convention. In some cases, this results in the
+change of a name when the name was based upon another specification
+that used a different naming convention.</p>
+</note>
+</div3>
+<div3 id="extension-vocabulary-overview">
+<head>Extension Catalog</head>
+<p>The extension vocabulary catalog is intended for use by future
+profiles of TTML, and is not further defined
+by this version of this specification.</p>
+<p>In addition to standardized extension vocabulary, a conforming TTML
+document instance may contain arbitrary namespace qualified
+elements that reside in any namespace other than those namespaces
+defined for use with this specification. Furthermore, a conforming TTML
+document instance may contain arbitrary namespace qualified
+attributes on TTML defined vocabulary where such attributes reside in
+any namespace other than those defined for use with this
+specification.</p>
+</div3>
+</div2>
+</div1>
+<div1 id="parameters">
+<head>Parameters</head>
+<p>This section specifies the <emph>parameters</emph> matter of the
+core vocabulary catalog, where
+parameters are to be understood as information that is either (1)
+essential or (2) of significant importance for the purpose of
+interpreting the semantics of other types of information expressed by
+core vocabulary items or for establishing a processing context by means
+of which TTML content can be related to an external environment.</p>
+<div2 id="parameter-element-vocabulary">
+<head>Parameter Element Vocabulary</head>
+<p>The following elements, all defined in the TT Parameter
+Namespace, specify parametric information that applies to a document
+or a content processor:</p>
+<ulist>
+<item><p><specref ref="parameter-vocabulary-profile"/></p></item>
+<item><p><specref ref="parameter-vocabulary-features"/></p></item>
+<item><p><specref ref="parameter-vocabulary-feature"/></p></item>
+<item><p><specref ref="parameter-vocabulary-extensions"/></p></item>
+<item><p><specref ref="parameter-vocabulary-extension"/></p></item>
+</ulist>
+<div3 id="parameter-vocabulary-profile">
+<head>ttp:profile</head>
+<p>The <el>ttp:profile</el> element is used to specify a collection of
+used (mandatory and enabled), required (mandatory),
+and optional (voluntary) features and extensions that must or
+may be supported by a TTML content processor in order to process a TTML
+document that makes use (or may make use) of such features and
+extensions.</p>
+<note role="clarification">
+<p>The difference between a <emph>feature</emph> and an
+<emph>extension</emph> is where it is defined and how it is labeled:
+if defined in this specification (or a future revision thereof) and
+labeled with a feature designation in <specref ref="features"/>, then
+it is considered to be a feature; if defined in another specification
+and labeled there with an extension designation, then it is considered
+to be an extension. In general, features are expected to be defined by
+the W3C standards process, while extensions are expected to be defined by
+third parties.</p>
+</note>
+<p>This specification defines two distinct uses of the <el>ttp:profile</el> element:</p>
+<ulist>
+<item>
+<p>as a child of the <el>head</el> element within a TTML document
+instance;</p>
+</item>
+<item>
+<p>as the root element of a TTML Profile Definition document
+instance;</p>
+</item>
+</ulist>
+<p>When a <el>tt:profile</el> element appears within a TTML document
+instance, its purpose is to express authorial intentions about which
+features and extensions must or may be supported by a recipient
+content processor. In addition, the element indirectly expresses
+information about the set of features or extensions that are (or may
+expected to be) used by the document instance.</p>
+<p>When a <el>tt:profile</el> element is used by a TTML
+Profile Definition document instance, it serves to publish a machine
+readable specification of a specific TTML content profile, of which
+this specification defines three such Profile Definition Documents in
+<specref ref="profiles"/>.</p>
+<p>The <el>ttp:profile</el> element accepts as its children zero or more
+elements in the <code>Metadata.class</code> element group, followed by
+zero or more <el>ttp:features</el> elements, followed by
+zero or more <el>ttp:extensions</el> elements.</p>
+<table id="elt-syntax-parameter-profile" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: ttp:profile</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttp:profile
+  use = string
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc href="#element-vocab-group-table">Metadata.class</loc>*, <loc href="#parameter-vocabulary-features">ttp:features</loc>*, <loc href="#parameter-vocabulary-extensions">ttp:extensions</loc>*
+&lt;/ttp:profile&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>If specified, the <att>use</att> attribute must adhere to the
+<code>xsd:anyURI</code> data type defined by <bibref ref="xsd-2"/>,
+&sect;3.2.17, and, furthermore, must denote a profile designator in
+accordance with <specref ref="vocabulary-profiles"/>. In this case,
+the profile designator must refer to (1) a standard, predefined
+TTML Profile Definition Document as defined by <specref ref="profiles"/>,
+or (2) a dereferenceable resource representing a valid TTML Profile Definition
+document instance. In either case, the referenced profile serves as the
+baseline profile of the specifying <el>ttp:profile</el> element.</p>
+<p>If the <att>use</att> attribute is not specified, then the baseline
+profile of the <el>ttp:profile</el> element must be considered to be
+the empty (null) profile, i.e., a profile definition containing no
+feature or extension specifications.</p>
+<p>The collection of features and extensions of a profile are determined according
+to the following ordered rules:</p>
+<olist>
+<item>
+<p>initialize the features and extensions of the profile to the empty
+set;</p>
+</item>
+<item>
+<p>if a <att>use</att> attribute is present, then augment the profile
+with the set of features and extensions specified by the referenced
+baseline profile;</p>
+</item>
+<item>
+<p>for each <el>ttp:feature</el> and <el>ttp:extension</el> element
+descendant of the <el>ttp:profile</el> element, using a post-order
+traversal, merge the specified feature or extension with the features
+and extensions of the profile, where merging a feature or extension
+entails replacing an existing feature or extension specification, if
+it already exists, or adding a new feature or extension specification,
+if it does not yet exist in the profile;</p>
+</item>
+</olist>
+<p>A conformant TTML processor is not required to be able to
+dereference a TTML Profile Definition Document that is not one of the
+standard, predefined profiles defined by <specref ref="profiles"/>.  A
+conformant TTML processor may make use of a built-in, static
+form of each standard, predefined profile so as not to require
+dereferencing a network resource.</p>
+<p>If a TTML processor is unable to dereference a non-standard TTML
+Profile Definition Document, then it must not further process the
+document without the presence of an explicit override from an end-user
+or some implementation specific parameter traceable to an end-user or
+to a user or system configuration setting. If a TTML processor aborts
+processing of a TTML document instance due to the inability to
+reference a non-standard TTML Profile Definition Document, then some
+end-user notification should be given unless the end-user or system
+has disabled such a notification, or if the processor does not permit
+or entail the intervention of an end-user.</p>
+<p>The <el>ttp:profile</el> element is illustrated by the following example.</p>
+<table id="parameter-vocabulary-profile-example-1" role="example">
+<caption>Example Fragment &ndash; ttp:profile</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttp:profile use="dfxp-presentation"&gt;
+  &lt;ttp:features xml:base="http://www.w3.org/ns/ttml/feature/"&gt;
+    &lt;ttp:feature&gt;#text-outline&lt;/ttp:feature&gt;
+  &lt;/ttp:features&gt;
+&lt;/ttp:profile&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, the DFXP presentation profile is used as the
+baseline profile. This baseline profile is then supersetted (thus
+creating an additive derived profile) by requiring support for
+<code>#text-outline</code> feature.</p>
+</note>
+</div3>
+<div3 id="parameter-vocabulary-features">
+<head>ttp:features</head>
+<p>The <el>ttp:features</el> element is a container element used to group
+infomation about feature support requirements.</p>
+<p>The <el>ttp:features</el> element accepts as its children zero or more
+elements in the <code>Metadata.class</code> element group, followed by
+zero or more <el>ttp:feature</el> elements.</p>
+<table id="elt-syntax-parameter-features" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: ttp:features</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttp:features
+  xml:base = string : <emph>TT Feature Namespace</emph>
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc href="#element-vocab-group-table">Metadata.class</loc>*, <loc href="#parameter-vocabulary-feature">ttp:feature</loc>*
+&lt;/ttp:features&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>If specified, the <att>xml:base</att>
+attribute must (1) adhere to the
+<code>xsd:anyURI</code> data type defined by <bibref ref="xsd-2"/>,
+&sect;3.2.17, (2) express an absolute URI that
+adheres to <bibref ref="xmlbase"/> and,
+(3) express a feature namespace as defined by
+<specref ref="feature-designations"/>. If not specified, the
+<att>xml:base</att> attribute's default
+value applies, which is the TT Feature Namespace.</p>
+<p>The <att>xml:base</att> attribute is
+used to permit the abbreviation of feature designation URIs expressed
+by child <el>ttp:feature</el> elements.</p>
+</div3>
+<div3 id="parameter-vocabulary-feature">
+<head>ttp:feature</head>
+<p>The <el>ttp:feature</el> element is used to specify
+infomation about support requirements for a particular feature.</p>
+<p>The children of the <el>ttp:feature</el> element must express a non-empty
+sequence of character information items that adheres to the
+<code>xsd:anyURI</code> data type defined by <bibref ref="xsd-2"/>,
+&sect;3.2.17.</p>
+<table id="elt-syntax-parameter-feature" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: ttp:feature</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttp:feature
+  value = (optional|required|use) : required
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> #PCDATA
+&lt;/ttp:feature&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>If the URI expressed by the content of the <el>ttp:feature</el>
+element is a relative URI, then, when combined with the
+feature namespace value expressed by the
+<att>xml:base</att> attribute of the
+nearest ancestor <el>ttp:features</el> element, it must express an
+absolute URI.  In either case (original absolute URI or resulting
+absolutized URI), the URI expressed by the <el>ttp:feature</el>
+element must further adhere to the syntax of a feature designation as
+defined by <specref ref="feature-designations"/>.</p> <p>If
+the URI expressed by the content of the <el>ttp:feature</el> element
+is a relative URI, then an <att>xml:base</att> attribute should be
+specified on the nearest ancestor <el>ttp:features</el> element.</p>
+<p>The <att>value</att> attribute specifies whether a conforming TTML
+processor must or may implement the designated feature in order to
+process the document. If the value of the <att>value</att> attribute
+is <code>optional</code>, then the processor need
+not implement or otherwise support the feature in order to process the
+document; if the value is <code>required</code>, then the processor
+must implement or otherwise support the feature in order to process
+the document; if the value is
+<code>use</code>, then the processor must both (1) implement or
+otherwise support the feature and (2) enable (activate) use of the
+feature.</p>
+
+<note role="clarification">
+<p>The default value of the <att>value</att> attribute is
+<code>required</code>, as indicated in the above element information
+item definition. Therefore, if a <att>value</att> attribute is not
+specified on a <el>ttp:feature</el> element, it is equivalent to
+specifying that support for the feature is required.</p>
+</note>
+<p>If the value of the <att>value</att> attribute is
+<code>required</code> or <code>use</code>,
+and if the TTML processor implementation does
+not support the feature, then it must not further process the document
+without the presence of an explicit override from an end-user or some
+implementation specific parameter traceable to an end-user or to a
+user or system configuration setting.  If a TTML processor aborts
+processing of a TTML document instance due to the specification of a
+required, but unsupported feature by this element, then some end-user
+notification should be given unless the end-user or system has
+disabled such a notification, or if the processor does not permit or
+entail the intervention of an end-user.</p>
+<p>If the value of the <att>value</att> attribute is
+<code>optional</code>, and if the TTML processor implementation does
+not support the feature, then it may further process the document even
+in the case that some use of the feature is present in the document.
+In the case of actual use of a feature designated as optional, the
+default semantics associated with that feature apply; that is, the
+processor may behave as if the feature were not actually used or
+referenced by the document. Notwithstanding the above, the syntactic
+presence or reference to an optional feature by a document must not be
+considered to be a violation of document validity or a barrier to
+further processing if the syntactic expression is well-formed and
+valid.</p>
+<p>The <el>ttp:feature</el> element is illustrated by the following example.</p>
+<table id="parameter-vocabulary-feature-example-1" role="example">
+<caption>Example Fragment &ndash; ttp:feature</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttp:profile use="http://www.w3.org/ns/ttml/profile/dfxp-presentation"&gt;
+  &lt;ttp:features xml:base="http://www.w3.org/ns/ttml/feature/"&gt;
+    <phrase role="strong">&lt;ttp:feature value="required"&gt;#fontStyle-italic&lt;/ttp:feature&gt;</phrase>
+    <phrase role="strong">&lt;ttp:feature value="required"&gt;#textDecoration-under&lt;/ttp:feature&gt;</phrase>
+  &lt;/ttp:features&gt;
+&lt;/ttp:profile&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, the DFXP presentation profile is used as the
+baseline profile. This baseline profile is then modified by two
+<el>ttp:feature</el> elements in order to
+superset the baseline profile (since neither
+<code>#fontStyle-italic</code> nor <code>#textDecoration-under</code>
+are required by the DFXP presentation profile).  
+<!-- removed text:
+Note that
+the explicit specification of <code>required</code> on the
+<att>value</att> attribute on these two
+<el>ttp:feature</el> elements is not strictly
+necessary, since it is the default value of this
+attribute.--></p> 
+<p>The effect of this example is to express authorial intentions that
+italic font style and text underlining must be
+supported.</p>
+</note>
+</div3>
+<div3 id="parameter-vocabulary-extensions">
+<head>ttp:extensions</head>
+<p>The <el>ttp:extensions</el> element is a container element used to group
+infomation about extension support requirements.</p>
+<p>The <el>ttp:extensions</el> element accepts as its children zero or more
+elements in the <code>Metadata.class</code> element group, followed by
+zero or more <el>ttp:extension</el> elements.</p>
+<table id="elt-syntax-parameter-extensions" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: ttp:extensions</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttp:extensions
+  xml:base = string : <emph>TT Extension Namespace</emph>
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc href="#element-vocab-group-table">Metadata.class</loc>*, <loc href="#parameter-vocabulary-extension">ttp:extension</loc>*
+&lt;/ttp:extensions&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>If specified, the <att>xml:base</att>
+attribute must (1) adhere to the
+<code>xsd:anyURI</code> data type defined by <bibref ref="xsd-2"/>,
+&sect;3.2.17, (2) express an absolute URI that
+adheres to <bibref ref="xmlbase"/> and,
+(3) express an extension namespace as defined by
+<specref ref="extension-designations"/>. If not specified, the
+<att>xml:base</att> attribute's default
+value applies, which is the TT Extension Namespace.</p>
+<p>The <att>xml:base</att> attribute is
+used to permit the abbreviation of feature designation URIs expressed
+by child <el>ttp:extension</el> elements.</p>
+</div3>
+<div3 id="parameter-vocabulary-extension">
+<head>ttp:extension</head>
+<p>The <el>ttp:extension</el> element is used to specify
+infomation about support requirements for a particular extension.</p>
+<p>The children of the <el>ttp:extension</el> element must express a non-empty
+sequence of character information items that adheres to the
+<code>xsd:anyURI</code> data type defined by <bibref ref="xsd-2"/>,
+&sect;3.2.17.</p>
+<table id="elt-syntax-parameter-extension" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: ttp:extension</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttp:extension
+  value = (optional|required|use) : required
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> #PCDATA
+&lt;/ttp:extension&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>If the URI expressed by the content of the <el>ttp:extension</el>
+element is a relative URI, then, when combined with the
+extension namespace value expressed by the
+<att>xml:base</att> attribute of the
+nearest ancestor <el>ttp:extensions</el> element, it must express an
+absolute URI.  In either case (original absolute URI or resulting
+absolutized URI), the URI expressed by the <el>ttp:extension</el>
+element must further adhere to the syntax of an extension designation
+as defined by <specref ref="extension-designations"/>.</p>
+<p>If the URI expressed by the content of the
+<el>ttp:feature</el> element is a relative URI, then an
+<att>xml:base</att> attribute should be specified on the nearest
+ancestor <el>ttp:extensions</el> element.</p>
+<p>The <att>value</att> attribute specifies whether a conforming TTML
+processor must or may implement the designated extension in order to
+process the document. If the value of the <att>value</att> attribute
+is <code>optional</code>, then the processor need
+not implement or otherwise support the extension in order to process the
+document; if the value is <code>required</code>, then the processor
+must implement or otherwise support the extension in order to process
+the document; if the value is
+<code>use</code>, then the processor must both (1) implement or
+otherwise support the extension and (2) enable (activate) use of the
+extension.</p>
+<note role="clarification">
+<p>The default value of the <att>value</att> attribute is
+<code>required</code>, as indicated in the above element information
+item definition. Therefore, if a <att>value</att> attribute is not
+specified on a <el>ttp:extension</el> element, it is equivalent to
+specifying that support for the extension is required.</p>
+</note>
+<p>If the value of the <att>value</att> attribute is
+<code>required</code> or <code>use</code>,
+and if the TTML processor implementation does not support the
+extension, then it must not further process the document without the
+presence of an explicit override from an end-user or some
+implementation specific parameter traceable to an end-user or to a
+user or system configuration setting.  If a TTML processor aborts
+processing of a TTML document instance due to the specification of a
+required, but unsupported extension by this element, then some
+end-user notification should be given unless the end-user or system
+has disabled such a notification, or if the processor does not permit
+or entail the intervention of an end-user.</p>
+<p>If the value of the <att>value</att> attribute is
+<code>optional</code>, and if the TTML processor implementation does
+not support the extension, then it may further process the document even
+in the case that some use of the extension is present in the document.
+In the case of actual use of an extension designated as optional, the
+default semantics associated with that extension apply; that is, the
+processor may behave as if the extension were not actually used or
+referenced by the document. Notwithstanding the above, the syntactic
+presence or reference to an optional extension by a document must not be
+considered to be a violation of document validity or a barrier to
+further processing if the syntactic expression is well-formed and
+valid.</p>
+<p>The <el>ttp:extension</el> element is illustrated by the following example.</p>
+<table id="parameter-vocabulary-extension-example-1" role="example">
+<caption>Example Fragment &ndash; ttp:extension</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttp:profile use="http://www.w3.org/ns/ttml/profile/dfxp-transformation"&gt;
+  &lt;ttp:extensions xml:base="http://foo.bar.example.org/ttaf1/extension/"&gt;
+    <phrase role="strong">&lt;ttp:extension value="use"&gt;#prefilter-by-language&lt;/ttp:extension&gt;</phrase>
+  &lt;/ttp:extensions&gt;
+&lt;/ttp:profile&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, the DFXP transformation profile is used as
+the baseline profile. This baseline profile is then supersetted by
+specifying that support and use is required for a private extension
+defined in a third party namespace.</p>
+<p>The effect of this example is to express authorial intentions that
+a recipient processor must support the DFXP transformation profile and
+must also support and use an extension defined by a third party.</p>
+</note>
+</div3>
+</div2>
+<div2 id="parameter-attribute-vocabulary">
+<head>Parameter Attribute Vocabulary</head>
+<p>The following attributes are defined in the TT Parameter Namespace.</p>
+<ulist>
+<item><p><specref ref="parameter-attribute-cellResolution"/></p></item>
+<item><p><specref ref="parameter-attribute-clockMode"/></p></item>
+<item><p><specref ref="parameter-attribute-dropMode"/></p></item>
+<item><p><specref ref="parameter-attribute-frameRate"/></p></item>
+<item><p><specref ref="parameter-attribute-frameRateMultiplier"/></p></item>
+<item><p><specref ref="parameter-attribute-markerMode"/></p></item>
+<item><p><specref ref="parameter-attribute-pixelAspectRatio"/></p></item>
+<item><p><specref ref="parameter-attribute-profile"/></p></item>
+<item><p><specref ref="parameter-attribute-subFrameRate"/></p></item>
+<item><p><specref ref="parameter-attribute-tickRate"/></p></item>
+<item><p><specref ref="parameter-attribute-timeBase"/></p></item>
+</ulist>
+<p>Unless explicitly stated otherwise, linear white-space (LWSP) may
+appear between tokens of a value of a TT Parameter.</p>
+<div3 id="parameter-attribute-cellResolution">
+<head>ttp:cellResolution</head>
+<p>The <att>ttp:cellResolution</att> attribute may be used by an author
+to express the number of horizontal and vertical cells into which the root container region
+area is divided for the purpose of expressing presentation semantics in terms of
+a uniform grid.</p>
+<p>If specified, the value of this attribute must adhere to the following syntax:</p>
+<table id="parameter-attribute-cellResolution-syntax" role="syntax">
+<caption>Syntax Representation &ndash; ttp:cellResolution</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+ttp:cellResolution
+  : columns rows                            // <emph>columns</emph> != 0; <emph>rows</emph> != 0
+
+columns | rows
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc>+
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>If not specified, the number of columns and rows must be considered
+to be 32 and 15, respectively. If specified, then columns or rows must not be zero (0).</p>
+<note role="motivation">
+<p>The choice of values 32 and 15 are based on this being the
+maximum number of columns and rows defined by <bibref
+ref="cea608c"/>.</p>
+</note>
+<p>A <att>ttp:cellResolution</att> attribute is considered to be significant only
+when specified on the <el>tt</el> element.</p>
+<note role="explanation">
+<p>The use of a uniform grid is employed only for the purpose of
+measuring lengths and expressing coordinates. In particular, it is not
+assumed that the presentation of text or the alignment of individual
+glyph areas is
+coordinated with this grid. Such alignment is possible, but
+requires the use of a monospaced font and a font size whose EM square exactly
+matches the cell size.</p>
+</note>
+</div3>
+<div3 id="parameter-attribute-clockMode">
+<head>ttp:clockMode</head>
+<p>The <att>ttp:clockMode</att> attribute is used to specify the
+interpretation of time expressions as real-time time coordinates when
+operating with time base of <code>clock</code> as defined by <specref
+ref="parameter-attribute-timeBase"/>.</p>
+<note role="explanation">
+<p>See <specref ref="timing-time-value-expressions"/> for the
+specification of time expression syntax.</p>
+</note>
+<p>If specified, the value of this attribute must adhere to the following syntax:</p>
+<table id="parameter-attribute-clockMode-syntax" role="syntax">
+<caption>Syntax Representation &ndash; ttp:clockMode</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+ttp:clockMode
+  : "local"
+  | "gps"
+  | "utc"
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>If the time base, defined by <specref
+ref="parameter-attribute-timeBase"/>, is designated as
+<code>clock</code>, then this parameter applies as follows: if the
+parameter's value is <code>local</code>, then time expressions are
+interpreted as local wall-clock time coordinates;
+if <code>utc</code>, then time expressions are
+interpreted as UTC time coordinates
+<bibref ref="utc"/>;
+if <code>gps</code>, then time expressions are
+interpreted as GPS time coordinates
+<bibref ref="gps"/>.</p>
+<note role="explanation">
+<p>The primary difference between GPS time and UTC time is that GPS
+time is not adjusted for leap seconds, while UTC time is adjusted as
+follows: UTC = TAI (<emph>Temp Atomique International</emph>) + <emph>leap seconds
+accumulated since 1972</emph>. TAI is maintained by the <emph>Bureau
+International des Poids et Mesures</emph> (BIPM) in Sevres, France.
+The GPS system time is steered to a Master Clock (MC) at the US Naval
+Observatory which is kept within a close but unspecified
+tolerance of TAI.</p>
+</note>
+<p>If not specified, the value of this parameter must be considered
+to be <code>utc</code>.</p>
+<p>A <att>ttp:clockMode</att> attribute is considered to be significant only
+when specified on the <el>tt</el> element.</p>
+</div3>
+<div3 id="parameter-attribute-dropMode">
+<head>ttp:dropMode</head>
+<p>The <att>ttp:dropMode</att> attribute is used to specify
+constraints on the interpretation and use of frame counts
+that correspond with <bibref ref="smpte12m"/> time coordinates when operating
+with time base of <code>smpte</code> as defined by
+<specref ref="parameter-attribute-timeBase"/>.</p>
+<p>If specified, the value of this attribute must adhere to the following syntax:</p>
+<table id="parameter-attribute-dropMode-syntax" role="syntax">
+<caption>Syntax Representation &ndash; ttp:dropMode</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+ttp:dropMode
+  : "dropNTSC"
+  | "dropPAL"
+  | "nonDrop"
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>If the time base, defined by <specref
+ref="parameter-attribute-timeBase"/>, is designated as
+<code>smpte</code>, then this parameter applies as follows: if the
+parameter's value is <code>nonDrop</code>, then, within any given
+second of a time expression, frames count from 0 to
+<emph>N&minus;1</emph>, where <emph>N</emph> is the value specified by
+the <att>ttp:frameRate</att> parameter, but while ignoring any value
+specified by the <att>ttp:frameRateMultiplier</att> parameter.</p>
+<note role="clarification"> <p>When operating in <code>nonDrop</code>
+mode, a second of a time expression may or may not be equal to a
+second of real time during normal (1x speed) forward playback. If the
+<att>ttp:frameRateMultiplier</att> parameter is specified and is not
+equal to 1:1, then a second of a time expression will either be
+shorter or longer than a second of elapsed play in real
+time.</p></note>
+<p>If this parameter's value is <code>dropNTSC</code>, then, within any
+given second of a time expression except the second <code>00</code>,
+frames count from 0 to <emph>N&minus;1</emph>, where <emph>N</emph> is
+the value specified by the <att>ttp:frameRate</att> parameter, but
+while ignoring any value specified by the
+<att>ttp:frameRateMultiplier</att> parameter. If the second of a time
+expression is <code>00</code> and the minute of the time expression is
+not <code>00</code>, <code>10</code>, <code>20</code>, <code>30</code>,
+<code>40</code>, or <code>50</code>, then frame codes <code>00</code>
+and <code>01</code> are dropped during that second; otherwise, these
+frame codes are not dropped.</p>
+<note role="example"> <p>For example, when operating in <code>dropNTSC</code>
+mode with <att>ttp:frameRate</att> of <code>30</code>, a discontinuity
+in frame count occurs between consecutive frames as shown in the
+following sequence of time expressions: <code>01:08:59:28</code>,
+<code>01:08:59:29</code>, <code>01:09:00:02</code>,
+<code>01:09:00:03</code>.</p></note>
+<p>If this parameter's value is <code>dropPAL</code>, then, within any
+given second of a time expression except the second <code>00</code>,
+frames count from 0 to <emph>N&minus;1</emph>, where <emph>N</emph> is
+the value specified by the <att>ttp:frameRate</att> parameter, but
+while ignoring any value specified by the
+<att>ttp:frameRateMultiplier</att> parameter. If the second of a time
+expression is <code>00</code> and the minute of the time expression is
+even but not <code>00</code>, <code>20</code>, or <code>40</code>,
+then frame codes <code>00</code> through <code>03</code> are dropped
+during that second; otherwise, these frame codes are not dropped.</p>
+<note role="example"><p>For example, when operating in <code>dropPAL</code>
+mode with <att>ttp:frameRate</att> of <code>30</code>, a discontinuity
+in frame count occurs between consecutive frames as shown in the
+following sequence of time expressions: <code>01:09:59:28</code>,
+<code>01:09:59:29</code>, <code>01:10:00:04</code>,
+<code>01:10:00:04</code>.</p></note>
+<note role="explanation">
+<p>The <code>dropPAL</code> mode is also known as the
+<emph>M/PAL</emph> or <emph>PAL (M)</emph> drop-frame
+code, which uses PAL modulation with the NTSC frame rate of ~29.97
+frames/second. The M/PAL system is used primarily in Brazil.</p>
+</note>
+<p>If not specified, then <code>nonDrop</code> must be assumed to apply.</p>
+<p>A <att>ttp:dropMode</att> attribute is considered to be significant only
+when specified on the <el>tt</el> element.</p>
+</div3>
+<div3 id="parameter-attribute-frameRate">
+<head>ttp:frameRate</head>
+<p>The <att>ttp:frameRate</att> attribute is used to specify the frame rate of a related
+media object or the intrinsic frame rate of a document instance in case it is intended
+to function as an independent media object.</p>
+<p>If specified, the value of this attribute must adhere to the following syntax:</p>
+<table id="parameter-attribute-frameRate-syntax" role="syntax">
+<caption>Syntax Representation &ndash; ttp:frameRate</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+ttp:frameRate
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc>+                                // <emph>value</emph> > 0
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>The frame rate that applies to a document instance is used to
+interpret time expressions that are expressed in <emph>frames</emph>
+as defined by <specref ref="timing-value-timeExpression"/>.</p>
+<p>A frame is interpreted as a division of a second of media
+time, such that if the frame rate is specified as <emph>F</emph>, then
+a second of media time is divided into <emph>F</emph> intervals of
+equal duration, where each interval is labeled as frame <emph>f</emph>,
+with <emph>f</emph> &isin; [0&hellip;<emph>F&minus;1</emph>].</p>
+<p>If not specified, the frame rate must be considered to be equal to some
+application defined frame rate, or if no application defined frame rate applies,
+then thirty (30) frames per second. If specified, then the frame rate must
+be greater than zero (0).</p>
+<p>A <att>ttp:frameRate</att> attribute is considered to be significant only
+when specified on the <el>tt</el> element.</p>
+</div3>
+<div3 id="parameter-attribute-frameRateMultiplier">
+<head>ttp:frameRateMultiplier</head>
+<p>The <att>ttp:frameRateMultiplier</att> attribute is used to
+specify a multiplier to be applied to the frame rate specified by a
+<att>ttp:frameRate</att> attribute in order to compute the effective
+frame rate.</p>
+<p>If specified, the value of this attribute must adhere to the following syntax:</p>
+<table id="parameter-attribute-frameRateMultiplier-syntax" role="syntax">
+<caption>Syntax Representation &ndash; ttp:frameRateMultiplier</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+ttp:frameRateMultiplier
+  : numerator denominator                   // <emph>numerator</emph> != 0; <emph>denominator</emph> != 0
+
+numerator | denominator
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc>+
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>A frame rate multiplier is used when the desired frame rate cannot
+be expressed as an integral number of frames per second.</p>
+<p>If not specified, the frame rate multiplier must be considered to be equal to one (1:1).
+Both numerator and denominator must be non-zero.</p>
+<p>A <att>ttp:frameRateMultiplier</att> attribute is considered to be significant only
+when specified on the <el>tt</el> element.</p>
+<note role="example">
+<p>The frame rate multiplier used for synchronizing with NTSC <bibref
+ref="smpte170m"/>
+formatted video objects at 30 frames per second is nominally
+1000:1001. The nominal frame rate of NTSC video is defined as the chrominance
+sub-carrier frequency of 3,579,545.45&hellip;Hz (= 5.0MHz &mult; 63/88) times the ratio 2/455 divided by
+the number of horizontal lines per frame of 525, which yields a frame
+rate of 29.970029970029&hellip; (= 30 &mult; 1000/1001) frames per
+second. Other frame rate multipliers apply to different regions of
+usage and video format standards.</p>
+</note>
+<note role="example">
+<p>Except in the case of PAL/M, the frame rate multiplier used for synchronizing with PAL
+formatted video objects at 25 frames per second is nominally 1:1.</p>
+</note>
+</div3>
+<div3 id="parameter-attribute-markerMode">
+<head>ttp:markerMode</head>
+<p>The <att>ttp:markerMode</att> attribute is used to specify
+constraints on the interpretation and use of time expressions
+that correspond with <bibref ref="smpte12m"/> time coordinates when operating
+with time base of <code>smpte</code> as defined by
+<specref ref="parameter-attribute-timeBase"/>.</p>
+<p>If specified, the value of this attribute must adhere to the following syntax:</p>
+<table id="parameter-attribute-markerMode-syntax" role="syntax">
+<caption>Syntax Representation &ndash; ttp:markerMode</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+ttp:markerMode
+  : "continuous"
+  | "discontinuous"
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>If the time base, defined by <specref
+ref="parameter-attribute-timeBase"/>, is designated as
+<code>smpte</code>, then this parameter applies as follows: if the
+parameter's value is <code>continuous</code>, then <bibref ref="smpte12m"/> time coordinates
+may be assumed to be linear and either monotonically increasing or
+decreasing; however, if <code>discontinuous</code>, then any assumption
+must not be made regarding linearity or monotonicity of time coordinates.</p>
+<p>If not specified, the value of this parameter must be considered
+to be <code>continuous</code>.</p>
+<p>A <att>ttp:markerMode</att> attribute is considered to be significant only
+when specified on the <el>tt</el> element.</p>
+<p>If a value of <code>discontinuous</code> applies, then time
+expressions must not be converted to either media time or real time
+coordinates, arithmetical operators (addition, multiplication) are not
+defined on time expressions, and, consequently, any expression of a
+duration must be considered to be invalid.</p>
+<note role="explanation">
+<p>When operating with <code>smpte</code> time base and
+<code>discontinuous</code> marker mode, there is no effective time coordinate
+space; rather, all time expressions are interpreted as labeled
+synchronization events (markers), where some external synchronization
+context emits these events, which, when they correspond with time
+expressions that denote the same label, cause a temporal interval to
+begin or end accordingly.</p>
+<p>An additional side-effect of operating in <code>discontinuous</code>
+mode is that time expressions of children have no necessary
+relationship with time expressions of their temporal container; that
+is, temporal containers and children of these containers are
+temporally activated and inactivated independently based on the
+occurrence of a labeled synchronization (marker) event.</p>
+</note>
+<note role="explanation">
+<p>The notion of marker discontinuity as captured by this parameter
+is logically independent from the method used to count frames as
+expressed by the <att>ttp:dropMode</att> parameter. In particular,
+even if the <att>ttp:dropMode</att> parameter is specified as
+<code>dropNTSC</code> or <code>dropPAL</code>, the marker mode may be
+specified as <code>continuous</code>, even in the presence of frame count
+discontinuities induced by the frame counting method, unless there
+were some other non-linearity or discontinuity in marker labeling, for
+example, two consecutive frames labeled as <code>10:00:00:00</code>
+and <code>10:00:01:00</code>.
+</p>
+</note>
+</div3>
+<div3 id="parameter-attribute-pixelAspectRatio">
+<head>ttp:pixelAspectRatio</head>
+<p>The <att>ttp:pixelAspectRatio</att> attribute may be used by a content author
+to express the aspect ratio of non-square pixels in the production of content that
+makes use of pixel coordinates.</p>
+<p>If specified, the value of this attribute must adhere to the following syntax:</p>
+<table id="parameter-attribute-pixelAspectRatio-syntax" role="syntax">
+<caption>Syntax Representation &ndash; ttp:pixelAspectRatio</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+ttp:pixelAspectRatio
+  : width height                            // <emph>width</emph> != 0; <emph>height</emph> != 0
+
+width | height
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc>+
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>If not specified, then square pixels (i.e., aspect ratio 1:1) must be assumed to apply.
+If specified, then both width and height must be non-zero.</p>
+<p>A <att>ttp:pixelAspectRatio</att> attribute is considered to be significant only
+when specified on the <el>tt</el> element.</p>
+<note role="explanation">
+<p>This parameter may be used by a content transcoder or translator in
+order to convert pixel measurements between different pixel aspect
+ratios while still maintaining authorial layout intentions.</p>
+</note>
+</div3>
+<div3 id="parameter-attribute-profile">
+<head>ttp:profile</head>
+<p>The <att>ttp:profile</att> attribute may be used by a content author
+to express the profile of the Timed Text Markup Language (TTML) used
+in a document instance.</p>
+<p>If specified, the value of this attribute must adhere to the
+<code>xsd:anyURI</code> data type defined by <bibref ref="xsd-2"/>,
+&sect;3.2.17, and, further, must specify a
+profile designator in accordance with
+<specref ref="vocabulary-profiles"/>.</p>
+<p>A <att>ttp:profile</att>
+attribute is considered to be significant only when specified on the
+<el>tt</el> element.</p>
+</div3>
+<div3 id="parameter-attribute-subFrameRate">
+<head>ttp:subFrameRate</head>
+<p>The <att>ttp:subFrameRate</att> attribute is used to specify the sub-frame rate of a related
+media object or the intrinsic sub-frame rate of a document instance in case it is intended
+to function as an independent media object.</p>
+<p>If specified, the value of this attribute must adhere to the following syntax:</p>
+<table id="parameter-attribute-subFrameRate-syntax" role="syntax">
+<caption>Syntax Representation &ndash; ttp:subFrameRate</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+ttp:subFrameRate
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc>+                                // <emph>value</emph> > 0
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>The sub-frame rate that applies to a document instance is used to
+interpret time expressions that are expressed in <emph>sub-frames</emph>
+as defined by <specref ref="timing-value-timeExpression"/>.</p>
+<p>A sub-frame is interpreted as a division of a frame of media
+time, such that if the sub-frame rate is specified as <emph>S</emph>, then
+a frame of media time is divided into <emph>S</emph> intervals of
+equal duration, where each interval is labeled as sub-frame <emph>s</emph>,
+with <emph>s</emph> &isin; [0&hellip;<emph>S&minus;1</emph>].</p>
+<p>If not specified, the sub-frame rate must be considered to be
+equal to one (1). If specified, then the sub-frame rate must be greater than zero (0).</p>
+<p>A <att>ttp:subFrameRate</att> attribute is considered to be significant only
+when specified on the <el>tt</el> element.</p>
+<note role="clarification">
+<p>The sub-frame is sometimes referred to as a <emph>field</emph> in
+the context of synchronization with an interlaced video media object.</p>
+</note>
+</div3>
+<div3 id="parameter-attribute-tickRate">
+<head>ttp:tickRate</head>
+<p>The <att>ttp:tickRate</att> attribute is used to specify the tick rate of a related
+media object or the intrinsic tick rate of content of a document instance in case it is intended
+to function as an independent media object.</p>
+<p>If specified, the value of this attribute must adhere to the following syntax:</p>
+<table id="parameter-attribute-tickRate-syntax" role="syntax">
+<caption>Syntax Representation &ndash; ttp:tickRate</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+ttp:tickRate
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc>+                                // <emph>value</emph> > 0
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>The tick rate that applies to a document instance is used to
+interpret time expressions that are expressed in <emph>ticks</emph> by
+using the <code>t</code> metric as defined by <specref
+ref="timing-value-timeExpression"/>.</p>
+<p>A tick is interpreted as an integral division of a second of media
+time, such that if the tick rate is specified as <emph>T</emph>, then
+a second of media time is divided into <emph>T</emph> intervals of
+equal duration, where each interval is labeled as tick <emph>t</emph>,
+with <emph>t</emph> &isin; [0&hellip;<emph>T&minus;1</emph>].</p>
+<p>If not specified, then if a frame rate is specified, the tick rate
+must be considered to be the effective frame rate multiplied by the
+sub-frame rate (i.e., ticks are interpreted as sub-frames); or, if no
+frame rate is specified, the tick rate must be considered to be one (1)
+tick per second of media time. If specified, then the tick rate
+must not be zero (0).</p>
+<note role="clarification">
+<p>There is no predefined relationship between ticks and frames or
+sub-frames. Ticks are an arbitrary division of seconds that permit
+use of fixed point arithmetic rather than fractional (and potentially
+inexact) expressions of seconds.</p>
+</note>
+<p>A <att>ttp:tickRate</att> attribute is considered to be significant only
+when specified on the <el>tt</el> element.</p>
+</div3>
+<div3 id="parameter-attribute-timeBase">
+<head>ttp:timeBase</head>
+<p>The <att>ttp:timeBase</att> attribute is used to specify the
+temporal coordinate system by means of which time expressions are
+interpreted in a document instance.</p>
+<p>If specified, the value of this attribute must adhere to the following syntax:</p>
+<table id="parameter-attribute-timeBase-syntax" role="syntax">
+<caption>Syntax Representation &ndash; ttp:timeBase</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+ttp:timeBase
+  : "media"
+  | "smpte"
+  | "clock"
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>If the time base is designated as <code>media</code>, then a time
+expression denotes a coordinate in some media object's time line,
+where the media object may be an external media object with which the
+content of a document instance is to be synchronized, or it may
+be the content of a document instance itself in a case where
+the timed text content is intended to establish an independent time
+line.</p>
+<note role="explanation">
+<p>When using a media time base, if that time base is paused or
+scaled positively or negatively, then it is expected that the
+presentation of associated Timed Text content will be similarly
+paused, accelerated, or decelerated, respectively. The means for
+controlling an external
+media time base is outside the scope of this specification.</p>
+</note>
+<p>If the time base is designated as <code>smpte</code>,
+then a time expression denotes a <bibref ref="smpte12m"/> time
+coordinate with which the content of a document instance is to
+be synchronized.  In this case, the value of the <att>ttp:markerMode</att> 
+and <att>ttp:dropMode</att> parameters apply, as defined by <specref
+ref="parameter-attribute-markerMode"/> and <specref
+ref="parameter-attribute-dropMode"/>, respectively.</p>
+<p>If the time base is designated as <code>clock</code>, then the time
+expression denotes a coordinate in some real-world time line as
+established by some real-time clock, such as the local wall-clock time
+or UTC (Coordinated Universal Time) or GPS (Global Positioning System)
+time lines.</p>
+<p>If not specified, the default time base must be considered to be
+<code>media</code>.</p>
+<p>A <att>ttp:timeBase</att> attribute is considered to be significant only
+when specified on the <el>tt</el> element.</p>
+<p>When operating with either <code>media</code> or <code>smpte</code>
+time bases, a diachronic presentation of a document instance may
+be subject to transformations of the controlling time line, such as
+temporal reversal, dilation (expansion), or constriction
+(compression); however, when operating with the <code>clock</code>
+time base, no transformations are permitted, and diachronic
+presentation proceeds on a linear, monotonically increasing time line
+based on the passage of real time.</p>
+<note role="example">
+<p>Due to there being only one time base parameter that applies to a
+given document instance, the interpretation of time expressions
+is uniform throughout the document instance.</p>
+</note>
+<p>When operating with the <code>clock</code> time base,
+the expression <emph>media time</emph> as used in this specification is
+to be interpreted as the real-time clock selected by
+<specref ref="parameter-attribute-clockMode"/>.</p>
+</div3>
+</div2>
+</div1>
+<div1 id="content">
+<head>Content</head>
+<p>This section specifies the <emph>content</emph> matter of the core
+vocabulary catalog.</p>
+<div2 id="content-element-vocabulary">
+<head>Content Element Vocabulary</head>
+<p>The following elements specify the structure and principal content aspects of a
+document instance:</p>
+<ulist>
+<item><p><specref ref="document-structure-vocabulary-tt"/></p></item>
+<item><p><specref ref="document-structure-vocabulary-head"/></p></item>
+<item><p><specref ref="document-structure-vocabulary-body"/></p></item>
+<item><p><specref ref="content-vocabulary-div"/></p></item>
+<item><p><specref ref="content-vocabulary-p"/></p></item>
+<item><p><specref ref="content-vocabulary-span"/></p></item>
+<item><p><specref ref="content-vocabulary-br"/></p></item>
+</ulist>
+<div3 id="document-structure-vocabulary-tt">
+<head>tt</head>
+<p>The <el>tt</el> element serves as the root document element of a document
+instance.</p>
+<p>The <el>tt</el> element accepts as its children zero or one <el>head</el> element followed by
+zero or one <el>body</el> element.</p>
+<table id="elt-syntax-tt" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: tt</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;tt
+  <loc href="#style-attribute-extent">tts:extent</loc> = string
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang"><phrase role="reqattr">xml:lang</phrase></loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>) : default
+  {<emph>any attribute in TT Parameter namespace</emph>}
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc href="#document-structure-vocabulary-head">head</loc>?, <loc href="#document-structure-vocabulary-body">body</loc>?
+&lt;/tt&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>The temporal beginning and ending of a document instance represented by a
+<el>tt</el> element is defined in relationship with some external
+application or presentation context. The temporal interval defined by
+these points is referred to subsequently as the <emph>external time interval</emph>.
+</p>
+<p>A document instance has an implicit duration that is equal to the
+implicit duration of the <el>body</el> element of the document, if present, or zero,
+if not present.</p>
+<p>If the <att>tts:extent</att> attribute is specified on the <el>tt</el>
+element, then it must adhere to <specref ref="style-attribute-extent"/>, in which case it
+specifies the spatial extent of the root container region in
+which content regions are located and presented. If no <att>tts:extent</att>
+attribute is specified, then the spatial extent of the root container region is
+considered to be determined by the external authoring or presentation
+context. The root container origin is determined by the external
+authoring context.</p>
+<p>An <att>xml:lang</att> attribute must be specified on the <el>tt</el> element.
+If the attribute value is empty, it signifies that there is no default language that applies
+to the text contained within the document instance.</p>
+<p>If no <att>xml:space</att> attribute is specified upon the <el>tt</el> element, then it must
+be considered as if the attribute had been specified with a value of <code>default</code>.</p>
+</div3>
+<div3 id="document-structure-vocabulary-head">
+<head>head</head>
+<p>The <el>head</el> element is a container element used to group
+header matter, including metadata,
+profile, styling, and layout information.</p>
+<p>The <el>head</el> element accepts as its children zero or more
+elements in the <code>Metadata.class</code> element group,
+followed by zero or more elements in the
+<code>Parameters.class</code> element group,
+followed by zero or one <el>styling</el> element,
+followed by zero or one <el>layout</el> element.</p>
+<p>Any metadata specified by children in the <code>Metadata.class</code>
+element group applies semantically to the document instance as a
+whole, and not just the <el>head</el> element.</p>
+<p>Any parameters specified by children in the <code>Parameters.class</code>
+element group applies semantically to the document instance as a
+whole, and not just the <el>head</el> element.</p>
+<p>A <el>styling</el> child element is used to specify style constructs
+that are referenced from other style constructs, by layout constructs, and by
+content elements.</p>
+<p>A <el>layout</el> child element is used to specify layout constructs that
+are referenced by content elements.</p>
+<table id="elt-syntax-head" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: head</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;head
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc href="#element-vocab-group-table">Metadata.class</loc>*, <loc href="#element-vocab-group-table">Parameters.class</loc>*, <loc href="#styling-vocabulary-styling">styling</loc>?, <loc href="#layout-vocabulary-layout">layout</loc>?
+&lt;/head&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>To the extent that time semantics apply to the content of the
+<el>head</el> element, the implied time interval of this element is
+defined to be coterminous with the external time interval.</p>
+</div3>
+<div3 id="document-structure-vocabulary-body">
+<head>body</head>
+<p>The <el>body</el> element functions as a logical container and a temporal
+structuring element for a sequence of textual content units represented as
+logical divisions.</p>
+<p>The <el>body</el> element accepts as its children zero or more
+elements in the <code>Metadata.class</code> element group,
+followed by zero or more
+elements in the <code>Animation.class</code> element group,
+followed by
+zero or more <el>div</el> elements.</p>
+<p>Any metadata specified by children in the <code>Metadata.class</code>
+element group applies semantically to the <el>body</el> element and its descendants as a whole.</p>
+<p>Any animation elements specified by children in the <code>Animation.class</code>
+element group apply semantically to the <el>body</el> element.</p>
+<table id="elt-syntax-body" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: body</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;body
+  <loc href="#timing-attribute-begin">begin</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#timing-attribute-dur">dur</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#timing-attribute-end">end</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#layout-attribute-region">region</loc> = IDREF
+  <loc href="#style-attribute-style">style</loc> = IDREFS
+  <loc href="#timing-attribute-timeContainer">timeContainer</loc> = (<emph>par</emph>|<emph>seq</emph>)
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute in TT Metadata namespace</emph>}
+  {<emph>any attribute in TT Style namespace</emph>}
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc href="#element-vocab-group-table">Metadata.class</loc>*, <loc href="#element-vocab-group-table">Animation.class</loc>*, <loc href="#content-vocabulary-div">div</loc>*
+&lt;/body&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>An author may specify a temporal interval for a <el>body</el> element using
+the <att>begin</att>, <att>dur</att>, and <att>end</att> attributes. If the begin point
+of this interval remains unspecified, then the begin point is interpreted as the begin
+point of the external time interval. Similarly, if the end point of this interval remains unspecified, then the
+end point is interpreted as the end point of the external time interval.</p>
+<note role="explanation">
+<p>A TTML document instance referenced from a SMIL presentation
+is expected to follow the same timing rules as apply to other SMIL media
+objects.</p>
+</note>
+<p>If relative begin or end times are specified on the <el>body</el>
+element, then these times are resolved by reference to the begin and
+end time of the external time interval.</p>
+<p>If the external time interval is shorter than the computed duration of the
+<el>body</el> element, then the active time interval of a document instance is
+truncated to the active end point of the external time interval.</p>
+<p>An author may associate a set of style properties with a
+<el>body</el> element by means of either the <att>style</att>
+attribute or inline style attributes or a combination thereof.</p>
+<note role="explanation">
+<p>Style properties that are associated with a <el>body</el> element
+in a document instance are available for style inheritance by
+descendant content elements such as <el>div</el>, <el>p</el>,
+<el>span</el>
+and <el>br</el>.</p>
+</note>
+<p>If no <att>timeContainer</att> attribute is specified on a
+<el>body</el> element, then it must be interpreted as having
+<emph>parallel</emph>
+time containment semantics.</p>
+</div3>
+<div3 id="content-vocabulary-div">
+<head>div</head>
+<p>The <el>div</el> element functions as a logical container and a temporal
+structuring element for a sequence of textual content units represented as
+logical sub-divisions or paragraphs.</p>
+<note role="explanation">
+<p>When rendered on a continuous (non-paged) visual presentation medium,
+a <el>div</el> element is expected to generate
+one or more block
+areas
+that contain zero or more child block areas
+generated by the <el>div</el> element's
+descendant
+<el>p</el> elements.
+</p>
+<p>If some
+block area generated by a <el>div</el> element does
+not contain any child areas, then it is not expected to be presented.</p>
+</note>
+<p>The <el>div</el> element accepts as its children zero or more
+elements in the <code>Metadata.class</code> element group,
+followed by zero or more
+elements in the <code>Animation.class</code> element group,
+followed by
+zero or more
+<el>div</el> or 
+<el>p</el> elements.</p>
+<p>Any metadata specified by children in the <code>Metadata.class</code>
+element group applies semantically to the <el>div</el> element and its descendants as a whole.</p>
+<p>Any animation elements specified by children in the <code>Animation.class</code>
+element group apply semantically to the <el>div</el> element.</p>
+<table id="elt-syntax-div" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: div</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;div
+  <loc href="#timing-attribute-begin">begin</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#timing-attribute-dur">dur</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#timing-attribute-end">end</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#layout-attribute-region">region</loc> = IDREF
+  <loc href="#style-attribute-style">style</loc> = IDREFS
+  <loc href="#timing-attribute-timeContainer">timeContainer</loc> = (<emph>par</emph>|<emph>seq</emph>)
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute in TT Metadata namespace</emph>}
+  {<emph>any attribute in TT Style namespace</emph>}
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc
+  href="#element-vocab-group-table">Metadata.class</loc>*, <loc
+  href="#element-vocab-group-table">Animation.class</loc>*, <loc
+  href="#element-vocab-group-table">Block.class</loc>*
+&lt;/div&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>An author may associate a set of style properties with a <el>div</el> element by means of either
+the <att>style</att> attribute or inline style attributes or a combination thereof.</p>
+<note role="explanation">
+<p>Style properties that are associated
+with
+a <el>div</el> element in a document instance
+are available for style inheritance by descendant content elements such as
+<el>div</el>, 
+<el>p</el>,
+<el>span</el>, and
+<el>br</el>.</p>
+</note>
+<p>If no <att>timeContainer</att> attribute is specified on
+a <el>div</el> element, then it must be interpreted as having
+<emph>parallel</emph> time containment semantics.</p>
+</div3>
+<div3 id="content-vocabulary-p">
+<head>p</head>
+<p>A <el>p</el> element represents a logical paragraph, serving as
+a transition between block level and inline level formatting semantics.</p>
+<p>The <el>p</el> element accepts as its children zero or more
+elements in the <code>Metadata.class</code> element group,
+followed by zero or more
+elements in the <code>Animation.class</code> element group,
+followed by
+zero or more
+<code>span</code> element,
+<code>br</code> element,
+or text nodes interpreted as anonymous spans.</p>
+<p>Any metadata specified by children in the <code>Metadata.class</code>
+element group applies semantically to the <el>p</el> element and its descendants as a whole.</p>
+<p>Any animation elements specified by children in the <code>Animation.class</code>
+element group apply semantically to the <el>p</el> element.</p>
+<table id="elt-syntax-p" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: p</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;p
+  <loc href="#timing-attribute-begin">begin</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#timing-attribute-dur">dur</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#timing-attribute-end">end</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#layout-attribute-region">region</loc> = IDREF
+  <loc href="#style-attribute-style">style</loc> = IDREFS
+  <loc href="#timing-attribute-timeContainer">timeContainer</loc> = (<emph>par</emph>|<emph>seq</emph>)
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute in TT Metadata namespace</emph>}
+  {<emph>any attribute in TT Style namespace</emph>}
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc
+  href="#element-vocab-group-table">Metadata.class</loc>*, <loc
+  href="#element-vocab-group-table">Animation.class</loc>*, <loc
+  href="#element-vocab-group-table">Inline.class</loc>*
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>An author may associate a set of style properties with a
+<el>p</el> element by means of either the <att>style</att>
+attribute or inline style attributes or a combination thereof.</p>
+<note role="explanation">
+<p>Style properties that are associated with a <el>p</el> element
+in a document instance are available for style inheritance by
+descendant content elements such as <el>span</el> and
+<el>br</el>.</p>
+</note>
+<p>If no <att>timeContainer</att> attribute is specified on
+a <el>p</el> element, then it must be interpreted as having
+<emph>parallel</emph> time containment semantics.</p>
+<p>If a sequence of children of a <el>p</el> element
+consists solely of character information items, then that sequence must
+be considered to be an <emph>anonymous span</emph> for the purpose of
+applying style properties that apply to <el>span</el> elements.</p>
+</div3>
+<div3 id="content-vocabulary-span">
+<head>span</head>
+<p>The <el>span</el> element functions as a logical container and a temporal
+structuring element for a sequence of textual content units having inline
+level formatting semantics.</p>
+<p>When presented on a visual medium, a <el>span</el> element is intended to
+generate a sequence of inline areas, each containing one or more glyph areas.</p>
+<p>The <el>span</el> element accepts as its children zero or more
+elements in the <code>Metadata.class</code> element group,
+followed by zero or more
+elements in the <code>Animation.class</code> element group,
+followed by
+zero or more
+<el>span</el> elements,
+<el>br</el> elements,
+or text nodes interpreted as anonymous spans.</p>
+<p>Any metadata specified by children in the <code>Metadata.class</code>
+element group applies semantically to the <el>span</el> element and its descendants as a whole.</p>
+<p>Any animation elements specified by children in the <code>Animation.class</code>
+element group apply semantically to the <el>span</el> element.</p>
+<table id="elt-syntax-span" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: span</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;span
+  <loc href="#timing-attribute-begin">begin</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#timing-attribute-dur">dur</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#timing-attribute-end">end</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#layout-attribute-region">region</loc> = IDREF
+  <loc href="#style-attribute-style">style</loc> = IDREFS
+  <loc href="#timing-attribute-timeContainer">timeContainer</loc> = (<emph>par</emph>|<emph>seq</emph>)
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute in TT Metadata namespace</emph>}
+  {<emph>any attribute in TT Style namespace</emph>}
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc
+  href="#element-vocab-group-table">Metadata.class</loc>*, <loc
+  href="#element-vocab-group-table">Animation.class</loc>*, <loc
+  href="#element-vocab-group-table">Inline.class</loc>*
+&lt;/span&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>An author may associate a set of style properties with a
+<el>span</el> element by means of either the <att>style</att>
+attribute or inline style attributes or a combination thereof.</p>
+<note role="explanation">
+<p>Style properties that are associated with a <el>span</el> element
+in a document instance are available for style inheritance by
+descendant content elements such as <el>span</el> and
+<el>br</el>.</p>
+</note>
+<p>If no <att>timeContainer</att> attribute is specified on
+a <el>span</el> element, then it must be interpreted as having
+<emph>parallel</emph> time containment semantics.</p>
+</div3>
+<div3 id="content-vocabulary-br">
+<head>br</head>
+<p>The <el>br</el> element denotes an explicit line break.</p>
+<table id="elt-syntax-br" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: br</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;br
+  <loc href="#style-attribute-style">style</loc> = IDREFS
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute in TT Metadata namespace</emph>}
+  {<emph>any attribute in TT Style namespace</emph>}
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc href="#element-vocab-group-table">Metadata.class</loc>*, <loc href="#element-vocab-group-table">Animation.class</loc>*
+&lt;/br&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>When presented on a visual medium, the presence of a <el>br</el> element must be
+interpreted as a forced line break.</p>
+<note>
+<p>The visual presentation of a <el>br</el> element is
+intended to produce the same effect as the ASCII control code
+<code>CR</code>
+followed by the control code <code>NL</code> when presented on a teletype device.
+Therefore, two <el>br</el> elements in sequence will produce a
+different effect than a single <el>br</el> element.</p>
+</note>
+</div3>
+</div2>
+<div2 id="content-attribute-vocabulary">
+<head>Content Attribute Vocabulary</head>
+<p>This section defines the following common attributes used with many or all element types
+in the core vocabulary catalog:</p>
+<ulist>
+<item><p><specref ref="content-attribute-id"/></p></item>
+<item><p><specref ref="content-attribute-lang"/></p></item>
+<item><p><specref ref="content-attribute-space"/></p></item>
+</ulist>
+<div3 id="content-attribute-id">
+<head>xml:id</head>
+<p>The <att>xml:id</att> attribute is used as defined by
+<bibref ref="xmlid"/>.</p>
+<p>The <att>xml:id</att> attribute may be used with any element in the
+core vocabulary catalog.</p>
+</div3>
+<div3 id="content-attribute-lang">
+<head>xml:lang</head>
+<p>The <att>xml:lang</att> attribute is used as defined by
+<bibref ref="xml10"/>, &sect;2.12, <emph>Language Identification</emph>.</p>
+<p>The <att>xml:lang</att> attribute must be specified on the <el>tt</el>
+element and may be specified by an instance of any other element type
+in the core vocabulary catalog.</p>
+</div3>
+<div3 id="content-attribute-space">
+<head>xml:space</head>
+<p>The <att>xml:space</att> attribute is used as defined by
+<bibref ref="xml10"/>, &sect;2.10, <emph>White Space Handling</emph>.</p>
+<p>The <att>xml:space</att> attribute may be used with any element in
+the core vocabulary catalog.</p>
+<!-- OLD DEFINITION
+<p>The semantics of the value <code>default</code> are fixed to mean that
+white space that appears in element content as defined by <bibref
+ref="xml10"/>, &sect;3.2.1, must be normalized at the
+application layer during subsequent processing, such as presentation or
+transformation processing, as follows:</p>
+<olist>
+<item><p>replace each TAB character (<code>&amp;#x0009;</code>) and NEWLINE character (<code>&amp;#x000A;</code>) with a SPACE
+character (<code>&amp;#x0020;</code>);</p></item>
+<item><p>replace each sequence of two or more SPACE characters with a
+single SPACE character;</p></item>
+<item><p>for every maximum sequence of sibling character information
+items, if there is a leading or trailing SPACE character in the
+sequence, then remove the character.</p></item>
+</olist>
+-->
+<!-- NEW DEFINITION -->
+<p>The semantics of the value <code>default</code> are fixed to mean that
+when performing presentation processing of a document instance as
+described by <specref ref="semantics-region-layout-step-2"/>,
+processing must occur as
+if the following properties were specified on the affected
+<!-- changed for future CSS compatibility
+elements of the intermediate XSL-FO document:</p> 
+-->
+elements of an equivalent intermediate XSL-FO document:</p>
+<ulist>
+<item>
+<p><code>suppress-at-line-break="auto"</code></p>
+</item>
+<item>
+<p><code>linefeed-treatment="treat-as-space"</code></p>
+</item>
+<item>
+<p><code>white-space-collapse="true"</code></p>
+</item>
+<item>
+<p><code>white-space-treatment="ignore-if-surrounding-linefeed"</code></p>
+</item>
+</ulist>
+<p>Similarly, the semantics of the value <code>preserve</code> are fixed to mean that
+when performing presentation processing, processing must occur as
+if the following properties were specified on the affected
+<!-- changed for future CSS compatibility
+elements of the intermediate XSL-FO document:</p> 
+-->
+elements of an equivalent intermediate XSL-FO document:
+</p>
+<ulist>
+<item>
+<p><code>suppress-at-line-break="retain"</code></p>
+</item>
+<item>
+<p><code>linefeed-treatment="preserve"</code></p>
+</item>
+<item>
+<p><code>white-space-collapse="false"</code></p>
+</item>
+<item>
+<p><code>white-space-treatment="preserve"</code></p>
+</item>
+</ulist>
+<p>When performing other types of processing intended to eventually
+result in a visual presentation by means other than those described
+in this specification, the semantics of space collapsing and
+preservation as described above should be respected. For other types
+of processing, the treatment of the <att>xml:space</att> attribute
+is processor dependent, but should respect the semantics described
+above if possible.</p>
+</div3>
+</div2>
+</div1>
+<div1 id="styling">
+<head>Styling</head>
+<p>This section specifies the <emph>styling</emph> matter of the core
+vocabulary catalog, where
+styling is to be understood as a separable layer of information that applies to
+content and that denotes authorial intentions about the presentation of
+that content.</p>
+  <!-- added for future CSS compatibility -->
+  <p>
+    Styling attributes are included in TTML to enable authorial intent of presentation
+    to be included within a self-contained document. This section describes
+    the semantics of style presentation in terms of a standard processing
+    model. TTML Processors are not required to present TTML documents in any particular way; 
+    but an implementation of this model by a TTML Presentation Processor
+    that provides externally observable results that are consistent with this model is
+    likely to lead to a user experience that closely resembles the experience intended by
+    the documents' authors.
+  </p>
+  <p>
+    The semantics of TTML style presentation are described in terms of the model 
+    in <bibref ref="xsl11"/>. The intended effect of the attributes in this section 
+    are to be compatible with  the layout model of XSL. Presentation agents may however 
+    use any technology to satisfy the authorial intent of the document. In particular 
+    since <bibref ref="css2"/> is a subset of this model, a CSS processor may be used 
+    for the features that the models have in common.
+  </p>
+  <!-- end addition -->
+  <p>No normative use of an
+<code>&lt;?xml-stylesheet ... ?&gt;</code> processing instruction is defined
+by this specification.</p>
+<div2 id="styling-element-vocabulary">
+<head>Styling Element Vocabulary</head>
+<p>The following elements specify the structure and principal styling aspects of a
+document instance:</p>
+<ulist>
+<item><p><specref ref="styling-vocabulary-styling"/></p></item>
+<item><p><specref ref="styling-vocabulary-style"/></p></item>
+</ulist>
+<div3 id="styling-vocabulary-styling">
+<head>styling</head>
+<p>The <el>styling</el> element is a container element used to group
+styling matter, including metadata that applies to styling matter.</p>
+<p>The <el>styling</el> element accepts as its children zero or more
+elements in the <code>Metadata.class</code> element group, followed by
+zero or more <el>style</el> elements.</p>
+<table id="elt-syntax-styling" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: styling</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;styling
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc href="#element-vocab-group-table">Metadata.class</loc>*, <loc href="#styling-vocabulary-style">style</loc>*
+&lt;/styling&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>To the extent that time semantics apply to the content of the
+<el>styling</el> element, the implied time interval of this element is
+defined to be coterminous with the external time interval.</p>
+</div3>
+<div3 id="styling-vocabulary-style">
+<head>style</head>
+<p>The <el>style</el> element is used to define
+a set of style specifications expressed as a
+specified style set in accordance with
+<specref ref="semantics-style-resolution-processing-sss"/>.</p>
+<p>The <el>style</el> element accepts as its children zero or more <el>metadata</el> elements.</p>
+<table id="elt-syntax-style" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: style</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;style
+  <loc href="#style-attribute-style">style</loc> = IDREFS
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute in TT Style namespace</emph>}
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <!-- change for future CSS compatibility
+  <emph>Content:</emph> <loc href="#element-vocab-group-table">Metadata.class</loc>*
+  -->
+  <emph>Content:</emph> EMPTY
+&lt;/style&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>If a <el>style</el> element appears as a descendant of a
+<el>region</el> element, then the <el>style</el> element must be
+ignored for the purpose of computing referential styles as defined by
+<specref ref="semantics-style-association-referential"/> and <specref
+ref="semantics-style-association-chained-referential"/>.</p>
+<note role="explanation">
+<p>That is to say, when referential styling is used by an element to
+refer to a <el>style</el> element, then the referenced <el>style</el>
+element must appear as a descendant of the <el>styling</el> element, and
+not in any other context.</p>
+</note>
+</div3>
+</div2>
+<div2 id="styling-attribute-vocabulary">
+<head>Styling Attribute Vocabulary</head>
+<p>This section defines the <specref ref="style-attribute-style"/> attribute used
+with both style definition elements as well as content elements.</p>
+<p>In addition, this section specifies the following attributes in the TT Style Namespace
+for use with style definition elements, certain layout elements, and content elements
+that support inline style specifications:</p>
+<ulist>
+<item><p><specref ref="style-attribute-backgroundColor"/></p></item>
+<item><p><specref ref="style-attribute-color"/></p></item>
+<item><p><specref ref="style-attribute-direction"/></p></item>
+<item><p><specref ref="style-attribute-display"/></p></item>
+<item><p><specref ref="style-attribute-displayAlign"/></p></item>
+<item><p><specref ref="style-attribute-extent"/></p></item>
+<item><p><specref ref="style-attribute-fontFamily"/></p></item>
+<item><p><specref ref="style-attribute-fontSize"/></p></item>
+<item><p><specref ref="style-attribute-fontStyle"/></p></item>
+<item><p><specref ref="style-attribute-fontWeight"/></p></item>
+<item><p><specref ref="style-attribute-lineHeight"/></p></item>
+<item><p><specref ref="style-attribute-opacity"/></p></item>
+<item><p><specref ref="style-attribute-origin"/></p></item>
+<item><p><specref ref="style-attribute-overflow"/></p></item>
+<item><p><specref ref="style-attribute-padding"/></p></item>
+<item><p><specref ref="style-attribute-showBackground"/></p></item>
+<item><p><specref ref="style-attribute-textAlign"/></p></item>
+<item><p><specref ref="style-attribute-textDecoration"/></p></item>
+<item><p><specref ref="style-attribute-textOutline"/></p></item>
+<item><p><specref ref="style-attribute-unicodeBidi"/></p></item>
+<item><p><specref ref="style-attribute-visibility"/></p></item>
+<item><p><specref ref="style-attribute-wrapOption"/></p></item>
+<item><p><specref ref="style-attribute-writingMode"/></p></item>
+<item><p><specref ref="style-attribute-zIndex"/></p></item>
+</ulist>
+<p>Unless explicitly stated otherwise, linear white-space (LWSP) may
+appear between tokens of a value of a TT
+Style or TT Style Extension
+Property.</p>
+<note role="explanation">
+<p>This specification makes use of <emph>lowerCamelCased</emph> local
+names for style attributes that
+are based upon like-named properties defined by <bibref ref="xsl11"/>.
+This convention is likewise extended to token values of such
+properties.</p>
+</note>
+<note role="clarification">
+<p>A style property may be expressed as a specified attribute on any content
+element type independently of whether the property applies to that
+element type. This capability permits the expression of an inheritable
+style property on ancestor elements to which the property
+does not apply.</p>
+</note>
+<div3 id="style-attribute-style">
+<head>style</head>
+<p>The <att>style</att> attribute is used
+by referential style association
+to reference one or more <el>style</el>
+elements each of which define a
+specified
+style set.</p>
+<p>The <att>style</att> attribute may be specified by an instance of the following
+element types:</p>
+<ulist>
+<item><p><loc href="#document-structure-vocabulary-body"><el>body</el></loc></p></item>
+<item><p><loc href="#content-vocabulary-div"><el>div</el></loc></p></item>
+<item><p><loc href="#content-vocabulary-p"><el>p</el></loc></p></item>
+<item><p><loc href="#layout-vocabulary-region"><el>region</el></loc></p></item>
+<item><p><loc href="#content-vocabulary-span"><el>span</el></loc></p></item>
+<item><p><loc href="#styling-vocabulary-style"><el>style</el></loc></p></item>
+</ulist>
+<note role="usage">
+<p>See the specific element type definitions that permit use of the
+<att>style</att> attribute, as well as <specref
+ref="semantics-style-association-referential"/> and <specref
+ref="semantics-style-association-chained-referential"/>, for
+further information on its semantics.</p>
+</note>
+</div3>
+<div3 id="style-attribute-backgroundColor">
+<head>tts:backgroundColor</head>
+<p>The <att>tts:backgroundColor</att> attribute is used to specify a style property that
+defines the background color of a region or an area generated by content flowed into a region.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-backgroundColor" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<loc href="#style-value-color">&lt;color&gt;</loc>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>transparent</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#document-structure-vocabulary-body"><el>body</el></loc>,
+<loc href="#content-vocabulary-div"><el>div</el></loc>,
+<loc href="#content-vocabulary-p"><el>p</el></loc>,
+<loc href="#layout-vocabulary-region"><el>region</el></loc>,
+<loc href="#content-vocabulary-span"><el>span</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>no</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>For the purpose of determining applicability of this style property,
+each character child of a <el>p</el> element is considered to be enclosed in an anonymous
+span.</p>
+<p>The <att>tts:backgroundColor</att> style is illustrated by the following example.</p>
+<table id="style-attribute-backgroundColor-example-1" role="example">
+<caption>Example Fragment &ndash; Background Color</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="306px 114px"/&gt;
+  &lt;style <phrase role="strong">tts:backgroundColor="red"</phrase>/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="after"/&gt;
+  &lt;style tts:padding="3px 40px"/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1" <phrase role="strong">tts:backgroundColor="purple"</phrase> tts:textAlign="center"&gt;
+  Twinkle, twinkle, little bat!&lt;br/&gt;
+  How &lt;span <phrase role="strong">tts:backgroundColor="green"</phrase>&gt;I wonder&lt;/span&gt; where you're at!
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-backgroundColor-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Background Color</caption>
+<tbody>
+<tr>
+<td><graphic source="images/backgroundColor.png" alt="TTML backgroundColor style property"/></td>
+</tr>
+</tbody>
+</table>
+  <!-- CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property represented by this attribute are based upon 
+that defined by <bibref ref="xsl11"/>, &sect; 7.8.2.</p>
+</note> -->
+  
+</div3>
+<div3 id="style-attribute-color">
+<head>tts:color</head>
+<p>The <att>tts:color</att> attribute is used to specify a style property that
+defines the foreground color of marks associated with an area generated by content flowed into a region.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-color" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<loc href="#style-value-color">&lt;color&gt;</loc>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td>see prose</td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#content-vocabulary-span"><el>span</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>yes</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>For the purpose of determining applicability of this style property,
+each character child of a <el>p</el> element is considered to be enclosed in an anonymous
+span.</p>
+<p>The initial value of the <att>tts:color</att> property
+is considered to be implementation dependent. In the absence of
+end-user preference information, a conformant presentation processor
+should use an initial value that is highly contrastive to the
+background color of the root container region.</p>
+<p>The <att>tts:color</att> style is illustrated by the following example.</p>
+<table id="style-attribute-color-example-1" role="example">
+<caption>Example Fragment &ndash; Color</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style <phrase role="strong">tts:color="white"</phrase>/&gt;
+  &lt;style tts:displayAlign="after"/&gt;
+  &lt;style tts:textAlign="center"/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  In spring, when woods are &lt;span <phrase role="strong">tts:color="green"</phrase>&gt;getting green&lt;/span&gt;,&lt;br/&gt;
+  I'll try and tell you what I mean.
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-color-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Color</caption>
+<tbody>
+<tr>
+<td><graphic source="images/color.png" alt="TTML color style property"/></td>
+</tr>
+</tbody>
+</table>
+  <!-- CSS compatibility - remove derivation note 
+  <note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.18.1.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-direction">
+<head>tts:direction</head>
+<p>The <att>tts:direction</att> attribute is used to specify a style property that
+defines the directionality of an embedding or override according to
+the Unicode bidirectional algorithm.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-direction" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>ltr</code> |
+<code>rtl</code>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td>
+<code>ltr</code>
+</td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#content-vocabulary-p"><el>p</el></loc>,
+<loc href="#content-vocabulary-span"><el>span</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>yes</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>For the purpose of determining applicability of this style property,
+each character child of a <el>p</el> element is considered to be enclosed in an anonymous
+span.</p>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must ignore the attribute.</p>
+<p>The <att>tts:direction</att> style is illustrated by the following example.</p>
+<table id="style-attribute-direction-example-1" role="example">
+<caption>Example Fragment &ndash; Direction</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="265px 84px"/&gt;
+  &lt;style tts:padding="5px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="after"/&gt;
+  &lt;style tts:textAlign="center"/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  Little birds are playing&lt;br/&gt;
+  Bagpipes on the shore,&lt;br/&gt;
+  &lt;span tts:unicodeBidi="bidiOverride" <phrase role="strong">tts:direction="rtl"</phrase>&gt;where the tourists snore.&lt;/span&gt;
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-direction-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Direction</caption>
+<tbody>
+<tr>
+<td>
+<graphic source="images/direction.png" alt="TTML direction style property"/>
+</td>
+</tr>
+</tbody>
+</table>
+  <!-- CSS compatibility - remove derivation note 
+  <note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.29.1.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-display">
+<head>tts:display</head>
+<p>The <att>tts:display</att> attribute is used to specify a style property that
+defines whether an element is a candidate for layout and composition
+in a region.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-display" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>auto</code> |
+<code>none</code>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td>
+<code>auto</code>
+</td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#document-structure-vocabulary-body"><el>body</el></loc>,
+<loc href="#content-vocabulary-div"><el>div</el></loc>,
+<loc href="#content-vocabulary-p"><el>p</el></loc>,
+<loc href="#layout-vocabulary-region"><el>region</el></loc>,
+<loc href="#content-vocabulary-span"><el>span</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>no</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>For the purpose of determining applicability of this style property,
+each character child of a <el>p</el> element is considered to be enclosed in an anonymous
+span.</p>
+<p>If the value of this attribute is <code>auto</code>,
+then the affected element is a candidate for region layout and
+presentation; however, if the value is <code>none</code>, then the
+affected element and its descendants must be considered ineligible for region
+layout and presentation.</p>
+<p>The <att>tts:display</att> style is illustrated by the following example.</p>
+<table id="style-attribute-display-example-1" role="example">
+<caption>Example Fragment &ndash; Display</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="369px 119px"
+            tts:backgroundColor="black"
+            tts:color="white"
+            tts:displayAlign="before"
+            tts:textAlign="start"/&gt;
+&lt;/region&gt;
+...
+&lt;div region="r1"&gt;
+  &lt;p dur="5s"&gt;
+    [[[
+    &lt;span <phrase role="strong">tts:display="none"</phrase>&gt;
+      &lt;set begin="1s" dur="1s" <phrase role="strong">tts:display="auto"</phrase>/&gt;
+      Beautiful soup,
+    &lt;/span&gt;
+    &lt;span <phrase role="strong">tts:display="none"</phrase>&gt;
+      &lt;set begin="2s" dur="1s" <phrase role="strong">tts:display="auto"</phrase>/&gt;
+      so rich and green,
+    &lt;/span&gt;
+    &lt;span <phrase role="strong">tts:display="none"</phrase>&gt;
+      &lt;set begin="3s" dur="1s" <phrase role="strong">tts:display="auto"</phrase>/&gt;
+      waiting in a hot tureen!
+    &lt;/span&gt;
+    ]]]
+  &lt;/p&gt;
+&lt;/div&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-display-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Display</caption>
+<tbody>
+<tr>
+<td>
+<graphic source="images/display_0.png" alt="TTML display style property - [0,1)"/>
+</td>
+</tr>
+<tr>
+<td>
+<graphic source="images/display_1.png" alt="TTML display style property - [1,2)"/>
+</td>
+</tr>
+<tr>
+<td>
+<graphic source="images/display_2.png" alt="TTML display style property - [2,3)"/>
+</td>
+</tr>
+<tr>
+<td>
+<graphic source="images/display_3.png" alt="TTML display style property - [3,4)"/>
+</td>
+</tr>
+<tr>
+<td>
+<graphic source="images/display_4.png" alt="TTML display style property - [4,5)"/>
+</td>
+</tr>
+</tbody>
+</table>
+  <!-- CSS compatibility - remove derivation note 
+  <note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref
+ref="css2"/>,
+&sect; 9.2.5.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-displayAlign">
+<head>tts:displayAlign</head>
+<p>The <att>tts:displayAlign</att> attribute is used to specify a style property that
+defines the alignment of block areas in the block progression direction.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-displayAlign" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>before</code> |
+<code>center</code> |
+<code>after</code>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td>
+<code>before</code>
+</td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#layout-vocabulary-region"><el>region</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>no</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>before</code> were specified.</p>
+<p>The <att>tts:displayAlign</att> style is illustrated by the following example.</p>
+<table id="style-attribute-displayAlign-example-1" role="example">
+<caption>Example Fragment &ndash; Display Align</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="128px 66px" tts:origin="0px 0px"
+       tts:backgroundColor="black" tts:color="white"/&gt;
+  &lt;style <phrase role="strong">tts:displayAlign="before"</phrase>/&gt;
+  &lt;style tts:textAlign="start"/&gt;
+&lt;/region&gt;
+&lt;region xml:id="r2"&gt;
+  &lt;style tts:extent="192px 66px" tts:origin="128px 66px"/&gt;
+       tts:backgroundColor="green" tts:color="white"/&gt;
+  &lt;style <phrase role="strong">tts:displayAlign="after"</phrase>/&gt;
+  &lt;style tts:textAlign="start"/&gt;
+&lt;/region&gt;
+&lt;region xml:id="r3"&gt;
+  &lt;style tts:extent="128px 66px"/&gt; style tts:origin="0px 132px"
+       tts:backgroundColor="black" tts:color="white"/&gt;
+  &lt;style <phrase role="strong">tts:displayAlign="before"</phrase>/&gt;
+  &lt;style tts:textAlign="start"/&gt;
+&lt;/region&gt;
+&lt;region xml:id="r4"&gt;
+  &lt;style tts:extent="192px 66px" tts:origin="128px 198px"/&gt;
+       tts:backgroundColor="green" tts:color="white"/&gt;
+  &lt;style <phrase role="strong">tts:displayAlign="after"</phrase>/&gt;
+  &lt;style tts:textAlign="start"/&gt;
+&lt;/region&gt;
+...
+&lt;div&gt;
+  &lt;p region="r1"&gt;I sent a message to the fish:&lt;/p&gt;
+  &lt;p region="r2"&gt;I told them&lt;br/&gt; "This is what I wish."&lt;/p&gt;
+  &lt;p region="r3"&gt;The little fishes of the sea,&lt;/p&gt;
+  &lt;p region="r4"&gt;They sent an&lt;br/&gt; answer back to me.&lt;/p&gt;
+&lt;/div&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-displayAlign-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Display Align</caption>
+<tbody>
+<tr>
+<td><graphic source="images/displayAlign.png" alt="TTML displayAlign style property"/></td>
+</tr>
+</tbody>
+</table>
+<!-- CSS compatibility - remove derivation note   
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.14.4.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-extent">
+<head>tts:extent</head>
+<p>The <att>tts:extent</att> attribute is used to specify the
+<emph>width</emph> and <emph>height</emph> of a region area
+(which may be the root container region).</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-extent" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>auto</code> |
+<loc href="#style-value-length">&lt;length&gt;</loc> <loc href="#style-value-length">&lt;length&gt;</loc>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>auto</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#document-structure-vocabulary-tt"><el>tt</el></loc>,
+<loc href="#layout-vocabulary-region"><el>region</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>no</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>relative to width and height of root container region</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>If the value of this attribute consists of two <loc href="#style-value-length">&lt;length&gt;</loc>
+specifications, then they must be interpreted as <emph>width</emph>
+and <emph>height</emph>, where the first specification is the
+<emph>width</emph>, and the second specification is the
+<emph>height</emph>.</p>
+<p>If the value of this attribute is <code>auto</code>, then the initial value
+of the style property must be considered to be the same as the root container extent.
+</p>
+<p>
+The root container extent is determined either by a
+<att>tts:extent</att> specified on the <el>tt</el> element, if
+present, or by the external authoring context, if not present.
+If
+<att>tts:extent</att> is specified on the <el>tt</el> element,
+then
+the width and height
+must be
+expressed in terms of two
+<loc href="#style-value-length">&lt;length&gt;</loc> specifications,
+and
+these specifications must be expressed as non-percentage,
+definite lengths using pixel units.</p>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>auto</code> were specified.</p>
+<p>The <att>tts:extent</att> style is illustrated by the following example.</p>
+<table id="style-attribute-extent-example-1" role="example">
+<caption>Example Fragment &ndash; Extent</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style <phrase role="strong">tts:extent="330px 122px"</phrase>/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="after"/&gt;
+  &lt;style tts:textAlign="center"/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  'Tis the voice of the Lobster:&lt;br/&gt;
+  I heard him declare,&lt;br/&gt;
+  "You have baked me too brown,&lt;br/&gt;
+  I must sugar my hair."
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-extent-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Extent</caption>
+<tbody>
+<tr>
+<td><graphic source="images/extent.png" alt="TTML extent style property"/></td>
+</tr>
+</tbody>
+</table>
+</div3>
+<div3 id="style-attribute-fontFamily">
+<head>tts:fontFamily</head>
+<p>The <att>tts:fontFamily</att> attribute is used to specify a style property that
+defines the font family from which glyphs are selected for glyph areas generated
+by content flowed into a region.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-fontFamily" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+(<loc href="#style-value-familyName">&lt;familyName&gt;</loc> | <loc href="#style-value-genericFamilyName">&lt;genericFamilyName&gt;</loc>)
+(<code>","</code>
+&nbsp;(<loc href="#style-value-familyName">&lt;familyName&gt;</loc> | <loc href="#style-value-genericFamilyName">&lt;genericFamilyName&gt;</loc>))*
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>default</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#content-vocabulary-span"><el>span</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>yes</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<note role="clarification">
+<p>The initial value, <code>default</code>, is a generic font family name, and is
+further described in <specref ref="style-value-genericFamilyName"/> below.</p>
+</note>
+<p>For the purpose of determining applicability of this style property,
+each character child of a <el>p</el> element is considered to be enclosed in an anonymous
+span.</p>
+<p>If a specified font family is not available, then a
+presentation processor must attempt to map the specified font family
+to an available font family that has similar typographic
+characteristics, or, in the absence of such a mapping, it must
+interpret the font family as if the value <code>default</code> were
+specified.</p>
+<p>The <att>tts:fontFamily</att> style is illustrated by the following example.</p>
+<table id="style-attribute-fontFamily-example-1" role="example">
+<caption>Example Fragment &ndash; Font Family</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="474px 146px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="center"/&gt;
+  &lt;style tts:textAlign="start"/&gt;
+  &lt;style <phrase role="strong">tts:fontFamily="proportionalSansSerif"</phrase>/&gt;
+&lt;/region&gt;
+...
+&lt;div region="r1"&gt;
+  &lt;p&gt;
+    "The time has come," the Walrus said,&lt;br/&gt;
+    "to talk of many things:
+  &lt;/p&gt;
+  &lt;p tts:textAlign="end" <phrase role="strong">tts:fontFamily="monospaceSerif"</phrase>&gt;
+    Of shoes, and ships, and sealing wax,&lt;br/&gt;
+    Of cabbages and kings,
+  &lt;/p&gt;
+  &lt;p&gt;
+    And why the sea is boiling hot,&lt;br/&gt;
+    and whether pigs have wings."
+  &lt;/p&gt;
+&lt;/div&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-fontFamily-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Font Family</caption>
+<tbody>
+<tr>
+<td><graphic source="images/fontFamily.png" alt="TTML fontFamily style property"/></td>
+</tr>
+</tbody>
+</table>
+<!--CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.9.2.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-fontSize">
+<head>tts:fontSize</head>
+<p>The <att>tts:fontSize</att> attribute is used to specify a style property
+that defines the font size for glyphs that are selected for glyph areas
+generated by content flowed into a region, where font size is interpreted as a
+scaling transform to the font's design EM square.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-fontSize" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<loc href="#style-value-length">&lt;length&gt;</loc> <loc href="#style-value-length">&lt;length&gt;</loc>?
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>1c</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#content-vocabulary-span"><el>span</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>yes</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>relative to parent element's font size</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>If a single <loc href="#style-value-length">&lt;length&gt;</loc> value is specified, then this length applies
+equally to horizontal and vertical scaling of a glyph's EM square; if two
+<loc href="#style-value-length">&lt;length&gt;</loc> values are specified, then the first expresses the horizontal
+scaling and the second expresses vertical scaling.</p>
+<note role="example">
+<p>Use of independent horizontal and vertical font sizes is expected to be used
+with cell based units in order to denote fonts that are two rows in height and
+one column in width.</p>
+</note>
+<p>If horizontal and vertical sizes are expressed independently, then the
+units of the <loc href="#style-value-length">&lt;length&gt;</loc> values must be the same.</p>
+<p>The <loc href="#style-value-length">&lt;length&gt;</loc> value(s) used to express font size must be non-negative.</p>
+<p>For the purpose of determining applicability of this style property,
+each character child of a <el>p</el> element is considered to be enclosed in an anonymous
+span.</p>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>1c</code> were specified.</p>
+<note role="elaboration">
+<p>The expression <code>1c</code> means one cell, where <code>'c'</code> expresses
+the <emph>cell</emph> length unit as defined by <specref ref="style-value-length"/>.</p>
+</note>
+<p>The <att>tts:fontSize</att> style is illustrated by the following example.</p>
+<table id="style-attribute-fontSize-example-1" role="example">
+<caption>Example Fragment &ndash; Font Size</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="299px 97px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="center"/&gt;
+  &lt;style tts:textAlign="center"/&gt;
+  &lt;style tts:fontFamily="proportionalSansSerif"/&gt;
+  &lt;style <phrase role="strong">tts:fontSize="18px"</phrase>/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  Then fill up the glasses&lt;br/&gt;
+  with treacle and ink,&lt;br/&gt;
+  Or anything else&lt;br/&gt;
+  that is &lt;span <phrase role="strong">tts:fontSize="24px"</phrase>&gt;pleasant&lt;/span&gt; to drink.
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-fontSize-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Font Size</caption>
+<tbody>
+<tr>
+<td><graphic source="images/fontSize.png" alt="TTML fontSize style property"/></td>
+</tr>
+</tbody>
+</table>
+<!--CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.9.4.</p>
+</note>
+-->  
+</div3>
+<div3 id="style-attribute-fontStyle">
+<head>tts:fontStyle</head>
+<p>The <att>tts:fontStyle</att> attribute is used to specify a style property that
+defines the font style to apply to glyphs that are selected for glyph areas generated
+by content flowed into a region, where the mapping from font
+style value to specific font face or style parameterization is not determined
+by this specification.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-fontStyle" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>normal</code> |
+<code>italic</code> |
+<code>oblique</code>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>normal</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#content-vocabulary-span"><el>span</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>yes</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>For the purpose of determining applicability of this style property,
+each character child of a <el>p</el> element is considered to be enclosed in an anonymous
+span.</p>
+<p>Use of the value <code>oblique</code>
+denote a shear transformation (at an unspecified
+angle) in the inline progression dimension.</p>
+<p>If a specified font style is not available, then a
+presentation processor must attempt to map the specified font style
+to an available font style that has similar typographic
+characteristics, or, in the absence of such a mapping, it must
+interpret the font style as if the value <code>normal</code> were
+specified.</p>
+<p>The <att>tts:fontStyle</att> style is illustrated by the following example.</p>
+<table id="style-attribute-fontStyle-example-1" role="example">
+<caption>Example Fragment &ndash; Font Style</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="331px 84px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="after"/&gt;
+  &lt;style tts:textAlign="center"/&gt;
+  &lt;style tts:fontFamily="proportionalSansSerif"/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  In autumn, when the leaves are brown,&lt;br/&gt;
+  Take pen and ink, and &lt;span <phrase role="strong">tts:fontStyle="italic"</phrase>&gt;write it down.&lt;/span&gt;
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-fontStyle-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Font Style</caption>
+<tbody>
+<tr>
+<td><graphic source="images/fontStyle.png" alt="TTML fontStyle style property"/></td>
+</tr>
+</tbody>
+</table>
+<p/>
+<!-- CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.9.7.</p>
+</note>
+-->  
+</div3>
+<div3 id="style-attribute-fontWeight">
+<head>tts:fontWeight</head>
+<p>The <att>tts:fontWeight</att> attribute is used to specify a style property
+that defines the font weight to apply to glyphs that are selected for glyph
+areas generated by content flowed into a region, where the mapping from font
+weight value to specific font face or weight parameterization is not determined
+by this specification.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-fontWeight" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>normal</code> |
+<code>bold</code>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>normal</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#content-vocabulary-span"><el>span</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>yes</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>For the purpose of determining applicability of this style property,
+each character child of a <el>p</el> element is considered to be enclosed in an anonymous
+span.</p>
+<p>If a specified font weight is not available, then a
+presentation processor must attempt to map the specified font weight
+to an available font weight that has similar typographic
+characteristics, or, in the absence of such a mapping, it must
+interpret the font weight as if the value <code>normal</code> were
+specified.</p>
+<p>The <att>tts:fontWeight</att> style is illustrated by the following example.</p>
+<table id="style-attribute-fontWeight-example-1" role="example">
+<caption>Example Fragment &ndash; Font Weight</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="376px 95px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="center"/&gt;
+  &lt;style tts:textAlign="center"/&gt;
+  &lt;style tts:fontFamily="proportionalSansSerif"/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  They told me you had been to her,&lt;br/&gt;
+  &lt;span <phrase role="strong">tts:fontWeight="bold"</phrase>&gt;and mentioned me to him:&lt;/span&gt;&lt;br/&gt;
+  She gave me a good character&lt;br/&gt;
+  &lt;span <phrase role="strong">tts:fontWeight="bold"</phrase>&gt;but said I could not swim.&lt;/span&gt;
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-fontWeight-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Font Weight</caption>
+<tbody>
+<tr>
+<td><graphic source="images/fontWeight.png" alt="TTML fontWeight style property"/></td>
+</tr>
+</tbody>
+</table>
+<!--CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.9.9.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-lineHeight">
+<head>tts:lineHeight</head>
+<p>The <att>tts:lineHeight</att> attribute is used to specify a style property that
+defines the inter-baseline separation between line areas generated by content flowed into a region.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-lineHeight" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>normal</code> |
+<loc href="#style-value-length">&lt;length&gt;</loc>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>normal</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#content-vocabulary-p"><el>p</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>yes</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>relative to this element's font size</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>If the value of this attribute is <code>normal</code>, then the
+initial value of the style property must be considered to be the same
+as the largest font size that applies to any
+descendant element.</p>
+<p>If specified as a <loc
+href="#style-value-length">&lt;length&gt;</loc>, then the length must
+be non-negative.</p>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>normal</code> were specified.</p>
+<p>The <att>tts:lineHeight</att> style is illustrated by the following example.</p>
+<table id="style-attribute-lineHeight-example-1" role="example">
+<caption>Example Fragment &ndash; Line Height</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="255px 190px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="center"/&gt;
+  &lt;style tts:textAlign="start"/&gt;
+  &lt;style tts:fontFamily="proportionalSansSerif"/&gt;
+  &lt;style tts:fontSize="16px"/&gt;
+  &lt;style <phrase role="strong">tts:lineHeight="32px"</phrase>/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  He thought he saw an elephant,&lt;br/&gt;
+  That practised on a fife:&lt;br/&gt;
+  He looked again, and found it was&lt;br/&gt;
+  A letter from his wife.&lt;br/&gt;
+  "At length I realise," he said,&lt;br/&gt;
+  "The bitterness of Life.
+"&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-lineHeight-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Line Height</caption>
+<tbody>
+<tr>
+<td><graphic source="images/lineHeight.png" alt="TTML lineHeight style property"/></td>
+</tr>
+</tbody>
+</table>
+<p/>
+<!-- CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.16.4.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-opacity">
+<head>tts:opacity</head>
+<p>The <att>tts:opacity</att> attribute is used to specify a style property that
+defines the opacity (or conversely, the transparency)
+of marks associated with a region.</p>
+<p>When presented onto a visual medium, the opacity of the region is applied uniformly and on a linear scale
+to all marks produced by content targeted to the
+region.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-opacity" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<loc href="#style-value-alpha">&lt;alpha&gt;</loc>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td>
+<code>1.0</code>
+</td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#layout-vocabulary-region"><el>region</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>no</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>An <loc href="#style-value-alpha">&lt;alpha&gt;</loc> value greater
+than 1.0 must be considered equivalent to an <loc
+href="#style-value-alpha">&lt;alpha&gt;</loc> value of 1.0.</p>
+<p>The <att>tts:opacity</att> style is illustrated by the following example.</p>
+<table id="style-attribute-opacity-example-1" role="example">
+<caption>Example Fragment &ndash; Opacity</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1" dur="5s"&gt;
+  &lt;set begin="0s" dur="1s" <phrase role="strong">tts:opacity="1.00"</phrase>/&gt;
+  &lt;set begin="1s" dur="1s" <phrase role="strong">tts:opacity="0.75"</phrase>/&gt;
+  &lt;set begin="2s" dur="1s" <phrase role="strong">tts:opacity="0.50"</phrase>/&gt;
+  &lt;set begin="3s" dur="1s" <phrase role="strong">tts:opacity="0.25"</phrase>/&gt;
+  &lt;set begin="4s" dur="1s" <phrase role="strong">tts:opacity="0.00"</phrase>/&gt;
+  &lt;style tts:extent="304px 77px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="after"/&gt;
+  &lt;style tts:textAlign="center"/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  The sun was shining on the sea
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-opacity-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Opacity</caption>
+<tbody>
+<tr>
+<td>
+<graphic source="images/opacity_0.png" alt="TTML opacity style property - [0,1)"/>
+</td>
+</tr>
+<tr>
+<td>
+<graphic source="images/opacity_1.png" alt="TTML opacity style property - [1,2)"/>
+</td>
+</tr>
+<tr>
+<td>
+<graphic source="images/opacity_2.png" alt="TTML opacity style property - [2,3)"/>
+</td>
+</tr>
+<tr>
+<td>
+<graphic source="images/opacity_3.png" alt="TTML opacity style property - [3,4)"/>
+</td>
+</tr>
+<tr>
+<td>
+<graphic source="images/opacity_4.png" alt="TTML opacity style property - [4,5)"/>
+</td>
+</tr>
+</tbody>
+</table>
+<!--CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="css3-color"/>,
+&sect; 3.2.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-origin">
+<head>tts:origin</head>
+<p>The <att>tts:origin</att> attribute is used to specify the
+<emph>x</emph> and <emph>y</emph> coordinates of the origin of a
+region area with respect to the origin of the root container extent,
+if specified, or the external authoring context, if not specified.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-origin" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>auto</code> |
+<loc href="#style-value-length">&lt;length&gt;</loc> <loc href="#style-value-length">&lt;length&gt;</loc>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>auto</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#layout-vocabulary-region"><el>region</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>no</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>relative to width and height of root container region</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>If the value of this attribute consists of two <loc href="#style-value-length">&lt;length&gt;</loc> specifications,
+then they must be interpreted as <emph>x</emph> and <emph>y</emph> coordinates, where the first specification
+is the <emph>x</emph> coordinate, and the second specification is the <emph>y</emph> coordinate.</p>
+<p>If the value of this attribute is <code>auto</code>, then the initial value
+of the style property must be considered to be the same as the root container
+origin.</p>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>auto</code> were specified.</p>
+<p>The <att>tts:origin</att> style is illustrated by the following example.</p>
+<table id="style-attribute-origin-example-1" role="example">
+<caption>Example Fragment &ndash; Origin</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style <phrase role="strong">tts:origin="40px 40px"</phrase>/&gt;
+  &lt;style tts:extent="308px 92px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="center"/&gt;
+  &lt;style tts:textAlign="center"/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  "To dine!" she shrieked in dragon-wrath.&lt;br/&gt;
+  "To swallow wines all foam and froth!&lt;br/&gt;
+   To simper at a table-cloth!"
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-origin-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Origin</caption>
+<tbody>
+<tr>
+<td><graphic source="images/origin.png" alt="TTML origin style property"/></td>
+</tr>
+</tbody>
+</table>
+</div3>
+<div3 id="style-attribute-overflow">
+<head>tts:overflow</head>
+<p>The <att>tts:overflow</att> attribute is used to specify a style property that
+defines whether a region area is clipped or not if the descendant areas of the region overflow
+its extent.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-overflow" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>visible</code> |
+<code>hidden</code>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>hidden</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#layout-vocabulary-region"><el>region</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>no</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>If the value of this attribute is <code>visible</code>, then content should
+not be clipped outside of the affected region, and region composition and layout
+must be performed as if the region's width and height were
+unconstrained,
+but with
+a well-defined origin.  If the value is <code>hidden</code>, then content should
+be clipped outside of the affected region.</p>
+<note role="explanation">
+<p>Unless a manual line break element <el>br</el> is used by the content author,
+a paragraph of a given region will generate no more than one line area in that
+region if the value of the <att>tts:overflow</att> style that applies to the
+region is <code>visible</code> and if the applicable <att>tts:wrapOption</att>
+style is <code>noWrap</code>.</p>
+</note>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>hidden</code> were specified.</p>
+<p>The <att>tts:overflow</att> style is illustrated by the following example.</p>
+<table id="style-attribute-overflow-example-1" role="example">
+<caption>Example Fragment &ndash; Overflow</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="232px 40px"/&gt;
+  &lt;style tts:origin="0px 0px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="red"/&gt;
+  &lt;style tts:displayAlign="before"/&gt;
+  &lt;style tts:textAlign="start"/&gt;
+  &lt;style tts:fontFamily="proportionalSansSerif"/&gt;
+  &lt;style tts:fontSize="18px"/&gt;
+  &lt;style tts:wrapOption="noWrap"/&gt;
+  &lt;style <phrase role="strong">tts:overflow="visible"</phrase>/&gt;
+&lt;/region&gt;
+&lt;region xml:id="r2"&gt;
+  &lt;style tts:extent="232px 40px"/&gt;
+  &lt;style tts:origin="0px 43px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="red"/&gt;
+  &lt;style tts:displayAlign="before"/&gt;
+  &lt;style tts:textAlign="start"/&gt;
+  &lt;style tts:fontFamily="proportionalSansSerif"/&gt;
+  &lt;style tts:fontSize="18px"/&gt;
+  &lt;style tts:wrapOption="noWrap"/&gt;
+  &lt;style <phrase role="strong">tts:overflow="hidden"</phrase>/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  "But wait a bit," the Oysters cried,&lt;br/&gt;
+  "Before we have our chat;
+&lt;/p&gt;
+&lt;p region="r2"&gt;
+  For some of us are out of breath,&lt;br/&gt;
+  And all of us are fat!"
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-overflow-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Overflow</caption>
+<tbody>
+<tr>
+<td><graphic source="images/overflow.png" alt="TTML overflow style property"/></td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, the <att>tts:noWrap</att> is set to
+<code>noWrap</code> to prevent automatic line wrapping (breaking);
+if this were not specified, then overflow would occur in the block
+progression direction as opposed to the inline progression direction.</p>
+</note>
+<!-- CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.21.2.</p>
+</note>
+-->  
+</div3>
+<div3 id="style-attribute-padding">
+<head>tts:padding</head>
+<p>The <att>tts:padding</att> attribute is used to specify padding (or inset)
+space on all sides of a region area.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-padding" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<loc href="#style-value-length">&lt;length&gt;</loc> |
+<loc href="#style-value-length">&lt;length&gt;</loc> <loc href="#style-value-length">&lt;length&gt;</loc> |
+<loc href="#style-value-length">&lt;length&gt;</loc> <loc href="#style-value-length">&lt;length&gt;</loc> <loc href="#style-value-length">&lt;length&gt;</loc> |
+<loc href="#style-value-length">&lt;length&gt;</loc> <loc href="#style-value-length">&lt;length&gt;</loc> <loc href="#style-value-length">&lt;length&gt;</loc> <loc href="#style-value-length">&lt;length&gt;</loc>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>0px</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#layout-vocabulary-region"><el>region</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>no</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>relative to width and height of region</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>If the value of this attribute consists of one <loc href="#style-value-length">&lt;length&gt;</loc> specification,
+then that length applies to all edges of the affected areas. If the value
+consists of two <loc href="#style-value-length">&lt;length&gt;</loc> specifications, then the first applies to the
+before and after edges, and the second applies to the start and end edges.
+If three <loc href="#style-value-length">&lt;length&gt;</loc> specifications are provided, then the first applies to the
+before edge, the second applies to the start and end edges, and the third applies
+to the after edge.
+If four <loc href="#style-value-length">&lt;length&gt;</loc> specifications are provided, then they apply to before, end,
+after, and start edges, respectively.</p>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>0px</code> were specified.</p>
+<p>The <att>tts:padding</att> style is illustrated by the following example.</p>
+<table id="style-attribute-padding-example-1" role="example">
+<caption>Example Fragment &ndash; Padding</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="446px 104px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="after"/&gt;
+  &lt;style tts:textAlign="center"/&gt;
+  &lt;style <phrase role="strong">tts:padding="10px 40px"</phrase>/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1" tts:backgroundColor="red"&gt;
+  Just the place for a Snark! I have said it twice:&lt;br/&gt;
+  That alone should encourage the crew.&lt;br/&gt;
+  Just the place for a Snark! I have said it thrice:&lt;br/&gt;
+  What I tell you three times is true.
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>When rendering an area to which padding applies, the background color that
+applies to the area is rendered into the padded portion of the area.</p>
+<table id="style-attribute-padding-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Padding</caption>
+<tbody>
+<tr>
+<td>
+<graphic source="images/padding.png" alt="TTML padding style property"/>
+</td>
+</tr>
+</tbody>
+</table>
+ <!-- CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.31.15, except that individual shorthand values map to writing
+  mode relative padding values as defined by <bibref ref="xsl11"/>,
+&sect; 7.8.31, 7.8.32, 7.8.33, and 7.8.34.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-showBackground">
+<head>tts:showBackground</head>
+<p>The <att>tts:showBackground</att> attribute is used to specify
+constraints on when the background color of a region is intended to be
+presented.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-showBackground" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>always</code> |
+<code>whenActive</code>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>always</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#layout-vocabulary-region"><el>region</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>no</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>If the value of this attribute is <code>always</code>, then the
+background color of a region is always rendered when performing presentation
+processing on a visual medium; if the value is <code>whenActive</code>,
+then the background color of a region is rendered only when some
+content is selected into the region.</p>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>always</code> were specified.</p>
+<p>The <att>tts:showBackground</att> style is illustrated by the following example.</p>
+<table id="style-attribute-showBackground-example-1" role="example">
+<caption>Example Fragment &ndash; Show Background</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:origin="0px 0px"/&gt;
+  &lt;style tts:extent="265px 100px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style <phrase role="strong">tts:showBackground="always"</phrase>/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="before"/&gt;
+  &lt;style tts:textAlign="start"/&gt;
+&lt;/region&gt;
+&lt;region xml:id="r2"&gt;
+  &lt;style tts:origin="205px 60px"/&gt;
+  &lt;style tts:extent="290px 100px"/&gt;
+  &lt;style tts:backgroundColor="red"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="before"/&gt;
+  &lt;style tts:textAlign="end"/&gt;
+  &lt;style <phrase role="strong">tts:showBackground="whenActive"</phrase>/&gt;
+&lt;/region&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<!--
+<table id="style-attribute-showBackground-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Show Background</caption>
+<tbody>
+<tr>
+<td>
+<graphic source="images/showBackground.png" alt="TTML showBackground style property"/>
+</td>
+</tr>
+</tbody>
+</table>
+-->
+<!-- CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="smil21"/>,
+&sect; 5.3.1.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-textAlign">
+<head>tts:textAlign</head>
+<p>The <att>tts:textAlign</att> attribute is used to specify a style property that
+defines how inline areas are aligned within a containing block area in the inline progression
+direction.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-textAlign" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>left</code> |
+<code>center</code> |
+<code>right</code> |
+<code>start</code> |
+<code>end</code>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>start</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#content-vocabulary-p"><el>p</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>yes</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>start</code> were specified.</p>
+<p>The <att>tts:textAlign</att> style is illustrated by the following example.</p>
+<table id="style-attribute-textAlign-example-1" role="example">
+<caption>Example Fragment &ndash; Text Align</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="355px 43px"/&gt;
+  &lt;style tts:origin="0px 0px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style <phrase role="strong">tts:textAlign="start"</phrase>/&gt;
+&lt;/region&gt;
+&lt;region xml:id="r2"&gt;
+  &lt;style tts:extent="355px 43px"/&gt;
+  &lt;style tts:origin="0px 47px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style <phrase role="strong">tts:textAlign="end"</phrase>/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  Beware the Jabberwock, my son!&lt;br/&gt;
+  The jaws that bite, the claws that catch!
+&lt;/p&gt;
+&lt;p region="r2"&gt;
+  Beware the Jubjub bird, and shun&lt;br/&gt;
+  The frumious Bandersnatch!
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-textAlign-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Text Align</caption>
+<tbody>
+<tr>
+<td><graphic source="images/textAlign.png" alt="TTML textAlign style property"/></td>
+</tr>
+</tbody>
+</table>
+<!--CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.16.9.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-textDecoration">
+<head>tts:textDecoration</head>
+<p>The <att>tts:textDecoration</att> attribute is used to specify a style property that
+defines a text decoration effect to apply to glyph areas or other inline
+areas that are generated by content flowed into a region.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-textDecoration" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>none</code> |
+[ [
+<code>underline</code> |
+<code>noUnderline</code>
+] || [
+<code>lineThrough</code> |
+<code>noLineThrough</code>
+] || [
+<code>overline</code> |
+<code>noOverline</code>
+] ]
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>none</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td><loc
+href="#content-vocabulary-span"><el>span</el></loc></td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>yes</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>For the purpose of determining applicability of this
+style property, each character child of a <el>p</el> element is
+considered to be enclosed in an anonymous span.</p>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>none</code> were specified.</p>
+<p>The <att>tts:textDecoration</att> style is illustrated by the following example.</p>
+<table id="style-attribute-textDecoration-example-1" role="example">
+<caption>Example Fragment &ndash; Text Decoration</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="385px 82px"/&gt;
+  &lt;style tts:origin="0px 0px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:padding="5px 2px"/&gt;
+  &lt;style <phrase role="strong">tts:textDecoration="underline"</phrase>/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  The sea was wet&lt;span <phrase role="strong">tts:textDecoration="noUnderline"</phrase>&gt; as &lt;/span&gt;wet
+  &lt;span <phrase role="strong">tts:textDecoration="noUnderline"</phrase>&gt;
+    could be,&lt;br/&gt;
+    The sand was dry as dry.&lt;br/&gt;
+    &lt;span <phrase role="strong">tts:textDecoration="lineThrough"</phrase>&gt;There weren't any&lt;/span&gt;
+    You &lt;span <phrase role="strong">tts:textDecoration="lineThrough"</phrase>&gt;couldn't&lt;/span&gt;
+    could not see a cloud&lt;br/&gt;
+    Because no cloud was in the sky.
+  &lt;/span&gt;
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-textDecoration-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Text Decoration</caption>
+<tbody>
+<tr>
+<td><graphic source="images/textDecoration.png" alt="TTML textDecoration style property"/></td>
+</tr>
+</tbody>
+</table>
+<!--CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.16.4.</p>
+</note>
+-->  
+</div3>
+<div3 id="style-attribute-textOutline">
+<head>tts:textOutline</head>
+<p>The <att>tts:textOutline</att> attribute is used to specify a style property that
+defines a text outline effect to apply to glyphs that are selected for glyph areas generated
+by content flowed into a region.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-textOutline" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>none</code> |
+<loc href="#style-value-color">&lt;color&gt;</loc>?
+<loc href="#style-value-length">&lt;length&gt;</loc>
+<loc href="#style-value-length">&lt;length&gt;</loc>?
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>none</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#content-vocabulary-span"><el>span</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>yes</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>relative to this element's font size</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>For the purpose of determining applicability of this style property,
+each character child of a <el>p</el> element is considered to be enclosed in an anonymous
+span.</p>
+<p>The value of this attribute consists of an optional <loc href="#style-value-color">&lt;color&gt;</loc> term
+followed by one or two <loc href="#style-value-length">&lt;length&gt;</loc> terms.  If a <emph>color</emph> term is
+present, then it denotes the outline color; if no <emph>color</emph> term is
+present, the computed value of the <att>tts:color</att> applies.  The first
+<emph>length</emph> term denotes the outline thickness and the second length
+term, if present, indicates the blur radius.</p>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>none</code> were specified.</p>
+<p>The <att>tts:textOutline</att> style is illustrated by the following
+example.</p>
+<table id="style-attribute-textOutline-example-1" role="example">
+<caption>Example Fragment &ndash; Text Outline</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:backgroundColor="transparent"/&gt;
+  &lt;style tts:color="yellow"/&gt;
+  &lt;style <phrase role="strong">tts:textOutline="black 2px 0px"</phrase>/&gt;
+  &lt;style tts:fontFamily="proportionalSansSerif"/&gt;
+  &lt;style tts:fontSize="24px"/&gt;
+&lt;/region&gt;
+...
+&lt;p&gt;
+  How doth the little crocodile&lt;br/&gt;
+  Improve its shining tail,&lt;br/&gt;
+  And pour the waters of the Nile&lt;br/&gt;
+  On every golden scale!&lt;br/&gt;
+  How cheerfully he seems to grin,&lt;br/&gt;
+  How neatly spreads his claws,&lt;br/&gt;
+  And welcomes little fishes in,&lt;br/&gt;
+  With gently smiling jaws!
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-textOutline-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Text Outline</caption>
+<tbody>
+<tr>
+<td><graphic source="images/textOutline.png" alt="backgroundColor style property"/></td>
+</tr>
+</tbody>
+</table>
+</div3>
+<div3 id="style-attribute-unicodeBidi">
+<head>tts:unicodeBidi</head>
+<p>The <att>tts:unicodeBidi</att> attribute is used to specify a style property that
+defines a directional embedding or override according to
+the Unicode bidirectional algorithm.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-unicodeBidi" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>normal</code> |
+<code>embed</code> |
+<code>bidiOverride</code>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td>
+<code>normal</code>
+</td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#content-vocabulary-p"><el>p</el></loc>,
+<loc href="#content-vocabulary-span"><el>span</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>no</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>For the purpose of determining applicability of this style property,
+each character child of a <el>p</el> element is considered to be enclosed in an anonymous
+span.</p>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>normal</code> were specified.</p>
+<p>The <att>tts:unicodeBidi</att> style is illustrated by the following example.</p>
+<table id="style-attribute-unicodeBidi-example-1" role="example">
+<caption>Example Fragment &ndash; Unicode Bidirectionality</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="265px 84px"/&gt;
+  &lt;style tts:padding="5px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="after"/&gt;
+  &lt;style tts:textAlign="center"/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  Little birds are playing&lt;br/&gt;
+  Bagpipes on the shore,&lt;br/&gt;
+  &lt;span <phrase role="strong">tts:unicodeBidi="bidiOverride"</phrase> tts:direction="rtl"&gt;where the tourists snore.&lt;/span&gt;
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-unicodeBidi-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Unicode Bidirectionality</caption>
+<tbody>
+<tr>
+<td>
+<graphic source="images/unicodeBidi.png" alt="TTML unicodeBidi style property"/>
+</td>
+</tr>
+</tbody>
+</table>
+<!-- CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.29.6.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-visibility">
+<head>tts:visibility</head>
+<p>The <att>tts:visibility</att> attribute is used to specify a style property that
+defines whether generated areas are visible or not when rendered on a visual
+presentation medium.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-visibility" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>visible</code> |
+<code>hidden</code>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td>
+<code>visible</code>
+</td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#document-structure-vocabulary-body"><el>body</el></loc>,
+<loc href="#content-vocabulary-div"><el>div</el></loc>,
+<loc href="#content-vocabulary-p"><el>p</el></loc>,
+<loc href="#layout-vocabulary-region"><el>region</el></loc>,
+<loc href="#content-vocabulary-span"><el>span</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>yes</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>For the purpose of determining applicability of this style property,
+each character child of a <el>p</el> element is considered to be enclosed in an anonymous
+span.</p>
+<p>The <att>tts:visibility</att> style has no affect on content layout or
+composition, but merely determines whether composed content is visible or not.</p>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>visible</code> were specified.</p>
+<p>The <att>tts:visibility</att> style is illustrated by the following example.</p>
+<table id="style-attribute-visibility-example-1" role="example">
+<caption>Example Fragment &ndash; Visibility</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="398px 121px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1" dur="4s"&gt;
+  &lt;span <phrase role="strong">tts:visibility="hidden"</phrase>&gt;
+    &lt;set begin="1s" <phrase role="strong">tts:visibility="visible"</phrase>/&gt;
+    Curiouser
+  &lt;/span&gt;
+  &lt;span <phrase role="strong">tts:visibility="hidden"</phrase>&gt;
+    &lt;set begin="2s" <phrase role="strong">tts:visibility="visible"</phrase>/&gt;
+    and
+  &lt;/span&gt;
+  &lt;span <phrase role="strong">tts:visibility="hidden"</phrase>&gt;
+    &lt;set begin="3s" <phrase role="strong">tts:visibility="visible"</phrase>/&gt;
+    curiouser!
+  &lt;/span&gt;
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-visibility-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Visibility</caption>
+<tbody>
+<tr>
+<td>
+<graphic source="images/visibility_0.png" alt="TTML visibility style property - [0,1)"/>
+</td>
+</tr>
+<tr>
+<td>
+<graphic source="images/visibility_1.png" alt="TTML visibility style property - [1,2)"/>
+</td>
+</tr>
+<tr>
+<td>
+<graphic source="images/visibility_2.png" alt="TTML visibility style property - [2,3)"/>
+</td>
+</tr>
+<tr>
+<td>
+<graphic source="images/visibility_3.png" alt="TTML visibility style property - [3,4)"/>
+</td>
+</tr>
+</tbody>
+</table>
+<!-- CSS compatibility - remove derivation note
+  <note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.28.8.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-wrapOption">
+<head>tts:wrapOption</head>
+<p>The <att>tts:wrapOption</att> attribute is used to specify a style property that
+defines whether or not automatic line wrapping (breaking) applies within the context of
+the affected element.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-wrapOption" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>wrap</code> |
+<code>noWrap</code>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>wrap</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#content-vocabulary-span"><el>span</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>yes</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>For the purpose of determining applicability of this style property,
+each character child of a <el>p</el> element is considered to be enclosed in an anonymous
+span.</p>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>wrap</code> were specified.</p>
+<p>The <att>tts:wrapOption</att> style is illustrated by the following example.</p>
+<table id="style-attribute-wrapOption-example-1" role="example">
+<caption>Example Fragment &ndash; Wrap Option</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="192px 117px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:displayAlign="after"/&gt;
+  &lt;style tts:overflow="hidden"/&gt;
+  &lt;style <phrase role="strong">tts:wrapOption="noWrap"</phrase>/&gt;
+&lt;/region&gt;
+...
+&lt;p&gt;
+  I'll tell thee everything I can:&lt;br/&gt;
+  There's little to relate.&lt;br/&gt;
+  I saw an aged aged man,&lt;br/&gt;
+  A-sitting on a gate.
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-wrapOption-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Wrap Option</caption>
+<tbody>
+<tr>
+<td><graphic source="images/wrapOption.png" alt="TTML wrapOption style property"/></td>
+</tr>
+</tbody>
+</table>
+  <!-- CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.15.13.</p>
+</note>
+-->
+</div3>
+<div3 id="style-attribute-writingMode">
+<head>tts:writingMode</head>
+<p>The <att>tts:writingMode</att> attribute is used to specify a style property that
+defines the block and inline progression directions to be used for the purpose of
+stacking block and inline areas within a region area.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-writingMode" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>lrtb</code> |
+<code>rltb</code> |
+<code>tbrl</code> |
+<code>tblr</code> |
+<code>lr</code> |
+<code>rl</code> |
+<code>tb</code>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>lrtb</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#layout-vocabulary-region"><el>region</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>no</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>lrtb</code> were specified.</p>
+<p>The <att>tts:writingMode</att> style is illustrated by the following example.</p>
+<table id="style-attribute-writingMode-example-1" role="example">
+<caption>Example Fragment &ndash; Writing Mode</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:extent="50px 570px"/&gt;
+  &lt;style tts:origin="0px 0px"/&gt;
+  &lt;style tts:padding="10px 3px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style <phrase role="strong">tts:writingMode="tbrl"</phrase>/&gt;
+&lt;/region&gt;
+&lt;region xml:id="r2"&gt;
+  &lt;style tts:extent="310px 50px"/&gt;
+  &lt;style tts:origin="70px 120px"/&gt;
+  &lt;style tts:padding="10px 3px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style <phrase role="strong">tts:writingMode="rltb"</phrase>/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  I sometimes dig for buttered rolls,&lt;br/&gt;
+  Or set limed twigs for crabs:
+&lt;/p&gt;
+&lt;p region="r2" tts:direction="rtl" tts:unicodeBidi="bidiOverride"&gt;
+  I sometimes search the grassy knolls for the wheels of Hansom-cabs.
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<table id="style-attribute-writingMode-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Writing Mode</caption>
+<tbody>
+<tr>
+<td><graphic source="images/writingMode.png" alt="TTML writingMode style property"/></td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the second paragraph in the above example that targets region
+<code>r2</code>, the <att>tts:unicodeBidi</att> and
+<att>tts:direction</att> properties are set to
+<code>bidiOverride</code> and <code>rtl</code>, respectively, in order
+to override the normally left-to-right directionality of characters in
+the Latin script.</p>
+</note>
+<!-- CSS compatibility - remove derivation note 
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.27.7.</p>
+</note>
+  -->
+</div3>
+<div3 id="style-attribute-zIndex">
+<head>tts:zIndex</head>
+<p>The <att>tts:zIndex</att> attribute is used to specify a style property that
+defines the front-to-back ordering of region areas in the case that they overlap.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-zIndex" role="common">
+<col width="25%"/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>auto</code> |
+<loc href="#style-value-integer">&lt;integer&gt;</loc>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>auto</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#layout-vocabulary-region"><el>region</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>no</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>If two areas are associated with the same Z-index value, then, if those areas
+overlap in space, the area(s) generated by lexically subsequent elements must be
+rendered over area(s) generated by lexically prior elements, where lexical
+order is defined as the postorder traversal of a document
+instance.</p>
+<p>The semantics of the value <code>auto</code> are those defined by
+<bibref ref="xsl11"/>, &sect; 7.30.18, where the <el>tt</el> element
+is considered to establish the root stacking context.</p>
+<p>If a specified value of this attribute is not supported,
+then a presentation processor must interpret the attribute as if the
+value <code>auto</code> were specified.</p>
+<p>The <att>tts:zIndex</att> style is illustrated by the following example.</p>
+<table id="style-attribute-zIndex-example-1" role="example">
+<caption>Example Fragment &ndash; Z Index</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  &lt;style tts:origin="0px 0px"/&gt;
+  &lt;style tts:extent="400px 100px"/&gt;
+  &lt;style tts:padding="5px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style <phrase role="strong">tts:zIndex="0"</phrase>/&gt;
+&lt;/region&gt;
+&lt;region xml:id="r2"&gt;
+  &lt;style tts:origin="100px 60px"/&gt;
+  &lt;style tts:extent="400px 100px"/&gt;
+  &lt;style tts:padding="5px"/&gt;
+  &lt;style tts:backgroundColor="red"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:textAlign="end"/&gt;
+  &lt;style <phrase role="strong">tts:zIndex="1"</phrase>/&gt;
+&lt;/region&gt;
+&lt;region xml:id="r3"&gt;
+  &lt;style tts:origin="0px 120px"/&gt;
+  &lt;style tts:extent="400px 100px"/&gt;
+  &lt;style tts:padding="5px"/&gt;
+  &lt;style tts:backgroundColor="black"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style <phrase role="strong">tts:zIndex="2"</phrase>/&gt;
+&lt;/region&gt;
+&lt;region xml:id="r4"&gt;
+  &lt;style tts:origin="100px 180px"/&gt;
+  &lt;style tts:extent="400px 100px"/&gt;
+  &lt;style tts:padding="5px"/&gt;
+  &lt;style tts:backgroundColor="red"/&gt;
+  &lt;style tts:color="white"/&gt;
+  &lt;style tts:textAlign="end"/&gt;
+  &lt;style <phrase role="strong">tts:zIndex="3"</phrase>/&gt;
+&lt;/region&gt;
+...
+&lt;p region="r1"&gt;
+  I passed by his garden, and marked, with one eye,&lt;br/&gt;
+  How the Owl and the Panther were sharing a pie.
+&lt;/p&gt;
+&lt;p region="r2"&gt;
+  The Panther took pie-crust, and gravy, and meat,&lt;br/&gt;
+  While the Owl had the dish as its share of the treat.
+&lt;/p&gt;
+&lt;p region="r3"&gt;
+  When the pie was all finished, the Owl, as a boon,&lt;br/&gt;
+  Was kindly permitted to pocket the spoon:
+&lt;/p&gt;
+&lt;p region="r4"&gt;
+  While the Panther received knife and fork&lt;br/&gt;
+  with a growl,&lt;br/&gt;
+  And concluded the banquet by...
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<p/>
+<table id="style-attribute-zIndex-example-1-images" role="example-images">
+<caption>Example Rendition &ndash; Z Index</caption>
+<tbody>
+<tr>
+<td><graphic source="images/zIndex.png" alt="TTML zIndex style property"/></td>
+</tr>
+</tbody>
+</table>
+<!-- CSS compatibility - remove derivation note
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="xsl11"/>,
+&sect; 7.28.9.</p>
+</note>
+-->
+</div3>
+</div2>
+<div2 id="styling-style-value-expressions">
+<head>Style Value Expressions</head>
+<p>Style property values include the use of the following expressions:</p>
+<ulist>
+<item><p><specref ref="style-value-alpha"/></p></item>
+<item><p><specref ref="style-value-color"/></p></item>
+<item><p><specref ref="style-value-digit"/></p></item>
+<item><p><specref ref="style-value-duration"/></p></item>
+<item><p><specref ref="style-value-familyName"/></p></item>
+<item><p><specref ref="style-value-genericFamilyName"/></p></item>
+<item><p><specref ref="style-value-hexDigit"/></p></item>
+<item><p><specref ref="style-value-integer"/></p></item>
+<item><p><specref ref="style-value-length"/></p></item>
+<item><p><specref ref="style-value-namedColor"/></p></item>
+<item><p><specref ref="style-value-quotedString"/></p></item>
+<item><p><specref ref="style-value-string"/></p></item>
+</ulist>
+<div3 id="style-value-alpha">
+<head>&lt;alpha&gt;</head>
+<p>An &lt;alpha&gt; expression is used to express an opacity value,
+where	0 means fully transparent and 1 means fully opaque.</p>
+<table id="alpha-style-expression-syntax" role="syntax">
+<caption>Syntax Representation &ndash; &lt;alpha&gt;</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;alpha&gt;
+  : <emph>float</emph>
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>In the above syntax representation, the syntactic element
+<emph><code>float</code></emph> must adhere to the lexical
+representation defined by <bibref ref="xsd-2"/>&nbsp;&sect;
+3.2.4.1. If the value represented is less than 0.0,
+then it must be interpreted as equal to 0.0; similarly, if the value
+represented is greater than 1.0, then it must be interpreted as
+1.0. The value NaN shall be interpreted as 0.0.</p>
+<p>If a presentation processor does not support a specific,
+valid opacity value, then it must interpret it as being equal to the
+closest supported value.</p>
+</div3>
+<div3 id="style-value-color">
+<head>&lt;color&gt;</head>
+<p>A &lt;color&gt; expression is used to specify a named color, exact RGB color triple,
+or exact RGBA color tuple, where the alpha component, if expressed,
+is maximum (255) at 100% opacity
+and minimum (0) at 0% opacity, and where the applicable color space is
+defined by <bibref ref="srgb"/>.</p>
+<table id="color-style-expression-syntax" role="syntax">
+<caption>Syntax Representation &ndash; &lt;color&gt;</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;color&gt;
+  : "#" rrggbb
+  | "#" rrggbbaa
+  | "rgb" "(" r-value "," g-value "," b-value ")"
+  | "rgba" "(" r-value "," g-value "," b-value "," a-value ")"
+  | <loc href="#style-value-namedColor">&lt;namedColor&gt;</loc>
+
+rrggbb
+  :  <loc href="#style-value-hexDigit">&lt;hexDigit&gt;</loc>{6}
+
+rrggbbaa
+  :  <loc href="#style-value-hexDigit">&lt;hexDigit&gt;</loc>{8}
+
+r-value | g-value | b-value | a-value
+  : component-value
+
+component-value
+  : non-negative-integer                    // valid range: [0,255]
+
+non-negative-integer
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc>+
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>When expressing RGB component values, these values are considered
+to <phrase role="strong">not</phrase> be premultiplied by alpha.</p>
+<p>For the purpose of performing presentation processing such that
+non-opaque or non-transparent alpha or opacity values apply, then the
+semantics of compositing functions are defined with respect to the use of
+the <bibref ref="srgb"/> color space for both inputs and outputs of
+the composition function.</p>
+<note role="clarification">
+<p>The use of <bibref ref="srgb"/> for the stated semantics of
+composition is not meant to prevent an actual processor from using some
+other color space either for internal or external purposes. For
+example, a presentation processor may ultimately convert the SRGB values
+used here to the YUV color space for rendition on a television device.</p>
+</note>
+<p>If a presentation processor does not support a specific,
+valid color or alpha value, then it must interpret it as being equal
+to the closest supported value.</p>
+</div3>
+<div3 id="style-value-digit">
+<head>&lt;digit&gt;</head>
+<p>A &lt;digit&gt; is used to express integers and other types of numbers or tokens.</p>
+<table id="digit-style-expression-syntax" role="syntax">
+<caption>Syntax Representation &ndash; &lt;digit&gt;</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;digit&gt;
+  : "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+</div3>
+<div3 id="style-value-duration">
+<head>&lt;duration&gt;</head>
+<p>A &lt;duration&gt; expression is used to express a temporal duration value.</p>
+<table id="duration-style-expression-syntax" role="syntax">
+<caption>Syntax Representation &ndash; &lt;duration&gt;</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;duration&gt;
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc>+ ( "." <loc href="#style-value-digit">&lt;digit&gt;</loc>+ )? metric
+
+metric
+  : "s"                 // seconds
+  | "ms"                // milliseconds
+  | "f"                 // frames
+  | "t"                 // ticks
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>It is an error to omit the metric component of a duration.</p>
+<p>When operating with <code>smpte</code> time base and
+<code>discontinuous</code> mode, a duration expression must be
+considered to denote a duration in (local) real-time, independently of the
+governing time base.</p>
+</div3>
+<div3 id="style-value-familyName">
+<head>&lt;familyName&gt;</head>
+<p>A &lt;familyName&gt; expression specifies a font family name.</p>
+<p>If the name contains a quotation delimiter character,
+then it must be expressed as a
+&lt;quotedString&gt;. If the name contains a
+whitespace character,
+then it should be expressed as a
+&lt;quotedString&gt;; however, if it is expressed as a &lt;string&gt;, then it
+must not contain a <code>COMMA</code> ',' character.</p>
+
+<table id="familyName-style-expression-syntax" role="syntax">
+<caption>Syntax Representation &ndash; &lt;familyName&gt;</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;familyName&gt;
+  : <loc href="#style-value-string">&lt;string&gt;</loc>
+  | <loc href="#style-value-quotedString">&lt;quotedString&gt;</loc>
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+</div3>
+<div3 id="style-value-genericFamilyName">
+<head>&lt;genericFamilyName&gt;</head>
+<p>A &lt;genericFamilyName&gt; expression specifies a font family using a general
+token that indicates a class of font families.</p>
+<p>The resolution of a generic family name to a concrete font instance is considered to
+be implementation dependent, both in the case of content authoring and content interpretation.</p>
+<table id="genericFamilyName-style-expression-syntax" role="syntax">
+<caption>Syntax Representation &ndash; &lt;genericFamilyName&gt;</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;genericFamilyName&gt;
+  : "default"
+  | "monospace"
+  | "sansSerif"
+  | "serif"
+  | "monospaceSansSerif"
+  | "monospaceSerif"
+  | "proportionalSansSerif"
+  | "proportionalSerif"
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>The mapping between a generic (font) family name and an actual font is not
+determined by this specification; however, the
+distinction of monospace versus proportional and serif versus sans-serif
+should be maintained if possible when performing presentation.</p>
+<p>If a generic (font) family name of <code>monospace</code> is specified,
+then it may be interpreted as equivalent to either <code>monospaceSansSerif</code>
+or <code>monospaceSerif</code>. The generic family names <code>sansSerif</code>
+and <code>serif</code> are to be interpreted as equivalent to <code>proportionalSansSerif</code>
+and <code>proportionalSerif</code>, respectively.</p>
+<p>If the generic family name <code>default</code> is specified (or implied by
+an initial value), then its typographic characteristics is considered to be implementation
+dependent; however, it is recommended that this default font family be mapped to
+an monospaced, sans-serif font.</p>
+</div3>
+<div3 id="style-value-hexDigit">
+<head>&lt;hexDigit&gt;</head>
+<p>A &lt;hexDigit&gt; is used to express integers and other types of numbers or tokens
+that employ base 16 arithmetic.</p>
+<p>For the purpose of parsing, no distinction must be made between lower and upper case.</p>
+<table id="hexDigit-style-expression-syntax" role="syntax">
+<caption>Syntax Representation &ndash; &lt;hexDigit&gt;</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;hexDigit&gt;
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc>
+  | "a" | "b" | "c" | "d" | "e" | "f"
+  | "A" | "B" | "C" | "D" | "E" | "F"
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+</div3>
+<div3 id="style-value-integer">
+<head>&lt;integer&gt;</head>
+<p>An &lt;integer&gt; expression is used to express an arbitrary, signed integral value.</p>
+<table id="integer-style-expression-syntax" role="syntax">
+<caption>Syntax Representation &ndash; &lt;integer&gt;</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;integer&gt;
+  : ( "+" | "-" )? <loc href="#style-value-digit">&lt;digit&gt;</loc>+
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+</div3>
+<div3 id="style-value-length">
+<head>&lt;length&gt;</head>
+<p>A &lt;length&gt; expression is used to express either a coordinate component of point
+in a cartesian space or a distance between two points in a cartesian space.</p>
+<table id="length-style-expression-syntax" role="syntax">
+<caption>Syntax Representation &ndash; &lt;length&gt;</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;length&gt;
+  : scalar
+  | percentage
+
+scalar
+  : number units
+
+percentage
+  : number "%"
+
+sign
+  : "+" | "-"
+
+number
+  : sign? non-negative-number
+
+non-negative-number
+  : non-negative-integer
+  | non-negative-real
+
+non-negative-integer
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc>+
+
+non-negative-real
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc>* "." <loc href="#style-value-digit">&lt;digit&gt;</loc>+
+
+units
+  : "px"
+  | "em"
+  | "c"                                     // abbreviation of "cell"
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>It is an error to omit the units component of a scalar length
+value.</p>
+<p>The semantics of
+the unit of measure <code>px</code> (pixel) 
+are as defined by <bibref ref="xsl11"/>, &sect; 5.9.13.</p>
+<p>When specified relative to a font whose size is expressed as a single length
+measure or as two length measures of equal length, the unit of measure <code>em</code> is considered to be
+identical to that defined by <bibref ref="xsl11"/>, &sect; 5.9.13;
+however, when specified relative to a font whose size is expressed as
+two length measures of non-equal lengths, then one <code>em</code> is
+equal to the inline progression dimension of the anamorphically
+scaled font when used to specify lengths in the inline progression
+direction and equal to the block progression dimension of the scaled
+font when used to specify lengths in the block progression direction.</p>
+<p>The semantics of the unit of measure <code>c</code> (cell) are
+defined by the parameter <specref
+ref="parameter-attribute-cellResolution"/>.</p>
+</div3>
+<div3 id="style-value-namedColor">
+<head>&lt;namedColor&gt;</head>
+<p>A &lt;namedColor&gt; is used to express an RGBA color with a convenient name, and where the applicable color space is
+defined by <bibref ref="srgb"/>.</p>
+<p>For the purpose of parsing, no distinction must be made between lower and upper case.</p>
+<table id="namedColor-style-expression-syntax" role="syntax">
+<caption>Syntax Representation &ndash; &lt;namedColor&gt;</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;namedColor&gt;
+  : "transparent"                           // #00000000
+  | "black"                                 // #000000ff
+  | "silver"                                // #c0c0c0ff
+  | "gray"                                  // #808080ff
+  | "white"                                 // #ffffffff
+  | "maroon"                                // #800000ff
+  | "red"                                   // #ff0000ff
+  | "purple"                                // #800080ff
+  | "fuchsia"                               // #ff00ffff
+  | "magenta"                               // #ff00ffff (= fuchsia)
+  | "green"                                 // #008000ff
+  | "lime"                                  // #00ff00ff
+  | "olive"                                 // #808000ff
+  | "yellow"                                // #ffff00ff
+  | "navy"                                  // #000080ff
+  | "blue"                                  // #0000ffff
+  | "teal"                                  // #008080ff
+  | "aqua"                                  // #00ffffff
+  | "cyan"                                  // #00ffffff (= aqua)
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="clarification">
+<p>Except for <code>transparent</code>, the set of named colors specified above constitutes a proper
+subset of the set of named colors specified by <bibref ref="svg11"/>, &sect; 4.2.</p>
+</note>
+</div3>
+<div3 id="style-value-quotedString">
+<head>&lt;quotedString&gt;</head>
+<p>A &lt;quotedString&gt; is used to express a delimited string that may contain
+a whitespace or a quotation delimiter character. Two types of quotation delimiters
+are provided in order to accommodate strings that contain the other delimiter.</p>
+<table id="quotedString-style-expression-syntax" role="syntax">
+<caption>Syntax Representation &ndash; &lt;quotedString&gt;</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;quotedString&gt;
+  : "\"" ( <emph>char</emph> - { "\"" } )* "\""
+  | "\'" ( <emph>char</emph> - { "\'" } )* "\'"
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>In the above syntax representation, the syntactic element <emph><code>char</code></emph> must adhere to production
+[2] <code>Char</code> as defined by <bibref ref="xml10"/>&nbsp;&sect;
+2.2.</p>
+</div3>
+<div3 id="style-value-string">
+<head>&lt;string&gt;</head>
+<p>A &lt;string&gt; expression consists of a sequence of characters where no character
+is a quotation delimiter character.</p>
+<table id="string-style-expression-syntax" role="syntax">
+<caption>Syntax Representation &ndash; &lt;string&gt;</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;string&gt;
+  : ( <emph>char</emph> - { "\"" | "\'" } )+
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>In the above syntax representation, the syntactic element <emph><code>char</code></emph> must adhere to production
+[2] <code>Char</code> as defined by <bibref ref="xml10"/>&nbsp;&sect;
+2.2.</p>
+</div3>
+</div2>
+<div2 id="semantics-style-resolution">
+<head>Style Resolution</head>
+<p>This section defines the semantics of style resolution in terms of
+a standard processing model as follows:</p>
+<ulist>
+<item><p><specref ref="semantics-style-association"/></p></item>
+<item><p><specref ref="semantics-style-inheritance"/></p></item>
+<item><p><specref ref="semantics-style-resolution-value-categories"/></p></item>
+<item><p><specref ref="semantics-style-resolution-processing"/></p></item>
+</ulist>
+<p>Any implementation of this model is permitted provided that the
+externally observable results are consistent with the results produced
+by this model.</p>
+<note role="derivation">
+<p>The semantics of style resolution employed here are based upon
+<bibref ref="xsl11"/>, &sect; 5.</p>
+</note>
+<div3 id="semantics-style-association">
+<head>Style Association</head>
+<p>Style association is a sub-process of <specref
+ref="semantics-style-resolution-processing"/> used to determine the
+specified style set of each content and
+layout element.</p>
+<p>Style matter may be associated with content
+ and layout matter in a number of ways:</p>
+<ulist>
+<item><p><loc href="#semantics-style-association-inline">inline styling</loc></p></item>
+<item><p><loc href="#semantics-style-association-referential">referential styling</loc></p></item>
+<item><p><loc href="#semantics-style-association-chained-referential">chained referential styling</loc></p></item>
+</ulist>
+<p>In addition to the above, style matter may be associated with layout matter using:</p>
+<ulist>
+<item><p><loc href="#semantics-style-association-nested">nested styling</loc></p></item>
+</ulist>
+<div4 id="semantics-style-association-inline">
+<head>Inline Styling</head>
+<p>Style properties may be expressed in an inline manner by direct
+specification of an attribute from the TT Style Namespace on the
+affected element. When expressed in this manner, the association of
+style information is referred to as <emph>inline styling</emph>.</p>
+<p>Style properties associated by inline styling are afforded a higher priority than all other
+forms of style association.</p>
+<table id="style-association-example-1" role="example">
+<caption>Example &ndash; Inline Styling</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;p <phrase role="strong">tts:color="white"</phrase>&gt;White 1&nbsp;&lt;span <phrase role="strong">tts:color="yellow"</phrase>&gt;Yellow&lt;/span&gt;&nbsp;White 2&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, the two text fragments <code>"White 1 "</code> and
+<code>" White 2"</code>, which are interpreted as anonymous spans, are not
+associated with a color style property; rather, they inherit their color style
+from their parent <el>p</el> element as described in <specref
+ref="semantics-style-inheritance-content"/> below.  </p>
+</note>
+</div4>
+<div4 id="semantics-style-association-referential">
+<head>Referential Styling</head>
+<p>Style properties may be expressed in an out-of-line manner and referenced by the
+affected element using the <att>style</att> attribute. When expressed in this manner,
+the association of style information is referred to as <emph>referential styling</emph>.</p>
+<p>If a <att>style</att> attribute specifies multiple references, then those references are
+evaluated in the specified order, and that order applies to resolution of the value of a
+style property in the case that it is specified along multiple reference paths.</p>
+<p>The use of referential styling is restricted to making
+reference to <el>style</el> element descendants of a <el>styling</el>
+element. It is considered an error to reference a <el>style</el>
+element that is a descendant of a <el>layout</el> element.</p>
+<note role="explanation">
+<p>The use of referential styling encourages the reuse of style specifications while
+sacrificing locality of reference.</p>
+</note>
+<note role="explanation">
+<p>A single content element may be associated with style properties by a hybrid mixture of
+inline and referential styling, in which case inline styling is given priority as described above
+by <specref ref="semantics-style-association-inline"/>.</p>
+</note>
+<table id="style-association-example-2" role="example">
+<caption>Example &ndash; Referential Styling</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;style <phrase role="strong">xml:id="s1"</phrase> tts:color="white"/&gt;
+&lt;style <phrase role="strong">xml:id="s2"</phrase> tts:color="yellow"/&gt;
+...
+&lt;p <phrase role="strong">style="s1"</phrase>&gt;White 1&nbsp;&lt;span <phrase role="strong">style="s2"</phrase>&gt;Yellow&lt;/span&gt;&nbsp;White 2&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, the two text fragments <code>"White 1 "</code> and
+<code>" White 2"</code>, which are interpreted as anonymous spans, are not
+associated with a color style property; rather, they inherit their color style
+from their parent <el>p</el> element as described in <specref
+ref="semantics-style-inheritance-content"/> below.</p>
+</note>
+</div4>
+<div4 id="semantics-style-association-chained-referential">
+<head>Chained Referential Styling</head>
+<p>Style properties may be expressed in an out-of-line manner and may themselves reference
+other out-of-line style properties, thus creating a chain of references starting at the
+affected element. When expressed in this manner, the association of style information
+is referred to as <emph>chained referential styling</emph>.</p>
+<p>If the same style property is specified in more than one referenced
+style 
+set,
+then the last referenced style
+set
+applies, where the order of application starts from
+the affected element and proceeds to referenced style
+sets,
+and, in turn, to subsequent, recursively
+referenced style
+sets.</p>
+<p>A loop in a sequence of chained style references must be considered an error.</p>
+<p>The use of referential styling is restricted to making
+reference to <el>style</el> element descendants of a <el>styling</el>
+element. It is considered an error to reference a <el>style</el>
+element that is a descendant of a <el>layout</el> element.</p>
+<note role="explanation">
+<p>The use of chained referential styling encourages the grouping of style specifications
+into general and specific sets, which further aids in style specification reuse.</p>
+</note>
+<note role="explanation">
+<p>A single content element may be associated with style properties by a hybrid mixture of
+inline, referential styling, and chained referential styling, in which case inline styling is
+given priority as described above by <specref ref="semantics-style-association-inline"/>.</p>
+</note>
+<table id="style-association-example-3" role="example">
+<caption>Example &ndash; Chained Referential Styling</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;style <phrase role="strong">xml:id="s1"</phrase> tts:color="white" tts:fontFamily="monospaceSerif"/&gt;
+&lt;style <phrase role="strong">xml:id="s2"</phrase> <phrase role="strong">style="s1"</phrase> tts:color="yellow"/&gt;
+...
+&lt;p <phrase role="strong">style="s1"</phrase>&gt;White Monospace&lt;/p&gt;
+&lt;p <phrase role="strong">style="s2"</phrase>&gt;Yellow Monospace&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+</div4>
+<div4 id="semantics-style-association-nested">
+<head>Nested Styling</head>
+<p>Style properties may be expressed in an nested manner by direct specification of one or
+more <el>style</el> element children of the affected element.
+When expressed in this manner, the association of style information
+is referred to as <emph>nested styling</emph>.</p>
+<p>Style properties associated by nested styling are afforded a lower priority than inline
+styling but with higher priority than referential styling.</p>
+<table id="style-association-example-4" role="example">
+<caption>Example &ndash; Nested Styling</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region xml:id="r1"&gt;
+  <phrase role="strong">&lt;style tts:extent="128px 66px"/&gt;</phrase>
+  <phrase role="strong">&lt;style tts:origin="0px 0px"/&gt;</phrase>
+  <phrase role="strong">&lt;style tts:displayAlign="center"/&gt;</phrase>
+&lt;/region&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="clarification">
+<p>In this version of this specification, nested styling applies only
+to the <el>region</el> element.</p>
+</note>
+</div4>
+</div3>
+<div3 id="semantics-style-inheritance">
+<head>Style Inheritance</head>
+<p>Style inheritance is a sub-process of <specref
+ref="semantics-style-resolution-processing"/> used to determine the
+specified style set of each content and
+layout element.</p>
+<p>Styles are further propagated to content matter
+using:
+</p>
+<ulist>
+<item><p><loc href="#semantics-style-inheritance-content">content style inheritance</loc></p></item>
+<item><p><loc href="#semantics-style-inheritance-content">region style inheritance</loc></p></item>
+</ulist>
+<p>For the purpose of determining inherited styles, the element hierarchy of
+an intermediate synchronic document form of a TTML document instance must be used, where
+such intermediate forms are defined by <specref ref="semantics-region-layout-step-1"/>.</p>
+<note role="explanation">
+<p>The intermediate synchronic document form is utilized rather than
+the original form in order to facilitate region inheritance
+processing.</p>
+</note>
+<div4 id="semantics-style-inheritance-content">
+<head>Content Style Inheritance</head>
+<p>Style properties are inherited from ancestor content elements
+within an intermediate synchronic document
+if a style property is not associated with a content element (or
+an anonymous span) and the style property is designated as
+inheritable.</p>
+<p>If a style property is determined to require inheritance, then the inherited value must
+be the value of the same named style property in the computed
+style set of the
+element's immediate ancestor element
+within the applicable intermediate synchronic document.</p>
+<table id="style-inheritance-example-2" role="example">
+<caption>Example &ndash; Content Style Inheritance</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;p <phrase role="strong">tts:fontFamily="monospaceSansSerif"</phrase>&gt;
+  &lt;span tts:color="yellow"&gt;Yellow Monospace&lt;/span&gt;
+&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, the <el>span</el> element that encloses the character items
+<code>Yellow Monospace</code> is not associated with a <att>tts:fontFamily</att> style
+property and this property is inheritable; therefore, the value of the
+<att>tts:fontFamily</att> style
+is inherited from the computed style
+set of the ancestor <el>p</el> element,
+and is added to the
+specified
+style
+set of the <el>span</el> element.</p>
+</note>
+</div4>
+<div4 id="semantics-style-inheritance-region">
+<head>Region Style Inheritance</head>
+<p>Style properties are inherited from a region element in the following case:</p>
+<olist>
+<item><p>if a style property <emph>P</emph> is not associated with
+a content
+element or an anonymous span <emph>E</emph> and the style
+property is designated as inheritable, and</p></item> <item><p>if that
+style property <emph>P</emph> is in the computed style
+set of region
+<emph>R</emph>,
+and</p></item>
+<item><p>if that element <emph>E</emph> is flowed into (presented within) region
+<emph>R</emph>.</p></item>
+</olist>
+<table id="style-inheritance-example-3" role="example">
+<caption>Example &ndash; Region Style Inheritance</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region <phrase role="strong">xml:id="r1"</phrase>&gt;
+&nbsp;&nbsp;&lt;style tts:color="yellow"/&gt;
+&nbsp;&nbsp;&lt;style tts:fontFamily="monospaceSerif"/&gt;
+&lt;/region&gt;
+...
+&lt;p <phrase role="strong">region="r1"</phrase>&gt;Yellow Monospace&lt;/p&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, the anonymous span that encloses the character
+items <code>Yellow Monospace</code> effectively inherits the <att>tts:color</att>
+and <att>tts:fontFamily</att> styles specified on the <el>region</el>
+element into which the <el>p</el> element is flowed (presented).</p>
+</note>
+</div4>
+</div3>
+<div3 id="semantics-style-resolution-value-categories">
+<head>Style Resolution Value Categories</head>
+<p>During style resolution, layout, and presentation processing,
+three categories of style property values are distinguished as
+follows:</p>
+<ulist>
+<item><p><loc href="#semantics-style-resolved-value-category-specified">specified values</loc></p></item>
+<item><p><loc href="#semantics-style-resolved-value-category-computed">computed values</loc></p></item>
+<item><p><loc href="#semantics-style-resolved-value-category-actual">actual values</loc></p></item>
+</ulist>
+<div4 id="semantics-style-resolved-value-category-specified">
+<head>Specified Values</head>
+<p>Values of style properties that are associated with or inherited
+by an element or anonymous span are referred to as <emph>specified values</emph>. The
+set of all specified style properties of a given element is referred to
+as the <emph>specified style set</emph> of that element.</p>
+</div4>
+<div4 id="semantics-style-resolved-value-category-computed">
+<head>Computed Values</head>
+<p>When style properties are specified using relative value expressions,
+such as a named color, a relative unit (e.g., cell), or a percentage, then
+they need to be further resolved into absolute units, such as an RGB triple,
+pixels, etc.</p>
+<p>During the style resolution process, all specified style values are
+reinterpreted (or recalculated) in absolute terms, and then recorded as
+<emph>computed values</emph>. The
+set of all computed style properties of a given element is referred to
+as the <emph>computed style set</emph> of that element.</p>
+<p>When a style value is inherited, either explicitly or implicitly, it
+is the computed value of the style that is inherited from an ancestor
+element. This is required since the resolution of certain relative units,
+such as percentage, require evaluating the expression in the immediate
+(local) context of reference, and not in a distant (remote) context of
+reference where the related (resolving) expression is not available.</p>
+</div4>
+<div4 id="semantics-style-resolved-value-category-actual">
+<head>Actual Values</head>
+<p>During the actual presentation process, other transformations occur
+that map some value expressions to concrete, physical values. For example,
+the colors of computed style values are further subjected to closest color
+approximation and gamma correction
+during the display process. In addition, length value expressions that use
+pixels in computed style values are considered to express logical rather than
+physical (device) pixels. Consequently, these logical pixels are subject to
+being further transformed or mapped to physical (device) pixels during
+presentation.</p>
+<p>The final values that result from the logical to device mapping
+process are referred to as <emph>actual values</emph>.  The set of all
+actual style properties of a given element is referred to as the
+<emph>actual style set</emph> of that element.</p>
+<note role="elaboration">
+<p>More than one set of actual values may be produced during the
+process of presentation. For example, a TTML presentation processor
+device may output an RGBA component video signal which is then
+further transformed by an NTSC or PAL television to produce a final
+image. In this case, both color and dimensions may further be modified
+prior to presentation.</p>
+</note>
+<note role="explanation">
+<p>In general, a TTML presentation processor will not have access
+to actual style set values; as a consequence, no further use or reference
+to actual values is made below when formally describing the style
+resolution process.</p>
+</note>
+</div4>
+</div3>
+<div3 id="semantics-style-resolution-processing">
+<head>Style Resolution Processing</head>
+<p>The process of style resolution is defined herein as the procedure
+(and results thereof) for resolving (determining) the computed values
+of all style properties that apply to content and layout elements:</p>
+<ulist>
+<item><p><specref ref="semantics-style-resolution-processing-definitions"/></p></item>
+<item><p><specref ref="semantics-style-resolution-processing-sss"/></p></item>
+<item><p><specref ref="semantics-style-resolution-processing-css"/></p></item>
+<item><p><specref ref="semantics-style-resolution-process-overall"/></p></item>
+</ulist>
+<p>The process described here forms an integral sub-process of
+<specref ref="semantics-region-layout"/>.</p>
+<div4 id="semantics-style-resolution-processing-definitions">
+<head>Conceptual Definitions</head>
+<p>For the purpose of interpreting the style resolution processing
+model specified below, the following conceptual definitions apply:</p>
+<glist>
+<gitem>
+<label>[style property]</label>
+<def>
+<p>a style property, <emph>P</emph>, is considered to consist of a
+tuple <code>[name, value]</code>, where the name of the
+property is a tuple <code>[namespace value,
+unqualified name]</code> and the value of the property is a
+tuple <code>[category, type, value expression]</code></p>
+<table id="conceptual-definition-example-style-property" role="example">
+<caption>Example &ndash; conceptual style property</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+[
+  ["http://www.w3.org/ns/ttml#styling", "color"],
+  ["specified", <emph>color</emph>, "red"]
+]
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+</def>
+</gitem>
+<gitem>
+<label>[style (property) set]</label>
+<def>
+<p>a style (property) set consists of an unordered collection of style
+properties, where no two style properties within the set have an
+identical name, where by "identical name" is meant equality of
+namespace value of name tuple and unqualified name of name tuple;</p>
+<p>in a specified style (property) set, the category of each style
+property is "specified"; a specified style (property) set of an
+element <emph>E</emph> is referred to as <emph>SSS(E)</emph>;</p>
+<table id="conceptual-definition-example-specified-style-set" role="example">
+<caption>Example &ndash; conceptual (specified) style (property) set</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+{
+  [
+    ["http://www.w3.org/ns/ttml#styling", "backgroundColor"],
+    ["specified", <emph>color</emph>, 0x00FF00 ]
+  ],
+  [
+    ["http://www.w3.org/ns/ttml#styling", "color"],
+    ["specified", <emph>color</emph>, "red" ]
+  ],
+  [
+    ["http://www.w3.org/ns/ttml#styling", "fontSize"],
+    ["specified", <emph>length</emph>, "1c" ]
+  ],
+  [
+    ["http://www.w3.org/ns/ttml#styling", "lineHeight"],
+    ["specified", <emph>length</emph>, "117%" ]
+  ]
+}
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>in a computed style (property) set, the category of each style
+property is either "specified" or "computed"; a computed style (property) set of an element
+<emph>E</emph> is referred to as <emph>CSS(E)</emph>;</p>
+<table id="conceptual-definition-example-computed-style-set" role="example">
+<caption>Example &ndash; conceptual (computed) style (property) set</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+{
+  [
+    ["http://www.w3.org/ns/ttml#styling", "backgroundColor"],
+    ["specified", <emph>color</emph>, 0x00FF00 ]
+  ],
+  [
+    ["http://www.w3.org/ns/ttml#styling", "color"],
+    ["computed", <emph>color</emph>, 0xFF0000 ]
+  ],
+  [
+    ["http://www.w3.org/ns/ttml#styling", "fontSize"],
+    ["computed", <emph>length</emph>, "24px" ]
+  ],
+  [
+    ["http://www.w3.org/ns/ttml#styling", "lineHeight"],
+    ["computed", <emph>length</emph>, "28px" ]
+  ]
+}
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+</def>
+</gitem>
+<gitem>
+<label>[style (property) merging]</label>
+<def>
+<p>a style property <emph>P<sub>new</sub></emph> is merged into a
+style (property) set, <emph>SS</emph>, as follows: if a style property
+<emph>P<sub>old</sub></emph> is already present in <emph>SS</emph>
+where the name of <emph>P<sub>new</sub></emph> is identical to the
+name of <emph>P<sub>old</sub></emph>, then replace
+<emph>P<sub>old</sub></emph> in <emph>SS</emph> with
+<emph>P<sub>new</sub></emph>; otherwise, add
+<emph>P<sub>new</sub></emph> to <emph>SS</emph>;</p>
+</def>
+</gitem>
+<gitem>
+<label>[style (property) set merging]</label>
+<def>
+<p>a style (property) set <emph>SS<sub>new</sub></emph> is merged into
+an existing style (property) set <emph>SS<sub>old</sub></emph> as
+follows: for each style property <emph>P<sub>new</sub></emph> in
+<emph>SS<sub>new</sub></emph>, merge <emph>P<sub>new</sub></emph> into
+<emph>SS<sub>old</sub></emph>;</p>
+</def>
+</gitem>
+</glist>
+</div4>
+<div4 id="semantics-style-resolution-processing-sss">
+<head>Specified Style Set Processing</head>
+<p>The specified style set <emph>SSS</emph> of an element or
+anonymous span <emph>E</emph>,
+<emph>SSS(E)</emph>, is determined according to the following ordered
+rules:</p>
+<olist>
+<item><p><phrase role="strong">[initialization]</phrase> initialize
+the specified style set <emph>SSS</emph> of <emph>E</emph> to the
+empty set;</p></item>
+<item><p><phrase role="strong">[referential and chained referential
+styling]</phrase> for each <el>style</el> element <emph>S<sub>REF</sub></emph>
+referenced by a <att>style</att> attribute specified on
+<emph>E</emph>, and in the order specified in the <att>style</att>
+attribute, then, if <emph>S<sub>REF</sub></emph> is a descendant
+of a <el>styling</el> element,
+merge the specified style set of
+<emph>S<sub>REF</sub></emph>, <emph>SSS(S<sub>REF</sub>)</emph>, into
+the specified style set of <emph>E</emph>,
+<emph>SSS(E)</emph>;</p></item>
+<item><p><phrase role="strong">[nested styling]</phrase> for each
+nested <el>style</el> element child <emph>S<sub>NEST</sub></emph> of
+<emph>E</emph>, and in the specified order of child elements, merge
+the specified style set of <emph>S<sub>NEST</sub></emph>,
+<emph>SSS(S<sub>NEST</sub>)</emph>, into the specified style set of
+<emph>E</emph>, <emph>SSS(E)</emph>;</p></item>
+<item><p><phrase role="strong">[inline styling]</phrase> for each
+style property <emph>P</emph> expressed as a specified styling
+attribute of <emph>E</emph>,
+merge <emph>P</emph> into the specified style
+set of <emph>E</emph>, <emph>SSS(E)</emph>;</p></item>
+<item>
+<p><phrase role="strong">[implicit inheritance]</phrase> if the
+element type of <emph>E</emph> is not the styling element type
+<el>style</el>, then for each inheritable style property
+<emph>P<sub>INH</sub></emph> in the set of style properties defined
+above in <specref ref="styling-attribute-vocabulary"/>, perform the
+following ordered sub-steps:</p>
+<olist>
+<item><p>if <emph>P<sub>INH</sub></emph> is present in the specified
+style set of <emph>E</emph>, <emph>SSS(E)</emph>, then continue to the
+next inheritable style property;</p></item>
+<item><p>if the element type of <emph>E</emph> is the layout element
+type <el>region</el>, then set <emph>P&prime;</emph> to the initial value of
+property <emph>P</emph>, where the initial value of a property is
+determined according to the specific property definition found above
+in <specref ref="styling-attribute-vocabulary"/>;</p></item>
+<item><p>if the element type of <emph>E</emph> is a content element
+type or anonymous span, then set <emph>P&prime;</emph> to the result of
+looking up the value of <emph>P</emph> in the computed style set of
+the immediate ancestor element of <emph>E</emph>, i.e.,
+<emph>CSS(PARENT(E))</emph>;</p></item>
+<item><p>if the value of <emph>P&prime;</emph> is not undefined, then merge
+<emph>P&prime;</emph> into the specified style set of <emph>E</emph>,
+<emph>SSS(E)</emph>.</p></item>
+</olist>
+</item>
+</olist>
+</div4>
+<div4 id="semantics-style-resolution-processing-css">
+<head>Computed Style Set Processing</head>
+<p>The computed style set <emph>CSS</emph> of an element or
+anonymous span <emph>E</emph>,
+<emph>CSS(E)</emph>, is determined according to the following ordered
+rules:</p>
+<olist>
+<item><p><phrase role="strong">[resolve specified styles]</phrase>
+determine (obtain) the specified style set <emph>SSS</emph> of
+<emph>E</emph>, namely, <emph>SSS(E)</emph>, in accordance with
+<specref ref="semantics-style-resolution-processing-sss"/>;</p>
+</item>
+<item><p><phrase role="strong">[initialization]</phrase>
+initialize <emph>CSS(E)</emph> to a (deep) copy of
+<emph>SSS(E)</emph>;</p></item>
+<item><p><phrase role="strong">[filter]</phrase> if
+<emph>E</emph> is a <el>style</el> element, then return
+<emph>CSS(E)</emph> as the resulting computed style set without
+further resolution; otherwise, continue with the next rule;</p></item>
+<item>
+<p><phrase role="strong">[relative value resolution]</phrase> for each
+style property <emph>P</emph> in <emph>CSS(E)</emph>, where the value
+type of <emph>P</emph> is relative, perform the following ordered
+sub-steps:</p>
+<olist>
+<item><p>replace the relative value of <emph>P</emph> with an
+equivalent, non-relative (computed) value;</p></item>
+<item><p>set the category of <emph>P</emph> to "computed";</p></item>
+</olist>
+</item>
+</olist>
+<note role="explanation">
+<p>As a result of the filtering rule above, the computed style set of
+a <el>style</el> element includes only specified values, in which case
+relative value expressions remain relative; consequently, the
+resolution of relative value expressions (that may be assigned by
+means of referential style association) always takes place in the
+context of a layout or content element which has a presentation
+context, and not in the non-presentation, declaration context
+of a referentiable <el>style</el> element.</p>
+</note>
+</div4>
+<div4 id="semantics-style-resolution-process-overall">
+<head>Style Resolution Process</head>
+<p>The top-level style resolution process is defined as follows: using
+a preorder traversal of each element and anonymous span,
+<emph>E</emph>, of an intermediate synchronic document,
+<emph>DOC<sub>inter</sub></emph>, perform the following ordered
+sub-steps:</p>
+<olist>
+<item><p><phrase role="strong">[filter]</phrase> if the element type
+of <emph>E</emph> is not the styling element type <el>style</el>, is
+not the layout element type <el>region</el>, and is not one of the
+content element types <el>body</el>, <el>div</el>, <el>p</el>,
+<el>span</el>, <el>br</el>, or anonymous span, then continue to the
+next element in the preorder traversal;</p></item>
+<item><p> <phrase role="strong">[resolve computed styles]</phrase>
+determine (obtain) the computed style set <emph>CSS</emph> of
+<emph>E</emph>, namely, <emph>CSS(E)</emph>, in accordance with
+<specref ref="semantics-style-resolution-processing-css"/>.</p></item>
+</olist>
+</div4>
+</div3>
+</div2>
+</div1>
+<div1 id="layout">
+<head>Layout</head>
+<p>This section specifies the <emph>layout</emph> matter of the core
+vocabulary catalog, where
+layout is to be understood as a separable layer of information that applies to
+content and that denotes authorial intentions about the presentation of
+that content.</p>
+<note role="elaboration">
+<p>The two layers of layout and style matter are considered to be independently
+separable. Layout matter specifies one or more spaces or areas into
+which content is intended to be presented, while style matter specifies the manner in
+which presentation occurs within the layout.</p>
+<p>In certain cases, a content author may choose to embed (inline) style matter directly
+into layout or content matter. In such cases, an alternative 
+exists &ndash; use of referential styling &ndash;
+in which the style
+matter is not embedded (inlined).</p>
+</note>
+<div2 id="layout-element-vocabulary">
+<head>Layout Element Vocabulary</head>
+<p>The following elements specify the structure and principal layout aspects of a
+document instance:</p>
+<ulist>
+<item><p><specref ref="layout-vocabulary-layout"/></p></item>
+<item><p><specref ref="layout-vocabulary-region"/></p></item>
+</ulist>
+<div3 id="layout-vocabulary-layout">
+<head>layout</head>
+<p>The <el>layout</el> element is a container element used to group
+layout matter, including metadata that applies to layout matter.</p>
+<p>The <el>layout</el> element accepts as its children zero or more
+elements in the <code>Metadata.class</code> element group, followed by
+zero or more <el>region</el> elements.</p>
+<table id="elt-syntax-layout" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: layout</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;layout
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc href="#element-vocab-group-table">Metadata.class</loc>*, <loc href="#layout-vocabulary-region">region</loc>*
+&lt;/layout&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>To the extent that time semantics apply to the content of the
+<el>layout</el> element, the implied time interval of this element is
+defined to be coterminous with the external time interval.</p>
+</div3>
+<div3 id="layout-vocabulary-region">
+<head>region</head>
+<p>The <el>region</el> element is used to define a space or area into which content is
+to be flowed for the purpose of presentation.</p>
+<p>In addition, and in accordance with
+<specref ref="semantics-style-inheritance-region"/>, 
+the <el>region</el> element may be used to specify inheritable style properties to be
+inherited by content that is flowed into it.</p>
+<p>The <el>region</el> element accepts as its children zero or more
+elements in the <code>Metadata.class</code> element group,
+followed by zero or more
+elements in the <code>Animation.class</code> element group,
+followed by
+zero or more <el>style</el> elements.</p>
+<p>Any metadata specified by children in the <code>Metadata.class</code>
+element group applies semantically to the <el>region</el> element and its descendants as a whole.
+Any animation elements specified by children in the <code>Animation.class</code>
+element group apply semantically to the <el>region</el> element.
+Any <el>style</el> child element must be considered a local style
+definition that applies only to the containing <el>region</el>
+element, i.e., does not apply for resolving referential styling.</p>
+<table id="elt-syntax-region" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: region</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;region
+  <loc href="#timing-attribute-begin">begin</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#timing-attribute-dur">dur</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#timing-attribute-end">end</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#style-attribute-style">style</loc> = IDREFS
+  <loc href="#timing-attribute-timeContainer">timeContainer</loc> = (<emph>par</emph>|<emph>seq</emph>)
+  <loc href="#metadata-attribute-role">ttm:role</loc> = string
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute in TT Style namespace</emph>}
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc href="#element-vocab-group-table">Metadata.class</loc>*, <loc href="#element-vocab-group-table">Animation.class</loc>*, <loc href="#styling-vocabulary-style">style</loc>*
+&lt;/region&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>If <att>begin</att> and (or) <att>end</att> attributes are specified on a
+<el>region</el> element, then they specify the beginning and (or) ending points
+of a time interval during which the region is eligible for activation and with
+respect to which animation child elements of the region are timed.
+If specified, these begin and end points are relative to the time
+interval of the nearest ancestor element associated with a time
+interval, irregardless of whether that interval is explicit or implied.</p>
+<p>The nearest ancestor element of a <el>region</el> element that is associated
+with a time interval is the document instance's root <el>tt</el> element.</p>
+<p>If a <att>dur</att> attribute is specified on the <el>region</el> element, then it
+specifies the simple duration of the region.</p>
+<p>For the purpose of determining the semantics of presentation processing, a
+region that is temporally inactive must not produce any visible marks when
+presented on a visual medium.</p>
+<note role="motivation">
+<p>A <el>region</el> element may be associated with a time interval for two
+purposes: (1) in order to temporally bound the presentation of the region and
+its content, and (2) to provide a temporal context in which animations of region
+styles may be effected.</p>
+<p>For example, an author may wish a region that is otherwise empty, but
+may have a visible background color to be presented starting at some time and
+continuing over the region's duration.  The simple duration of the region serves
+additionally to scope the presentation effects of content that is targeted to the
+region. An author may also wish to move a region within the root container
+extent or change a region's background color by means of animation effects. In
+both of these cases, it is necessary to posit an active time interval for a
+region.</p>
+</note>
+<p>If no <att>timeContainer</att> attribute is specified on
+a <el>region</el> element, then it must be interpreted as having
+<emph>parallel</emph> time containment semantics.</p>
+<p>If a <loc
+href="#metadata-attribute-role"><att>ttm:role</att></loc> attribute is
+specified on a <el>region</el> element, then it must adhere to the
+value syntax defined by <specref
+ref="metadata-attribute-role-syntax"/>, and where the role(s) identified
+by this attribute expresses the semantic role(s) of the region
+independently from the semantic role(s) of any content targeted to
+(associated with) the region.</p>
+</div3>
+</div2>
+<div2 id="layout-attribute-vocabulary">
+<head>Layout Attribute Vocabulary</head>
+<p>This section defines the <specref ref="layout-attribute-region"/> attribute used with content elements.</p>
+<div3 id="layout-attribute-region">
+<head>region</head>
+<p>The <att>region</att> attribute is used to reference a <el>region</el>
+element which defines a space or area into which a content element is intended to be flowed.</p>
+<p>The <att>region</att> attribute may be specified by an instance of the following
+element types:</p>
+<ulist>
+<item><p><loc href="#document-structure-vocabulary-body"><el>body</el></loc></p></item>
+<item><p><loc href="#content-vocabulary-div"><el>div</el></loc></p></item>
+<item><p><loc href="#content-vocabulary-p"><el>p</el></loc></p></item>
+<item><p><loc href="#content-vocabulary-span"><el>span</el></loc></p></item>
+</ulist>
+<note role="seealso">
+<p>See <specref ref="semantics-region-layout"/> below for further information on content
+flow in a region.</p>
+</note>
+</div3>
+</div2>
+<div2 id="semantics-region-layout">
+<head>Region Layout and Presentation</head>
+<p>This section defines the semantics of region layout and
+presentation in terms of a standard processing model as
+follows:</p>
+<ulist>
+<item><p><specref ref="semantics-default-region"/></p></item>
+<item><p><specref ref="semantics-region-layout-step-1"/></p></item>
+<item><p><specref ref="semantics-region-layout-step-2"/></p></item>
+<item><p><specref ref="semantics-region-layout-example"/></p></item>
+</ulist>
+<p>Any
+implementation is permitted provided that the externally observable
+results are consistent with the results produced by this model.
+</p>
+<div3 id="semantics-default-region">
+<head>Default Region</head>
+<p>If a TTML document instance does not specify a
+<loc href="#layout-vocabulary-region"><el>region</el></loc> element,
+then a <emph>default region</emph> is implied with the following characteristics:</p>
+<ulist>
+<item>
+<p>the identity of the default region is considered to be anonymous;</p>
+</item>
+<item>
+<p>the extent of the default region is the same as the root container
+region;</p>
+</item>
+<item>
+<p>the temporal interval of the default region is the same as temporal
+interval of the document instance;</p>
+</item>
+</ulist>
+<p>Furthermore, if no <loc
+href="#layout-vocabulary-region"><el>region</el></loc> element was
+specified, then the <loc
+href="#layout-attribute-region"><att>region</att></loc> attribute must
+not be specified on any content element in the document
+instance.</p>
+<p>If a default region is implied for a given document instance, then
+the <loc href="#document-structure-vocabulary-body"><el>body</el></loc> element
+is implicitly targeted to (associated with) the default region.</p>
+<p>When implying a default region, the document instance is to be
+treated as if a <loc
+href="#layout-vocabulary-region"><el>region</el></loc> element and its
+parent <loc href="#layout-vocabulary-layout"><el>layout</el></loc>
+element were specified in a <loc
+href="#document-structure-vocabulary-head"><el>head</el></loc>
+element, and a matching <loc
+href="#layout-attribute-region"><att>region</att></loc> attribute were
+specified on the <loc
+href="#document-structure-vocabulary-body"><el>body</el></loc> element
+as shown in the following example:</p>
+<table id="semantics-default-region-example" role="example">
+<caption>Example &ndash; Implied Default Region</caption>
+<tbody>
+<tr>
+<td>
+<eg>
+&lt;tt xml:lang="" xmlns="http://www.w3.org/ns/ttml"&gt;
+  &lt;head&gt;
+    <phrase role="strong">&lt;layout&gt;
+      &lt;region xml:id="anonymous"/&gt;
+    &lt;/layout&gt;</phrase>
+  &lt;/head&gt;
+  &lt;body <phrase role="strong">region="anonymous"</phrase>/&gt;
+&lt;/tt&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, a default <el>region</el> element and <att>region</att>
+attribute are implied. In addition, a <el>layout</el> container element is implied for
+the implied <el>region</el> element.</p>
+</note>
+</div3>
+<div3 id="semantics-region-layout-step-1">
+<head>Intermediate Synchronic Document Construction</head>
+<p>For the purposes of performing presentation processing, the active time
+duration of a document instance is divided into a sequence of time coordinates where at
+each time coordinate, some element becomes temporally active or inactive,
+then, at each such time coordinate, a document
+instance is mapped from its original, source
+form, <emph>DOC<sub>source</sub></emph>, 
+to an intermediate
+synchronic document form,
+<emph>DOC<sub>inter</sub></emph>, as follows:</p>
+<olist>
+<item>
+<p>for each temporally active region <emph>R</emph>, replicate the
+sub-tree
+ of <emph>DOC<sub>source</sub></emph>
+headed by the <el>body</el> element;</p>
+</item>
+<item>
+<p>evaluating this sub-tree in a postorder traversal, prune elements if they
+are not a content element, if they are temporally inactive, if they are empty,
+or if they aren't associated with region <emph>R</emph>;</p>
+</item>
+<item>
+<p>if the pruned sub-tree is non-empty, then reparent it to the <emph>R</emph>
+element;</p>
+</item>
+<item>
+<p>finally, after completing the above steps, prune the original <el>body</el>
+element from the intermediate document, then prune all <att>region</att>,
+<att>begin</att>, <att>end</att>, and <att>dur</att> attributes, which are no
+longer semantically relevant;</p>
+</item>
+</olist>
+<p>A content element is associated with a region according
+to the following ordered rules, where the first rule satisfied
+is used and remaining rules are skipped:</p>
+<olist>
+<item><p>if the element specifies a <loc
+href="#layout-attribute-region"><att>region</att></loc> attribute,
+then the element is associated with the region referenced by that
+attribute;</p></item>
+<item><p>if some ancestor of that element specifies a <loc
+href="#layout-attribute-region"><att>region</att></loc> attribute,
+then the element is associated with the region referenced by the most
+immediate ancestor that specifies this attribute;</p></item>
+<item><p> if the element contains a descendant element that
+specifies a <loc
+href="#layout-attribute-region"><att>region</att></loc> attribute,
+then the element is associated with the region referenced by that
+attribute;</p></item>
+<item><p>if a default region was implied (due to the absence of any
+<loc href="#layout-vocabulary-region"><el>region</el></loc> element),
+then the element is associated with the default region;</p></item>
+<item><p>the element is not associated with any region.</p></item>
+</olist>
+<p>The pseudo-code shown in <specref ref="content-hierarchy-region-mapping"/>
+provides one possible algorithm that implements these processing steps.</p>
+<table id="content-hierarchy-region-mapping" role="example">
+<caption>Example &ndash; Content Hierarchy Region Mapping</caption>
+<tbody>
+<tr>
+<td>
+<eg>
+PREPARE-CONTENT ( D ) := 
+  foreach R in SELECT ( D, "/tt/head/layout/region" )
+    if TEMPORALLY-ACTIVE? ( R )
+      APPEND-CHILDREN ( R, SELECT ( D, "/tt/body" ) )
+      foreach E in POSTORDER-TRAVERSE ( R )
+        if ! CONTENT-ELEMENT? ( E ) or ! TEMPORALLY-ACTIVE? ( E ) or EMPTY? ( E ) or REGION-OF ( E ) != R
+            then PRUNE ( E )
+  PRUNE ( SELECT ( D, "/tt/body" ) )
+  PRUNE ( SELECT ( D, "//*/@region" ) )
+  PRUNE ( SELECT ( D, "//*/@begin" ) )
+  PRUNE ( SELECT ( D, "//*/@end" ) )
+  PRUNE ( SELECT ( D, "//*/@dur" ) )
+ 
+REGION-OF ( E ) :=
+  if NULL? ( E )
+    return NULL
+  else if HAS-ATTRIBUTE? ( E, "region" )
+    return VALUE-OF-ATTRIBUTE ( E, "region" )
+  else
+    return REGION-OF ( PARENT-OF ( E ) )
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>The result of performing the processing described above will be a sequence of
+<emph>N</emph> intermediate  synchronic
+document instances,
+<emph>DOC<sub><phrase>inter<sub>0</sub></phrase></sub></emph> &hellip;
+<emph>DOC<sub><phrase>inter<sub>N&minus;1</sub></phrase></sub></emph>.</p>
+</div3>
+<div3 id="semantics-region-layout-step-2">
+<head>Synchronic Flow Processing</head>
+<p>Subsequent to performing a temporal (synchronic) slice and subsequent
+remapping of regionally selected content hierarchy, the resulting intermediate
+synchronic document is subjected to a flow transformation step that produces 
+a rooted flow object tree represented as 
+an XSL FO document instance as defined by <bibref ref="xsl11"/>,
+and semantically extended by TTML specific style properties that have no XSL
+FO counterpart.</p>
+<note>
+<p>In this section, the use of XSL FO is intended to be conceptual only, employed
+solely for the purpose of defining the normative presentation semantics of
+TTML. An actual implementation of this algorithm is not required to create or process
+XSL FO representations. In particular, it is possible to implement these semantics
+using alternative presentation models, such as Cascading Style Sheets (CSS).</p>
+</note>
+<p>Each intermediate synchronic  document produced by <specref
+ref="semantics-region-layout-step-1"/> is mapped 
+<!-- changed for future CSS compatibility 
+to an XSL FO document instance, <emph>F</emph>, as follows:</p>
+-->
+to a styled document <emph>F</emph> consistent with an XSL FO document instance, as follows</p>
+<olist>
+<item>
+<p>perform the following ordered sub-steps to create anonymous spans:</p>
+<olist>
+<item><p>for each significant text node in a content element,
+synthesize an anonymous span to enclose the text node, substituting
+the new anonymous span for the original text node child in its sibling
+and parent hierarchy;</p></item>
+<item><p>for each contiguous sequence of anonymous spans, replace the
+sequence with a single anonymous span which contains a sequence of
+text nodes representing the individual text node children of the
+original sequence of anonymous spans;</p></item>
+<item><p>for each span element whose child is a single anonymous span,
+replace the anonymous span with its sequence of child text
+nodes;</p></item>
+</olist>
+</item>
+<item>
+<p>resolve styles according to <specref
+ref="semantics-style-resolution-process-overall"/>;</p>
+</item>
+<item>
+<p>map the <el>tt</el> element to an <el>fo:root</el> element, populated
+initially with an <el>fo:layout-master-set</el> element that contains a valid
+<el>fo:simple-page-master</el> that, in turn, contains an
+<el>fo:region-body</el> child, where the root container extent expressed on the
+<el>tt</el> element is mapped to <att>page-width</att> and
+<att>page-height</att> attributes on the <el>fo:simple-page-master</el>
+element;</p>
+</item>
+<item>
+<p>map the <el>layout</el> element to an <el>fo:page-sequence</el> element and a
+child <el>fo:flow</el> element that reference the page master and page region
+defined by the simple page master produced above;</p>
+</item>
+<item>
+<p>map each non-empty <el>region</el> element to an <el>fo:block-container</el>
+element with an <att>absolute-position</att> attribute with value
+<code>absolute</code>, and where the region's position and extent are mapped to equivalent
+<att>top</att>, <att>left</att>, <att>width</att>, and <att>height</att>
+attributes;</p>
+</item>
+<item>
+<p>for each <el>body</el>, <el>div</el>, and <el>p</el> element that is not
+associated with a <att>tts:display</att> style property with the value
+<code>none</code>, map the element to a distinct <el>fo:block</el> element,
+populating the style properties of <el>fo:block</el> by using the computed
+style set associated with each original TTML content element;</p>
+</item>
+<item>
+<p>for the resulting <el>fo:block</el> formatting object
+produced in the previous step that corresponds to the <el>body</el>
+element, synthesize and append to the end of its children an empty
+  <el>fo:block</el> with the following attributes:
+<att>space-after.optimum</att>, <att>space-after.maximum</att>, and
+<att>space-after.conditionality</att>, where the value of the former
+two attributes is the height or width of the containing
+<el>fo:block-container</el> element, whichever of these is designated
+as the block progression dimension, and where the value of the last is
+<code>retain</code>;</p>
+</item>
+<item>
+<p>for each <el>span</el> element that is not
+associated with a <att>tts:display</att> style property with the value
+<code>none</code> and for each anonymous
+span that is a child of a <el>p</el> or <el>span</el> element,
+map the element or
+sequence of character items to a distinct <el>fo:inline</el> element,
+populating the style properties of <el>fo:inline</el> by using the computed
+style set associated with each original TTML content element
+or anonymous span;</p>
+</item>
+<item>
+<p>for each <el>br</el> element that is not
+associated with a <att>tts:display</att> style property with the value
+<code>none</code>, map the element to
+a distinct <el>fo:character</el> element having the following
+properties:</p>
+<ulist>
+<item>
+<p><code>character="&amp;#x000A;"</code></p>
+</item>
+<item>
+<p><code>suppress-at-line-break="retain"</code></p>
+</item>
+</ulist>
+</item>
+<item>
+<p>for each TTML style property attribute in some computed
+style set that
+has no counterpart in <bibref ref="xsl11"/>, map that attribute directly through
+to the relevant formatting object produced by the input TTML content element to
+which the style property applies;</p>
+</item>
+<item>
+<p>optionally, synthesize a unique <att>id</att> attribute on each resulting
+formatting object element that relates that element to the input element that
+resulted in that formatting object element;</p>
+</item>
+</olist>
+ <!-- old definition
+ <p> For each resulting XSL FO document instance
+  <emph>DOC<sub>FO</sub></emph>,
+if processing
+requires presentation on a visual medium, then apply the formatting semantics
+prescribed by <bibref ref="xsl11"/> in order to produce an XSL FO area tree that
+may then be subsequently rendered onto the visual medium.</p>
+<note role="elaboration">
+<p>In the XSL FO area tree produced by formatting
+<emph>DOC<sub>FO</sub></emph>, the <code>page-viewport-area</code>,
+which is generated by <code>fo:page-sequence</code> element by
+reference to the sole generated <code>fo:simple-page-master</code>
+element, corresponds to the <emph>root container region</emph> defined
+above in <specref ref="definitions"/>.</p>
+</note>
+<note>
+<p>Due to the possible presence of TTML style properties
+or style property values in a given DFXP document instance for which
+there is no <bibref ref="xsl11"/> counterpart, the use of a compliant <bibref ref="xsl11"/> formatting processor
+is not necessarily sufficient to satisfy the presentation
+semantics defined by this specification.</p>
+</note>
+--> 
+  <p>For each resulting document instance F, if processing requires presentation on a 
+  visual medium, then apply formatting and rendering semantics consistent with that 
+  prescribed by <bibref ref="xsl11"/>.</p>
+<note role="elaboration">
+<p>In an XSL FO area tree produced by formatting <emph>F</emph> using 
+an <bibref ref="xsl11"/> formatting processor, 
+the <code>page-viewport-area</code>,
+which is generated by <code>fo:page-sequence</code> element by
+reference to the sole generated <code>fo:simple-page-master</code>
+element, would correspond to the <emph>root container region</emph> defined
+above in <specref ref="definitions"/>.</p>
+</note>
+<note>
+<p>
+  Due to the possible presence of TTML style properties or style property values
+  in a given TTML document instance for which there is no <bibref ref="xsl11"/> counterpart,
+  Implementors should recognize that it is the layout model of <bibref ref="xsl11"/> that is being referenced
+  by this specification, not the requirement to use a compliant <bibref ref="xsl11"/> formatting processor,
+  since such would not necessarily be sufficient to satisfy the full presentation semantics
+  defined by this specification, and would contain a large number of features not needed to
+  implement the presentation semantics of TTML.</p>
+</note>
+</div3>
+<div3 id="semantics-region-layout-example">
+<head>Elaborated Example (Informative)</head>
+<p>An example of the processing steps described above is elaborated below, starting with <specref
+ref="region-mapping-example-1-s"/>.</p>
+<table id="region-mapping-example-1-s" role="example">
+<caption>Example &ndash; Sample Source Document</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">&dfxp-ex1;</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>In the above document, the content hierarchy consists of two divisions, each
+containing two paragraphs. This content is targeted (selected into) one of two
+non-overlapping regions that are styled identically except for their position
+and their foreground colors, the latter of which is inherited by and applies to
+the (and, in this case, anonymous) spans reparented into the regions.</p>
+<p>The following, first intermediate document shows the synchronic state at time
+interval [0,1), during which time only division <code>d1</code> is temporally active,
+and where paragraphs <code>p1</code> and <code>p2</code> (and their ancestors)
+are selected into regions <code>r1</code> and <code>r2</code>, respectively.</p>
+<note>
+<p>The intermediate documents shown below are not valid TTML document instances,
+but rather, are representations of possible internal processing states used for
+didactic purposes.</p>
+</note>
+<table id="region-mapping-example-1-i0" role="example">
+<caption>Example &ndash; Intermediate Document &ndash; [0s,1s)</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">&dfxp-ex1-x-0;</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>
+  <!-- old text 
+  An XSL FO document instance produced by performing flow processing
+  upon the first intermediate document is shown below.
+  -->
+  An XSL FO document instance that would yield rendering consistent with TTML, and 
+  which may be produced by performing flow processing upon the first intermediate 
+  document is illustrated below.
+</p>
+<table id="region-mapping-example-1-f0" role="example">
+<caption>Example &ndash; XSL FO Document &ndash; [0s,1s)</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">&dfxp-ex1-p-0;</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>The following, second intermediate document shows the synchronic state at
+time interval [1,2), at which time both divisions <code>d1</code> and
+<code>d2</code> are temporally active, and where paragraphs <code>p1</code> and
+<code>p4</code> (and their ancestors) are selected into region <code>r1</code>
+and paragraphs <code>p2</code> and <code>p3</code> (and their ancestors) are
+selected into region <code>r2</code>.</p>
+<table id="region-mapping-example-1-i1" role="example">
+<caption>Example &ndash; Intermediate Document &ndash; [1s,2s)</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">&dfxp-ex1-x-1;</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>The following, third intermediate document shows the synchronic state at time
+interval [2,3), at which time only division <code>d2</code> is temporally active,
+and where paragraphs <code>p4</code> and <code>p3</code> (and their ancestors)
+are selected into regions <code>r1</code> and <code>r2</code>, respectively.</p>
+<table id="region-mapping-example-1-i2" role="example">
+<caption>Example &ndash; Intermediate Document &ndash; [2s,3s)</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">&dfxp-ex1-x-2;</eg>
+</td>
+</tr>
+</tbody>
+</table>
+</div3>
+</div2>
+<div2 id="semantics-line-layout">
+<head>Line Layout</head>
+  <!--
+<p>The semantics of line layout, including line breaking, defined by 
+<bibref ref="xsl11"/> apply to the performance of the composition and layout of
+lines for presentation processing of a document instance on a visual medium.</p>
+-->
+  
+<p>If a profile that applies to a document instance
+requires use of the <loc
+href="#feature-lineBreak-uax14">#lineBreak-uax14</loc> feature
+(i.e., the value attribute for the feature is specified as <code>use</code>), then
+the recommendations defined by <loc
+href="http://www.unicode.org/unicode/reports/tr14/#Algorithm">Line
+Breaking Algorithm</loc> <bibref ref="uax14"/> apply when performing
+line layout on the content of the document instance.</p>
+</div2>
+</div1>
+<div1 id="timing">
+<head>Timing</head>
+<p>This section specifies the <emph>timing</emph> matter of the core
+vocabulary catalog, where
+timing is to be understood as a separable layer of information that applies to
+content and that denotes authorial intentions about the temporal presentation of
+that content.</p>
+<div2 id="timing-element-vocabulary">
+<head>Timing Element Vocabulary</head>
+<p>No timing related element vocabulary is defined for use in the core
+vocabulary catalog.</p>
+</div2>
+<div2 id="timing-attribute-vocabulary">
+<head>Timing Attribute Vocabulary</head>
+<p>This section defines the following basic timing attributes for use with timed elements:</p>
+<ulist>
+<item><p><specref ref="timing-attribute-begin"/></p></item>
+<item><p><specref ref="timing-attribute-end"/></p></item>
+<item><p><specref ref="timing-attribute-dur"/></p></item>
+</ulist>
+<p>In addition, this section defines the <specref
+ref="timing-attribute-timeContainer"/> attribute for use with timed elements
+that serve simultaneously as timing containers.</p>
+<div3 id="timing-attribute-begin">
+<head>begin</head>
+<p>The <att>begin</att> attribute is used to specify the begin
+point of a temporal interval associated with a timed element. If
+specified, the value of a <att>begin</att> attribute must adhere to
+a &lt;timeExpression&gt; specification as defined by <specref
+ref="timing-value-timeExpression"/>.</p>
+<p>The begin point of a temporal interval is included in the
+interval; i.e., the interval is left-wise closed.</p>
+<p>The semantics of the <att>begin</att> attribute are those defined
+by <bibref ref="smil21"/>, &sect; 10.4.1,
+while taking into account any overriding semantics defined by this specification.</p>
+</div3>
+<div3 id="timing-attribute-end">
+<head>end</head>
+<p>The <att>end</att> attribute is used to specify the ending point
+of a temporal interval associated with a timed element. If
+specified, the value of an <att>end</att> attribute must adhere to a
+&lt;timeExpression&gt; specification as defined by <specref
+ref="timing-value-timeExpression"/>.</p>
+<p>The ending point of a temporal interval is not included in the
+interval; i.e., the interval is right-wise open.</p>
+<p>The presentation effects of a non-empty active
+temporal interval include the frame immediately prior to the frame
+(or tick) equal to or immediately following the time specified by the ending
+point, but do not extend into this latter frame (or tick).</p>
+<note role="example">
+<p>For example, if an active interval is [10s,10.33333s), and the
+frame rate is 30 frames per second, then the presentation effects of the interval
+are limited to frames 300 through 309 only (assuming that 0s corresponds
+with frame 0). The same holds if the active interval is specified
+as [300f,310f).</p>
+</note>
+<p>The semantics of the <att>end</att> attribute are those defined
+by <bibref ref="smil21"/>, &sect; 10.4.1,
+while taking into account any overriding semantics defined by this specification.</p>
+</div3>
+<div3 id="timing-attribute-dur">
+<head>dur</head>
+<p>The <att>dur</att> attribute is used to specify the duration of a
+temporal interval associated with a timed element. If specified,
+the value of a <att>dur</att> attribute must adhere to a
+&lt;timeExpression&gt; specification as defined by <specref
+ref="timing-value-timeExpression"/>.</p>
+<note role="clarification">
+<p>When the <code>clock-time</code> form of a &lt;timeExpression&gt; specification
+is used with a <att>dur</att> attribute, it is intended to be interpreted as
+a difference between two implied clock time expressions.</p>
+</note>
+<p>When a TTML document instance specifies the use of the
+<code>smpte</code> time base and <code>discontinuous</code> marker
+mode, the <att>dur</att> attribute must not be specified on any
+element.</p>
+<p>The semantics of the <att>dur</att> attribute are those defined
+by <bibref ref="smil21"/>, &sect; 10.4.1,
+while taking into account any overriding semantics defined by this specification.</p>
+<note role="elaboration">
+<p>In the context of the subset of <bibref ref="smil21"/> semantics supported by
+this specification, the active duration of an element that specifies both
+<att>end</att> and <att>dur</att> attributes is equal to the lesser of the value of
+the <att>dur</att> attribute and the difference between the value of the
+<att>end</att> attribute and the element's begin time.</p>
+</note>
+</div3>
+<div3 id="timing-attribute-timeContainer">
+<head>timeContainer</head>
+<p>The <att>timeContainer</att> attribute is used to specify a local temporal
+context by means of which timed child elements are temporally situated.</p>
+<p>If specified, the value of a <att>timeContainer</att> attribute must be one
+of the following:</p>
+<ulist>
+<item><p><code>par</code></p></item>
+<item><p><code>seq</code></p></item>
+</ulist>
+<p>If the time container semantics of an element instance is <code>par</code>,
+then the temporal intervals of child elements are considered to apply in
+parallel, i.e., simultaneously in time. Furthermore, the specification of
+the time interval of each child element is considered to be relative to the temporal
+interval of the container element instance.</p>
+<p>If the time container semantics of an element instance is <code>seq</code>,
+then the temporal intervals of child elements are considered to apply in
+sequence, i.e., sequentially in time. Furthermore, the specification of
+the time interval of each child element is considered to be relative to the temporal
+interval of its sibling elements, unless it is the first child element, in which case
+it is considered to be relative to the temporal interval of the container
+element instance.</p>
+<p>Each time container is considered to constitute an independent time base, i.e.,
+time coordinate system.</p>
+<p>If a <att>timeContainer</att> attribute is not specified on an element that
+has time container semantics, then <code>par</code> time container semantics must apply.</p>
+<p>Time container semantics applies only to the following element types:</p>
+<ulist>
+<item><p><loc href="#document-structure-vocabulary-body"><el>body</el></loc></p></item>
+<item><p><loc href="#content-vocabulary-div"><el>div</el></loc></p></item>
+<item><p><loc href="#content-vocabulary-p"><el>p</el></loc></p></item>
+<item><p><loc href="#layout-vocabulary-region"><el>region</el></loc></p></item>
+<item><p><loc href="#content-vocabulary-span"><el>span</el></loc></p></item>
+</ulist>
+<p>The semantics of parallel and sequential time
+containment are those defined by <bibref ref="smil21"/>, &sect; 10.4.2,
+while taking into account any overriding semantics defined by this specification.</p>
+</div3>
+</div2>
+<div2 id="timing-time-value-expressions">
+<head>Time Value Expressions</head>
+<p>Timing attribute values include the use of the following expressions:</p>
+<ulist>
+<item><p><specref ref="timing-value-timeExpression"/></p></item>
+</ulist>
+<div3 id="timing-value-timeExpression">
+<head>&lt;timeExpression&gt;</head>
+<p>A &lt;timeExpression&gt; is used to specify a coordinate along
+some time base, where the applicable time base is determined by the
+<att>ttp:timeBase</att> parameter.</p>
+<note role="example">
+<p>See <specref ref="parameter-attribute-timeBase"/>, <specref
+ref="parameter-attribute-frameRate"/>, <specref
+ref="parameter-attribute-subFrameRate"/>, and <specref
+ref="parameter-attribute-tickRate"/> for further information on
+explicit specification of time base, frame rate, sub-frame rate, and
+tick rate.</p>
+</note>
+<table id="timeExpression-syntax" role="syntax">
+<caption>Syntax Representation &ndash; &lt;timeExpression&gt;</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;timeExpression&gt;
+  : clock-time
+  | offset-time
+
+clock-time
+  : hours ":" minutes ":" seconds ( fraction | ":" frames ( "." sub-frames )? )?
+
+offset-time
+  : time-count fraction? metric
+
+hours
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc> <loc href="#style-value-digit">&lt;digit&gt;</loc>
+  | <loc href="#style-value-digit">&lt;digit&gt;</loc> <loc href="#style-value-digit">&lt;digit&gt;</loc> <loc href="#style-value-digit">&lt;digit&gt;</loc>+
+
+minutes | seconds
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc> <loc href="#style-value-digit">&lt;digit&gt;</loc>
+
+frames
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc> <loc href="#style-value-digit">&lt;digit&gt;</loc>
+  | <loc href="#style-value-digit">&lt;digit&gt;</loc> <loc href="#style-value-digit">&lt;digit&gt;</loc> <loc href="#style-value-digit">&lt;digit&gt;</loc>+
+
+sub-frames
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc>+
+
+fraction
+  : "." <loc href="#style-value-digit">&lt;digit&gt;</loc>+
+
+time-count
+  : <loc href="#style-value-digit">&lt;digit&gt;</loc>+
+
+metric
+  : "h"                 // hours
+  | "m"                 // minutes
+  | "s"                 // seconds
+  | "ms"                // milliseconds
+  | "f"                 // frames
+  | "t"                 // ticks
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<!--
+<p>If a &lt;timeExpression&gt; is expressed in terms of an
+<emph>offset-time</emph> and no <emph>metric</emph> term is specified,
+then the default metric specified by a
+<att>ttp:defaultTimeMetric</att> parameter is used. If no
+default metric is specified, then the time count must be interpreted
+as seconds.</p>
+-->
+<p>If a &lt;timeExpression&gt; is expressed in terms of a
+<emph>clock-time</emph>, then leading zeroes are used when expressing hours,
+minutes, seconds, and frames less than 10. Minutes are constrained to the range
+[0&hellip;59], while seconds are constrained to [0&hellip;60], where the value 60
+applies only to leap seconds.</p>
+<p>If a &lt;timeExpression&gt; is expressed in terms of a
+<emph>clock-time</emph> and a <emph>frames</emph> term is specified,
+then the value of this term must be constrained to the interval
+[0&hellip;<emph>F-1</emph>], where <emph>F</emph> is the frame rate
+determined by the <att>ttp:frameRate</att> parameter as defined
+by <specref ref="parameter-attribute-frameRate"/>.</p>
+<p>If a &lt;timeExpression&gt; is expressed in terms of a
+<emph>clock-time</emph> and a <emph>sub-frames</emph> term is
+specified, then the value of this term must be constrained to the
+interval [0&hellip;<emph>S-1</emph>], where <emph>S</emph> is the
+sub-frame rate determined by the <att>ttp:subFrameRate</att> parameter as defined by <specref
+ref="parameter-attribute-subFrameRate"/>.</p>
+</div3>
+</div2>
+<div2 id="timing-time-intervals">
+<head>Time Intervals</head>
+<p>The semantics of time containment, durations, and intervals defined by
+<bibref ref="smil21"/> apply to the interpretation of like-named timed elements and timing
+vocabulary defined by this specification, given the following
+constraints:</p>
+<ulist>
+<item>
+<p>The implicit duration of
+
+an anonymous span
+
+is defined as follows: if
+the
+
+anonymous span's
+
+parent time container is a parallel time container, then
+the implicit duration is equivalent to the <code>indefinite</code>
+duration value as defined by <bibref ref="smil21"/>; if the
+
+anonymous span's
+
+parent time container is a sequential time container, then the
+implicit duration is equivalent to zero.</p>
+</item>
+<item>
+<p>The implicit duration of a <el>body</el>, <el>div</el>, <el>p</el>,
+or <el>span</el> element is determined in accordance to (1) whether
+the element is a parallel or sequential time container, and (2) the
+semantics of <bibref ref="smil21"/> as applied to these time
+containers.</p>
+</item>
+<item>
+<p>The implicit duration of the <el>region</el> element is defined to
+be equivalent to the <code>indefinite</code>
+duration value as defined by <bibref ref="smil21"/>.</p>
+</item>
+<item>
+<p>If the governing time mode is <code>media</code> or
+<code>smpte</code> with mode <code>continuous</code>, then time
+expressions must be interpreted as
+equivalent to offset based timing
+in <bibref ref="smil21"/>, namely, as offsets from an implicit
+syncbase.</p>
+</item>
+<item>
+<p>If the governing time mode is <code>smpte</code> with mode
+<code>discontinuous</code>, then time expressions must be interpreted
+as equivalent to marker values produced by an external marker event
+source, in which case all time expressions are equivalent to event
+based timing in <bibref ref="smil21"/>.</p>
+</item>
+<item>
+<p>If the governing time mode is <code>clock</code>, then time
+expressions must be interpreted as equivalent to wallclock time
+expressions in <bibref ref="smil21"/>, where the applicable wallclock
+used is determined by the clock mode parameter.</p>
+</item>
+</ulist>
+</div2>
+</div1>
+<div1 id="animation">
+<head>Animation</head>
+<p>This section specifies the <emph>animation</emph> matter of the
+core vocabulary catalog, where
+animation is to be understood as a separable layer of information that combines
+timing and styling in order to denote authorial intention about (temporally) dynamic
+styling of content.</p>
+<div2 id="animation-element-vocabulary">
+<head>Animation Element Vocabulary</head>
+<p>The following elements specify the structure and principal animation aspects of a
+document instance:</p>
+<ulist>
+<item><p><specref ref="animation-vocabulary-set"/></p></item>
+</ulist>
+<div3 id="animation-vocabulary-set">
+<head>set</head>
+<p>The <el>set</el> element is used as a child element of a content
+element or a <el>region</el> element
+in order to express a discrete change of some style parameter value
+that applies over some time interval.</p>
+<p>The <el>set</el> element accepts as its children zero or more
+elements in the <code>Metadata.class</code> element group.</p>
+<table id="elt-syntax-set" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: set</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;set
+  <loc href="#timing-attribute-begin">begin</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#timing-attribute-dur">dur</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#timing-attribute-end">end</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>a single attribute in TT Style namespace</emph>}
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc href="#element-vocab-group-table">Metadata.class</loc>*
+&lt;/set&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="example">
+<p>The use of multiple <el>set</el> element children may be used to effect fade and
+position transitions.</p>
+</note>
+<p>An example of using the <el>set</el> element to animate content
+styling is illustrated below:</p>
+<table id="animation-vocabulary-set-example-1" role="example">
+<caption>Example Fragment &ndash; Content Style Animation</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+...
+&lt;p dur="5s" tts:color="yellow"&gt;
+<phrase role="strong">&lt;set begin="1s" dur="1s" tts:color="red"/&gt;</phrase>
+<phrase role="strong">&lt;set begin="2s" dur="1s" tts:color="green"/&gt;</phrase>
+<phrase role="strong">&lt;set begin="3s" dur="1s" tts:color="red"/&gt;</phrase>
+Text with Flashing Colors!
+&lt;/p&gt;
+...
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, the foreground color of the content "Text
+with Flashing Colors" is animated from yellow, to red, to green, to
+red, then back to yellow over a 5 second period.</p>
+</note>
+
+<p>An example of using the <el>set</el> element to animate region
+styling is illustrated below:</p>
+<table id="animation-vocabulary-set-example-2" role="example">
+<caption>Example Fragment &ndash; Region Style Animation</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;tt xml:lang="" xmlns="http://www.w3.org/ns/ttml"
+    xmlns:ttp="http://www.w3.org/ns/ttml#parameter"
+    xmlns:tts="http://www.w3.org/ns/ttml#styling"
+    ttp:cellResolution="40 16"&gt;
+    &lt;head&gt;
+      &lt;layout&gt;
+	&lt;region xml:id="r1" timeContainer="seq"&gt;
+	  <phrase role="strong">&lt;set dur="10s" tts:origin=" 8c 14c"/&gt;</phrase>
+	  <phrase role="strong">&lt;set dur="2s"  tts:origin=" 2c  2c"/&gt;</phrase>
+	  <phrase role="strong">&lt;set dur="3s"  tts:origin=" 8c 14c"/&gt;</phrase>
+	  <phrase role="strong">&lt;set dur="2s"  tts:origin="14c  4c"/&gt;</phrase>
+	  <phrase role="strong">&lt;set dur="10s" tts:origin=" 8c 14c"/&gt;</phrase>
+	  &lt;style tts:extent="24c 2c"/&gt;
+	&lt;/region&gt;
+      &lt;/layout&gt;
+    &lt;/head&gt;
+    &lt;body region="r1"&gt;...&lt;/body&gt;
+&lt;/tt&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, the root container region is divided into a
+cell grid of 40 columns and 16 rows. A region, <code>r1</code>, with
+dimensions of 24 columns and 2 rows is then positioned within the
+root container region, with its position varying over time in order to
+create an effect of moving the region, which may be desirable so as
+to avoid obscuring characters in an underlying video with captions.</p>
+</note>
+<note role="derivation">
+<p>The semantics of the <el>set</el> element
+are based upon that defined by <bibref ref="smil21"/>,
+&sect; 3.6.2.</p>
+</note>
+</div3>
+</div2>
+<div2 id="animation-attribute-vocabulary">
+<head>Animation Attribute Vocabulary</head>
+<p>No animation related attribute vocabulary is defined for use in the
+core vocabulary catalog.</p>
+</div2>
+</div1>
+<div1 id="metadata">
+<head>Metadata</head>
+<p>This section specifies the <emph>metadata</emph> matter of the core
+vocabulary catalog, where
+metadata is to be understood as a separable layer of information that applies to
+parameters, content,
+style, layout, timing, and even metadata itself, where the information
+represented by metadata takes one of two forms: (1) metadata defined by this
+specification for standardized use in a document instance, and (2) arbitrary
+metadata defined outside of the scope of this specification, whose use and
+semantics depend entirely upon an application's use of TTML content.</p>
+<div2 id="metadata-element-vocabulary">
+<head>Metadata Element Vocabulary</head>
+<p>The <specref ref="metadata-vocabulary-metadata"/> element serves as
+a generic container element for grouping metadata information.</p>
+<p>In addition, the following elements, all defined in the TT Metadata Namespace,
+provide standard representations for common metadata that is expected to be commonly
+used in a document instances:
+</p>
+<ulist>
+<item><p><specref ref="metadata-vocabulary-title"/></p></item>
+<item><p><specref ref="metadata-vocabulary-desc"/></p></item>
+<item><p><specref ref="metadata-vocabulary-copyright"/></p></item>
+<item><p><specref ref="metadata-vocabulary-agent"/></p></item>
+<item><p><specref ref="metadata-vocabulary-name"/></p></item>
+<item><p><specref ref="metadata-vocabulary-actor"/></p></item>
+</ulist>
+<div3 id="metadata-vocabulary-metadata">
+<head>metadata</head>
+<p>The <el>metadata</el> element functions as a generic container for metadata
+information.</p>
+<p>Metadata information may be expressed by a <el>metadata</el> element
+in one of two (non-mutually exclusive) manners: (1) by specifying one
+or more metadata attributes on the <el>metadata</el>
+element, and (2) by specifying one
+or more child elements
+in the <el>metadata</el> element
+that express metadata. Both types of metadata
+are referred to in this document as <emph>metadata items</emph>.</p>
+<table id="elt-syntax-metadata" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: metadata</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;metadata
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute in TT Metadata namespace</emph>}
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> ({<emph>any element in TT Metadata namespace</emph>}|{<emph>any element not in any TT namespace</emph>})*
+&lt;/metadata&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>The meaning of a specific metadata item must be evaluated in the
+context of where it appears. The core vocabulary catalog permits an
+arbitrary number of <el>metadata</el> element children of any
+content element type except for the
+<el>tt</el> element. See specific element
+vocabulary definitions for any constraints that apply to such
+usage.</p>
+</note>
+<p>The use of document metadata is illustrated by the following example.</p>
+<table id="metadata-vocabulary-metadata-example-1" role="example">
+<caption>Example Fragment &ndash; Document Metadata</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+...
+&lt;head&gt;
+  &lt;metadata xmlns:ttm="http://www.w3.org/ns/ttml#metadata"&gt;
+    &lt;ttm:title&gt;Document Metadata Example&lt;/ttm:title&gt;
+    &lt;ttm:desc&gt;This document employs document metadata.&lt;/ttm:desc&gt;
+  &lt;/metadata&gt;
+&lt;/head&gt;
+...
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+<p>The use of element metadata is illustrated by the following example.</p>
+<table id="metadata-vocabulary-metadata-example-2" role="example">
+<caption>Example Fragment &ndash; Element Metadata</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+...
+&lt;div&gt;
+  &lt;metadata xmlns:ttm="http://www.w3.org/ns/ttml#metadata"&gt;
+    &lt;ttm:title&gt;Chapter 6 &ndash; Sherlock Holmes Gives a Demonstration&lt;/ttm:title&gt;
+    &lt;ttm:desc&gt;Holmes shows Watson how the murderer entered the window.&lt;/ttm:desc&gt;
+  &lt;/metadata&gt;
+&lt;/div&gt;
+...
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p/>
+
+<p>The use of metadata attribute items is illustrated by the following example.</p>
+<table id="metadata-vocabulary-metadata-example-3" role="example">
+<caption>Example Fragment &ndash; Foreign Metadata Attribute Items</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+...
+&lt;div xmlns:ext="http://foo.bar.example.org/ttaf1#metadata"&gt;
+  &lt;metadata ext:ednote="remove this division prior to publishing"/&gt;
+&lt;/div&gt;
+...
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, a global attribute from a foreign (external)
+namespace is used to express a metadata attribute that applies
+semantically to the containing <el>div</el> element. Note that the
+attribute may also be expressed directly on the <el>div</el> element;
+however, in this case the author wishes to segregate certain metadata
+attributes by expressing them indirectly on <el>metadata</el>
+elements.</p>
+</note>
+<p/>
+<p>The use of foreign element metadata is illustrated by the following example.</p>
+<table id="metadata-vocabulary-metadata-example-4" role="example">
+<caption>Example Fragment &ndash; Foreign Element Metadata</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+...
+&lt;metadata
+  xmlns:dc="http://purl.org/dc/elements/1.1/"
+  xmlns:dcterms="http://purl.org/dc/terms/"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
+  &lt;dc:title&gt;Foreign Element Metadata Example&lt;/dc:title&gt;
+  &lt;dc:description&gt;Express metadata using elements in foreign namespace.&lt;/dc:description&gt;
+  &lt;dc:format xsi:type="dcterms:IMT"&gt;application/ttml+xml&lt;/dc:format&gt;
+&lt;/metadata&gt;
+...
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, a number of elements defined by the Dublin
+Core metadata vocabulary are used to express document level metadata.</p>
+</note>
+<p/>
+</div3>
+<div3 id="metadata-vocabulary-title">
+<head>ttm:title</head>
+<p>The <el>ttm:title</el> element is used to express a human-readable title of
+a specific element instance.</p>
+<table id="elt-syntax-metadata-title" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: ttm:title</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttm:title
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> #PCDATA
+&lt;/ttm:title&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="elaboration">
+<p>No specific use of the <el>ttm:title</el> element is defined by this specification.</p>
+</note>
+<p>Examples of the <att>ttm:title</att> element are shown above in
+<specref ref="metadata-vocabulary-metadata-example-1"/> and
+<specref ref="metadata-vocabulary-metadata-example-2"/>.</p>
+</div3>
+<div3 id="metadata-vocabulary-desc">
+<head>ttm:desc</head>
+<p>The <el>ttm:desc</el> element is used to express a human-readable description of
+a specific element instance.</p>
+<table id="elt-syntax-metadata-desc" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: ttm:desc</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttm:desc
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> #PCDATA
+&lt;/ttm:desc&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="elaboration">
+<p>No specific use of the <el>ttm:desc</el> element is defined by this specification.</p>
+</note>
+<p>Examples of the <att>ttm:desc</att> element are shown above in
+<specref ref="metadata-vocabulary-metadata-example-1"/> and
+<specref ref="metadata-vocabulary-metadata-example-2"/>.</p>
+</div3>
+<div3 id="metadata-vocabulary-copyright">
+<head>ttm:copyright</head>
+<p>The <el>ttm:copyright</el> element is used to express a human-readable copyright that
+applies to some scoping level.</p>
+<p>A copyright statement that applies to a document as a whole should appear as a
+child of the <el>head</el> element.</p>
+<table id="elt-syntax-metadata-copyright" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: ttm:copyright</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttm:copyright
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> #PCDATA
+&lt;/ttm:copyright&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="elaboration">
+<p>No specific use of the <el>ttm:copyright</el> element is defined by this specification.</p>
+</note>
+</div3>
+<div3 id="metadata-vocabulary-agent">
+<head>ttm:agent</head>
+<p>The <el>ttm:agent</el> element is used to define an agent for the purpose of associating
+content information with an agent who is involved in the production or expression of that content.</p>
+<p>The <el>ttm:agent</el> element accepts as its children zero or more <el>ttm:name</el> elements followed by
+zero or one <el>ttm:actor</el> element.</p>
+<p>At least one <el>ttm:name</el> element child should be specified that expresses a name for the
+agent, whether it be the name of a person, character, group, or organization.</p>
+<table id="elt-syntax-metadata-agent" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: ttm:agent</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttm:agent
+  <phrase role="reqattr">type</phrase> = (<emph>person</emph>|<emph>character</emph>|<emph>group</emph>|<emph>organization</emph>|<emph>other</emph>)
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> <loc href="#metadata-vocabulary-name">ttm:name</loc>*, <loc href="#metadata-vocabulary-actor">ttm:actor</loc>?
+&lt;/ttm:agent&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>A <att>type</att> attribute must be specified on each <el>ttm:agent</el> element, and,
+if specified, must have one of the following values:</p>
+<ulist>
+<item><p><el>person</el></p></item>
+<item><p><el>character</el></p></item>
+<item><p><el>group</el></p></item>
+<item><p><el>organization</el></p></item>
+<item><p><el>other</el></p></item>
+</ulist>
+<p>If the value of the <att>type</att> attribute is <code>character</code>, then the
+<el>ttm:agent</el> element instance should specify a <el>ttm:actor</el> child that
+specifies the agent that plays the role of the actor.</p>
+<p>A <att>ttm:agent</att> metadata item is considered to be significant only
+when specified as a child of the <el>head</el> element or as a child of a
+<el>metadata</el> element child of the <el>head</el> element.</p>
+<note role="elaboration">
+<p>A <el>ttm:agent</el> element instance is typically referenced using a <att>ttm:agent</att>
+attribute on a content element.</p>
+</note>
+<note role="elaboration">
+<p>If a character agent is played by multiple actors, then multiple character
+agents may be specified (and referenced) wherein different definitions of the
+character specify different actors.</p>
+</note>
+<p>The use of agent metadata is illustrated by the following example.</p>
+<table id="metadata-vocabulary-agent-example-1" role="example">
+<caption>Example Fragment &ndash; Agent Metadata</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+
+&lt;tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml" xmlns:ttm="http://www.w3.org/ns/ttml#metadata"&gt;
+  &lt;head&gt;
+    <phrase role="strong">&lt;ttm:agent xml:id="connery" type="person"&gt;</phrase>
+      &lt;ttm:name type="family"&gt;Connery&lt;/ttm:name&gt;
+      &lt;ttm:name type="given"&gt;Thomas Sean&lt;/ttm:name&gt;
+      &lt;ttm:name type="alias"&gt;Sean&lt;/ttm:name&gt;
+      &lt;ttm:name type="full"&gt;Sir Thomas Sean Connery&lt;/ttm:name&gt;
+    <phrase role="strong">&lt;/ttm:agent&gt;</phrase>
+    <phrase role="strong">&lt;ttm:agent xml:id="bond" type="character"&gt;</phrase>
+      &lt;ttm:name type="family"&gt;Bond&lt;/ttm:name&gt;
+      &lt;ttm:name type="given"&gt;James&lt;/ttm:name&gt;
+      &lt;ttm:name type="alias"&gt;007&lt;/ttm:name&gt;
+      &lt;ttm:actor agent="connery"/&gt;
+    <phrase role="strong">&lt;/ttm:agent&gt;</phrase>
+  &lt;/head&gt;
+  &lt;body&gt;
+    &lt;div&gt;
+      ...  
+      &lt;p <phrase role="strong">ttm:agent="bond"</phrase>&gt;I travel, a sort of licensed troubleshooter.&lt;/p&gt;
+      ...  
+    &lt;/div&gt;
+  &lt;/body&gt;
+&lt;/tt&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="explanation">
+<p>In the above example, two agents, a real (person) agent, Sean
+Connery, and a fictitious (character) agent, James Bond, are defined,
+where the latter is linked to the former by means of the a
+<el>ttm:actor</el> element. A reference is then made from content (the
+<el>p</el> element) to the character agent associated with
+(responsible for producing) that content. Note that in this example
+the <el>ttm:agent</el> metadata items are specified as immediate
+children of the document's <el>head</el> element rather than being
+placed in a container <el>metadata</el> element.</p>
+</note>
+</div3>
+<div3 id="metadata-vocabulary-name">
+<head>ttm:name</head>
+<p>The <el>ttm:name</el> element is used to specify a name of a person, character,
+group, or organization.</p>
+<table id="elt-syntax-metadata-name" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: ttm:name</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttm:name
+  <phrase role="reqattr">type</phrase> = (<emph>full</emph>|<emph>family</emph>|<emph>given</emph>|<emph>alias</emph>|<emph>other</emph>)
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> #PCDATA
+&lt;/ttm:name&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>A <att>type</att> attribute must be specified on each <el>ttm:name</el> element, and,
+if specified, must have one of the following values:</p>
+<ulist>
+<item><p><el>full</el></p></item>
+<item><p><el>family</el></p></item>
+<item><p><el>given</el></p></item>
+<item><p><el>alias</el></p></item>
+<item><p><el>other</el></p></item>
+</ulist>
+<p>The relationship between the type of a name and the syntactic expression of the name
+is not defined by this specification.</p>
+<p>Two examples of the <el>ttm:name</el> element are shown above in
+<specref ref="metadata-vocabulary-agent-example-1"/>.</p>
+</div3>
+<div3 id="metadata-vocabulary-actor">
+<head>ttm:actor</head>
+<p>The <el>ttm:actor</el> element is used to link the definition of a (role-based) character
+agent with another agent that portrays the character.</p>
+<table id="elt-syntax-metadata-actor" role="syntax">
+<caption>XML Representation &ndash; Element Information Item: ttm:actor</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+&lt;ttm:actor
+  <phrase role="reqattr">agent</phrase> = IDREF
+  <loc href="#content-attribute-id">xml:id</loc> = ID
+  <loc href="#content-attribute-lang">xml:lang</loc> = string
+  <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
+  {<emph>any attribute not in default or any TT namespace</emph>}&gt;
+  <emph>Content:</emph> EMPTY
+&lt;/ttm:actor&gt;
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<p>The <att>agent</att> attribute of a <el>ttm:actor</el> element must
+reference a <el>ttm:agent</el> element that denotes the person,
+group, or organization acting the part of a character.</p>
+<p>An example of the <el>ttm:actor</el> element is shown above in
+<specref ref="metadata-vocabulary-agent-example-1"/>.</p>
+</div3>
+</div2>
+<div2 id="metadata-attribute-vocabulary">
+<head>Metadata Attribute Vocabulary</head>
+<p>This section specifies the following attributes in the TT Metadata Namespace
+for use with the <el>metadata</el> element and with certain content elements:</p>
+<ulist>
+<item><p><specref ref="metadata-attribute-agent"/></p></item>
+<item><p><specref ref="metadata-attribute-role"/></p></item>
+</ulist>
+<note role="explanation">
+<p>Only certain metadata item attributes may be used with content elements. See
+the definitions of content elements to determine permissible usage.</p>
+</note>
+<div3 id="metadata-attribute-agent">
+<head>ttm:agent</head>
+<p>The <att>ttm:agent</att> attribute takes an <code>IDREFS</code>
+value, and is used with certain content elements to designate the
+agents that perform or are
+involved in the performance of the content.</p>
+<p>If specified, a <att>ttm:agent</att> attribute must reference
+<el>ttm:agent</el> element instances that appear
+as a descendent of the same document instance as
+that of the referring element.</p>
+<p>An example of the <att>ttm:agent</att> attribute is shown above in
+<specref ref="metadata-vocabulary-agent-example-1"/>.</p>
+</div3>
+<div3 id="metadata-attribute-role">
+<head>ttm:role</head>
+<p>The <att>ttm:role</att> attribute may be used by a content author
+to express
+the roles, functions, or characteristics
+of some content element that is so labeled.</p>
+<p>If specified, the value of this attribute must adhere to the following
+syntax, where
+the syntactic element <emph>S</emph> must adhere to production
+[3] <code>S</code> as defined by <bibref ref="xml10"/>&nbsp;&sect;
+2.3:</p>
+<table id="metadata-attribute-role-syntax" role="syntax">
+<caption>Syntax Representation &ndash; ttm:role</caption>
+<tbody>
+<tr>
+<td>
+<eg xml:space="preserve">
+ttm:role
+  role ( <emph>S</emph> role )*
+
+role
+  : "action"
+  | "caption"
+  | "description"
+  | "dialog"
+  | "expletive"
+  | "kinesic"
+  | "lyrics"
+  | "music"
+  | "narration"
+  | "quality"
+  | "sound"
+  | "source"
+  | "suppressed"
+  | "reproduction"
+  | "thought"
+  | "title"
+  | "transcription"
+  | extension-role
+
+extension-role
+  : "x-" token-char+
+
+token-char
+  : { XML NameChar }    // XML 1.1 Production [4a]
+</eg>
+</td>
+</tr>
+</tbody>
+</table>
+<note role="extensibility">
+<p>All values of <att>ttm:role</att> that do not start with the prefix
+<code>x-</code> are reserved for future standardization.</p>
+</note>
+</div3>
+</div2>
+</div1>
+</body>
+<back>
+<div1 id="reduced-infoset">
+<head>Reduced XML Infoset</head>
+<p><emph>This appendix is normative.</emph></p>
+<p>For the purposes of this specification, a Reduced XML Infoset is
+an XML Information Set <bibref ref="infoset"/> that consists of only the following information items
+and information item properties:</p>
+<div2 id="reduced-infoset-document">
+<head>Document Information Item</head>
+<ulist>
+<item><p><code>[document element]</code></p></item>
+</ulist>
+</div2>
+<div2 id="reduced-infoset-element">
+<head>Element Information Item</head>
+<ulist>
+<item><p><code>[namespace URI]</code></p></item>
+<item><p><code>[local name]</code></p></item>
+<item><p><code>[children]</code></p></item>
+<item><p><code>[attributes]</code></p></item>
+</ulist>
+<p>Child information items <code>[children]</code> are reduced to 
+only element and character information items.</p>
+</div2>
+<div2 id="reduced-infoset-attribute">
+<head>Attribute Information Item</head>
+<ulist>
+<item><p><code>[namespace URI]</code></p></item>
+<item><p><code>[local name]</code></p></item>
+<item><p><code>[normalized value]</code></p></item>
+</ulist>
+</div2>
+<div2 id="reduced-infoset-character">
+<head>Character Information Item</head>
+<ulist>
+<item><p><code>[character code]</code></p></item>
+</ulist>
+<p>Contiguous character information items are not required to be represented distinctly,
+but may be aggregated (chunked) into a sequence of character codes (i.e., a character string).</p>
+</div2>
+</div1>
+<div1 id="schemas">
+<head>Schemas</head>
+<p><emph>This appendix is normative.</emph></p>
+<p>This appendix specifies the following schemas for use with
+DFXP Content document instances:</p>
+<ulist>
+<item><p>Relax NG, Compact Syntax (RNC) Schema</p></item>
+<item><p>XML Schema Definition (XSD) Schema</p></item>
+</ulist>
+<p>In any case where a schema specified by this appendix differs from the
+normative definitions of document type, element type, or attribute type
+as defined by the body of this specification, then the body of this
+specification takes precedence.</p>
+<div2 id="dfxp-schema-rnc">
+<head>Relax NG Schema</head>
+<p>This section specifies a Relax NG Compact Syntax (RNC) <bibref ref="rng"/> based schema
+for DFXP Content, also available in a <loc href="rnc/schema.zip">ZIP
+Archive</loc>.</p>
+<div3 id="rnc-dfxp-driver-schema">
+<head>Driver</head>
+<eg xml:space="preserve">&rnc-dfxp-driver;</eg>
+</div3>
+<div3 id="rnc-dfxp-modules">
+<head>Modules</head>
+<div4 id="rnc-dfxp-animation-module">
+<head>Animation Module</head>
+<eg xml:space="preserve">&rnc-dfxp-animation-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-classes-module">
+<head>Classes Module</head>
+<eg xml:space="preserve">&rnc-dfxp-classes-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-content-module">
+<head>Content Module</head>
+<eg xml:space="preserve">&rnc-dfxp-content-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-core-attribs-module">
+<head>Core Attributes Module</head>
+<eg xml:space="preserve">&rnc-dfxp-core-attribs-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-datatypes-module">
+<head>Data Types Module</head>
+<eg xml:space="preserve">&rnc-dfxp-datatypes-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-document-module">
+<head>Document Module</head>
+<eg xml:space="preserve">&rnc-dfxp-document-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-head-module">
+<head>Header Module</head>
+<eg xml:space="preserve">&rnc-dfxp-head-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-layout-module">
+<head>Layout Module</head>
+<eg xml:space="preserve">&rnc-dfxp-layout-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-metadata-module">
+<head>Metadata Module</head>
+<eg xml:space="preserve">&rnc-dfxp-metadata-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-metadata-items-module">
+<head>Metadata Items Module</head>
+<eg xml:space="preserve">&rnc-dfxp-metadata-items-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-metadata-attribs-module">
+<head>Metadata Attributes Module</head>
+<eg xml:space="preserve">&rnc-dfxp-metadata-attribs-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-parameters-module">
+<head>Parameters Module</head>
+<eg xml:space="preserve">&rnc-dfxp-parameters-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-parameter-items-module">
+<head>Parameter Items Module</head>
+<eg xml:space="preserve">&rnc-dfxp-parameter-items-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-parameter-attribs-module">
+<head>Parameter Attributes Module</head>
+<eg xml:space="preserve">&rnc-dfxp-parameter-attribs-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-styling-attribs-module">
+<head>Styling Attributes Module</head>
+<eg xml:space="preserve">&rnc-dfxp-styling-attribs-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-styling-module">
+<head>Styling Module</head>
+<eg xml:space="preserve">&rnc-dfxp-styling-module;</eg>
+</div4>
+<div4 id="rnc-dfxp-timing-attribs-module">
+<head>Timing Attributes Module</head>
+<eg xml:space="preserve">&rnc-dfxp-timing-attribs-module;</eg>
+</div4>
+</div3>
+</div2>
+<div2 id="dfxp-schema-xsd">
+<head>XML Schema Definition (XSD) Schema</head>
+<p>This section specifies a W3C XML Schema Definition (XSD) <bibref ref="xsd-1"/> based schema
+for DFXP Content, also available in a <loc href="xsd/schema.zip">ZIP
+Archive</loc>.</p>
+<div3 id="xsd-dfxp-driver-schema">
+<head>Driver</head>
+<eg xml:space="preserve">&xsd-dfxp-driver;</eg>
+</div3>
+<div3 id="xsd-dfxp-modules">
+<head>Modules</head>
+<div4 id="xsd-dfxp-animation-module">
+<head>Animation Module</head>
+<eg xml:space="preserve">&xsd-dfxp-animation-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-content-module">
+<head>Content Module</head>
+<eg xml:space="preserve">&xsd-dfxp-content-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-core-attribs-module">
+<head>Core Attributes Module</head>
+<eg xml:space="preserve">&xsd-dfxp-core-attribs-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-datatypes-module">
+<head>Data Types Module</head>
+<eg xml:space="preserve">&xsd-dfxp-datatypes-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-document-module">
+<head>Document Module</head>
+<eg xml:space="preserve">&xsd-dfxp-document-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-head-module">
+<head>Header Module</head>
+<eg xml:space="preserve">&xsd-dfxp-head-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-layout-module">
+<head>Layout Module</head>
+<eg xml:space="preserve">&xsd-dfxp-layout-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-metadata-module">
+<head>Metadata Module</head>
+<eg xml:space="preserve">&xsd-dfxp-metadata-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-metadata-items-module">
+<head>Metadata Items Module</head>
+<eg xml:space="preserve">&xsd-dfxp-metadata-items-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-metadata-attribs-module">
+<head>Metadata Attributes Module</head>
+<eg xml:space="preserve">&xsd-dfxp-metadata-attribs-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-parameters-module">
+<head>Parameters Module</head>
+<eg xml:space="preserve">&xsd-dfxp-parameters-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-parameter-items-module">
+<head>Parameter Items Module</head>
+<eg xml:space="preserve">&xsd-dfxp-parameter-items-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-parameter-attribs-module">
+<head>Parameter Attributes Module</head>
+<eg xml:space="preserve">&xsd-dfxp-parameter-attribs-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-styling-attribs-module">
+<head>Styling Attributes Module</head>
+<eg xml:space="preserve">&xsd-dfxp-styling-attribs-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-styling-module">
+<head>Styling Module</head>
+<eg xml:space="preserve">&xsd-dfxp-styling-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-timing-attribs-module">
+<head>Timing Attributes Module</head>
+<eg xml:space="preserve">&xsd-dfxp-timing-attribs-module;</eg>
+</div4>
+<div4 id="xsd-dfxp-xml-attrs-module">
+<head>XML Attributes Module</head>
+<eg xml:space="preserve">&xsd-dfxp-xml-attrs-module;</eg>
+</div4>
+</div3>
+</div2>
+</div1>
+<div1 id="media-type-registration">
+<head>Media Type Registration</head>
+<p><emph>This appendix is normative.</emph></p>
+<p>This appendix registers a new MIME media type,
+"application/ttml+xml" in conformance with
+<loc href="http://www.ietf.org/rfc/rfc4288.txt">BCP 13</loc> and
+<loc
+href="http://www.w3.org/2002/06/registering-mediatype.html">W3CRegMedia</loc>.
+The information in this appendix is being submitted to the Internet
+Engineering Steering Group (IESG) for review, approval, and
+registration with the Internet Assigned Numbers Authority (IANA).</p>
+<glist>
+<gitem>
+<label>Type name:</label>
+<def>
+<p>application</p>
+</def>
+</gitem>
+<gitem>
+<label>Subtype name:</label>
+<def>
+<p>ttml+xml</p>
+</def>
+</gitem>
+<gitem>
+<label>Required parameters:</label>
+<def>
+<p>None.</p>
+</def>
+</gitem>
+<gitem>
+<label>Optional parameters:</label>
+<def>
+<glist>
+<gitem>
+<label>charset</label>
+<def>
+<p>Same as application/xml media type, as specified in <bibref
+ref="rfc3023"/> or its successors.</p>
+</def>
+</gitem>
+<gitem>
+<label>profile</label>
+<def>
+<p>The document profile of a TTML document may be specified using
+an optional <code>profile</code> parameter, which, if specified,
+the value of which must adhere to the syntax and semantics of
+<att>ttp:profile</att> parameter defined by
+Section
+<specref ref="parameter-attribute-profile"/>
+of the published specification.</p>
+</def>
+</gitem>
+</glist>
+</def>
+</gitem>
+<gitem>
+<label>Encoding considerations:</label>
+<def>
+<p>Same for application/xml. See <bibref ref="xml-media"/>, Section
+3.2.</p>
+</def>
+</gitem>
+<gitem>
+<label>Security considerations:</label>
+<def>
+<p>As with other XML types and as noted in
+<bibref ref="xml-media"/>
+Section 10, repeated expansion of maliciously constructed XML entities
+can be used to consume large amounts of memory, which may cause XML
+processors in constrained environments to fail.</p>
+<p>In addition, because of the extensibility features for TTML and of XML
+in general, it is possible that "application/ttml+xml" may describe content
+that has security implications beyond those described here. However,
+if the processor follows only the normative semantics of the published
+specification, this content will be outside TTML namespaces and
+may be ignored. Only in the case where the processor recognizes and
+processes the additional content, or where further processing of that
+content is dispatched to other processors, would security issues
+potentially arise. And in that case, they would fall outside the
+domain of this registration document.</p>
+</def>
+</gitem>
+<gitem>
+<label>Interoperability considerations:</label>
+<def>
+<p>The published specification describes processing semantics that dictate
+behavior that must be followed when dealing with, among other things,
+unrecognized elements and attributes, both in TTML namespaces and in
+other namespaces.</p>
+<p>Because TTML is extensible, conformant "application/ttml+xml" processors must
+expect that content received is well-formed XML, but it cannot be
+guaranteed that the content is valid to a particular DTD or Schema or
+that the processor will recognize all of the elements and attributes
+in the document.</p>
+<p></p>
+</def>
+</gitem>
+<gitem>
+<label>Published specification:</label>
+<def>
+<p><loc
+href="http://www.w3.org/TR/ttml11/">Timed Text Markup Language (TTML) 1.0</loc>.</p>
+</def>
+</gitem>
+<gitem>
+<label>Applications that use this media type:</label>
+<def>
+<p>    TTML is used in the television industry for the purpose of authoring, transcoding and exchanging timed text information and for delivering captions for television material repurposed for the internet.</p>
+<p>There is partial and full support of TTML in components used by several Web browsers plugins, and in a number of caption authoring tools.</p>
+</def>
+</gitem>
+<gitem>
+<label>Additional information:</label>
+<def>
+<glist>
+<gitem>
+    <label>Magic number(s):</label>
+    <def></def>
+</gitem>
+<gitem>
+    <label>File extension(s):</label>
+    <def><p>.ttml</p></def>
+</gitem>
+<gitem>
+    <label>Macintosh file type code(s):</label>
+    <def><p>"TTML"</p></def>
+</gitem>
+<gitem>
+<label>Fragment identifiers:</label>
+<def><p>For documents labeled as application/ttml+xml, the fragment identifier notation is intended to be used with xml:id attributes, as described in section 7.2.1 of the <loc
+href="http://www.w3.org/TR/ttml11/">Timed Text Markup Language (TTML) 1.0</loc> specification.</p></def>
+</gitem>
+</glist>
+</def>
+</gitem>
+<gitem>
+<label>Person &amp; email address to contact for further information:</label>
+<def>
+<p>Timed Text Working Group (public-tt@w3.org)</p>
+</def>
+</gitem>
+<gitem>
+<label>Intended usage:</label>
+<def>
+<p>COMMON</p>
+</def>
+</gitem>
+<gitem>
+<label>Restrictions on usage:</label>
+<def>
+<p>None</p>
+</def>
+</gitem>
+<gitem>
+<label>Author:</label>
+<def>
+<p>The published specification is a work product of the World Wide Web
+Consortium's Timed Text (TT) Working Group.</p>
+</def>
+</gitem>
+<gitem>
+<label>Change controller:</label>
+<def>
+<p>The W3C has change control over this specification.</p>
+</def>
+</gitem>
+</glist>
+</div1>
+<div1 id="features">
+<head>Features</head>
+<p><emph>This appendix is normative.</emph></p>
+<p>This appendix specifies (1) a set of feature designations, each of which
+labels one or more syntactic and/or semantic features defined by this
+specification, and (2) for each designated feature, whether the feature is mandatory
+or optional for a transformation or presentation processor.</p>
+<note>
+<p>A TTML processor is said to <emph>implement the transformation semantics</emph> or
+<emph>implement the presentation semantics</emph> of feature designation <emph>F</emph>
+if it satisfies the requirements of this appendix with respect to the definition of
+feature designation <emph>F</emph> as pertains to transformation or
+presentation processing, respectively.</p>
+</note>
+<div2 id="feature-designations">
+<head>Feature Designations</head>
+<p>A feature designation is expressed as a string that adheres to the following
+form:</p>
+<eg xml:space="preserve">
+feature-designation
+  : feature-namespace designation
+
+feature-namespace
+  : <emph>TT Feature Namespace</emph>                    // http://www.w3.org/ns/ttml/feature/
+
+designation
+  : "#" token-char+
+
+token-char
+  : { XML NameChar }                        // XML 1.1 Production [4a]
+</eg>
+<p>All values of <code>feature-designation</code> not defined by this specification are reserved
+for future standardization.</p>
+<p>The following sub-sections define all feature designations, expressed
+as relative URIs (fragment identifiers) with respect to the 
+TT Feature Namespace base URI.</p>
+<div3 id="feature-animation">
+<head>#animation</head>
+<p>A TTML transformation processor supports the <code>#animation</code>
+feature if it recognizes and is capable of transforming the following
+vocabulary defined by <specref ref="animation"/>:</p>
+<ulist>
+<item><p><loc href="#animation-vocabulary-set"><el>set</el></loc></p></item>
+</ulist>
+<p>A TTML presentation processor supports the <code>#animation</code>
+feature if it implements presentation semantic support for the
+same vocabulary enumerated above.</p>
+</div3>
+<div3 id="feature-backgroundColor">
+<head>#backgroundColor</head>
+<p>A TTML transformation processor supports the
+<code>#backgroundColor</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#style-attribute-backgroundColor"><att>tts:backgroundColor</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#backgroundColor</code> feature if it (1) implements presentation semantic support
+for the <loc
+href="#style-attribute-backgroundColor"><att>tts:backgroundColor</att></loc>
+attribute
+and (2) is capable of displaying or generating an output display
+signal that distinguishes between at least sixteen (16) values of color,
+including all primary and secondary colors of the SRGB color space.</p>
+</div3>
+<div3 id="feature-backgroundColor-block">
+<head>#backgroundColor-block</head>
+<p>A TTML transformation processor supports the
+<code>#backgroundColor-block</code> feature if it recognizes and is
+capable of transforming all defined values of the <loc
+href="#style-attribute-backgroundColor"><att>tts:backgroundColor</att></loc>
+attribute when applied to a content element that would generate a
+block area during presentation processing.</p>
+<p>A TTML presentation processor supports the
+<code>#backgroundColor-block</code> feature if it (1) implements presentation semantic
+support for the <loc
+href="#style-attribute-backgroundColor"><att>tts:backgroundColor</att></loc>
+attribute when applied to a content element that generates a
+block area
+and (2) is capable of displaying or generating an output display
+signal that distinguishes between at least sixteen (16) values of color,
+including all primary and secondary colors of the SRGB color space.</p>
+</div3>
+<div3 id="feature-backgroundColor-inline">
+<head>#backgroundColor-inline</head>
+<p>A TTML transformation processor supports the
+<code>#backgroundColor-inline</code> feature if it recognizes and is
+capable of transforming all defined values of the <loc
+href="#style-attribute-backgroundColor"><att>tts:backgroundColor</att></loc>
+attribute when applied to a content element that would generate an
+inline area during presentation processing.</p>
+<p>A TTML presentation processor supports the
+<code>#backgroundColor-inline</code> feature if it (1) implements presentation semantic
+support for the <loc
+href="#style-attribute-backgroundColor"><att>tts:backgroundColor</att></loc>
+attribute when applied to a content element that generates an
+inline area
+and (2) is capable of displaying or generating an output display
+signal that distinguishes between at least sixteen (16) values of color,
+including all primary and secondary colors of the SRGB color space.</p>
+</div3>
+<div3 id="feature-backgroundColor-region">
+<head>#backgroundColor-region</head>
+<p>A TTML transformation processor supports the
+<code>#backgroundColor-region</code> feature if it recognizes and is
+capable of transforming all defined values of the <loc
+href="#style-attribute-backgroundColor"><att>tts:backgroundColor</att></loc>
+attribute when applied to a <loc
+href="#layout-vocabulary-region"><el>region</el></loc> element.</p>
+<p>A TTML presentation processor supports the
+<code>#backgroundColor-region</code> feature if it (1) implements presentation semantic
+support for the <loc
+href="#style-attribute-backgroundColor"><att>tts:backgroundColor</att></loc>
+attribute when applied to a <loc
+href="#layout-vocabulary-region"><el>region</el></loc> element
+and (2) is capable of displaying or generating an output display
+signal that distinguishes between at least sixteen (16) values of color,
+including all primary and secondary colors of the SRGB color space
+.</p>
+</div3>
+<div3 id="feature-bidi">
+<head>#bidi</head>
+<p>A TTML processor supports the <code>#bidi</code> feature if it
+supports the following features:</p>
+<ulist>
+<item><p><loc
+href="#feature-direction"><code>#direction</code></loc></p></item>
+<item><p><loc
+href="#feature-unicodeBidi"><code>#unicodeBidi</code></loc></p></item>
+<item><p><loc
+href="#feature-writingMode-horizontal"><code>#writingMode-horizontal</code></loc></p></item>
+</ulist>
+</div3>
+<div3 id="feature-cellResolution">
+<head>#cellResolution</head>
+<p>A TTML transformation processor supports the
+<code>#cellResolution</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#parameter-attribute-cellResolution"><att>ttp:cellResolution</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#cellResolution</code> feature if it implements presentation semantic support
+for the <loc
+href="#parameter-attribute-cellResolution"><att>ttp:cellResolution</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-clockMode">
+<head>#clockMode</head>
+<p>A TTML transformation processor supports the
+<code>#clockMode</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#parameter-attribute-clockMode"><att>ttp:clockMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#clockMode</code> feature if it implements presentation semantic support
+for the <loc
+href="#parameter-attribute-clockMode"><att>ttp:clockMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-clockMode-gps">
+<head>#clockMode-gps</head>
+<p>A TTML transformation processor supports the
+<code>#clockMode-gps</code> feature if it recognizes and is capable of
+transforming the <code>gps</code> value of the <loc
+href="#parameter-attribute-clockMode"><att>ttp:clockMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#clockMode-gps</code> feature if it implements presentation semantic support
+for the <code>gps</code> value of the <loc
+href="#parameter-attribute-clockMode"><att>ttp:clockMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-clockMode-local">
+<head>#clockMode-local</head>
+<p>A TTML transformation processor supports the
+<code>#clockMode-local</code> feature if it recognizes and is capable of
+transforming the <code>local</code> value of the <loc
+href="#parameter-attribute-clockMode"><att>ttp:clockMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#clockMode-local</code> feature if it implements presentation semantic support
+for the <code>local</code> value of the <loc
+href="#parameter-attribute-clockMode"><att>ttp:clockMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-clockMode-utc">
+<head>#clockMode-utc</head>
+<p>A TTML transformation processor supports the
+<code>#clockMode-utc</code> feature if it recognizes and is capable of
+transforming the <code>utc</code> value of the <loc
+href="#parameter-attribute-clockMode"><att>ttp:clockMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#clockMode-utc</code> feature if it implements presentation semantic support
+for the <code>utc</code> value of the <loc
+href="#parameter-attribute-clockMode"><att>ttp:clockMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-color">
+<head>#color</head>
+<p>A TTML transformation processor supports the
+<code>#color</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#style-attribute-color"><att>tts:color</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#color</code> feature if it (1) implements presentation semantic support
+for the <loc
+href="#style-attribute-color"><att>tts:color</att></loc>
+attribute
+and (2) is capable of displaying or generating an output display
+signal that distinguishes between at least sixteen (16) values of color,
+including all primary and secondary colors of the SRGB color space.</p>
+</div3>
+<div3 id="feature-content">
+<head>#content</head>
+<p>A TTML transformation processor supports the <code>#content</code>
+feature if it recognizes and is capable of transforming the following
+vocabulary defined by <specref ref="content"/>:</p>
+<ulist>
+<item><p><loc href="#document-structure-vocabulary-body"><el>body</el></loc></p></item>
+<item><p><loc href="#content-vocabulary-div"><el>div</el></loc></p></item>
+<item><p><loc href="#content-vocabulary-p"><el>p</el></loc></p></item>
+<item><p><loc href="#content-vocabulary-span"><el>span</el></loc></p></item>
+<item><p><loc href="#content-vocabulary-br"><el>br</el></loc></p></item>
+</ulist>
+<p>A TTML presentation processor supports the <code>#content</code>
+feature if it implements presentation semantic support for the
+same vocabulary enumerated above.</p>
+</div3>
+<div3 id="feature-core">
+<head>#core</head>
+<p>A TTML transformation processor supports the <code>#core</code>
+feature if it recognizes and is capable of transforming the following
+core attributes vocabulary defined by <specref ref="content"/>:</p>
+<ulist>
+<item><p><loc href="#content-attribute-id">@<att>xml:id</att></loc></p></item>
+<item><p><loc href="#content-attribute-id">@<att>xml:lang</att></loc></p></item>
+<item><p><loc href="#content-attribute-id">@<att>xml:space</att></loc></p></item>
+</ulist>
+<p>A TTML presentation processor supports the <code>#core</code>
+feature if it implements presentation semantic support for the
+same vocabulary enumerated above.</p>
+</div3>
+<div3 id="feature-direction">
+<head>#direction</head>
+<p>A TTML transformation processor supports the
+<code>#direction</code> feature if it recognizes and is capable of
+transforming all defined values of the <loc
+href="#style-attribute-direction"><att>tts:direction</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#direction</code> feature if it implements presentation semantic support
+for all defined values of the <loc
+href="#style-attribute-direction"><att>tts:direction</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-display">
+<head>#display</head>
+<p>A TTML transformation processor supports the
+<code>#display</code> feature if it recognizes and is capable of
+transforming all defined values of the <loc
+href="#style-attribute-display"><att>tts:display</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#display</code> feature if it implements presentation semantic support
+for all defined values of the <loc
+href="#style-attribute-display"><att>tts:display</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-display-block">
+<head>#display-block</head>
+<p>A TTML transformation processor supports the
+<code>#display-block</code> feature if it recognizes and is
+capable of transforming all defined values of the <loc
+href="#style-attribute-display"><att>tts:display</att></loc>
+attribute when applied to a content element that would generate a
+block area during presentation processing.</p>
+<p>A TTML presentation processor supports the
+<code>#display-block</code> feature if it implements presentation semantic
+support for all defined values of the <loc
+href="#style-attribute-display"><att>tts:display</att></loc>
+attribute when applied to a content element that generates a
+block area.</p>
+</div3>
+<div3 id="feature-display-inline">
+<head>#display-inline</head>
+<p>A TTML transformation processor supports the
+<code>#display-inline</code> feature if it recognizes and is
+capable of transforming all defined values of the <loc
+href="#style-attribute-display"><att>tts:display</att></loc>
+attribute when applied to a content element that would generate an
+inline area during presentation processing.</p>
+<p>A TTML presentation processor supports the
+<code>#display-inline</code> feature if it implements presentation semantic
+support for all defined values of the <loc
+href="#style-attribute-display"><att>tts:display</att></loc>
+attribute when applied to a content element that generates an
+inline area.</p>
+</div3>
+<div3 id="feature-display-region">
+<head>#display-region</head>
+<p>A TTML transformation processor supports the
+<code>#display-region</code> feature if it recognizes and is
+capable of transforming all defined values of the <loc
+href="#style-attribute-display"><att>tts:display</att></loc>
+attribute when applied to a <loc
+href="#layout-vocabulary-region"><el>region</el></loc> element.</p>
+<p>A TTML presentation processor supports the
+<code>#display-region</code> feature if it implements presentation semantic
+support for all defined values of the <loc
+href="#style-attribute-display"><att>tts:display</att></loc>
+attribute when applied to a <loc
+href="#layout-vocabulary-region"><el>region</el></loc> element.</p>
+</div3>
+<div3 id="feature-displayAlign">
+<head>#displayAlign</head>
+<p>A TTML transformation processor supports the
+<code>#displayAlign</code> feature if it recognizes and is capable of
+transforming all defined values of the <loc
+href="#style-attribute-displayAlign"><att>tts:displayAlign</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#displayAlign</code> feature if it implements presentation semantic support
+for all defined values of the <loc
+href="#style-attribute-displayAlign"><att>tts:displayAlign</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-dropMode">
+<head>#dropMode</head>
+<p>A TTML transformation processor supports the
+<code>#dropMode</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#parameter-attribute-dropMode"><att>ttp:dropMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#dropMode</code> feature if it implements presentation semantic support
+for the <loc
+href="#parameter-attribute-dropMode"><att>ttp:dropMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-dropMode-dropNTSC">
+<head>#dropMode-dropNTSC</head>
+<p>A TTML transformation processor supports the
+<code>#dropMode-dropNTSC</code> feature if it recognizes and is capable of
+transforming the <code>dropNTSC</code> value of the <loc
+href="#parameter-attribute-dropMode"><att>ttp:dropMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#dropMode-dropNTSC</code> feature if it implements presentation semantic support
+for the <code>dropNTSC</code> value of the <loc
+href="#parameter-attribute-dropMode"><att>ttp:dropMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-dropMode-dropPAL">
+<head>#dropMode-dropPAL</head>
+<p>A TTML transformation processor supports the
+<code>#dropMode-dropPAL</code> feature if it recognizes and is capable of
+transforming the <code>dropPAL</code> value of the <loc
+href="#parameter-attribute-dropMode"><att>ttp:dropMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#dropMode-dropPAL</code> feature if it implements presentation semantic support
+for the <code>dropPAL</code> value of the <loc
+href="#parameter-attribute-dropMode"><att>ttp:dropMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-dropMode-nonDrop">
+<head>#dropMode-nonDrop</head>
+<p>A TTML transformation processor supports the
+<code>#dropMode-nonDrop</code> feature if it recognizes and is capable of
+transforming the <code>nonDrop</code> value of the <loc
+href="#parameter-attribute-dropMode"><att>ttp:dropMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#dropMode-nonDrop</code> feature if it implements presentation semantic support
+for the <code>nonDrop</code> value of the <loc
+href="#parameter-attribute-dropMode"><att>ttp:dropMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-extent">
+<head>#extent</head>
+<p>A TTML transformation processor supports the
+<code>#extent</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#style-attribute-extent"><att>tts:extent</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#extent</code> feature if it implements presentation semantic support for
+the <loc
+href="#style-attribute-extent"><att>tts:extent</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-extent-region">
+<head>#extent-region</head>
+<p>A TTML transformation processor supports the
+<code>#extent-region</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#style-attribute-extent"><att>tts:extent</att></loc>
+attribute when applied to a <loc
+href="#layout-vocabulary-region"><el>region</el></loc> element.</p>
+<p>A TTML presentation processor supports the
+<code>#extent-region</code> feature if it implements presentation semantic support for
+the <loc
+href="#style-attribute-extent"><att>tts:extent</att></loc>
+attribute when applied to a <loc
+href="#layout-vocabulary-region"><el>region</el></loc> element.</p>
+</div3>
+<div3 id="feature-extent-root">
+<head>#extent-root</head>
+<p>A TTML transformation processor supports the
+<code>#extent-root</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#style-attribute-extent"><att>tts:extent</att></loc>
+attribute when applied to the <loc
+href="#document-structure-vocabulary-tt"><el>tt</el></loc> element.</p>
+<p>A TTML presentation processor supports the
+<code>#extent-root</code> feature if it implements presentation semantic support for
+the <loc
+href="#style-attribute-extent"><att>tts:extent</att></loc>
+attribute when applied to a <loc
+href="#document-structure-vocabulary-tt"><el>tt</el></loc> element.</p>
+</div3>
+<div3 id="feature-fontFamily">
+<head>#fontFamily</head>
+<p>A TTML transformation processor supports the
+<code>#fontFamily</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#style-attribute-fontFamily"><att>tts:fontFamily</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#fontFamily</code> feature if it implements presentation semantic support
+for the <loc
+href="#style-attribute-fontFamily"><att>tts:fontFamily</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-fontFamily-generic">
+<head>#fontFamily-generic</head>
+<p>A TTML transformation processor supports the
+<code>#fontFamily-generic</code> feature if it recognizes and is
+capable of transforming <loc
+href="#style-value-genericFamilyName">&lt;genericFamilyName&gt;</loc>
+values when used with the <loc
+href="#style-attribute-fontFamily"><att>tts:fontFamily</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#fontFamily-generic</code> feature if it implements presentation semantic
+support for <loc
+href="#style-value-genericFamilyName">&lt;genericFamilyName&gt;</loc>
+values when used with the <loc
+href="#style-attribute-fontFamily"><att>tts:fontFamily</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-fontFamily-non-generic">
+<head>#fontFamily-non-generic</head>
+<p>A TTML transformation processor supports the
+<code>#fontFamily-non-generic</code> feature if it recognizes and is
+capable of transforming <loc
+href="#style-value-familyName">&lt;familyName&gt;</loc>
+values when used with the <loc
+href="#style-attribute-fontFamily"><att>tts:fontFamily</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#fontFamily-non-generic</code> feature if it implements presentation semantic
+support for <loc
+href="#style-value-familyName">&lt;familyName&gt;</loc>
+values when used with the <loc
+href="#style-attribute-fontFamily"><att>tts:fontFamily</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-fontSize">
+<head>#fontSize</head>
+<p>A TTML transformation processor supports the
+<code>#fontSize</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#style-attribute-fontSize"><att>tts:fontSize</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#fontSize</code> feature if it implements presentation semantic support
+for the <loc
+href="#style-attribute-fontSize"><att>tts:fontSize</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-fontSize-anamorphic">
+<head>#fontSize-anamorphic</head>
+<p>A TTML transformation processor supports the
+<code>#fontSize-anamorphic</code> feature if it recognizes and is
+capable of transforming values of the <loc
+href="#style-attribute-fontSize"><att>tts:fontSize</att></loc>
+attribute that consist of two <loc
+href="#style-value-length">&lt;length&gt;</loc> specifications.</p>
+<p>A TTML presentation processor supports the
+<code>#fontSize-anamorphic</code> feature if it implements presentation semantic
+support for defined values of the <loc
+href="#style-attribute-fontSize"><att>tts:fontSize</att></loc>
+attribute that consist of two <loc
+href="#style-value-length">&lt;length&gt;</loc> specifications.</p>
+</div3>
+<div3 id="feature-fontSize-isomorphic">
+<head>#fontSize-isomorphic</head>
+<p>A TTML transformation processor supports the
+<code>#fontSize-isomorphic</code> feature if it recognizes and is
+capable of transforming values of the <loc
+href="#style-attribute-fontSize"><att>tts:fontSize</att></loc>
+attribute that consist of a single <loc
+href="#style-value-length">&lt;length&gt;</loc> specification.</p>
+<p>A TTML presentation processor supports the
+<code>#fontSize-isomorphic</code> feature if it implements presentation semantic
+support for defined values of the <loc
+href="#style-attribute-fontSize"><att>tts:fontSize</att></loc>
+attribute that consist of a single <loc
+href="#style-value-length">&lt;length&gt;</loc> specification.</p>
+</div3>
+<div3 id="feature-fontStyle">
+<head>#fontStyle</head>
+<p>A TTML transformation processor supports the
+<code>#fontStyle</code> feature if it recognizes and is capable of
+transforming all defined values of the <loc
+href="#style-attribute-fontStyle"><att>tts:fontStyle</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#fontStyle</code> feature if it implements presentation semantic support
+for all defined values of the <loc
+href="#style-attribute-fontStyle"><att>tts:fontStyle</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-fontStyle-italic">
+<head>#fontStyle-italic</head>
+<p>A TTML transformation processor supports the
+<code>#fontStyle-italic</code> feature if it recognizes and is
+capable of transforming the <code>italic</code> value of the <loc
+href="#style-attribute-fontStyle"><att>tts:fontStyle</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#fontStyle-italic</code> feature if it implements presentation semantic
+support for the <code>italic</code> of the <loc
+href="#style-attribute-fontStyle"><att>tts:fontStyle</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-fontStyle-oblique">
+<head>#fontStyle-oblique</head>
+<p>A TTML transformation processor supports the
+<code>#fontStyle-oblique</code> feature if it recognizes and is
+capable of transforming the <code>oblique</code> value of the <loc
+href="#style-attribute-fontStyle"><att>tts:fontStyle</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#fontStyle-oblique</code> feature if it implements presentation semantic
+support for the <code>oblique</code> of the <loc
+href="#style-attribute-fontStyle"><att>tts:fontStyle</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-fontWeight">
+<head>#fontWeight</head>
+<p>A TTML transformation processor supports the
+<code>#fontWeight</code> feature if it recognizes and is capable of
+transforming all defined values of the <loc
+href="#style-attribute-fontWeight"><att>tts:fontWeight</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#fontWeight</code> feature if it implements presentation semantic support
+for all defined values of the <loc
+href="#style-attribute-fontWeight"><att>tts:fontWeight</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-fontWeight-bold">
+<head>#fontWeight-bold</head>
+<p>A TTML transformation processor supports the
+<code>#fontWeight-bold</code> feature if it recognizes and is
+capable of transforming <code>bold</code> value of the <loc
+href="#style-attribute-fontWeight"><att>tts:fontWeight</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#fontWeight-bold</code> feature if it implements presentation semantic
+support for the <code>bold</code> of the <loc
+href="#style-attribute-fontWeight"><att>tts:fontWeight</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-frameRate">
+<head>#frameRate</head>
+<p>A TTML transformation processor supports the
+<code>#frameRate</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#parameter-attribute-frameRate"><att>ttp:frameRate</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#frameRate</code> feature if it implements presentation semantic support
+for the <loc
+href="#parameter-attribute-frameRate"><att>ttp:frameRate</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-frameRateMultiplier">
+<head>#frameRateMultiplier</head>
+<p>A TTML transformation processor supports the
+<code>#frameRateMultiplier</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#parameter-attribute-frameRateMultiplier"><att>ttp:frameRateMultiplier</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#frameRateMultiplier</code> feature if it implements presentation semantic support
+for the <loc
+href="#parameter-attribute-frameRateMultiplier"><att>ttp:frameRateMultiplier</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-layout">
+<head>#layout</head>
+<p>A TTML transformation processor supports the <code>#layout</code>
+feature if it (1) recognizes and is capable of transforming the following
+vocabulary defined by <specref ref="layout"/>:</p>
+<ulist>
+<item><p><loc href="#layout-vocabulary-layout"><el>layout</el></loc></p></item>
+<item><p><loc href="#layout-vocabulary-region"><el>region</el></loc></p></item>
+<item><p><loc href="#layout-attribute-region">@<att>region</att></loc></p></item>
+</ulist>
+<p>and (2) supports the following attributes when applied to the
+<loc href="#layout-vocabulary-region"><el>region</el></loc> element:</p>
+<ulist>
+<item><p><loc
+href="#style-attribute-extent"><att>tts:extent</att></loc></p></item>
+<item><p><loc
+href="#style-attribute-origin"><att>tts:origin</att></loc></p></item>
+</ulist>
+<p>A TTML presentation processor supports the <code>#layout</code>
+feature if it implements presentation semantic support for the
+same vocabulary and features enumerated above.</p>
+</div3>
+<div3 id="feature-length">
+<head>#length</head>
+<p>A TTML transformation processor supports the <code>#length</code>
+feature if it recognizes and is capable of transforming all defined
+values of the <loc href="#style-value-length">&lt;length&gt;</loc>
+style value expression.</p>
+<p>A TTML presentation processor supports the <code>#length</code>
+feature if it implements presentation semantic support for all defined values of
+the <loc href="#style-value-length">&lt;length&gt;</loc> style value
+expression.</p>
+</div3>
+<div3 id="feature-length-cell">
+<head>#length-cell</head>
+<p>A TTML transformation processor supports the
+<code>#length-cell</code> feature if it recognizes and is capable of
+transforming scalar values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value expression
+that use <code>c</code> (cell) units.</p>
+<p>A TTML presentation processor supports the
+<code>#length-cell</code> feature if it implements presentation semantic support
+for scalar values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value expression
+that use <code>c</code> (cell) units.</p>
+</div3>
+<div3 id="feature-length-em">
+<head>#length-em</head>
+<p>A TTML transformation processor supports the
+<code>#length-em</code> feature if it recognizes and is capable of
+transforming scalar values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value expression
+that use <code>em</code> (EM) units.</p>
+<p>A TTML presentation processor supports the
+<code>#length-em</code> feature if it implements presentation semantic support
+for scalar values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value expression
+that use <code>em</code> (EM) units.</p>
+</div3>
+<div3 id="feature-length-integer">
+<head>#length-integer</head>
+<p>A TTML transformation processor supports the
+<code>#length-integer</code> feature if it recognizes and is
+capable of transforming integer values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value
+expression.</p>
+<p>A TTML presentation processor supports the
+<code>#length-integer</code> feature if it implements presentation semantic
+support for integer values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value
+expression.
+</p>
+</div3>
+<div3 id="feature-length-negative">
+<head>#length-negative</head>
+<p>A TTML transformation processor supports the
+<code>#length-negative</code> feature if it recognizes and is
+capable of transforming negative values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value
+expression.</p>
+<p>A TTML presentation processor supports the
+<code>#length-negative</code> feature if it implements presentation semantic
+support for negative values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value
+expression.
+</p>
+</div3>
+<div3 id="feature-length-percentage">
+<head>#length-percentage</head>
+<p>A TTML transformation processor supports the
+<code>#length-percentage</code> feature if it recognizes and is
+capable of transforming percentage values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value
+expression.</p>
+<p>A TTML presentation processor supports the
+<code>#length-percentage</code> feature if it implements presentation semantic
+support for percentage values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value
+expression.
+</p>
+</div3>
+<div3 id="feature-length-pixel">
+<head>#length-pixel</head>
+<p>A TTML transformation processor supports the
+<code>#length-pixel</code> feature if it recognizes and is capable of
+transforming scalar values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value expression
+that use <code>px</code> (pixel) units.</p>
+<p>A TTML presentation processor supports the
+<code>#length-pixel</code> feature if it implements presentation semantic support
+for scalar values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value expression
+that use <code>px</code> (pixel) units.</p>
+</div3>
+<div3 id="feature-length-positive">
+<head>#length-positive</head>
+<p>A TTML transformation processor supports the
+<code>#length-positive</code> feature if it recognizes and is
+capable of transforming positive values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value
+expression.</p>
+<p>A TTML presentation processor supports the
+<code>#length-positive</code> feature if it implements presentation semantic
+support for positive values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value
+expression.
+</p>
+</div3>
+<div3 id="feature-length-real">
+<head>#length-real</head>
+<p>A TTML transformation processor supports the
+<code>#length-real</code> feature if it recognizes and is
+capable of transforming real values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value
+expression.</p>
+<p>A TTML presentation processor supports the
+<code>#length-real</code> feature if it implements presentation semantic
+support for real values of the <loc
+href="#style-value-length">&lt;length&gt;</loc> style value
+expression.
+</p>
+</div3>
+<div3 id="feature-lineBreak-uax14">
+<head>#lineBreak-uax14</head>
+<p>A TTML transformation processor supports the
+<code>#lineBreak-uax14</code> feature if it recognizes and is capable of
+transforming requirements expressed by <bibref ref="uax14"/> into its
+target document space.</p>
+<p>A TTML presentation processor supports the
+<code>#lineBreak-uax14</code> feature if it implements presentation semantic support
+for <bibref ref="uax14"/> as applies to line breaking.</p>
+</div3>
+<div3 id="feature-lineHeight">
+<head>#lineHeight</head>
+<p>A TTML transformation processor supports the
+<code>#lineHeight</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#style-attribute-lineHeight"><att>tts:lineHeight</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#lineHeight</code> feature if it implements presentation semantic support for
+the <loc
+href="#style-attribute-lineHeight"><att>tts:lineHeight</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-markerMode">
+<head>#markerMode</head>
+<p>A TTML transformation processor supports the
+<code>#markerMode</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#parameter-attribute-markerMode"><att>ttp:markerMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#markerMode</code> feature if it implements presentation semantic support
+for the <loc
+href="#parameter-attribute-markerMode"><att>ttp:markerMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-markerMode-continuous">
+<head>#markerMode-continuous</head>
+<p>A TTML transformation processor supports the
+<code>#markerMode-continuous</code> feature if it recognizes and is capable of
+transforming the <code>continuous</code> value of the <loc
+href="#parameter-attribute-markerMode"><att>ttp:markerMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#markerMode-continuous</code> feature if it implements presentation semantic support
+for the <code>continuous</code> value of the <loc
+href="#parameter-attribute-markerMode"><att>ttp:markerMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-markerMode-discontinuous">
+<head>#markerMode-discontinuous</head>
+<p>A TTML transformation processor supports the
+<code>#markerMode-discontinuous</code> feature if it recognizes and is capable of
+transforming the <code>discontinuous</code> value of the <loc
+href="#parameter-attribute-markerMode"><att>ttp:markerMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#markerMode-discontinuous</code> feature if it implements presentation semantic support
+for the <code>discontinuous</code> value of the <loc
+href="#parameter-attribute-markerMode"><att>ttp:markerMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-metadata">
+<head>#metadata</head>
+<p>A TTML transformation processor supports the <code>#metadata</code>
+feature if it recognizes and is capable of transforming the following
+vocabulary defined by <specref ref="metadata"/>:</p>
+<ulist>
+<item><p><loc href="#metadata-vocabulary-metadata"><el>metadata</el></loc></p></item>
+<item><p><loc href="#metadata-vocabulary-title"><el>ttm:title</el></loc></p></item>
+<item><p><loc href="#metadata-vocabulary-title"><el>ttm:desc</el></loc></p></item>
+<item><p><loc href="#metadata-vocabulary-title"><el>ttm:copyright</el></loc></p></item>
+<item><p><loc href="#metadata-vocabulary-title"><el>ttm:agent</el></loc></p></item>
+<item><p><loc href="#metadata-vocabulary-title"><el>ttm:name</el></loc></p></item>
+<item><p><loc href="#metadata-vocabulary-title"><el>ttm:actor</el></loc></p></item>
+<item><p><loc href="#metadata-attribute-agent">@<att>ttm:agent</att></loc></p></item>
+<item><p><loc href="#metadata-attribute-role">@<att>ttm:role</att></loc></p></item>
+</ulist>
+<p>A TTML presentation processor supports the <code>#metadata</code>
+feature if it recognizes and is capable of presenting the information
+expressed by the same vocabulary enumerated above.</p>
+<note role="clarification">
+<p>This specification does not define a standardized form for the
+presentation of metadata information. The presentation or ability to
+present metadata information is considered to be implementation
+dependent.</p>
+</note>
+</div3>
+<div3 id="feature-nested-div">
+<head>#nested-div</head>
+<p>A TTML transformation processor supports the <code>#nested-div</code>
+feature if it recognizes and is capable of transforming nested
+<loc href="#content-vocabulary-div"><el>div</el></loc> elements.</p>
+<p>A TTML presentation processor supports the <code>#nested-div</code>
+feature if it implements presentation semantic support for nested
+<loc href="#content-vocabulary-div"><el>div</el></loc> elements.</p>
+</div3>
+<div3 id="feature-nested-span">
+<head>#nested-span</head>
+<p>A TTML transformation processor supports the <code>#nested-span</code>
+feature if it recognizes and is capable of transforming nested
+<loc href="#content-vocabulary-span"><el>span</el></loc> elements.</p>
+<p>A TTML presentation processor supports the <code>#nested-span</code>
+feature if it implements presentation semantic support for nested
+<loc href="#content-vocabulary-span"><el>span</el></loc> elements.</p>
+</div3>
+<div3 id="feature-opacity">
+<head>#opacity</head>
+<p>A TTML transformation processor supports the
+<code>#opacity</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#style-attribute-opacity"><att>tts:opacity</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#opacity</code> feature if it (1) implements presentation semantic support for
+the <loc
+href="#style-attribute-opacity"><att>tts:opacity</att></loc>
+attribute and (2) is capable of displaying or generating an output display
+signal that distinguishes between at least eight (8) values of opacity.</p>
+</div3>
+<div3 id="feature-origin">
+<head>#origin</head>
+<p>A TTML transformation processor supports the
+<code>#origin</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#style-attribute-origin"><att>tts:origin</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#origin</code> feature if it implements presentation semantic support for
+the <loc
+href="#style-attribute-origin"><att>tts:origin</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-overflow">
+<head>#overflow</head>
+<p>A TTML transformation processor supports the
+<code>#overflow</code> feature if it recognizes and is capable of
+transforming all defined values of the <loc
+href="#style-attribute-overflow"><att>tts:overflow</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#overflow</code> feature if it implements presentation semantic support for
+all defined values of the <loc
+href="#style-attribute-overflow"><att>tts:overflow</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-overflow-visible">
+<head>#overflow-visible</head>
+<p>A TTML transformation processor supports the
+<code>#overflow-visible</code> feature if it recognizes and is capable of
+transforming the <code>visible</code> value of the <loc
+href="#style-attribute-overflow"><att>tts:overflow</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#overflow-visible</code> feature if it implements presentation semantic support for
+the <code>visible</code> value of the <loc
+href="#style-attribute-overflow"><att>tts:overflow</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-padding">
+<head>#padding</head>
+<p>A TTML transformation processor supports the
+<code>#padding</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#style-attribute-padding"><att>tts:padding</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#padding</code> feature if it implements presentation semantic support for
+the <loc
+href="#style-attribute-padding"><att>tts:padding</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-padding-1">
+<head>#padding-1</head>
+<p>A TTML transformation processor supports the
+<code>#padding-1</code> feature if it recognizes and is capable of
+transforming values of the <loc
+href="#style-attribute-padding"><att>tts:padding</att></loc> attribute
+that consist of one <loc
+href="#style-value-length">&lt;length&gt;</loc> specification.</p>
+<p>A TTML presentation processor supports the <code>#padding-1</code>
+feature if it implements presentation semantic support for values of the <loc
+href="#style-attribute-padding"><att>tts:padding</att></loc> attribute
+that consist of one <loc
+href="#style-value-length">&lt;length&gt;</loc> specification.</p>
+</div3>
+<div3 id="feature-padding-2">
+<head>#padding-2</head>
+<p>A TTML transformation processor supports the
+<code>#padding-2</code> feature if it recognizes and is capable of
+transforming values of the <loc
+href="#style-attribute-padding"><att>tts:padding</att></loc> attribute
+that consist of two <loc
+href="#style-value-length">&lt;length&gt;</loc> specification.</p>
+<p>A TTML presentation processor supports the <code>#padding-2</code>
+feature if it implements presentation semantic support for values of the <loc
+href="#style-attribute-padding"><att>tts:padding</att></loc> attribute
+that consist of two <loc
+href="#style-value-length">&lt;length&gt;</loc> specification.</p>
+</div3>
+<div3 id="feature-padding-3">
+<head>#padding-3</head>
+<p>A TTML transformation processor supports the
+<code>#padding-3</code> feature if it recognizes and is capable of
+transforming values of the <loc
+href="#style-attribute-padding"><att>tts:padding</att></loc> attribute
+that consist of three <loc
+href="#style-value-length">&lt;length&gt;</loc> specification.</p>
+<p>A TTML presentation processor supports the <code>#padding-3</code>
+feature if it implements presentation semantic support for values of the <loc
+href="#style-attribute-padding"><att>tts:padding</att></loc> attribute
+that consist of three <loc
+href="#style-value-length">&lt;length&gt;</loc> specification.</p>
+</div3>
+<div3 id="feature-padding-4">
+<head>#padding-4</head>
+<p>A TTML transformation processor supports the
+<code>#padding-4</code> feature if it recognizes and is capable of
+transforming values of the <loc
+href="#style-attribute-padding"><att>tts:padding</att></loc> attribute
+that consist of four <loc
+href="#style-value-length">&lt;length&gt;</loc> specification.</p>
+<p>A TTML presentation processor supports the <code>#padding-4</code>
+feature if it implements presentation semantic support for values of the <loc
+href="#style-attribute-padding"><att>tts:padding</att></loc> attribute
+that consist of four <loc
+href="#style-value-length">&lt;length&gt;</loc> specification.</p>
+</div3>
+<div3 id="feature-pixelAspectRatio">
+<head>#pixelAspectRatio</head>
+<p>A TTML transformation processor supports the
+<code>#pixelAspectRatio</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#parameter-attribute-pixelAspectRatio"><att>ttp:pixelAspectRatio</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#pixelAspectRatio</code> feature if it implements presentation semantic support
+for the <loc
+href="#parameter-attribute-pixelAspectRatio"><att>ttp:pixelAspectRatio</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-presentation">
+<head>#presentation</head>
+<p>A TTML processor supports the
+<code>#presentation</code> feature if it
+(1) satisfies the generic processor criteria defined by 
+<specref ref="conformance-generic-processor"/>,
+(2) implements support for the region and line layout
+semantics defined by <specref ref="semantics-region-layout"/> and
+<specref ref="semantics-line-layout"/>, respectively, and
+(3) implements presentation semantics for the following features:</p>
+<ulist>
+<item><p><loc href="#content"><code>#content</code></loc></p></item>
+<item><p><loc href="#feature-core"><code>#core</code></loc></p></item>
+<item><p><loc href="#feature-profile"><code>#profile</code></loc></p></item>
+<item><p><loc href="#feature-structure"><code>#structure</code></loc></p></item>
+<item><p><loc href="#feature-time-offset"><code>#time-offset</code></loc></p></item>
+<item><p><loc href="#timing"><code>#timing</code></loc></p></item>
+</ulist>
+<p>
+In addition, a TTML processor that supports the
+<code>#presentation</code> feature should satisfy the user agent
+accessibility guidelines specified by <bibref ref="uaag"/>.</p>
+</div3>
+<div3 id="feature-profile">
+<head>#profile</head>
+<p>A TTML transformation processor supports the <code>#profile</code>
+feature if it recognizes and is capable of transforming the
+<loc href="#parameter-attribute-profile"><att>ttp:profile</att></loc>
+attribute on the <loc
+href="#document-structure-vocabulary-tt"><el>tt</el></loc> element and
+transforming the following vocabulary defined by
+<specref ref="parameter-element-vocabulary"/>:</p>
+<ulist>
+<item><p><loc
+href="#parameter-vocabulary-profile"><el>ttp:profile</el></loc></p></item>
+<item><p><loc
+href="#parameter-vocabulary-features"><el>ttp:features</el></loc></p></item>
+<item><p><loc
+href="#parameter-vocabulary-feature"><el>ttp:feature</el></loc></p></item>
+<item><p><loc
+href="#parameter-vocabulary-extensions"><el>ttp:extensions</el></loc></p></item>
+<item><p><loc
+href="#parameter-vocabulary-extension"><el>ttp:extension</el></loc></p></item>
+</ulist>
+<p>A TTML presentation processor supports the
+<code>#profile</code> feature if it implements presentation semantic support
+for the same vocabulary specified above.</p>
+</div3>
+<div3 id="feature-showBackground">
+<head>#showBackground</head>
+<p>A TTML transformation processor supports the
+<code>#showBackground</code> feature if it recognizes and is capable
+of transforming all defined values of the <loc
+href="#style-attribute-showBackground"><att>tts:showBackground</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#showBackground</code> feature if it implements presentation semantic support
+for all defined values of the <loc
+href="#style-attribute-showBackground"><att>tts:showBackground</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-structure">
+<head>#structure</head>
+<p>A TTML transformation processor supports the <code>#structure</code>
+feature if it recognizes and is capable of transforming the following
+vocabulary defined by <specref ref="content"/>:</p>
+<ulist>
+<item><p><loc href="#document-structure-vocabulary-tt"><el>tt</el></loc></p></item>
+<item><p><loc href="#document-structure-vocabulary-head"><el>head</el></loc></p></item>
+</ulist>
+<p>A TTML presentation processor supports the <code>#structure</code>
+feature if it implements presentation semantic support for the
+same vocabulary enumerated above.</p>
+</div3>
+<div3 id="feature-styling">
+<head>#styling</head>
+<p>A TTML transformation processor supports the <code>#styling</code>
+feature if it recognizes and is capable of transforming the following
+vocabulary defined by <specref ref="styling"/>:</p>
+<ulist>
+<item><p><loc href="#styling-vocabulary-styling"><el>styling</el></loc></p></item>
+<item><p><loc href="#styling-vocabulary-style"><el>style</el></loc></p></item>
+<item><p><loc href="#style-attribute-style">@<att>style</att></loc></p></item>
+</ulist>
+<p>A TTML presentation processor supports the <code>#styling</code>
+feature if it implements presentation semantic support for the
+same vocabulary enumerated above.</p>
+</div3>
+<div3 id="feature-styling-chained">
+<head>#styling-chained</head>
+<p>A TTML transformation processor supports the
+<code>#styling-chained</code> feature if it recognizes and is capable
+of transforming chained style association as defined by <specref
+ref="semantics-style-association-chained-referential"/>.</p>
+<p>A TTML presentation processor supports the
+<code>#styling-chained</code> feature if it implements presentation semantic
+support for chained style association as defined by <specref
+ref="semantics-style-association-chained-referential"/>.</p>
+</div3>
+<div3 id="feature-styling-inheritance-content">
+<head>#styling-inheritance-content</head>
+<p>A TTML transformation processor supports the
+<code>#styling-inheritance</code> feature if it recognizes and is
+capable of transforming content style inheritance as defined by
+<specref ref="semantics-style-inheritance-content"/>.</p>
+<p>A TTML presentation processor supports the
+<code>#styling-inheritance-content</code> feature if it implements
+presentation semantic support for content style inheritance as defined by <specref
+ref="semantics-style-inheritance-content"/>.</p>
+</div3>
+<div3 id="feature-styling-inheritance-region">
+<head>#styling-inheritance-region</head>
+<p>A TTML transformation processor supports the
+<code>#styling-inheritance</code> feature if it recognizes and is
+capable of transforming region style inheritance as defined by
+<specref ref="semantics-style-inheritance-region"/>.</p>
+<p>A TTML presentation processor supports the
+<code>#styling-inheritance-region</code> feature if it implements
+presentation semantic support for region style inheritance as defined by <specref
+ref="semantics-style-inheritance-region"/>.</p>
+</div3>
+<div3 id="feature-styling-inline">
+<head>#styling-inline</head>
+<p>A TTML transformation processor supports the
+<code>#styling-inline</code> feature if it recognizes and is capable
+of transforming inline style association as defined by <specref
+ref="semantics-style-association-inline"/>.</p>
+<p>A TTML presentation processor supports the
+<code>#styling-inline</code> feature if it implements presentation semantic support
+for inline style association as defined by <specref
+ref="semantics-style-association-inline"/>.</p>
+</div3>
+<div3 id="feature-styling-nested">
+<head>#styling-nested</head>
+<p>A TTML transformation processor supports the
+<code>#styling-nested</code> feature if it recognizes and is capable
+of transforming nested style association as defined by <specref
+ref="semantics-style-association-nested"/>.</p>
+<p>A TTML presentation processor supports the
+<code>#styling-nested</code> feature if it implements presentation semantic support
+for nested style association as defined by <specref
+ref="semantics-style-association-nested"/>.</p>
+</div3>
+<div3 id="feature-styling-referential">
+<head>#styling-referential</head>
+<p>A TTML transformation processor supports the
+<code>#styling-referential</code> feature if it recognizes and is capable
+of transforming referential style association as defined by <specref
+ref="semantics-style-association-referential"/>.</p>
+<p>A TTML presentation processor supports the
+<code>#styling-referential</code> feature if it implements presentation semantic
+support for referential style association as defined by <specref
+ref="semantics-style-association-referential"/>.</p>
+</div3>
+<div3 id="feature-subFrameRate">
+<head>#subFrameRate</head>
+<p>A TTML transformation processor supports the
+<code>#subFrameRate</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#parameter-attribute-subFrameRate"><att>ttp:subFrameRate</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#subFrameRate</code> feature if it implements presentation semantic support
+for the <loc
+href="#parameter-attribute-subFrameRate"><att>ttp:subFrameRate</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-textAlign">
+<head>#textAlign</head>
+<p>A TTML transformation processor supports the
+<code>#textAlign</code> feature if it recognizes and is capable
+of transforming all defined values of the <loc
+href="#style-attribute-textAlign"><att>tts:textAlign</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#textAlign</code> feature if it implements presentation semantic support
+for all defined values of the <loc
+href="#style-attribute-textAlign"><att>tts:textAlign</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-textAlign-absolute">
+<head>#textAlign-absolute</head>
+<p>A TTML transformation processor supports the
+<code>#textAlign-absolute</code> feature if it recognizes and is
+capable of transforming the <code>left</code>, <code>center</code>,
+and <code>right</code> values of the <loc
+href="#style-attribute-textAlign"><att>tts:textAlign</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#textAlign-absolute</code> feature if it implements presentation semantic
+support for the <code>left</code>, <code>center</code>, and
+<code>right</code> values of the <loc
+href="#style-attribute-textAlign"><att>tts:textAlign</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-textAlign-relative">
+<head>#textAlign-relative</head>
+<p>A TTML transformation processor supports the
+<code>#textAlign-relative</code> feature if it recognizes and is
+capable of transforming the <code>start</code>, <code>center</code>,
+and <code>end</code> values of the <loc
+href="#style-attribute-textAlign"><att>tts:textAlign</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#textAlign-relative</code> feature if it implements presentation semantic
+support for the <code>start</code>, <code>center</code>, and
+<code>end</code> values of the <loc
+href="#style-attribute-textAlign"><att>tts:textAlign</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-textDecoration">
+<head>#textDecoration</head>
+<p>A TTML transformation processor supports the
+<code>#textDecoration</code> feature if it recognizes and is capable
+of transforming all defined values of the <loc
+href="#style-attribute-textDecoration"><att>tts:textDecoration</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#textDecoration</code> feature if it implements presentation semantic support
+for all defined values of the <loc
+href="#style-attribute-textDecoration"><att>tts:textDecoration</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-textDecoration-over">
+<head>#textDecoration-over</head>
+<p>A TTML transformation processor supports the
+<code>#textDecoration-over</code> feature if it recognizes and is
+capable of transforming the <code>overline</code> and
+<code>noOverline</code> values of the <loc
+href="#style-attribute-textDecoration"><att>tts:textDecoration</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#textDecoration-over</code> feature if it implements
+presentation semantic support for the <code>overline</code> and
+<code>noOverline</code> values of the <loc
+href="#style-attribute-textDecoration"><att>tts:textDecoration</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-textDecoration-through">
+<head>#textDecoration-through</head>
+<p>A TTML transformation processor supports the
+<code>#textDecoration-through</code> feature if it recognizes and is
+capable of transforming the <code>lineThrough</code> and
+<code>noLineThrough</code> values of the <loc
+href="#style-attribute-textDecoration"><att>tts:textDecoration</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#textDecoration-through</code> feature if it implements
+presentation semantic support for the <code>lineThrough</code> and
+<code>noLineThrough</code> values of the <loc
+href="#style-attribute-textDecoration"><att>tts:textDecoration</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-textDecoration-under">
+<head>#textDecoration-under</head>
+<p>A TTML transformation processor supports the
+<code>#textDecoration-under</code> feature if it recognizes and is
+capable of transforming the <code>underline</code> and
+<code>noUnderline</code> values of the <loc
+href="#style-attribute-textDecoration"><att>tts:textDecoration</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#textDecoration-under</code> feature if it implements
+presentation semantic support for the <code>underline</code> and
+<code>noUnderline</code> values of the <loc
+href="#style-attribute-textDecoration"><att>tts:textDecoration</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-textOutline">
+<head>#textOutline</head>
+<p>A TTML transformation processor supports the
+<code>#textOutline</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#style-attribute-textOutline"><att>tts:textOutline</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#textOutline</code> feature if it implements presentation semantic support
+for the <loc
+href="#style-attribute-textOutline"><att>tts:textOutline</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-textOutline-blurred">
+<head>#textOutline-blurred</head>
+<p>A TTML transformation processor supports the
+<code>#textOutline-blurred</code> feature if it recognizes and is capable of
+transforming values of the <loc
+href="#style-attribute-textOutline"><att>tts:textOutline</att></loc>
+attribute that includes a blur radius specification.</p>
+<p>A TTML presentation processor supports the
+<code>#textOutline-blurred</code> feature if it implements presentation semantic support
+for values of the <loc
+href="#style-attribute-textOutline"><att>tts:textOutline</att></loc>
+attribute that includes a blur radius specification.</p>
+</div3>
+<div3 id="feature-textOutline-unblurred">
+<head>#textOutline-unblurred</head>
+<p>A TTML transformation processor supports the
+<code>#textOutline-unblurred</code> feature if it recognizes and is capable of
+transforming values of the <loc
+href="#style-attribute-textOutline"><att>tts:textOutline</att></loc>
+attribute that does not include a blur radius specification.</p>
+<p>A TTML presentation processor supports the
+<code>#textOutline-unblurred</code> feature if it implements presentation semantic support
+for values of the <loc
+href="#style-attribute-textOutline"><att>tts:textOutline</att></loc>
+attribute that does not include a blur radius specification.</p>
+</div3>
+<div3 id="feature-tickRate">
+<head>#tickRate</head>
+<p>A TTML transformation processor supports the
+<code>#tickRate</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#parameter-attribute-tickRate"><att>ttp:tickRate</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#tickRate</code> feature if it implements presentation semantic support
+for the <loc
+href="#parameter-attribute-tickRate"><att>ttp:tickRate</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-timeBase-clock">
+<head>#timeBase-clock</head>
+<p>A TTML transformation processor supports the
+<code>#timeBase-clock</code> feature if it recognizes and is capable
+of transforming the <code>clock</code> value of the <loc
+href="#parameter-attribute-timeBase"><att>ttp:timeBase</att></loc>
+attribute and if it supports the <loc
+href="#feature-clockMode"><code>#clockMode</code></loc> feature.</p>
+<p>A TTML presentation processor supports the
+<code>#timeBase-clock</code> feature if it implements presentation
+semantic support for the <code>clock</code> value of the <loc
+href="#parameter-attribute-timeBase"><att>ttp:timeBase</att></loc>
+attribute and if it supports the <loc
+href="#feature-clockMode"><code>#clockMode</code></loc> feature.</p>
+</div3>
+<div3 id="feature-timeBase-media">
+<head>#timeBase-media</head>
+<p>A TTML transformation processor supports the
+<code>#timeBase-media</code> feature if it recognizes and is capable
+of transforming the <code>media</code> value of the <loc
+href="#parameter-attribute-timeBase"><att>ttp:timeBase</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#timeBase-media</code> feature if it implements presentation
+semantic support for the <code>media</code> value of the <loc
+href="#parameter-attribute-timeBase"><att>ttp:timeBase</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-timeBase-smpte">
+<head>#timeBase-smpte</head>
+<p>A TTML transformation processor supports the
+<code>#timeBase-smpte</code> feature if it recognizes and is capable
+of transforming the <code>smpte</code> value of the <loc
+href="#parameter-attribute-timeBase"><att>ttp:timeBase</att></loc>
+attribute and if it supports the <loc
+href="#feature-dropMode"><code>#dropMode</code></loc> feature.</p>
+<p>A TTML presentation processor supports the
+<code>#timeBase-smpte</code> feature if it implements presentation
+semantic support for the <code>smpte</code> value of the <loc
+href="#parameter-attribute-timeBase"><att>ttp:timeBase</att></loc>
+attribute and if it supports the <loc
+href="#feature-dropMode"><code>#dropMode</code></loc> feature.</p>
+</div3>
+<div3 id="feature-timeContainer">
+<head>#timeContainer</head>
+<p>A TTML transformation processor supports the
+<code>#timeContainer</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#timing-attribute-timeContainer"><att>timeContainer</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#timeContainer</code> feature if it implements presentation semantic support
+for the <loc
+href="#timing-attribute-timeContainer"><att>timeContainer</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-time-clock">
+<head>#time-clock</head>
+<p>A TTML transformation processor supports the
+<code>#time-clock</code> feature if it recognizes and is capable of
+transforming all values of the <loc
+href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc> that
+satisfy the following subset of time expression syntax:</p>
+<eg xml:space="preserve">
+&lt;timeExpression&gt;
+  : hours ":" minutes ":" seconds ( fraction )?
+</eg>
+<p>A TTML presentation processor supports the
+<code>#time-clock</code> feature if it implements presentation
+semantic support for the same syntax specified above.</p>
+</div3>
+<div3 id="feature-time-clock-with-frames">
+<head>#time-clock-with-frames</head>
+<p>A TTML transformation processor supports the
+<code>#time-clock-with-frames</code> feature if it supports the
+<loc href="#feature-frameRate"><code>#frameRate</code></loc>,
+<loc href="#feature-frameRateMultiplier"><code>#frameRateMultiplier</code></loc>, and
+<loc href="#feature-subFrameRate"><code>#subFrameRate</code></loc> features
+and if it recognizes and is capable of
+transforming all values of the <loc
+href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc> that
+satisfy the following subset of time expression syntax:</p>
+<eg xml:space="preserve">
+&lt;timeExpression&gt;
+  : hours ":" minutes ":" seconds ( fraction | ":" frames ( "." sub-frames )? )?
+</eg>
+<p>A TTML presentation processor supports the
+<code>#time-clock-with-frames</code> feature if it implements
+presentation semantic support for the same features and syntax
+specified above.</p>
+</div3>
+<div3 id="feature-time-offset">
+<head>#time-offset</head>
+<p>A TTML transformation processor supports the
+<code>#time-offset</code> feature if it recognizes and is capable of
+transforming all values of the <loc
+href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc> that
+satisfy the following subset of time expression syntax:</p>
+<eg xml:space="preserve">
+&lt;timeExpression&gt;
+  : time-count fraction? ( "h" | "m" | "s" | "ms" )
+</eg>
+<p>A TTML presentation processor supports the
+<code>#time-offset</code> feature if it implements presentation
+semantic support for the same syntax specified above.</p>
+</div3>
+<div3 id="feature-time-offset-with-frames">
+<head>#time-offset-with-frames</head>
+<p>A TTML transformation processor supports the
+<code>#time-offset-with-frames</code> feature if it supports the
+<loc href="#feature-frameRate"><code>#frameRate</code></loc>,
+<loc href="#feature-frameRateMultiplier"><code>#frameRateMultiplier</code></loc>, and
+<loc href="#feature-subFrameRate"><code>#subFrameRate</code></loc> features
+and if it recognizes and is capable of
+transforming all values of the <loc
+href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc> that
+satisfy the following subset of time expression syntax:</p>
+<eg xml:space="preserve">
+&lt;timeExpression&gt;
+  : time-count fraction? "f"
+</eg>
+<p>A TTML presentation processor supports the
+<code>#time-offset-with-frames</code> feature if it implements
+presentation semantic support for the same features and syntax
+specified above.</p>
+</div3>
+<div3 id="feature-time-offset-with-ticks">
+<head>#time-offset-with-ticks</head>
+<p>A TTML transformation processor supports the
+<code>#time-offset-with-ticks</code> feature if it supports the 
+<loc href="#feature-tickRate"><code>#tickRate</code></loc> feature
+and if it recognizes and is capable of
+transforming all values of the <loc
+href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc> that
+satisfy the following subset of time expression syntax:</p>
+<eg xml:space="preserve">
+&lt;timeExpression&gt;
+  : time-count fraction? "t"
+</eg>
+<p>A TTML presentation processor supports the
+<code>#time-offset-with-ticks</code> feature if it implements presentation
+semantic support for the same features and syntax specified above.</p>
+</div3>
+<div3 id="feature-timing">
+<head>#timing</head>
+<p>A TTML transformation processor supports the <code>#timing</code>
+feature if it recognizes and is capable of transforming the following
+vocabulary defined by <specref ref="timing"/>:</p>
+<ulist>
+<item><p><loc href="#timing-attribute-begin">@<att>begin</att></loc></p></item>
+<item><p><loc href="#timing-attribute-dur">@<att>dur</att></loc></p></item>
+<item><p><loc href="#timing-attribute-end">@<att>end</att></loc></p></item>
+</ulist>
+<p>A TTML presentation processor supports the <code>#timing</code>
+feature if it implements presentation semantic support for the
+same vocabulary enumerated above.</p>
+</div3>
+<div3 id="feature-transformation">
+<head>#transformation</head>
+<p>A TTML processor supports the
+<code>#transformation</code> feature if it
+(1) satisfies the generic processor criteria defined by 
+<specref ref="conformance-generic-processor"/> and
+(2) implements the transformation semantics of the following features:</p>
+<ulist>
+<item><p><loc href="#content"><code>#content</code></loc></p></item>
+<item><p><loc href="#feature-core"><code>#core</code></loc></p></item>
+<item><p><loc href="#feature-profile"><code>#profile</code></loc></p></item>
+<item><p><loc href="#feature-structure"><code>#structure</code></loc></p></item>
+<item><p><loc href="#feature-time-offset"><code>#time-offset</code></loc></p></item>
+<item><p><loc href="#timing"><code>#timing</code></loc></p></item>
+</ulist>
+</div3>
+<div3 id="feature-unicodeBidi">
+<head>#unicodeBidi</head>
+<p>A TTML transformation processor supports the
+<code>#unicodeBidi</code> feature if it recognizes and is capable of
+transforming all defined values of the <loc
+href="#style-attribute-unicodeBidi"><att>tts:unicodeBidi</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#unicodeBidi</code> feature if it implements presentation semantic support
+for all defined values of the <loc
+href="#style-attribute-unicodeBidi"><att>tts:unicodeBidi</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-visibility">
+<head>#visibility</head>
+<p>A TTML transformation processor supports the
+<code>#visibility</code> feature if it recognizes and is capable
+of transforming all defined values of the <loc
+href="#style-attribute-visibility"><att>tts:visibility</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#visibility</code> feature if it implements presentation semantic support
+for all defined values of the <loc
+href="#style-attribute-visibility"><att>tts:visibility</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-visibility-block">
+<head>#visibility-block</head>
+<p>A TTML transformation processor supports the
+<code>#visibility-block</code> feature if it recognizes and is
+capable of transforming all defined values of the <loc
+href="#style-attribute-visibility"><att>tts:visibility</att></loc>
+attribute when applied to a content element that would generate a
+block area during presentation processing.</p>
+<p>A TTML presentation processor supports the
+<code>#visibility-block</code> feature if it implements presentation semantic
+support for all defined values of the <loc
+href="#style-attribute-visibility"><att>tts:visibility</att></loc>
+attribute when applied to a content element that generates a
+block area.</p>
+</div3>
+<div3 id="feature-visibility-inline">
+<head>#visibility-inline</head>
+<p>A TTML transformation processor supports the
+<code>#visibility-inline</code> feature if it recognizes and is
+capable of transforming all defined values of the <loc
+href="#style-attribute-visibility"><att>tts:visibility</att></loc>
+attribute when applied to a content element that would generate an
+inline area during presentation processing.</p>
+<p>A TTML presentation processor supports the
+<code>#visibility-inline</code> feature if it implements presentation semantic
+support for all defined values of the <loc
+href="#style-attribute-visibility"><att>tts:visibility</att></loc>
+attribute when applied to a content element that generates an
+inline area.</p>
+</div3>
+<div3 id="feature-visibility-region">
+<head>#visibility-region</head>
+<p>A TTML transformation processor supports the
+<code>#visibility-region</code> feature if it recognizes and is
+capable of transforming all defined values of the <loc
+href="#style-attribute-visibility"><att>tts:visibility</att></loc>
+attribute when applied to a <loc
+href="#layout-vocabulary-region"><el>region</el></loc> element.</p>
+<p>A TTML presentation processor supports the
+<code>#visibility-region</code> feature if it implements presentation semantic
+support for all defined values of the <loc
+href="#style-attribute-visibility"><att>tts:visibility</att></loc>
+attribute when applied to a <loc
+href="#layout-vocabulary-region"><el>region</el></loc> element.</p>
+</div3>
+<div3 id="feature-wrapOption">
+<head>#wrapOption</head>
+<p>A TTML transformation processor supports the
+<code>#wrapOption</code> feature if it recognizes and is capable
+of transforming all defined values of the <loc
+href="#style-attribute-wrapOption"><att>tts:wrapOption</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#wrapOption</code> feature if it implements presentation semantic support
+for all defined values of the <loc
+href="#style-attribute-wrapOption"><att>tts:wrapOption</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-writingMode">
+<head>#writingMode</head>
+<p>A TTML transformation processor supports the
+<code>#writingMode</code> feature if it recognizes and is capable
+of transforming all defined values of the <loc
+href="#style-attribute-writingMode"><att>tts:writingMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#writingMode</code> feature if it implements presentation semantic support
+for all defined values of the <loc
+href="#style-attribute-writingMode"><att>tts:writingMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-writingMode-vertical">
+<head>#writingMode-vertical</head>
+<p>A TTML transformation processor supports the
+<code>#writingMode-vertical</code> feature if it recognizes and is
+capable of transforming the <code>tbrl</code>, <code>tblr</code>, and
+<code>tb</code> values of the <loc
+href="#style-attribute-writingMode"><att>tts:writingMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#writingMode-vertical</code> feature if it implements presentation semantic
+support for the <code>tbrl</code>, <code>tblr</code>, and
+<code>tb</code> values of the <loc
+href="#style-attribute-writingMode"><att>tts:writingMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-writingMode-horizontal">
+<head>#writingMode-horizontal</head>
+<p>A TTML transformation processor supports the
+<code>#writingMode-horizontal</code> feature if it recognizes and is
+capable of transforming the <code>lrtb</code>, <code>rltb</code>,
+<code>lr</code> and <code>rl</code> values of the <loc
+href="#style-attribute-writingMode"><att>tts:writingMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#writingMode-horizontal</code> feature if it implements presentation semantic
+support for the <code>lrtb</code>, <code>rltb</code>, <code>lr</code>
+and <code>rl</code> values of the <loc
+href="#style-attribute-writingMode"><att>tts:writingMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-writingMode-horizontal-lr">
+<head>#writingMode-horizontal-lr</head>
+<p>A TTML transformation processor supports the
+<code>#writingMode-horizontal</code> feature if it recognizes and is
+capable of transforming the <code>lrtb</code> and <code>lr</code>
+values of the <loc
+href="#style-attribute-writingMode"><att>tts:writingMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#writingMode-horizontal-lr</code> feature if it implements presentation semantic
+support for the <code>lrtb</code> and <code>lr</code> values of the
+<loc
+href="#style-attribute-writingMode"><att>tts:writingMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-writingMode-horizontal-rl">
+<head>#writingMode-horizontal-rl</head>
+<p>A TTML transformation processor supports the
+<code>#writingMode-horizontal</code> feature if it recognizes and is
+capable of transforming the <code>rltb</code> and <code>rl</code>
+values of the <loc
+href="#style-attribute-writingMode"><att>tts:writingMode</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#writingMode-horizontal-rl</code> feature if it implements presentation semantic
+support for the <code>rltb</code> and <code>rl</code> values of the
+<loc
+href="#style-attribute-writingMode"><att>tts:writingMode</att></loc>
+attribute.</p>
+</div3>
+<div3 id="feature-zIndex">
+<head>#zIndex</head>
+<p>A TTML transformation processor supports the
+<code>#zIndex</code> feature if it recognizes and is capable of
+transforming the <loc
+href="#style-attribute-zIndex"><att>tts:zIndex</att></loc>
+attribute.</p>
+<p>A TTML presentation processor supports the
+<code>#zIndex</code> feature if it implements presentation semantic support for
+the <loc
+href="#style-attribute-zIndex"><att>tts:zIndex</att></loc>
+attribute.</p>
+</div3>
+</div2>
+<div2 id="feature-support">
+<head>Feature Support</head>
+<p>The following table, <specref ref="feature-support-table"/>,
+enumerates every defined feature designation (expressed without the TT
+Feature Namespace), and, for each designated feature, specifies
+whether the feature is mandatory (M) or optional (O) for
+transformation and presentation processors.</p>
+<table id="feature-support-table" role="common">
+<caption>Table E-1 &ndash; Feature Support</caption>
+<col width="60%"/>
+<col width="20%"/>
+<col width="20%"/>
+<tbody>
+<tr>
+<td><phrase role="strong">Feature</phrase></td>
+<td><phrase role="strong">Transformation</phrase></td>
+<td><phrase role="strong">Presentation</phrase></td>
+</tr>
+<tr>
+<td><loc href="#feature-animation"><code>#animation</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-backgroundColor"><code>#backgroundColor</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-backgroundColor-block"><code>#backgroundColor-block</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-backgroundColor-inline"><code>#backgroundColor-inline</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-backgroundColor-region"><code>#backgroundColor-region</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-bidi"><code>#bidi</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-cellResolution"><code>#cellResolution</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-clockMode"><code>#clockMode</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-clockMode-gps"><code>#clockMode-gps</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-clockMode-local"><code>#clockMode-local</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-clockMode-utc"><code>#clockMode-utc</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-color"><code>#color</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-content"><code>#content</code></loc></td>
+<td>M</td>
+<td>M</td>
+</tr>
+<tr>
+<td><loc href="#feature-core"><code>#core</code></loc></td>
+<td>M</td>
+<td>M</td>
+</tr>
+<tr>
+<td><loc href="#feature-direction"><code>#direction</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-display"><code>#display</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-display-block"><code>#display-block</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-display-inline"><code>#display-inline</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-display-region"><code>#display-region</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-displayAlign"><code>#displayAlign</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-dropMode"><code>#dropMode</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-dropMode-dropNTSC"><code>#dropMode-dropNTSC</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-dropMode-dropPAL"><code>#dropMode-dropPAL</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-dropMode-nonDrop"><code>#dropMode-nonDrop</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-extent"><code>#extent</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-extent-region"><code>#extent-region</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-extent-root"><code>#extent-root</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-fontFamily"><code>#fontFamily</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-fontFamily-generic"><code>#fontFamily-generic</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-fontFamily-non-generic"><code>#fontFamily-non-generic</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-fontSize"><code>#fontSize</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-fontSize-anamorphic"><code>#fontSize-anamorphic</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-fontSize-isomorphic"><code>#fontSize-isomorphic</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-fontStyle"><code>#fontStyle</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-fontStyle-italic"><code>#fontStyle-italic</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-fontStyle-oblique"><code>#fontStyle-oblique</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-fontWeight"><code>#fontWeight</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-fontWeight-bold"><code>#fontWeight-bold</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-frameRate"><code>#frameRate</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-frameRateMultiplier"><code>#frameRateMultiplier</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-layout"><code>#layout</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-length"><code>#length</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-length-cell"><code>#length-cell</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-length-em"><code>#length-em</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-length-integer"><code>#length-integer</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-length-negative"><code>#length-negative</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-length-percentage"><code>#length-percentage</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-length-pixel"><code>#length-pixel</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-length-positive"><code>#length-positive</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-length-real"><code>#length-real</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-lineBreak-uax14"><code>#lineBreak-uax14</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-lineHeight"><code>#lineHeight</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-markerMode"><code>#markerMode</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-markerMode-continuous"><code>#markerMode-continuous</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-markerMode-discontinuous"><code>#markerMode-discontinuous</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-metadata"><code>#metadata</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-nested-div"><code>#nested-div</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-nested-span"><code>#nested-span</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-opacity"><code>#opacity</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-origin"><code>#origin</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-overflow"><code>#overflow</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-overflow-visible"><code>#overflow-visible</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-padding"><code>#padding</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-padding-1"><code>#padding-1</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-padding-2"><code>#padding-2</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-padding-3"><code>#padding-3</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-padding-4"><code>#padding-4</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-pixelAspectRatio"><code>#pixelAspectRatio</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-presentation"><code>#presentation</code></loc></td>
+<td>O</td>
+<td>M</td>
+</tr>
+<tr>
+<td><loc href="#feature-profile"><code>#profile</code></loc></td>
+<td>M</td>
+<td>M</td>
+</tr>
+<tr>
+<td><loc href="#feature-showBackground"><code>#showBackground</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-structure"><code>#structure</code></loc></td>
+<td>M</td>
+<td>M</td>
+</tr>
+<tr>
+<td><loc href="#feature-styling"><code>#styling</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-styling-chained"><code>#styling-chained</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-styling-inheritance-content"><code>#styling-inheritance-content</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-styling-inheritance-region"><code>#styling-inheritance-region</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-styling-inline"><code>#styling-inline</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-styling-nested"><code>#styling-nested</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-styling-referential"><code>#styling-referential</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-subFrameRate"><code>#subFrameRate</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-textAlign"><code>#textAlign</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-textAlign-absolute"><code>#textAlign-absolute</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-textAlign-relative"><code>#textAlign-relative</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-textDecoration"><code>#textDecoration</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-textDecoration-over"><code>#textDecoration-over</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-textDecoration-through"><code>#textDecoration-through</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-textDecoration-under"><code>#textDecoration-under</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-textOutline"><code>#textOutline</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-textOutline-blurred"><code>#textOutline-blurred</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-textOutline-unblurred"><code>#textOutline-unblurred</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-tickRate"><code>#tickRate</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-timeBase-clock"><code>#timeBase-clock</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-timeBase-media"><code>#timeBase-media</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-timeBase-smpte"><code>#timeBase-smpte</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-timeContainer"><code>#timeContainer</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-time-clock"><code>#time-clock</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-time-clock-with-frames"><code>#time-clock-with-frames</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-time-offset"><code>#time-offset</code></loc></td>
+<td>M</td>
+<td>M</td>
+</tr>
+<tr>
+<td><loc href="#feature-time-offset-with-frames"><code>#time-offset-with-frames</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-time-offset-with-ticks"><code>#time-offset-with-ticks</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-timing"><code>#timing</code></loc></td>
+<td>M</td>
+<td>M</td>
+</tr>
+<tr>
+<td><loc href="#feature-transformation"><code>#transformation</code></loc></td>
+<td>M</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-unicodeBidi"><code>#unicodeBidi</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-visibility"><code>#visibility</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-visibility-block"><code>#visibility-block</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-visibility-inline"><code>#visibility-inline</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-visibility-region"><code>#visibility-region</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-wrapOption"><code>#wrapOption</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-writingMode"><code>#writingMode</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-writingMode-vertical"><code>#writingMode-vertical</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-writingMode-horizontal"><code>#writingMode-horizontal</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-writingMode-horizontal-lr"><code>#writingMode-horizontal-lr</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-writingMode-horizontal-rl"><code>#writingMode-horizontal-rl</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+<tr>
+<td><loc href="#feature-zIndex"><code>#zIndex</code></loc></td>
+<td>O</td>
+<td>O</td>
+</tr>
+</tbody>
+</table>
+<p>For the sake of convenience, the following table,
+<specref ref="feature-transformation-mandatory-table"/>, enumerates all
+mandatory features for a TTML Transformation Processor, providing additional
+comments to summarize the context of usage or the nature of the feature.
+The TTML Profile Definition Document that defines the corresponding
+DFXP Transformation Profile is specified in
+<specref ref="profile-dfxp-transformation"/>.
+</p>
+<table id="feature-transformation-mandatory-table" role="common">
+<caption>Table E-2 &ndash; Mandatory Features - Transformation</caption>
+<col width="60%"/>
+<col width="40%"/>
+<tbody>
+<tr>
+<td><phrase role="strong">Feature</phrase></td>
+<td><phrase role="strong">Comments</phrase></td>
+</tr>
+<tr>
+<td><loc href="#feature-content"><code>#content</code></loc></td>
+<td>
+<loc href="#document-structure-vocabulary-body"><el>body</el></loc>,
+<loc href="#content-vocabulary-div"><el>div</el></loc>,
+<loc href="#content-vocabulary-p"><el>p</el></loc>,
+<loc href="#content-vocabulary-span"><el>span</el></loc>,
+<loc href="#content-vocabulary-br"><el>br</el></loc>
+</td>
+</tr>
+<tr>
+<td><loc href="#feature-core"><code>#core</code></loc></td>
+<td>
+<loc href="#content-attribute-id">@<att>xml:id</att></loc>,
+<loc href="#content-attribute-id">@<att>xml:lang</att></loc>,
+<loc href="#content-attribute-id">@<att>xml:space</att></loc>
+</td>
+</tr>
+<tr>
+<td><loc href="#feature-profile"><code>#profile</code></loc></td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#feature-structure"><code>#structure</code></loc></td>
+<td>
+<loc href="#document-structure-vocabulary-tt"><el>tt</el></loc>,
+<loc href="#document-structure-vocabulary-head"><el>head</el></loc>
+</td>
+</tr>
+
+<tr>
+<td><loc href="#feature-time-offset"><code>#time-offset</code></loc></td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#feature-timing"><code>#timing</code></loc></td>
+<td>
+<loc href="#timing-attribute-begin">@<att>begin</att></loc>,
+<loc href="#timing-attribute-dur">@<att>dur</att></loc>,
+<loc href="#timing-attribute-end">@<att>end</att></loc>
+</td>
+</tr>
+<tr>
+<td><loc href="#feature-transformation"><code>#transformation</code></loc></td>
+<td></td>
+</tr>
+</tbody>
+</table>
+<p>For the sake of convenience, the following table,
+<specref ref="feature-presentation-mandatory-table"/>, enumerates all
+mandatory features for a TTML Presentation Processor, providing additional
+comments to summarize the context of usage or the nature of the feature.
+The TTML Profile Definition Document that defines the corresponding
+DFXP Presentation Profile is specified in
+<specref ref="profile-dfxp-presentation"/>.
+</p>
+<table id="feature-presentation-mandatory-table" role="common">
+<caption>Table E-3 &ndash; Mandatory Features - Presentation</caption>
+<col width="60%"/>
+<col width="40%"/>
+<tbody>
+<tr>
+<td><phrase role="strong">Feature</phrase></td>
+<td><phrase role="strong">Comments</phrase></td>
+</tr>
+<tr>
+<td><loc href="#feature-content"><code>#content</code></loc></td>
+<td>
+<loc href="#document-structure-vocabulary-body"><el>body</el></loc>,
+<loc href="#content-vocabulary-div"><el>div</el></loc>,
+<loc href="#content-vocabulary-p"><el>p</el></loc>,
+<loc href="#content-vocabulary-span"><el>span</el></loc>,
+<loc href="#content-vocabulary-br"><el>br</el></loc>
+</td>
+</tr>
+<tr>
+<td><loc href="#feature-core"><code>#core</code></loc></td>
+<td>
+<loc href="#content-attribute-id">@<att>xml:id</att></loc>,
+<loc href="#content-attribute-id">@<att>xml:lang</att></loc>,
+<loc href="#content-attribute-id">@<att>xml:space</att></loc>
+</td>
+</tr>
+<tr>
+<td><loc href="#feature-profile"><code>#profile</code></loc></td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#feature-presentation"><code>#presentation</code></loc></td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#feature-structure"><code>#structure</code></loc></td>
+<td>
+<loc href="#document-structure-vocabulary-tt"><el>tt</el></loc>,
+<loc href="#document-structure-vocabulary-head"><el>head</el></loc>
+</td>
+</tr>
+<tr>
+<td><loc href="#feature-time-offset"><code>#time-offset</code></loc></td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#feature-timing"><code>#timing</code></loc></td>
+<td>
+<loc href="#timing-attribute-begin">@<att>begin</att></loc>,
+<loc href="#timing-attribute-dur">@<att>dur</att></loc>,
+<loc href="#timing-attribute-end">@<att>end</att></loc>
+</td>
+</tr>
+</tbody>
+</table>
+</div2>
+</div1>
+<div1 id="extensions">
+<head>Extensions</head>
+<p><emph>This appendix is normative.</emph></p>
+<p>This appendix specifies the syntactic form of extension designations, which are
+used to express authorial intent regarding the support for extension
+mechanisms in a TTML processor.</p>
+<div2 id="extension-designations">
+<head>Extension Designations</head>
+<p>An extension designation is expressed as a string that adheres to the following
+form:</p>
+<eg xml:space="preserve">
+extension-designation
+  : extension-namespace designation
+
+extension-namespace
+  : <emph>TT Extension Namespace</emph>                  // http://www.w3.org/ns/ttml/extension/
+  | <emph>Other Extension Namespace</emph>               // expressed as an absolute URI
+
+designation
+  : "#" token-char+
+
+token-char
+  : { XML NameChar }                        // XML 1.1 Production [4a]
+</eg>
+<p>If the extension namespace of an extension designation is the TT
+Extension Namespace, then all values of the following
+<code>designation</code> token are reserved for future
+standardization.</p>
+<p>If the extension namespace of an extension designation is not the
+TT Extension Namespace, i.e., is an <emph>Other Extension Namespace</emph>,
+then the extension namespace must be expressed as an absolute URI
+capable of serving as a base URI used in combination with a
+<code>designation</code> token that takes the form of a fragment
+identifier.</p>
+</div2>
+</div1>
+<div1 id="profiles">
+<head>Profiles</head>
+<p><emph>This appendix is normative.</emph></p>
+<p>This appendix specifies the following standard TTML profiles:</p>
+<ulist>
+<item><p><specref ref="profile-dfxp-transformation"/></p></item>
+<item><p><specref ref="profile-dfxp-presentation"/></p></item>
+<item><p><specref ref="profile-dfxp-full"/></p></item>
+</ulist>
+<p>Each TTML profile is defined in terms of a TTML Profile Definition Document,
+which is expressed as an XML document wherein the root element adheres to
+<specref ref="parameter-vocabulary-profile"/>.</p>
+<div2 id="profile-dfxp-transformation">
+<head>DFXP Transformation Profile</head>
+<p>The DFXP Transformation Profile is intended to be used to
+express minimum compliance for transformation processing.</p>
+<eg xml:space="preserve">&profile-dfxp-transformation;</eg>
+</div2>
+<div2 id="profile-dfxp-presentation">
+<head>DFXP Presentation Profile</head>
+<p>The DFXP Presentation Profile is intended to be used to
+express minimum compliance for presentation processing.</p>
+<eg xml:space="preserve">&profile-dfxp-presentation;</eg>
+</div2>
+<div2 id="profile-dfxp-full">
+<head>DFXP Full Profile</head>
+<p>The DFXP Full Profile is intended to be used to
+express maximum compliance for both transformation and presentation processing.</p>
+<eg xml:space="preserve">&profile-dfxp-full;</eg>
+</div2>
+</div1>
+<div1 id="references">
+<head>References</head>
+<p><emph>This appendix is normative.</emph></p>
+<blist>
+<bibl id="css2" key="CSS2">Bert Bos et al.,
+<titleref
+href="http://www.w3.org/TR/1998/REC-CSS2-19980512/">Cascading
+Style Sheets, Level 2</titleref>, W3C Recommendation, 12
+May 1998. (See
+<xspecref href="http://www.w3.org/TR/1998/REC-CSS2-19980512/">http://www.w3.org/TR/1998/REC-CSS2-19980512/</xspecref>.)
+</bibl>
+<bibl id="gps" key="GPS">
+<titleref href="http://tycho.usno.navy.mil/gpsinfo.html">Global
+Positioning System</titleref>, US Naval Observatory.
+(See
+<xspecref href="http://tycho.usno.navy.mil/gpsinfo.html">http://tycho.usno.navy.mil/gpsinfo.html</xspecref>.)
+</bibl>
+<bibl id="mime-media" key="MIME">Ned Freed and Nathaniel Borenstein,  
+<titleref
+href="http://www.rfc-editor.org/rfc/rfc2046.txt">Multipurpose Internet
+Mail Extensions (MIME) Part Two: Media Types</titleref>,
+RFC 2046, November 1996, IETF.(See
+<xspecref href="http://www.rfc-editor.org/rfc/rfc2046.txt">http://www.rfc-editor.org/rfc/rfc2046.txt</xspecref>.)
+</bibl>
+<bibl id="rng" key="RELAX NG">ISO/IEC 19757-2,
+<titleref href="http://www.iso.org/">Information technology &ndash; Document
+Schema Definition Language (DSDL) &ndash; Part 2: Regular-grammar-based validation &ndash; RELAX NG</titleref>,
+International Organization for Standardization (ISO).
+</bibl>
+<bibl id="smil21" key="SMIL 2.1">Dick Bultermann, et al.,
+<titleref href="http://www.w3.org/TR/2005/REC-SMIL2-20051213/">Synchronized
+Multimedia Integration Language (SMIL 2.1)</titleref>,
+W3C Recommendation, 13 December 2005. (See
+<xspecref href="http://www.w3.org/TR/2005/REC-SMIL2-20051213/">http://www.w3.org/TR/2005/REC-SMIL2-20051213/</xspecref>.)
+</bibl>
+<bibl id="smpte12m" key="SMPTE 12M">ANSI/SMPTE 12M,
+<titleref href="http://www.smpte.org/">Television, Audio and Film &ndash;
+Time and Control Code</titleref>, SMPTE Standard.
+</bibl>
+<bibl id="srgb" key="SRGB">IEC 61966-2-1,
+<titleref
+href="http://www.iec.ch/">Multimedia
+systems and equipment &ndash; Colour measurement and management
+&ndash; Part 2-1: Colour management &ndash; Default RGB colour space
+&ndash; sRGB</titleref>, International Electrotechnical
+Commission (IEC).
+</bibl>
+<bibl id="uaag" key="UAAG">Ian Jacobs, Jon Gunderson, and Eric Hansen, Eds.,
+<titleref href="http://www.w3.org/TR/2002/REC-UAAG10-20021217/">User
+Agent Accessibility Guidelines 1.0</titleref>, W3C Recommendation, 17
+December 2002. (See
+<xspecref href="http://www.w3.org/TR/2002/REC-UAAG10-20021217/">http://www.w3.org/TR/2002/REC-UAAG10-20021217/</xspecref>.)
+</bibl>
+<bibl id="utc" key="UTC">
+Recommendation TF.460,
+<titleref
+href="http://www.itu.int/">Standard-Frequency and Time-Signal
+Emissions</titleref>, International
+Telecommunciations Union, Radio Sector (ITU-R).
+</bibl>
+<bibl id="uax14" key="UAX14">Asmus Freytag, <titleref
+href="http://www.unicode.org/reports/tr14/tr14-17.html">Line Breaking
+Properties</titleref>, Unicode Consortium, 29 August 2005. (See
+<xspecref
+href="http://www.unicode.org/reports/tr14/tr14-17.html">http://www.unicode.org/reports/tr14/tr14-17.html</xspecref>.)
+</bibl>
+<bibl id="wcag" key="WCAG">Ben Caldwell, et al., Eds.,
+<titleref href="http://www.w3.org/TR/2008/REC-WCAG20-20081211/">Web
+Content Accessibility Guidelines (WCAG) 2.0</titleref>, W3C Recommendation, 11 December 2008. (See
+<xspecref href="http://www.w3.org/TR/2008/REC-WCAG20-20081211/">http://www.w3.org/TR/2008/REC-WCAG20-20081211/</xspecref>.)
+</bibl>
+<bibl id="xml10" key="XML 1.0">Tim Bray, et al.
+<titleref href="http://www.w3.org/TR/2008/REC-xml-20081126/">Extensible Markup Language (XML)
+1.0 (Fifth Edition)</titleref>, W3C Recommendation, 26 November 2008. (See
+<xspecref href="http://www.w3.org/TR/2008/REC-xml-20081126/">http://www.w3.org/TR/2008/REC-xml-20081126/</xspecref>.)
+</bibl>
+<bibl id="xml11" key="XML 1.1">Tim Bray, et al.
+<titleref href="http://www.w3.org/TR/2006/REC-xml11-20060816/">Extensible Markup Language (XML)
+1.1 (Second Edition)</titleref>, W3C Recommendation, 16 August 2006, edited in place 29 September 2006. (See
+<xspecref href="http://www.w3.org/TR/2006/REC-xml11-20060816/">http://www.w3.org/TR/2006/REC-xml11-20060816/</xspecref>.)
+</bibl>
+<bibl id="xmlbase" key="XML Base">Jonathan Marsh and Richard Tobin, Eds.,
+<titleref href="http://www.w3.org/TR/2009/REC-xmlbase-20090128/">XML Base (Second Edition)</titleref>,
+W3C Recommendation, 28 January 2009. (See
+<xspecref href="http://www.w3.org/TR/2009/REC-xmlbase-20090128/">http://www.w3.org/TR/2009/REC-xmlbase-20090128/</xspecref>.)
+</bibl>
+<bibl id="xmlid" key="XML ID">Jonathan Marsh, Daniel Veillard, Norman Walsh, Eds.,
+<titleref href="http://www.w3.org/TR/2005/REC-xml-id-20050909/">xml:id Version 1.0</titleref>,
+W3C Recommendation, 09 September 2005. (See
+<xspecref href="http://www.w3.org/TR/2005/REC-xml-id-20050909/">http://www.w3.org/TR/2005/REC-xml-id-20050909/</xspecref>.)
+</bibl>
+<bibl id="xml-media" key="XML Media">Makato Murata, Simon St. Laurent,
+Kan Khon, Eds., <titleref
+href="http://www.rfc-editor.org/rfc/rfc3023.txt">XML Media Types</titleref>,
+RFC 3023, January 2001, IETF.(See
+<xspecref
+href="http://www.rfc-editor.org/rfc/rfc3023.txt">http://www.rfc-editor.org/rfc/rfc3023.txt</xspecref>.)
+</bibl>
+<bibl id="infoset" key="XML InfoSet">John Cowan and Richard Tobin, Eds.,
+<titleref href="http://www.w3.org/TR/2004/REC-xml-infoset-20040204/">XML Information Set (Second Edition)</titleref>,
+W3C Recommendation, 04 February 2004. (See
+<xspecref href="http://www.w3.org/TR/2004/REC-xml-infoset-20040204/">http://www.w3.org/TR/2004/REC-xml-infoset-20040204/</xspecref>.)
+</bibl>
+<bibl id="rfc3023" key="XML Media Types">Makato Murata, et al.,
+<titleref
+href="http://www.rfc-editor.org/rfc/rfc3023.txt">XML Media Types</titleref>,
+RFC 3023, January 2001, IETF.(See
+<xspecref
+href="http://www.rfc-editor.org/rfc/rfc3023.txt">http://www.rfc-editor.org/rfc/rfc3023.txt</xspecref>.)
+</bibl>
+<bibl id="xmlns10" key="XML Namespaces 1.0">Tim Bray, et al.
+<titleref href="http://www.w3.org/TR/2009/REC-xml-names-20091208/">Namespaces
+in XML 1.0 (Third Edition)</titleref>, W3C Recommendation, 8 December 2009. (See
+<xspecref href="http://www.w3.org/TR/2009/REC-xml-names-20091208/">http://www.w3.org/TR/2009/REC-xml-names-20091208/</xspecref>.)
+</bibl>
+<bibl id="xsd-1" key="XML Schema Part 1">Henry S. Thompson, David Beech,
+Murray Maloney, Noah Mendelsohn, Eds.,
+<titleref href="http://www.w3.org/TR/xmlschema-1/">XML Schema Part 1: Structures</titleref>,
+W3C Recommendation, 28 October 2004. (See
+<xspecref href="http://www.w3.org/TR/xmlschema-1/">http://www.w3.org/TR/xmlschema-1/</xspecref>.)
+</bibl>
+<bibl id="xsd-2" key="XML Schema Part 2">Paul Biron and Ashok Malhotra,
+<titleref href="http://www.w3.org/TR/xmlschema-2/">XML Schema Part 2: Datatypes</titleref>,
+W3C Recommendation, 28 October 2004. (See
+<xspecref href="http://www.w3.org/TR/xmlschema-2/">http://www.w3.org/TR/xmlschema-2/</xspecref>.)
+</bibl>
+<bibl id="xsl11" key="XSL 1.1">Anders Berglund,
+<titleref href="http://www.w3.org/TR/2006/REC-xsl11-20061205/">Extensible Stylesheet Language (XSL) Version 1.1</titleref>,
+W3C Recommendation, 05 December 2006. (See
+<xspecref href="http://www.w3.org/TR/2006/REC-xsl11-20061205/">http://www.w3.org/TR/2006/REC-xsl11-20061205/</xspecref>.)
+</bibl>
+</blist>
+</div1>
+<inform-div1 id="other-references">
+<head>Other References</head>
+<blist>
+<bibl id="ccreq" key="CC-DECODER-REQ"><titleref
+href="http://edocket.access.gpo.gov/cfr_2005/octqtr/47cfr15.119.htm">Closed Caption Decoder
+Requirements for Analog Television</titleref>,
+United States Code of Federal Regulations, Title 47, Volume 1, Part 15, &sect; 15.119. (See
+<xspecref href="http://edocket.access.gpo.gov/cfr_2005/octqtr/47cfr15.119.htm">http://edocket.access.gpo.gov/cfr_2005/octqtr/47cfr15.119.htm</xspecref>.)
+</bibl>
+<bibl id="cea608c" key="CEA-608-C">
+EIA/CEA-608-C,
+<titleref href="http://www.ce.org/">Line 21 Data
+Services</titleref>, EIA/CEA Standard,
+Consumer Electronics Association (CEA).
+</bibl>
+<bibl id="css3-color" key="CSS3 Color">Tantek &Ccedil;elik and Chris Lilley,
+<titleref href="http://www.w3.org/TR/2003/CR-css3-color-20030514/">CSS3 Color
+Module</titleref>, W3C Candidate Recommendation, 14 May 2003. (See
+<xspecref href="http://www.w3.org/TR/2003/CR-css3-color-20030514/">http://www.w3.org/TR/2003/CR-css3-color-20030514/</xspecref>.)
+</bibl>
+<bibl id="dcmes" key="DCMES 1.1">Dublin Core Metadata Initiative,
+<titleref href="http://dublincore.org/documents/dces/">Dublin Core Metadata Element Set, Version 1.1: Reference Description</titleref>. (See
+<xspecref href="http://dublincore.org/documents/dces/">http://dublincore.org/documents/dces/</xspecref>.)
+</bibl>
+<bibl id="mpeg7-5" key="MPEG7-5">
+ISO/IEC 15938-5,
+<titleref
+href="http://www.iso.org/">Information technology &ndash; Multimedia content description
+interface &ndash; Part 5: Multimedia description schemes</titleref>,
+International Organization for Standardization (ISO).
+</bibl>
+<bibl id="nsstate" key="NSState">Norman Walsh, Ed.,
+<titleref
+href="http://www.w3.org/2001/tag/doc/namespaceState-2006-01-09.html">The Disposition
+of Names in an XML Namespace</titleref>, TAG Finding, 9 January 2006. (See
+<xspecref href="http://www.w3.org/2001/tag/doc/namespaceState-2006-01-09.html">http://www.w3.org/2001/tag/doc/namespaceState-2006-01-09</xspecref>.)
+</bibl>
+<bibl id="qaf-sg" key="QAF SG">Karl Dubost, et al.,
+<titleref
+href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/">QA
+Framework: Specifications Guidelines</titleref>, W3C Recommendation, 17
+August 2005. (See
+<xspecref href="http://www.w3.org/TR/qaframe-spec/">http://www.w3.org/TR/qaframe-spec/</xspecref>.)
+</bibl>
+<bibl id="smpte170m" key="SMPTE 170M">ANSI/SMPTE 170M, 
+<titleref
+href="http://www.smpte.org/">Television &ndash; Composite Analog Video
+Signal &ndash; NTSC for Studio Applications</titleref>, SMPTE Standard.
+</bibl>
+<bibl id="svg11" key="SVG 1.1">Jon Ferraiolo, Jun Fujisawa, Dean Jackson, Eds.,
+<titleref
+href="http://www.w3.org/TR/2003/REC-SVG11-20030114/">Scalable
+Vector Graphics (SVG) 1.1 Specification</titleref>, W3C Recommendation, 14
+January 2003. (See
+<xspecref href="http://www.w3.org/TR/2003/REC-SVG11-20030114/">http://www.w3.org/TR/2003/REC-SVG11-20030114/</xspecref>.)
+</bibl>
+<bibl id="ttaf1-req" key="TTAF1-REQ">Glenn Adams, Ed.,
+<titleref href="http://www.w3.org/TR/2006/NOTE-ttaf1-req-20060427/">Timed Text (TT) Authoring Format 1.0 Use
+Cases and Requirements</titleref>,
+W3C Working Group Note, 27 April 2006. (See
+<xspecref
+href="http://www.w3.org/TR/2006/NOTE-ttaf1-req-20060427/">http://www.w3.org/TR/2006/NOTE-ttaf1-req-20060427/</xspecref>.)
+</bibl>
+<bibl id="xhtml10" key="XHTML 1.0">Steven Pemberton, et al.,
+<titleref
+href="http://www.w3.org/TR/2002/REC-xhtml1-20020801/">XHTML&trade; 1.0,
+The Extensible Hypertext Markup Language (Second Edition)</titleref>,
+W3C Recommendation, 01
+August 2002. (See
+<xspecref href="http://www.w3.org/TR/2002/REC-xhtml1-20020801/">http://www.w3.org/TR/2002/REC-xhtml1-20020801/</xspecref>.)
+</bibl>
+</blist>
+</inform-div1>
+<inform-div1 id="requirements">
+<head>Requirements</head>
+<p>The Distribution Format Exchange Profile (DFXP) of the Timed Text Authoring
+Format (TTML) satisfies a subset of the requirements established by
+<bibref ref="ttaf1-req"/>. The following table enumerates these requirements and
+indicates the extent to which they are satisfied by this specification, where
+<emph>S</emph> denotes a requirement is satisfied, <emph>P</emph> denotes
+a requirement is partially satisfied, and <emph>N</emph> denotes a
+requirement is not satisfied.</p>
+<table id="requirements-table" role="common">
+<caption>Table J-1 &ndash; Requirement Satisfaction</caption>
+<col width="10%"/>
+<col width="40%"/>
+<col width="10%"/>
+<tbody>
+<tr>
+<th>ID</th>
+<th>Name</th>
+<th>Status</th>
+<th>Comments</th>
+</tr>
+<tr>
+<td>R100</td>
+<td>Specification Format</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R101</td>
+<td>Specification Modularity</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R102</td>
+<td>Specification Organization</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R103</td>
+<td>Core and Periphery</td>
+<td>S</td>
+<td>TT extension namespaces</td>
+</tr>
+<tr>
+<td>R104</td>
+<td>Evolution of Core</td>
+<td>S</td>
+<td>TT extension namespaces</td>
+</tr>
+<tr>
+<td>R105</td>
+<td>Ownership of Core</td>
+<td>S</td>
+<td>TT namespaces</td>
+</tr>
+<tr>
+<td>R106</td>
+<td>Surjection of Core</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R107</td>
+<td>Evolution of Periphery</td>
+<td>S</td>
+<td>TT extension namespaces</td>
+</tr>
+<tr>
+<td>R108</td>
+<td>Ownership of Periphery</td>
+<td>S</td>
+<td>Non-TT namespaces</td>
+</tr>
+<tr>
+<td>R109</td>
+<td>Transformation</td>
+<td>S</td>
+<td>Supports 3GPP, QText, RealText, SAMI</td>
+</tr>
+<tr>
+<td>R110</td>
+<td>Streamable Transformation</td>
+<td>S</td>
+<td>Progressive decoding</td>
+</tr>
+<tr>
+<td>R111</td>
+<td>Accessibility &ndash; Content</td>
+<td>S</td>
+<td>Alternative document instances</td>
+</tr>
+<tr>
+<td>R112</td>
+<td>Accessibility &ndash; Authoring System</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R200</td>
+<td>Authorability</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R201</td>
+<td>Multiple Natural Languages</td>
+<td>S</td>
+<td>Alternative document instances</td>
+</tr>
+<tr>
+<td>R202</td>
+<td>Natural Language Coverage</td>
+<td>S</td>
+<td>Unicode 4.0</td>
+</tr>
+<tr>
+<td>R203</td>
+<td>Natural Language Association Granularity</td>
+<td>S</td>
+<td>See <code>xml:lang</code></td>
+</tr>
+<tr>
+<td>R204</td>
+<td>Minimum Character Representability</td>
+<td>S</td>
+<td>Unicode 4.0</td>
+</tr>
+<tr>
+<td>R205</td>
+<td>Intrinsic and Extrinsic Text Content</td>
+<td>P</td>
+<td>Intrinsic only</td>
+</tr>
+<tr>
+<td>R206</td>
+<td>Markup Association</td>
+<td>P</td>
+<td>Intrinsic only</td>
+</tr>
+<tr>
+<td>R207</td>
+<td>Conditional Content</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R208</td>
+<td>Flowed Text</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R209</td>
+<td>Logical Flowed Text Vocabulary</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R210</td>
+<td>Presentational Flowed Text Vocabulary</td>
+<td>S</td>
+<td>Implied mapping from logical flowed text.</td>
+</tr>
+<tr>
+<td>R211</td>
+<td>Flowed Text Vocabulary Relationship</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R212</td>
+<td>Flowed Text Vocabulary Separation</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R213</td>
+<td>Non-Flowed Text</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R214</td>
+<td>Non-Flowed Text Vocabulary</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R215</td>
+<td>Hybrid Flowed and Non-Flowed Text</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R216</td>
+<td>Hyperlinking</td>
+<td>N</td>
+<td>Can support via XLink</td>
+</tr>
+<tr>
+<td>R217</td>
+<td>Embedded Graphics</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R218</td>
+<td>Non-Embedded Graphics</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R219</td>
+<td>Embedded Fonts</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R220</td>
+<td>Non-Embedded Fonts</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R221</td>
+<td>Descriptive Vocabulary</td>
+<td>S</td>
+<td>See <code>ttm:agent</code>, <code>ttm:role</code></td>
+</tr>
+<tr>
+<td>R222</td>
+<td>Embedded Audio</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R223</td>
+<td>Non-Embedded Audio</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R290</td>
+<td>Markup Format</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R291</td>
+<td>Markup Format and Unicode Interaction</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R292</td>
+<td>Extrinsic Resource References</td>
+<td>N</td>
+<td>No extrinsic references</td>
+</tr>
+<tr>
+<td>R293</td>
+<td>Schema Validity Specification</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R300</td>
+<td>Inline Styling</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R301</td>
+<td>Inline Styling Form</td>
+<td>P</td>
+<td>Inline and referential styling</td>
+</tr>
+<tr>
+<td>R301</td>
+<td>Out-of-Line Styling</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R301</td>
+<td>Out-of-Line Styling Form</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R304</td>
+<td>Styling Prioritization</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R305</td>
+<td>Style Parameters &ndash; Aural</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R306</td>
+<td>Style Parameters &ndash; Visual</td>
+<td>P</td>
+<td>Supports absolute position, background color, color, display none, display alignment,
+font family, font size, font style, font weight, height, line height, origin,
+opacity, overflow, padding (before, after, start, end), text alignment,
+text shadow (as outline), visibility, width, writing mode, z-index</td>
+</tr>
+<tr>
+<td>R390</td>
+<td>Style Parameter Symmetry</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R391</td>
+<td>Style Parameter Definitions</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R392</td>
+<td>Style Parameter Shorthands</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R401</td>
+<td>Inline Timing</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R402</td>
+<td>Out-of-Line Timing</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+<td>R403</td>
+<td>Synchronization Parameters</td>
+<td>P</td>
+<td>Supports begin, end, dur</td>
+</tr>
+<tr>
+<td>R404</td>
+<td>Synchronization Parameter Value Spaces</td>
+<td>P</td>
+<td>Supports offset values, media marker values (SMPTE 12M), wallclock values</td>
+</tr>
+<tr>
+<td>R405</td>
+<td>Time Containment Semantics</td>
+<td>P</td>
+<td>Supports sequential, parallel</td>
+</tr>
+<tr>
+<td>R500</td>
+<td>Animation Modes</td>
+<td>P</td>
+<td>Supports discrete</td>
+</tr>
+<tr>
+<td>R502</td>
+<td>Highlight Animation</td>
+<td>S</td>
+<td><code>&lt;set tts:backgroundColor="..."/&gt;</code></td>
+</tr>
+<tr>
+<td>R503</td>
+<td>Fade Transition Animation</td>
+<td>S</td>
+<td><code>&lt;set tts:opacity="..."/&gt;</code></td>
+</tr>
+<tr>
+<td>R504</td>
+<td>Animated Style Parameters &ndash; Aural</td>
+<td>N</td>
+<td/>
+</tr>
+<tr>
+ <td>R505</td>
+<td>Animated Style Parameters &ndash; Visual</td>
+<td>P</td>
+<td>Supports animating background color, color, display, opacity, origin, visibility</td>
+</tr>
+<tr>
+<td>N506</td>
+<td>Animated Content</td>
+<td>S</td>
+<td/>
+</tr>
+<tr>
+<td>R600</td>
+<td>Metadata Item Association</td>
+<td>S</td>
+<td>See <code>metadata</code>, <code>Metadata.class</code></td>
+</tr>
+<tr>
+<td>R601</td>
+<td>Metadata Item Constituents</td>
+<td>P</td>
+<td>Supports name, value</td>
+</tr>
+<tr>
+<td>R602</td>
+<td>Metadata Item Value Representation</td>
+<td>P</td>
+<td>See <code>metadata</code></td>
+</tr>
+<tr>
+<td>R603</td>
+<td>Metadata Item Extensibility</td>
+<td>S</td>
+<td>See <code>metadata</code></td>
+</tr>
+<tr>
+<td>R604</td>
+<td>Metadata Item Validation</td>
+<td>S</td>
+<td>See <code>metadata</code></td>
+</tr>
+<tr>
+<td>R690</td>
+<td>Dublin Core Preference</td>
+<td>N</td>
+<td>Uses <code>ttm:copyright</code>, <code>ttm:desc</code>, <code>ttm:title</code></td>
+</tr>
+</tbody>
+</table>
+</inform-div1>
+<inform-div1 id="derivation">
+<head>Vocabulary Derivation</head>
+<p>This appendix provides information about the derivation of TTML
+vocabulary, separately describing derivation of elements and
+attributes.</p>
+<div2>
+<head>Element Derivation</head>
+<p>The first column of <specref ref="element-vocab-derivation-table"/>
+specifies a TTML element vocabulary item; the second column specifies the
+syntactic and/or semantic model on which the vocabulary item is based;
+the third column specifies the reference that defines
+the model (if a model is indicated);
+the fourth column specifies details about the derivation; the last
+column refers to additional notes describing the nature of the
+derivation.</p>
+<p>In the fourth column, which describes details of derivation, a
+notation is use to indicate the addition or removal of an attribute.
+For example, in the derivation of the <el>tt:div</el> element, the
+details column includes "-@class", which denotes that the
+<att>class</att> attribute that is specified for use with the
+<el>xhtml:div</el> model element is not specified for use with the
+corresponding TTML element; in contrast, the details column includes
+"+@begin", which denotes that a <att>begin</att> attribute is added
+that is not specified for use with the <el>xhtml:div</el> model
+element.</p>
+<table id="element-vocab-derivation-table" role="common">
+<caption>Table K-1 &ndash; Elements</caption>
+<col width="20%"/>
+<col width="17%"/>
+<col width="13%" align="center"/>
+<col width="40%"/>
+<col width="10%" align="center"/>
+<tbody>
+<tr>
+<td><phrase role="strong">Element</phrase></td>
+<td><phrase role="strong">Model</phrase></td>
+<td><phrase role="strong">Reference</phrase></td>
+<td><phrase role="strong">Details</phrase></td>
+<td><phrase role="strong">Notes</phrase></td>
+</tr>
+<tr>
+<td><loc href="#document-structure-vocabulary-body"><code>tt:body</code></loc></td>
+<td><code>xhtml:body</code></td>
+<td><bibref ref="xhtml10"/></td>
+<td>-@class, -@dir, -@lang, -@on*, -@title; +@begin, +@dur, +@end, +@region,
++@timeContainer, +@ttm:*, +@tts:*; content model
+subsetted to zero or more division (div) children, and supersetted by
+optional metadata and animation children</td>
+<td>1,2</td>
+</tr>
+<tr>
+<td><loc href="#content-vocabulary-br"><code>tt:br</code></loc></td>
+<td><code>xhtml:br</code></td>
+<td><bibref ref="xhtml10"/></td>
+<td>-@class, -@title; +@ttm:*, +@tts:*, +@xml:lang, +@xml:space;
+content model supersetted by
+optional metadata and animation children for congruity with other
+content vocabulary</td>
+<td>1,2</td>
+</tr>
+<tr>
+<td><loc href="#content-vocabulary-div"><code>tt:div</code></loc></td>
+<td><code>xhtml:div</code></td>
+<td><bibref ref="xhtml10"/></td>
+<td>-@class, -@dir, -@lang, -@on*, -@title; +@begin, +@dur, +@end, +@region,
++@timeContainer, +@ttm:*, +@tts:*, +@xml:space; content model
+subsetted to zero or more paragraph (p) children, and supersetted by
+optional metadata and animation children</td>
+<td>1,2,3</td>
+</tr>
+<tr>
+<td><loc href="#document-structure-vocabulary-head"><code>tt:head</code></loc></td>
+<td><code>xhtml:head</code></td>
+<td><bibref ref="xhtml10"/></td>
+<td>-@dir, -@lang, -@profile; +@id, +@xml:space; content model changed to
+optional metadata children, followed by optional styling child,
+followed by optional layout child</td>
+<td>1,3</td>
+</tr>
+<tr>
+<td><loc href="#layout-vocabulary-layout"><code>tt:layout</code></loc></td>
+<td><code>fo:simple-page-master</code></td>
+<td><bibref ref="xsl11"/></td>
+<td>conceptual derivation</td>
+<td>4</td>
+</tr>
+<tr>
+<td><loc href="#metadata-vocabulary-metadata"><code>tt:metadata</code></loc></td>
+<td><code>svg:metadata</code></td>
+<td><bibref ref="svg11"/></td>
+<td>-@xml:base; +@ttm:*, +@xml:lang, +@xml:space; content model
+subsetted to foreign namespace element content only (no #PCDATA)</td>
+<td>3,5</td>
+</tr>
+<tr>
+<td><loc href="#content-vocabulary-p"><code>tt:p</code></loc></td>
+<td><code>xhtml:p</code></td>
+<td><bibref ref="xhtml10"/></td>
+<td>-@class, -@dir, -@lang, -@on*, -@title; +@begin, +@dur, +@end, +@region,
++@timeContainer, +@ttm:*, +@tts:*, +@xml:space; content model
+subsetted to zero or more span children, and supersetted by optional
+metadata and animation children</td>
+<td>1,2,3</td>
+</tr>
+<tr>
+<td><loc href="#layout-vocabulary-region"><code>tt:region</code></loc></td>
+<td><code>fo:region-*</code></td>
+<td><bibref ref="xsl11"/></td>
+<td>conceptual derivation</td>
+<td>4</td>
+</tr>
+<tr>
+<td><loc href="#animation-vocabulary-set"><code>tt:set</code></loc></td>
+<td><code>svg:set</code></td>
+<td><bibref ref="svg11"/></td>
+<td>-@* except begin, dur, end; +@tts:*, +@xml:lang, +@xml:space</td>
+<td>3,6</td>
+</tr>
+<tr>
+<td><loc href="#content-vocabulary-span"><code>tt:span</code></loc></td>
+<td><code>xhtml:span</code></td>
+<td><bibref ref="xhtml10"/></td>
+<td>-@class, -@dir, -@lang, -@on*, -@title; +@begin, +@dur, +@end, +@region,
++@timeContainer, +@ttm:*, +@tts:*, +@xml:space; content model
+subsetted to zero or more #PCDATA or break (br) children, and
+supersetted by optional metadata and animation children</td>
+<td>1,2,3</td>
+</tr>
+<tr>
+<td><loc href="#styling-vocabulary-style"><code>tt:style</code></loc></td>
+<td><emph>style specification</emph></td>
+<td><bibref ref="css2"/></td>
+<td>XML representation of identified set of pairs of style property
+name and value, with optional inclusion of other styles by reference
+to other style elements</td>
+<td>7</td>
+</tr>
+<tr>
+<td><loc href="#styling-vocabulary-styling"><code>tt:styling</code></loc></td>
+<td><code>xhtml:style</code></td>
+<td><bibref ref="xhtml10"/></td>
+<td>XML representation of a set of style specifications sets, each
+represented by a style child element</td>
+<td>1,7</td>
+</tr>
+<tr>
+<td><loc href="#document-structure-vocabulary-tt"><code>tt:tt</code></loc></td>
+<td><code>xhtml:html</code></td>
+<td><bibref ref="xhtml10"/></td>
+<td>-@dir, -@lang; +@id, +@ttp:*, +@xml:space; content model subsetted by
+permitting body and/or head to be optional</td>
+<td>1,8</td>
+</tr>
+<tr>
+<td><loc href="#metadata-vocabulary-actor"><code>ttm:actor</code></loc></td>
+<td><code>mpeg7:Creator</code></td>
+<td><bibref ref="mpeg7-5"/></td>
+<td>conceptual derivation</td>
+<td>4</td>
+</tr>
+<tr>
+<td><loc href="#metadata-vocabulary-agent"><code>ttm:agent</code></loc></td>
+<td><code>mpeg7:Agent</code></td>
+<td><bibref ref="mpeg7-5"/></td>
+<td>conceptual derivation</td>
+<td>4</td>
+</tr>
+<tr>
+<td><loc href="#metadata-vocabulary-copyright"><code>ttm:copyright</code></loc></td>
+<td><code>mpeg7:CopyrightString</code></td>
+<td><bibref ref="mpeg7-5"/></td>
+<td>conceptual derivation</td>
+<td>4</td>
+</tr>
+<tr>
+<td><loc href="#metadata-vocabulary-desc"><code>ttm:desc</code></loc></td>
+<td><code>svg:desc</code></td>
+<td><bibref ref="svg11"/></td>
+<td>-@class, -@style, -@xml:base</td>
+<td>2,5,9</td>
+</tr>
+<tr>
+<td><loc href="#metadata-vocabulary-name"><code>ttm:name</code></loc></td>
+<td><code>mpeg7:Name</code></td>
+<td><bibref ref="mpeg7-5"/></td>
+<td>conceptual derivation</td>
+<td>4</td>
+</tr>
+<tr>
+<td><loc href="#metadata-vocabulary-title"><code>ttm:title</code></loc></td>
+<td><code>svg:title</code></td>
+<td><bibref ref="svg11"/></td>
+<td>-@class, -@style, -@xml:base</td>
+<td>2,5,9</td>
+</tr>
+
+<tr>
+<td><loc href="#parameter-vocabulary-extension"><code>ttp:extension</code></loc></td>
+<td><code>@requiredExtensions</code></td>
+<td><bibref ref="svg11"/></td>
+<td>conceptual derivation</td>
+<td>10</td>
+</tr>
+<tr>
+<td><loc href="#parameter-vocabulary-extensions"><code>ttp:extensions</code></loc></td>
+<td><code>@requiredExtensions</code></td>
+<td><bibref ref="svg11"/></td>
+<td>conceptual derivation</td>
+<td>10</td>
+</tr>
+<tr>
+<td><loc href="#parameter-vocabulary-feature"><code>ttp:feature</code></loc></td>
+<td><code>@requiredFeatures</code></td>
+<td><bibref ref="svg11"/></td>
+<td>conceptual derivation</td>
+<td>10</td>
+</tr>
+<tr>
+<td><loc href="#parameter-vocabulary-features"><code>ttp:features</code></loc></td>
+<td><code>@requiredFeatures</code></td>
+<td><bibref ref="svg11"/></td>
+<td>conceptual derivation</td>
+<td>10</td>
+</tr>
+<tr>
+<td><loc href="#parameter-vocabulary-profile"><code>ttp:profile</code></loc></td>
+<td><code>@baseProfile</code></td>
+<td><bibref ref="svg11"/></td>
+<td>conceptual derivation</td>
+<td>11</td>
+</tr>
+</tbody>
+</table>
+<note>
+<olist>
+<item>
+<p>Derivation is indicated with respect to the strict DTD defined
+by <bibref ref="xhtml10"/>, &sect;A.1.</p>
+</item>
+<item>
+<p>The <att>class</att> attribute is effectively replaced by the
+<att>style</att>
+attribute, which, instead of specifying an inline style,
+refers indirectly to one or more <loc
+href="#styling-vocabulary-style"><el>style</el></loc>
+elements that define a set of style specification sets.</p>
+</item>
+<item>
+<p>The <att>xml:lang</att> and <att>xml:space</att> attributes are defined for all element
+types in order to support their inheritance semantics to operate in
+the context of foreign namespace elements.</p>
+</item>
+<item>
+<p>Derivation is conceptual (notional) only.</p>
+</item>
+<item>
+<p>The <att>xml:base</att> attribute is not used since there are no external
+references from core vocabulary.</p>
+</item>
+<item>
+<p>The <att>attributeName</att> and <att>to</att> attributes of
+<el>svg:set</el> are replaced by the
+direct expression of the target attribute name and value by use of a
+<att>tts:*</att> attribute.</p>
+</item>
+<item>
+<p>CSS style specification syntax is mapped to XML by use of
+attributes defined in the TT Style Namespace.</p>
+</item>
+<item>
+<p>The <att>xml:id</att> attribute is defined for use on all element types.</p>
+</item>
+<item>
+<p>The <att>style</att> attribute is supported only on content
+elements.</p>
+</item>
+<item>
+<p>Derived from the use of <code>@requiredExtensions</code>
+and <code>@requiredFeatures</code> on the <code>svg:svg</code> element,
+but extended to support distinct specification of optionality.</p>
+</item>
+<item>
+<p>Derived from the use of <code>@baseProfile</code>
+and <code>@version</code> on the <code>svg:svg</code> element.</p>
+</item>
+</olist>
+</note>
+</div2>
+<div2>
+<head>Attribute Derivation</head>
+<p>The first column of <specref ref="attribute-vocab-derivation-table"/>
+specifies a TTML attribute vocabulary item; the second column specifies the
+syntactic and/or semantic model on which the vocabulary item is based;
+the third column specifies the reference that defines
+the model (if a model is indicated);
+the fourth column specifies details about the derivation; the last
+column refers to additional notes describing the nature of the
+derivation.</p>
+<p>In the fourth column, which describes details of derivation, a
+notation is use to indicate the addition or removal of an attribute
+value.  For example, in the derivation of the <att>timeContainer</att>
+attribute,
+the details column includes "-excl", which denotes that the
+<code>excl</code> value that is specified for use with the
+<att>timeContainer</att> model attribute is not specified for use with the
+corresponding TTML attribute; similarly, an "+<emph>value</emph>"
+in the details column indicates that the attribute's values have been
+extended to include <emph>value</emph>.</p>
+<p>Only those attributes that are specified for use on more than one TTML
+element type are listed below. Those per-element namespace attributes
+that are uniquely defined for a specific TTML element type are not
+listed below, but are considered to be part of the specific element
+type's derivation described in <specref
+ref="element-vocab-derivation-table"/>
+above.</p>
+<table id="attribute-vocab-derivation-table" role="common">
+<caption>Table K-2 &ndash; Attributes</caption>
+<col width="20%"/>
+<col width="17%"/>
+<col width="13%" align="center"/>
+<col width="40%"/>
+<col width="10%" align="center"/>
+<tbody>
+<tr>
+<td><phrase role="strong">Attribute</phrase></td>
+<td><phrase role="strong">Model</phrase></td>
+<td><phrase role="strong">Reference</phrase></td>
+<td><phrase role="strong">Details</phrase></td>
+<td><phrase role="strong">Notes</phrase></td>
+</tr>
+<tr>
+<td><loc href="#timing-attribute-begin"><code>begin</code></loc></td>
+<td><code>begin</code></td>
+<td><bibref ref="smil21"/></td>
+<td>see notes</td>
+<td>2,3,4</td>
+</tr>
+<tr>
+<td><loc href="#timing-attribute-dur"><code>dur</code></loc></td>
+<td><code>dur</code></td>
+<td><bibref ref="smil21"/></td>
+<td>see notes</td>
+<td>2,3,4</td>
+</tr>
+<tr>
+<td><loc href="#timing-attribute-end"><code>end</code></loc></td>
+<td><code>end</code></td>
+<td><bibref ref="smil21"/></td>
+<td>see notes</td>
+<td>2,3,4</td>
+</tr>
+<tr>
+<td><loc href="#layout-attribute-region"><code>region</code></loc></td>
+<td><code>master-reference</code></td>
+<td><bibref ref="xsl11"/></td>
+<td>conceptual derivation</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-style"><code>style</code></loc></td>
+<td><code>class</code></td>
+<td><bibref ref="css2"/></td>
+<td>dereferences style specification(s) directly</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#timing-attribute-timeContainer"><code>timeContainer</code></loc></td>
+<td><code>timeContainer</code></td>
+<td><bibref ref="smil21"/></td>
+<td>-excl, -none; no default attribute value</td>
+<td>5</td>
+</tr>
+<tr>
+<td><loc href="#metadata-attribute-agent"><code>ttm:agent</code></loc></td>
+<td><emph>none</emph></td>
+<td></td>
+<td>used to attribute agent of content</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#metadata-attribute-role"><code>ttm:role</code></loc></td>
+<td><emph>none</emph></td>
+<td></td>
+<td>used to attribute role of content</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#parameter-attribute-cellResolution"><code>ttp:cellResolution</code></loc></td>
+<td><emph>none</emph></td>
+<td></td>
+<td>expresses uniform grid resolution for cell based coordinates</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#parameter-attribute-clockMode"><code>ttp:clockMode</code></loc></td>
+<td><emph>none</emph></td>
+<td></td>
+<td>determines how to interpret time expressions</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#parameter-attribute-frameRate"><code>ttp:frameRate</code></loc></td>
+<td><emph>none</emph></td>
+<td></td>
+<td>expresses integral frame rate</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#parameter-attribute-frameRateMultiplier"><code>ttp:frameRateMultiplier</code></loc></td>
+<td><emph>none</emph></td>
+<td></td>
+<td>used to express non-integral, rational frame rates</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#parameter-attribute-markerMode"><code>ttp:markerMode</code></loc></td>
+<td><emph>none</emph></td>
+<td></td>
+<td>expresses marker continuity semantics</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#parameter-attribute-pixelAspectRatio"><code>ttp:pixelAspectRatio</code></loc></td>
+<td><emph>none</emph></td>
+<td></td>
+<td>expresses pixel aspect ratio of related media</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#parameter-attribute-profile"><code>ttp:profile</code></loc></td>
+<td><emph>none</emph></td>
+<td></td>
+<td>expresses profile of TTML used by document instance</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#parameter-attribute-dropMode"><code>ttp:dropMode</code></loc></td>
+<td><emph>none</emph></td>
+<td></td>
+<td>expresses frame counting (drop) modes</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#parameter-attribute-subFrameRate"><code>ttp:subFrameRate</code></loc></td>
+<td><emph>none</emph></td>
+<td></td>
+<td>expresses sub-frame rate</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#parameter-attribute-tickRate"><code>ttp:tickRate</code></loc></td>
+<td><emph>none</emph></td>
+<td></td>
+<td>used to interpret tick based time expressions</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#parameter-attribute-timeBase"><code>ttp:timeBase</code></loc></td>
+<td><emph>none</emph></td>
+<td></td>
+<td>used to interpret semantics of time expressions</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-backgroundColor"><code>tts:backgroundColor</code></loc></td>
+<td><code>background-color</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code></td>
+<td>1,6</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-color"><code>tts:color</code></loc></td>
+<td><code>color</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code></td>
+<td>6</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-direction"><code>tts:direction</code></loc></td>
+<td><code>direction</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code></td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-display"><code>tts:display</code></loc></td>
+<td><code>display</code></td>
+<td><bibref ref="css2"/></td>
+<td>only <code>auto</code>, <code>none</code></td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-displayAlign"><code>tts:displayAlign</code></loc></td>
+<td><code>display-align</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code></td>
+<td>1</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-extent"><code>tts:extent</code></loc></td>
+<td><code>width</code>, <code>height</code></td>
+<td><bibref ref="xsl11"/></td>
+<td>shorthand property</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-fontFamily"><code>tts:fontFamily</code></loc></td>
+<td><code>font-family</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code>, extends generic family names</td>
+<td>1</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-fontSize"><code>tts:fontSize</code></loc></td>
+<td><code>font-size</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code></td>
+<td>1,7</td>
+</tr>
+<!--
+<tr>
+<td><loc href="#style-attribute-fontStyle"><code>tts:fontStyle</code></loc></td>
+<td><code>font-style</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code>, uses alias <code>reverseOblique</code> for <code>backslant</code></td>
+<td>1</td>
+</tr>
+-->
+<tr>
+<td><loc href="#style-attribute-fontWeight"><code>tts:fontWeight</code></loc></td>
+<td><code>font-weight</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code>, <code>-bolder</code>, <code>-lighter</code>, <code>-&lt;number&gt;</code></td>
+<td>1</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-lineHeight"><code>tts:lineHeight</code></loc></td>
+<td><code>line-height</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code>, <code>-&lt;number&gt;</code>, <code>-&lt;space&gt;</code></td>
+<td>1</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-opacity"><code>tts:opacity</code></loc></td>
+<td><code>opacity</code></td>
+<td><bibref ref="css3-color"/></td>
+<td><code>-inherit</code></td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-origin"><code>tts:origin</code></loc></td>
+<td><code>top</code>, <code>left</code></td>
+<td><bibref ref="xsl11"/></td>
+<td>shorthand property</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-overflow"><code>tts:overflow</code></loc></td>
+<td><code>overflow</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code>, <code>-auto</code>, <code>-error-if-overflow</code>;</td>
+<td>8</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-padding"><code>tts:padding</code></loc></td>
+<td><code>padding</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code></td>
+<td>9</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-showBackground"><code>tts:showBackground</code></loc></td>
+<td><code>showBackground</code></td>
+<td><bibref ref="smil21"/></td>
+<td><code>-inherit</code></td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-textAlign"><code>tts:textAlign</code></loc></td>
+<td><code>text-align</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code></td>
+<td>1</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-textDecoration"><code>tts:textDecoration</code></loc></td>
+<td><code>text-decoration</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code></td>
+<td>1,10,13</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-textOutline"><code>tts:textOutline</code></loc></td>
+<td><code>text-shadow</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code></td>
+<td>11,13</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-unicodeBidi"><code>tts:unicodeBidi</code></loc></td>
+<td><code>unicode-bidi</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code></td>
+<td>1</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-visibility"><code>tts:visibility</code></loc></td>
+<td><code>visibility</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code>, <code>-collapse</code></td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-wrapOption"><code>tts:wrapOption</code></loc></td>
+<td><code>wrap-option</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code></td>
+<td>1</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-writingMode"><code>tts:writingMode</code></loc></td>
+<td><code>writing-mode</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code>, <code>+tblr</code></td>
+<td>1</td>
+</tr>
+<tr>
+<td><loc href="#style-attribute-zIndex"><code>tts:zIndex</code></loc></td>
+<td><code>z-index</code></td>
+<td><bibref ref="xsl11"/></td>
+<td><code>-inherit</code></td>
+<td>1</td>
+</tr>
+<tr>
+<td><loc href="#content-attribute-id"><code>xml:id</code></loc></td>
+<td><code>xml:id</code></td>
+<td><bibref ref="xmlid"/></td>
+<td>complies with model</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#content-attribute-lang"><code>xml:lang</code></loc></td>
+<td><code>xml:lang</code></td>
+<td><bibref ref="xml10"/></td>
+<td>complies with model</td>
+<td></td>
+</tr>
+<tr>
+<td><loc href="#content-attribute-space"><code>xml:space</code></loc></td>
+<td><code>xml:space</code></td>
+<td><bibref ref="xml10"/></td>
+<td>see notes</td>
+<td>12</td>
+</tr>
+</tbody>
+</table>
+<note>
+<olist>
+<item>
+<p>Attribute name and/or value(s) are normalized to use
+<emph>lowerCamelCase</emph> naming convention.</p>
+</item>
+<item>
+<p>Restricted to expressing a clock value that denotes one of the
+following in accordance to whether the parameter expressed by the
+<att>ttp:timeBase</att> attribute is <code>media</code>, <code>smpte</code>,
+or <code>clock</code>, respectively:
+(1) an offset from an implicit syncbase that is linked to a media time
+line, (2) an event time
+that represents the occurrence of an implicit media marker, or (3) a wallclock
+time.</p>
+</item>
+<item>
+<p>Syntactically subsets and supersets the <bibref
+ref="smil21"/>&nbsp;<code>Clock-value</code> syntax as follows:
+(1) requires non-negative <code>Full-clock-value</code> or
+<code>Timecount-value</code>;
+(2) if <code>Full-clock-value</code>
+then <emph>hours</emph> must be two or more digits;
+(3) if <code>Timecount-value</code>, then <emph>metric</emph> must be
+specified;
+(4) uses <code>m</code> as alias for <code>min</code> metric to denote
+minutes;
+(5) adds <code>f</code> and <code>t</code> metrics denoting frames and
+ticks, respectively;
+(6) adds alternative expression of optional <code>Fraction</code> in
+<code>Full-clock-value</code> by specifying frame count or frame
+count with subframe count.
+</p>
+</item>
+<item>
+<p>
+Interpretation of time expression is further constrained by
+parameters expressed by
+<att>ttp:clockMode</att>,
+<att>ttp:dropMode</att>,
+<att>ttp:frameRate</att>,
+<att>ttp:frameRateMultiplier</att>,
+<att>ttp:markerMode</att>,
+<att>ttp:subFrameRate</att>,
+<att>ttp:tickRate</att>, and
+<att>ttp:timeBase</att> attributes.</p>
+</item>
+<item>
+<p>Uses subset of named colors from model to which two aliases are
+added as follows: <code>magenta</code> as <code>fuchsia</code>, and <code>cyan</code>
+as <code>aqua</code>.</p>
+</item>
+<item>
+<p>If not specified, then parallel (par) container semantics apply to
+the element types specified by <specref
+ref="timing-attribute-timeContainer"/>.</p>
+</item>
+<item>
+<p>Restricts size to length specification which can be a percentage;
+adds optional second length (or percentage) for
+specifying separate horizontal and vertical scaling of glyph's EM
+square.</p>
+</item>
+<item>
+<p>Expressed in terms of writing mode relative padding properties
+rather than absolute padding properties.</p>
+</item>
+<item>
+<p>Excludes <code>blink</code> and <code>no-blink</code> values.</p>
+</item>
+<item>
+<p>Uses only one length specification instead of two, where one length
+defines distance of outline effect from nominal edge of glyph contour
+outline perpendicular to point of glyph contour. Percentage lengths
+are also added to express outline effect in relative to font size.
+Outline effects are intended to be drawn both outside of outer closed
+contours and inside of inner closed contours.</p>
+</item>
+<item>
+<p>On root element, default attribute value specified as
+<code>default</code>, which is defined in terms of whitespace
+normalization. Semantics of preservation and default normalization are
+defined in terms of presentation semantics by <specref
+ref="content-attribute-space"/>.</p>
+</item>
+<item>
+<p>Defined to be inheritable.</p>
+</item>
+</olist>
+</note>
+</div2>
+</inform-div1>
+<inform-div1 id="qa">
+<head>QA Framework Compliance</head>
+<p>This appendix specifies the compliance of this specification with the
+requirements and guidelines defined by <xspecref
+href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/">QA
+Framework Specifications Guidelines</xspecref>&nbsp;<bibref
+ref="qaf-sg"/>.</p>
+<div2>
+<head>Requirements</head>
+<table id="qa-framework-requirements-table" role="common">
+<caption>Table L-1 &ndash; QA Framework Requirements Checklist</caption>
+<col width="76%"/>
+<col width="6%" align="center"/>
+<col width="6%" align="center"/>
+<col width="6%" align="center"/>
+<col width="6%" align="center"/>
+<tbody>
+<tr>
+<td><phrase role="strong">Requirement</phrase></td>
+<td><phrase role="strong">YES</phrase></td>
+<td><phrase role="strong">NO</phrase></td>
+<td><phrase role="strong">N/A</phrase></td>
+<td><phrase role="strong">Notes</phrase></td>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#include-conformance-clause-principle">Requirement 01: Include a conformance
+clause</xspecref></td>
+<td><loc href="#conformance">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#define-scope-principle">Requirement 02: Define the scope.</xspecref></td>
+<td><loc href="#intro">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#implement-principle">Requirement 03: Identify who or what will implement the specification.</xspecref></td>
+<td><loc href="#conformance">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#ref-norm-principle">Requirement 04: Make a list of normative references.</xspecref></td>
+<td><loc href="#references">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#define-terms-principle">Requirement 05: Define the terms used in the normative parts of the specification.</xspecref></td>
+<td><loc href="#definitions">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#conf-label-principle">Requirement 06: Create conformance labels for each part of the conformance model.</xspecref></td>
+<td><loc href="#conformance">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#consistent-style-principle">Requirement 07: Use a consistent style for conformance requirements and explain how to distinguish them.</xspecref></td>
+<td><loc href="#conventions">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#req-opt-conf-principle">Requirement 08: Indicate which conformance requirements are mandatory, which are recommended, and which are optional.</xspecref></td>
+<td><loc href="#conventions">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#subdivide-mandatory-principle">Requirement 09: If the technology is subdivided, then indicate which subdivisions are mandatory for conformance.</xspecref></td>
+<td><loc href="#conformance">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#subdiv-constraints-principle">Requirement 10: If the technology is subdivided, then address subdivision constraints.</xspecref></td>
+<td><loc href="#conformance">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#likehood-extension-principle">Requirement 11: Address Extensibility.</xspecref></td>
+<td><loc href="#doctypes">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#deprecated-feature-principle">Requirement 12: Identify deprecated features.</xspecref></td>
+<td/>
+<td/>
+<td>N/A</td>
+<td>1</td>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#degree-support-principle">Requirement 13: Define how each class of product handles each deprecated feature.</xspecref></td>
+<td/>
+<td/>
+<td>N/A</td>
+<td>1</td>
+</tr>
+</tbody>
+</table>
+<note>
+<olist>
+<item>
+<p>No feature is deprecated by this version of this specification.</p>
+</item>
+</olist>
+</note>
+</div2>
+<div2>
+<head>Guidelines</head>
+<table id="qa-framework-guidelines-table" role="common">
+<caption>Table L-2 &ndash; QA Framework Guidelines Checklist</caption>
+<col width="76%"/>
+<col width="6%" align="center"/>
+<col width="6%" align="center"/>
+<col width="6%" align="center"/>
+<col width="6%" align="center"/>
+<tbody>
+<tr>
+<td><phrase role="strong">Guideline</phrase></td>
+<td><phrase role="strong">YES</phrase></td>
+<td><phrase role="strong">NO</phrase></td>
+<td><phrase role="strong">N/A</phrase></td>
+<td><phrase role="strong">Notes</phrase></td>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#conformance-model-gp">Good Practice 01: Define the specification's conformance model in the conformance clause.</xspecref></td>
+<td><loc href="#conformance">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#norm-informative-gp">Good Practice 02: Specify in the conformance clause how to distinguish normative from informative content.</xspecref></td>
+<td><loc href="#conventions">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#conformance-claim-gp">Good Practice 03: Provide the wording for conformance claims.</xspecref></td>
+<td><loc href="#claims">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#ics-gp">Good Practice 04: Provide an Implementation Conformance Statement Pro Forma.</xspecref></td>
+<td/>
+<td>NO</td>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#ics-claim-gp">Good Practice 05: Require an Implementation Conformance Statement as part of valid conformance claims.</xspecref></td>
+<td><loc href="#claims">YES</loc></td>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#use-example-gp">Good Practice 06: Provide examples, use cases, and graphics.</xspecref></td>
+<td><loc href="#example">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#write-sample-gp">Good Practice 07: Write sample code or tests.</xspecref></td>
+<td>YES</td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#ref-define-practice">Good Practice 08: When imposing requirements by normative references, address conformance dependencies.</xspecref></td>
+<td><loc href="#references">YES</loc></td>
+<td/>
+<td/>
+<td>1</td>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#define-terms-inline-gp">Good Practice 09: Define unfamiliar terms in-line and consolidate the definitions in a glossary section.</xspecref></td>
+<td><loc href="#definitions">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#reuse-terms-gp">Good Practice 10: Use terms already defined without changing their definition.</xspecref></td>
+<td><loc href="#definitions">YES</loc></td>
+<td/>
+<td/>
+<td>2</td>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#formal-language-gp">Good Practice 11: Use formal languages when possible.</xspecref></td>
+<td><loc href="#schemas">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#write-assertion-gp">Good Practice 12: Write Test Assertions.</xspecref></td>
+<td/>
+<td>NO</td>
+<td/>
+<td>3</td>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#subdivide-foster-gp">Good Practice 13: Create subdivisions of the technology when warranted.</xspecref></td>
+<td><loc href="#conformance">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#rules-profiles-gp">Good Practice 14: If the technology is profiled, define rules for creating new profiles.</xspecref></td>
+<td><loc href="#vocabulary-profiles">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#need-option-gp">Good Practice 15:Use optional features as warranted.</xspecref></td>
+<td>YES</td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#label-options-gp">Good Practice 16: Clearly identify optional features.</xspecref></td>
+<td>YES</td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#constraints-gp">Good Practice 17: Indicate any limitations or constraints on optional features.</xspecref></td>
+<td>YES</td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#extensions-prohibited-gp">Good Practice 18: If extensibility is allowed, define an extension mechanism.</xspecref></td>
+<td><loc href="#extension-vocabulary-overview">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#breaking-conformance-gp">Good Practice 19: Warn extension creators to create extensions that do not interfere with conformance.</xspecref></td>
+<td><loc href="#extension-vocabulary-overview">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#define-error-gp">Good Practice 20: Define error-handling for unknown extensions.</xspecref></td>
+<td><loc href="#conformance-processor">YES</loc></td>
+<td/>
+<td/>
+<td>4</td>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#workaround-gp">Good Practice 21: Explain how to avoid using a deprecated feature.</xspecref></td>
+<td/>
+<td/>
+<td>N/A</td>
+<td>5</td>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#obsolete-gp">Good Practice 22: Identify obsolete features.</xspecref></td>
+<td/>
+<td/>
+<td>N/A</td>
+<td>5</td>
+</tr>
+<tr>
+<td><xspecref href="http://www.w3.org/TR/2005/REC-qaframe-spec-20050817/#error-handling-gp">Good Practice 23: Define an error handling mechanism.</xspecref></td>
+<td><loc href="#reduced-infoset">YES</loc></td>
+<td/>
+<td/>
+<td/>
+</tr>
+</tbody>
+</table>
+<note>
+<olist>
+<item>
+<p>When making normative references to external specifications,
+specific clauses or sections are cited.</p>
+</item>
+<item>
+<p>See also <specref ref="derivation"/>.</p>
+</item>
+<item>
+<p>Test assertions and test suites will be provided prior to entering
+Proposed Recommendation (PR) phase.</p>
+</item>
+<item>
+<p>See criterion #3 in <specref
+ref="conformance-processor"/> and definition of
+<loc href="#doctypes">TTML Abstract Document Instance</loc>.</p>
+</item>
+<item>
+<p>No feature is deprecated or obsoleted by this version of this specification.</p>
+</item>
+</olist>
+</note>
+</div2>
+</inform-div1>
+<inform-div1 id="streaming">
+<head>Streaming TTML Content</head>
+<p>TTML Content is designed to support streamability by implementing the
+following properties:</p>
+<ulist>
+<item>
+<p>can be progressively encoded (i.e., does not require computing
+subsequent data prior to sending current data);</p>
+</item>
+<item>
+<p>can be progressively decoded (i.e., does not require forward
+references, but uses only reverse references when necessary);</p>
+</item>
+<item>
+<p>does not require dereferencing (and subsequent loading) of any
+resources other than TTML content (i.e., no embedded URIs);</p>
+</item>
+<item>
+<p>does not support alternative content forms (e.g., different
+language, graphics formats, time bases) in a single document;</p>
+</item>
+<item>
+<p>has timing structure compiled into inline format that makes
+possible a temporal ordering of content that follows temporal
+presentation order;</p>
+</item>
+<item>
+<p>constrains content models to prevent arbitrary nested content
+structures;</p>
+</item>
+</ulist>
+<p>One possible means by which TTML Content may be streamed is to
+partition a TTML document instance's information set into
+non-overlapping fragments, where one particular fragment, call it the
+<emph>root fragment</emph>, represents the front matter (head) of the
+document instance as well as its top level structural elements, and
+other fragments represent content whose time intervals are expected to
+be active in parallel.</p>
+<p>In applications that require arbitrary (random) entry into a
+stream, i.e., the property of being able to start reading data at an
+arbitrary data access unit, the root fragment will be repetitively
+transmitted (inserted) into the stream in order to permit a decoder to
+resynchronize and acquire sufficient structural information in the
+information set in order to interpret subsequent content
+fragments.</p>
+<p>An example of such a fragmentation of a TTML document instance is
+shown in <specref ref="fragment-streaming-graphic"/>.</p>
+<table id="fragment-streaming-graphic" role="example-images">
+<caption>Figure 3 &ndash; Fragment Streaming</caption>
+<tbody>
+<tr>
+<td><graphic id="graphic-fragment-streaming" source="images/streaming.png" alt="Fragment Streaming"/></td>
+</tr>
+</tbody>
+</table>
+<note>
+<p>This specification does not define a transport buffer model or a decoder
+capabilities model.</p>
+</note>
+</inform-div1>
+&acknowledgements;
+
+<!-- new change log format - not used yet -->
+<!--
+<inform-div1 id="change-log">
+<head>Change Log</head>
+<p>@@This paragraph will be replaced by the change log. DO NOT TOUCH@@</p>
+</inform-div1>
+-->
+
+</back>
+</spec>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml11/spec/xmlspec-ttml11.dtd	Wed Apr 11 22:47:38 2012 -0600
@@ -0,0 +1,35 @@
+<!-- ............................................................... -->
+<!-- Customized XML specification DTD for TTAF1-DFXP ............... -->
+<!-- ............................................................... -->
+
+<!-- $Id$ -->
+
+<!--
+PURPOSE:
+1. allow multiple authlist elts to separate editor from contribing authors;
+2. allow use of sub|sup in code (and other similar elt types);
+3. allow use of el|att|code|emph in loc;
+-->
+
+<!-- parameter entity overrides -->
+<!ENTITY % header.mdl
+        "title, subtitle?, version?, w3c-designation, w3c-doctype,
+        pubdate, notice*, publoc, altlocs?, ((prevlocs, latestloc?) |
+        (latestloc, prevlocs?))?, authlist+, errataloc?, preverrataloc?,
+        translationloc?, copyright?,
+        ((status, abstract) | (abstract, status)), pubstmt?,
+        sourcedesc?, langusage, revisiondesc">
+<!ENTITY % tech.pcd.mix
+	"#PCDATA|loc|ednote|phrase|rfc2119|sub|sup">
+
+<!-- element definition ignores -->
+<!ENTITY % loc.element "IGNORE">
+
+<!-- xmlspec inclusion -->
+<!ENTITY % xmlspec SYSTEM "xmlspec.dtd">
+%xmlspec;
+
+<!-- element definition overrides -->
+<!ELEMENT loc (#PCDATA|phrase|el|att|code|emph)*>
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml11/spec/xmlspec-ttml11.xsl	Wed Apr 11 22:47:38 2012 -0600
@@ -0,0 +1,689 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
+<xsl:import href="xmlspec.xsl"/>
+<xsl:import href="changelog.xsl"/>
+<xsl:param name="toc.level" select="5"/>
+<xsl:param name="show.ednotes">1</xsl:param>
+<xsl:param name="show.diff.markup">1</xsl:param>
+<xsl:variable name="output.mode" select="'xhtml'"/>
+<xsl:param name="additional.css">
+<xsl:text>
+li p { margin-top: 0.3em; margin-bottom: 0.3em; }
+div.issue { border: 2px solid black; background-color: #ffff66; padding: 0em 1em; margin: 0em 0em }
+table.ednote { border-collapse: collapse; border: 2px solid black; width: 85% }
+table.ednote td { background-color: #ddaa66; border: 2px solid black }
+table.acronyms td.label { width: 15% }
+table.acronyms td.def { width: 65% }
+table.graphic { border: 0px none black; width: 100%; border-collapse: collapse }
+table.graphic caption { font-weight: bold; text-align: center; padding-bottom: 0.5em }
+table.graphic td { border: 0px none black; text-align: center }
+table.common { border: 2px solid black; width: 85%; border-collapse: collapse }
+table.common caption { font-weight: bold; text-align: left; padding-bottom: 0.5em }
+table.common th { padding: 0em 0.5em; border: 2px solid black; text-align: left }
+table.common td { padding: 0em 0.5em; border: 2px solid black }
+table.syntax { border: 0px solid black; width: 85%; border-collapse: collapse }
+table.syntax caption { font-weight: bold; text-align: left; padding-bottom: 0.5em }
+table.syntax th { border: 0px solid black; text-align: left }
+table.syntax td { border: 0px solid black }
+table.syntax div { background-color: #ffffc8 }
+table.example { border: 0px solid black; width: 85%; border-collapse: collapse }
+table.example caption { font-weight: bold; text-align: left; padding-bottom: 0.5em }
+table.example th { border: 0px solid black; text-align: left }
+table.example td { border: 0px solid black }
+table.example div { background-color: #c8ffff }
+table.example-images { text-align: center; border: 0px solid black; width: 85%; border-collapse: collapse }
+table.example-images caption { font-weight: bold; text-align: center; padding-bottom: 0.5em }
+table.example-images td { border: 0px solid black; text-align: center }
+table.example-images-bordered { text-align: center; border: 0px solid black; width: 85%; border-collapse: collapse }
+table.example-images-bordered caption { font-weight: bold; text-align: center; padding-bottom: 0.5em }
+table.example-images-bordered td { border: 1px solid red; text-align: left }
+.tbd { background-color: #ffff33; border: 2px solid black; width: 85% }
+.strong { font-weight: bold }
+.reqattr { font-weight: bold }
+.optattr { font-style: italic }
+</xsl:text>
+<xsl:if test="$show.diff.markup != '0'">
+<xsl:text>
+.diff-add  { color: red; background-color: #99FF99; }
+.diff-del  { color: red; text-decoration: line-through; background-color: #99FF99; }
+.diff-chg  { background-color: #99FF99; }
+q.diff-off  {}
+</xsl:text>
+</xsl:if>
+</xsl:param>
+<xsl:output method="xml" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" indent="no"/>
+
+<!-- [GA] removed the following overrides: -->
+<!-- inform-div1[head='Change Log']/p -->
+<!-- bibref -->
+<!-- bibl -->
+<!-- titleref -->
+<!-- emph[@role='infoset-property'] -->
+<!-- ulist[@role='termreference'] -->
+<!-- eg[@role='needs-numbering'] -->
+<!-- addLineNumbers -->
+<!-- lb mode(addLineNumbers) -->
+<!-- node() mode(addLineNumbers) -->
+<!-- code[@role='code-emph'] -->
+<!-- p[@role='practice'] -->
+<!-- p[@role='practice'] mode(number) -->
+<!-- css -->
+<!-- specref -->
+
+<!-- [GA] added the following overrides from old DFXP CR1 spec sources -->
+<!-- diff support -->
+<xsl:template name="diff-markup">
+  <xsl:param name="diff">off</xsl:param>
+  <xsl:choose>
+    <xsl:when test="self::ritem">
+	<xsl:apply-templates select="." mode="diff"/>
+    </xsl:when>
+    <xsl:when test="self::ulist or self::p or self::bibl">
+      <xsl:apply-templates/>
+    </xsl:when>
+    <xsl:when test="ancestor-or-self::phrase">
+      <span xmlns="http://www.w3.org/1999/xhtml" class="diff-{$diff}">
+	<xsl:apply-templates/>
+      </span>
+    </xsl:when>
+    <xsl:when test="ancestor::p and not(self::p)">
+      <span xmlns="http://www.w3.org/1999/xhtml" class="diff-{$diff}">
+	<xsl:apply-templates/>
+      </span>
+    </xsl:when>
+    <xsl:when test="ancestor-or-self::affiliation">
+      <span xmlns="http://www.w3.org/1999/xhtml" class="diff-{$diff}">
+	<xsl:apply-templates/>
+      </span>
+    </xsl:when>
+    <xsl:when test="ancestor-or-self::name">
+      <span xmlns="http://www.w3.org/1999/xhtml" class="diff-{$diff}">
+	<xsl:apply-templates/>
+      </span>
+    </xsl:when>
+    <xsl:when test="ancestor-or-self::note">
+      <div xmlns="http://www.w3.org/1999/xhtml" class="diff-{$diff}">
+	<div class="note">
+	  <p class="prefix">
+	    <b>Note:</b>
+	  </p>
+	  <xsl:apply-templates/>
+        </div>
+      </div>
+    </xsl:when>
+    <xsl:otherwise>
+      <div xmlns="http://www.w3.org/1999/xhtml" class="diff-{$diff}">
+	<xsl:apply-templates/>
+      </div>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+<xsl:template match="*[@diff='chg']">
+  <xsl:choose>
+    <xsl:when test="$show.diff.markup != 0">
+      <xsl:call-template name="diff-markup">
+	<xsl:with-param name="diff">chg</xsl:with-param>
+      </xsl:call-template>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:apply-templates/>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+<xsl:template match="*[@diff='add']">
+  <xsl:choose>
+    <xsl:when test="$show.diff.markup != 0">
+      <xsl:call-template name="diff-markup">
+	<xsl:with-param name="diff">add</xsl:with-param>
+      </xsl:call-template>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:apply-templates/>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+<xsl:template match="*[@diff='del']">
+  <xsl:choose>
+    <xsl:when test="$show.diff.markup != 0">
+      <xsl:call-template name="diff-markup">
+	<xsl:with-param name="diff">del</xsl:with-param>
+      </xsl:call-template>
+    </xsl:when>
+    <xsl:otherwise>
+      <!-- suppress deleted markup -->
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+<xsl:template match="*[@diff='off']">
+  <xsl:choose>
+    <xsl:when test="$show.diff.markup != 0">
+      <xsl:call-template name="diff-markup">
+	<xsl:with-param name="diff">off</xsl:with-param>
+      </xsl:call-template>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:apply-templates/>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+<!-- spec: the specification itself -->
+<xsl:template match="spec">
+  <html xmlns="http://www.w3.org/1999/xhtml">
+    <xsl:if test="header/langusage/language">
+      <xsl:attribute name="xml:lang">
+	<xsl:value-of select="header/langusage/language/@id"/>
+      </xsl:attribute>
+      <xsl:attribute name="lang">
+	<xsl:value-of select="header/langusage/language/@id"/>
+      </xsl:attribute>
+    </xsl:if>
+    <head>
+      <xsl:if test="$output.mode='xhtml'">
+	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/>
+      </xsl:if>
+      <title>
+	<xsl:apply-templates select="header/title"/>
+	<xsl:if test="header/version">
+	  <xsl:text> </xsl:text>
+	  <xsl:apply-templates select="header/version"/>
+	</xsl:if>
+	<xsl:if test="$additional.title != ''">
+	  <xsl:text> -- </xsl:text>
+	  <xsl:value-of select="$additional.title"/>
+	</xsl:if>
+	<xsl:if test="/spec/@role='editors-copy'">
+	  <xsl:text> -- (Editors' copy)</xsl:text>
+	</xsl:if>
+      </title>
+      <xsl:call-template name="css"/>
+    </head>
+    <body>
+      <xsl:if test="/spec/@role='editors-copy'">
+	<xsl:value-of select="//revisiondesc/p[1]"/>
+	<div id="revisions"/>
+      </xsl:if>
+      <xsl:apply-templates/>
+      <xsl:if test="//footnote[not(ancestor::table)]">
+	<hr/>
+	<div class="endnotes">
+	  <xsl:text></xsl:text>
+	  <h3>
+	    <xsl:call-template name="anchor">
+	      <xsl:with-param name="conditional" select="0"/>
+	      <xsl:with-param name="default.id" select="'endnotes'"/>
+	    </xsl:call-template>
+	    <xsl:text>End Notes</xsl:text>
+	  </h3>
+	  <dl>
+	    <xsl:apply-templates select="//footnote[not(ancestor::table)]" mode="notes"/>
+	  </dl>
+	</div>
+      </xsl:if>
+    </body>
+  </html>
+</xsl:template>
+<!-- status: the status of the spec -->
+<xsl:template match="status">
+  <div xmlns="http://www.w3.org/1999/xhtml">
+    <h2>
+      <xsl:call-template name="anchor">
+	<xsl:with-param name="conditional" select="0"/>
+	<xsl:with-param name="default.id" select="'status'"/>
+      </xsl:call-template>
+      <xsl:text>Status of this Document</xsl:text>
+    </h2>
+    <xsl:if test="/spec/@role='editors-copy'">
+      <p><strong>This document is an editor's copy that has no official standing.</strong></p>
+    </xsl:if>
+    <xsl:apply-templates/>
+  </div>
+</xsl:template>
+<!-- specref: reference to another part of the current specification -->
+<xsl:template match="specref">
+  <xsl:variable name="target" select="key('ids', @ref)[1]"/>
+  <xsl:choose>
+    <xsl:when test="local-name($target)='issue' or starts-with(local-name($target), 'div') or starts-with(local-name($target), 'inform-div') or local-name($target) = 'vcnote' or local-name($target) = 'prod' or local-name($target) = 'label' or local-name($target) = 'ritem' or local-name($target) = 'table'">
+      <xsl:apply-templates select="$target" mode="specref"/>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:message>
+	<xsl:text>Unsupported specref to </xsl:text>
+	<xsl:value-of select="local-name($target)"/>
+	<xsl:text> [</xsl:text>
+	<xsl:value-of select="@ref"/>
+	<xsl:text>] </xsl:text>
+	<xsl:text> (Contact stylesheet maintainer).</xsl:text>
+      </xsl:message>
+      <b xmlns="http://www.w3.org/1999/xhtml">
+	<a>
+	  <xsl:attribute name="href">
+	    <xsl:call-template name="href.target">
+	      <xsl:with-param name="target" select="key('ids', @ref)"/>
+	    </xsl:call-template>
+	  </xsl:attribute>
+	  <xsl:text>???</xsl:text>
+	</a>
+      </b>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+<!-- ednote: editors' note -->
+<xsl:template match="ednote">
+  <xsl:if test="$show.ednotes != 0">
+    <table xmlns="http://www.w3.org/1999/xhtml" border="1" class="ednote" summary="Editor's Notes">
+      <xsl:attribute name="summary">
+	<xsl:text>Editorial note</xsl:text>
+	<xsl:if test="name">
+	  <xsl:text>: </xsl:text>
+	  <xsl:value-of select="name"/>
+	</xsl:if>
+      </xsl:attribute>
+      <tr class="ednote-r1">
+	<td align="left" valign="top">
+	  <b>
+	    <xsl:text>Editorial note</xsl:text>
+	    <xsl:if test="name">
+	      <xsl:text>: </xsl:text>
+	      <xsl:apply-templates select="name"/>
+	    </xsl:if>
+	  </b>
+	</td>
+	<td align="right" valign="top">
+	  <xsl:choose>
+	    <xsl:when test="date">
+	      <xsl:apply-templates select="date"/>
+	    </xsl:when>
+	    <xsl:otherwise> </xsl:otherwise>
+	  </xsl:choose>
+	</td>
+      </tr>
+      <tr class="ednote-r2">
+	<td colspan="2" align="left" valign="top">
+	  <xsl:apply-templates select="edtext"/>
+	</td>
+      </tr>
+    </table>
+  </xsl:if>
+</xsl:template>
+<!-- glist: glossary list -->
+<xsl:template match="glist">
+  <xsl:choose>
+  <xsl:when test="@role = 'acronyms'">
+    <table xmlns="http://www.w3.org/1999/xhtml" class="acronyms" summary="Glossary List">
+      <xsl:for-each select="gitem">
+        <tr>
+          <xsl:apply-templates select="label" mode="acronym"/>
+          <xsl:apply-templates select="def" mode="acronym"/>
+        </tr>
+      </xsl:for-each>
+    </table>
+  </xsl:when>
+    <xsl:otherwise>
+      <xsl:if test="$validity.hacks = 1 and local-name(..) = 'p'">
+	<xsl:text disable-output-escaping="yes">&lt;/p&gt;</xsl:text>
+      </xsl:if>
+      <dl xmlns="http://www.w3.org/1999/xhtml">
+	<xsl:if test="@role">
+	  <xsl:attribute name="class">
+	    <xsl:value-of select="@role"/>
+	  </xsl:attribute>
+	</xsl:if>
+	<xsl:apply-templates/>
+      </dl>
+      <xsl:if test="$validity.hacks = 1 and local-name(..) = 'p'">
+	<xsl:text disable-output-escaping="yes">&lt;p&gt;</xsl:text>
+      </xsl:if>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+<!-- label: acronym mode -->
+<xsl:template mode="acronym" match="label">
+  <td xmlns="http://www.w3.org/1999/xhtml" class="label">
+    <xsl:call-template name="anchor">
+      <xsl:with-param name="node" select=".."/>
+    </xsl:call-template>
+    <xsl:call-template name="anchor"/>
+    <b><xsl:apply-templates/></b>
+  </td>
+</xsl:template>
+<!-- def: acronym mode -->
+<xsl:template mode="acronym" match="def">
+  <td xmlns="http://www.w3.org/1999/xhtml" class="def">
+  <xsl:apply-templates/>
+  </td>
+</xsl:template>
+<!-- loc: a Web location -->
+<xsl:template match="loc">
+  <a xmlns="http://www.w3.org/1999/xhtml" href="{@href}">
+    <xsl:if test="@role">
+      <xsl:attribute name="rel">
+	<xsl:value-of select="@role"/>
+      </xsl:attribute>
+    </xsl:if>
+    <xsl:apply-templates/>
+  </a>
+</xsl:template>
+<!-- rlist: requirement list -->
+<xsl:template match="rlist">
+  <dl xmlns="http://www.w3.org/1999/xhtml">
+    <xsl:apply-templates/>
+  </dl>
+</xsl:template>
+<!-- ritem: requirement item -->
+<xsl:template match="ritem">
+  <xsl:variable name="this-req-id">
+    <xsl:choose>
+      <xsl:when test="@id">
+	<xsl:value-of select="@id"/>
+      </xsl:when>
+      <xsl:otherwise>
+	<xsl:value-of select="generate-id(.)"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:variable>
+  <dt xmlns="http://www.w3.org/1999/xhtml">
+    <xsl:if test="@id">
+      <a name="{@id}" id="{@id}"/>
+    </xsl:if>
+    <xsl:value-of select="$this-req-id"/>
+    <xsl:text disable-output-escaping="yes"> &#38;ndash; </xsl:text>
+    <xsl:apply-templates select="head" mode="text"/>
+  </dt>
+  <dd xmlns="http://www.w3.org/1999/xhtml">
+    <xsl:apply-templates select="req"/>
+  </dd>
+</xsl:template>
+<!-- ritem: requirement item; mode(diff) -->
+<xsl:template match="ritem" mode="diff">
+  <xsl:variable name="diffval" select="ancestor-or-self::*/@diff"/>
+  <xsl:variable name="this-req-id">
+    <xsl:choose>
+      <xsl:when test="@id">
+	<xsl:value-of select="@id"/>
+      </xsl:when>
+      <xsl:otherwise>
+	<xsl:value-of select="generate-id(.)"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:variable>
+  <xsl:choose>
+    <xsl:when test="$diffval='del' and $show.diff.markup = 0">
+      <!-- delete item -->
+    </xsl:when>
+    <xsl:otherwise>
+      <dt xmlns="http://www.w3.org/1999/xhtml" class="diff-{$diffval}">
+	<xsl:if test="@id">
+	  <a name="{@id}" id="{@id}"/>
+	</xsl:if>
+	<xsl:value-of select="$this-req-id"/>
+	<xsl:text disable-output-escaping="yes"> &#38;ndash; </xsl:text>
+	<xsl:apply-templates select="head" mode="text"/>
+      </dt>
+      <dd xmlns="http://www.w3.org/1999/xhtml" class="diff-{$diffval}">
+	<xsl:apply-templates select="req"/>
+      </dd>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+<xsl:template match="ritem" mode="specref">
+  <a xmlns="http://www.w3.org/1999/xhtml">
+    <xsl:attribute name="href">
+      <xsl:call-template name="href.target"/>
+    </xsl:attribute>
+    <b>
+      <xsl:apply-templates select="head" mode="text"/>
+    </b>
+  </a>
+</xsl:template>
+<!-- req: requirement body -->
+<xsl:template match="req">
+  <div xmlns="http://www.w3.org/1999/xhtml" class="req">
+    <xsl:apply-templates/>
+  </div>
+</xsl:template>
+<!-- uselist: use case scenario list -->
+<xsl:template match="uselist">
+  <dl xmlns="http://www.w3.org/1999/xhtml">
+    <xsl:apply-templates/>
+  </dl>
+</xsl:template>
+<!-- useitem: use case scenario item -->
+<xsl:template match="useitem">
+  <xsl:variable name="this-use-id">
+    <xsl:choose>
+      <xsl:when test="@id">
+	<xsl:value-of select="@id"/>
+      </xsl:when>
+      <xsl:otherwise>
+	<xsl:value-of select="generate-id(.)"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:variable>
+  <dt xmlns="http://www.w3.org/1999/xhtml">
+    <xsl:if test="@id">
+      <a name="{@id}" id="{@id}"/>
+    </xsl:if>
+    <xsl:value-of select="$this-use-id"/>
+    <xsl:text disable-output-escaping="yes"> &#38;ndash; </xsl:text>
+    <xsl:apply-templates select="head" mode="text"/>
+  </dt>
+  <dd xmlns="http://www.w3.org/1999/xhtml">
+    <xsl:apply-templates select="use"/>
+  </dd>
+</xsl:template>
+<xsl:template match="useitem" mode="specref">
+  <a xmlns="http://www.w3.org/1999/xhtml">
+    <xsl:attribute name="href">
+      <xsl:call-template name="href.target"/>
+    </xsl:attribute>
+    <b>
+      <xsl:apply-templates select="head" mode="text"/>
+    </b>
+  </a>
+</xsl:template>
+<!-- use: use case scenario body -->
+<xsl:template match="use">
+  <div xmlns="http://www.w3.org/1999/xhtml" class="use">
+    <xsl:apply-templates/>
+  </div>
+</xsl:template>
+<!-- status w/diff -->
+<xsl:template match="status[@diff]" priority="1">
+  <xsl:variable name="diffval" select="ancestor-or-self::*/@diff"/>
+  <xsl:if test='$show.diff.markup != 0 or $diffval != "del"'>
+    <div xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:if test='$show.diff.markup != 0'>
+	<xsl:attribute name='class'>
+	  <xsl:text>diff-</xsl:text>
+	  <xsl:value-of select='$diffval'/>
+	</xsl:attribute>
+      </xsl:if>
+      <h2>
+	<xsl:call-template name="anchor">
+	  <xsl:with-param name="conditional" select="0"/>
+	  <xsl:with-param name="default.id" select="'status'"/>
+	</xsl:call-template>
+	<xsl:text>Status of this Document</xsl:text>
+      </h2>
+      <xsl:if test="/spec/@role='editors-copy'">
+	<p><strong>This document is an editor's copy that has no official standing.</strong></p>
+      </xsl:if>
+      <xsl:apply-templates/>
+    </div>
+  </xsl:if>
+</xsl:template>
+<!-- note w/diff -->
+<xsl:template match="note[@diff]" priority="1">
+  <xsl:variable name="diffval" select="ancestor-or-self::*/@diff"/>
+  <xsl:if test='$show.diff.markup != 0 or $diffval != "del"'>
+    <div xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:if test='$show.diff.markup != 0'>
+	<xsl:attribute name='class'>
+	  <xsl:text>diff-</xsl:text>
+	  <xsl:value-of select='$diffval'/>
+	</xsl:attribute>
+      </xsl:if>
+      <div class="note">
+	<p class="prefix">
+	  <b>Note:</b>
+	</p>
+	<xsl:apply-templates/>
+      </div>
+    </div>
+  </xsl:if>
+</xsl:template>
+<!-- ulist w/diff -->
+<xsl:template match="ulist[@diff]" priority="1">
+  <xsl:variable name="diffval" select="ancestor-or-self::*/@diff"/>
+  <xsl:if test='$show.diff.markup != 0 or $diffval != "del"'>
+    <ul xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:if test='$show.diff.markup != 0'>
+	<xsl:attribute name='class'>
+	  <xsl:text>diff-</xsl:text>
+	  <xsl:value-of select='$diffval'/>
+	</xsl:attribute>
+      </xsl:if>
+      <xsl:apply-templates/>
+    </ul>
+  </xsl:if>
+</xsl:template>
+<!-- p w/diff -->
+<xsl:template match="p[@diff]" priority="1">
+  <xsl:variable name="diffval" select="ancestor-or-self::*/@diff"/>
+  <xsl:if test='$show.diff.markup != 0 or $diffval != "del"'>
+    <p xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:if test='$show.diff.markup != 0'>
+	<xsl:attribute name='class'>
+	  <xsl:text>diff-</xsl:text>
+	  <xsl:value-of select='$diffval'/>
+	</xsl:attribute>
+      </xsl:if>
+      <xsl:if test="@id">
+	<xsl:attribute name="id">
+	  <xsl:value-of select="@id"/>
+	</xsl:attribute>
+      </xsl:if>
+      <xsl:if test="@role">
+	<xsl:attribute name="class">
+	  <xsl:value-of select="@role"/>
+	</xsl:attribute>
+      </xsl:if>
+      <xsl:apply-templates/>
+    </p>
+  </xsl:if>
+</xsl:template>
+<!-- bibl w/diff -->
+<xsl:template match="bibl[@diff]" priority="1">
+  <xsl:variable name="diffval" select="ancestor-or-self::*/@diff"/>
+  <xsl:if test='$show.diff.markup != 0 or $diffval != "del"'>
+    <dt xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:attribute name='class'>
+	<xsl:text>label</xsl:text>
+	<xsl:if test='$show.diff.markup != 0'>
+	  <xsl:text>diff-</xsl:text>
+	  <xsl:value-of select='$diffval'/>
+	</xsl:if>
+      </xsl:attribute>
+      <xsl:if test="@id">
+	<a name="{@id}" id="{@id}"/>
+      </xsl:if>
+      <xsl:choose>
+	<xsl:when test="@key">
+	  <xsl:value-of select="@key"/>
+	</xsl:when>
+	<xsl:otherwise>
+	  <xsl:value-of select="@id"/>
+	</xsl:otherwise>
+      </xsl:choose>
+    </dt>
+    <dd xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:if test='$show.diff.markup != 0'>
+	<xsl:attribute name='class'>
+	  <xsl:text>diff-</xsl:text>
+	  <xsl:value-of select='$diffval'/>
+	</xsl:attribute>
+      </xsl:if>
+      <xsl:choose>
+	<xsl:when test="@href">
+	  <a href="{@href}">
+	    <xsl:apply-templates/>
+	  </a>
+	</xsl:when>
+	<xsl:otherwise>
+	  <xsl:apply-templates/>
+	</xsl:otherwise>
+      </xsl:choose>
+      <xsl:if test="@href">
+	<xsl:text>  (See </xsl:text>
+	<xsl:value-of select="@href"/>
+	<xsl:text>.)</xsl:text>
+      </xsl:if>
+    </dd>
+  </xsl:if>
+</xsl:template>
+<!-- table -->
+<xsl:template match="table">
+  <table xmlns="http://www.w3.org/1999/xhtml" summary="HTML Table">
+    <xsl:for-each select="@*">
+      <xsl:choose>
+	<xsl:when test="local-name(.) = 'diff'"/>
+	<xsl:when test="local-name(.) = 'role'">
+	  <xsl:attribute name="class">
+	    <xsl:value-of select="."/>
+	  </xsl:attribute>
+	</xsl:when>
+	<xsl:otherwise>
+	  <xsl:copy-of select="."/>
+	</xsl:otherwise>
+      </xsl:choose>
+    </xsl:for-each>
+    <xsl:apply-templates/>
+    <xsl:if test=".//footnote">
+      <tbody>
+	<tr>
+	  <td>
+	    <xsl:apply-templates select=".//footnote" mode="table.notes"/>
+	  </td>
+	</tr>
+      </tbody>
+    </xsl:if>
+  </table>
+</xsl:template>
+<!-- table specref -->
+<xsl:template match="table" mode="specref">
+  <a xmlns="http://www.w3.org/1999/xhtml">
+    <xsl:attribute name="href">
+      <xsl:call-template name="href.target"/>
+    </xsl:attribute>
+    <b>
+      <xsl:apply-templates select="caption" mode="text"/>
+    </b>
+  </a>
+</xsl:template>
+<!-- br: explicit line break -->
+<xsl:template match="br">
+  <br xmlns="http://www.w3.org/1999/xhtml" />
+</xsl:template>
+
+<!-- authlist -->
+<xsl:template match="authlist">
+  <dt xmlns="http://www.w3.org/1999/xhtml">
+    <xsl:choose>
+      <xsl:when test="@role='editor'">
+	<xsl:text>Editor</xsl:text>
+      </xsl:when>
+      <xsl:when test="@role='contributor'">
+	<xsl:text>Contributing Author</xsl:text>
+      </xsl:when>
+      <xsl:otherwise>
+	<xsl:text>Author</xsl:text>
+      </xsl:otherwise>
+    </xsl:choose>
+    <xsl:if test="count(author) &gt; 1">
+      <xsl:text>s</xsl:text>
+    </xsl:if>
+    <xsl:text>:</xsl:text>
+  </dt>
+  <xsl:apply-templates/>
+</xsl:template>
+</xsl:stylesheet>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml11/spec/xmlspec.dtd	Wed Apr 11 22:47:38 2012 -0600
@@ -0,0 +1,2778 @@
+<!-- ............................................................... -->
+<!-- XML specification DTD ......................................... -->
+<!-- ............................................................... -->
+
+<!-- $Id$ -->
+
+<!--
+TYPICAL INVOCATION:
+#  <!DOCTYPE spec PUBLIC
+#       "-//W3C//DTD Specification V2.10//EN"
+#       "http://www.w3.org/2002/xmlspec/dtd/2.10/xmlspec.dtd">
+
+PURPOSE:
+  This XML DTD is for W3C specifications and other technical reports.
+  It is based in part on the TEI Lite and Sweb DTDs.
+
+COPYRIGHT:
+
+  Copyright (C) 2000, 2001, 2002, 2003 Sun Microsystems, Inc. All Rights Reserved.
+  This document is governed by the W3C Software License[3] as
+  described in the FAQ[4].
+
+    [1] http://www.w3.org/TR/xslt
+    [2] http://www.w3.org/XML/1998/06/xmlspec-report-v21.htm
+    [3] http://www.w3.org/Consortium/Legal/copyright-software-19980720
+    [4] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
+
+DEPENDENCIES:
+  None.
+
+CHANGE HISTORY:
+  The list of historical changes is at the end of the DTD. For recent changes,
+  see the CVS log.
+
+  For all details, see the design report at:
+
+  <http://www.w3.org/XML/1998/06/xmlspec-report-v21.htm>
+
+  This report is now out-of-date, but no more recent report has been prepared.
+
+#2003-06-25: nwalsh: Added translationloc, preverrataloc, rfc2119
+
+#2003-05-28: nwalsh: Added errataloc, fixed IE bug. Added @num to prod.
+
+             Published V2.4
+
+#2003-03-12: nwalsh: Added local.* PEs to a number of additional
+             places to make customization layers easier.
+
+             Published V2.3
+
+#2002-09-04: nwalsh: Added 'phrase' to title, subtitle, version,
+             w3c-designation, w3c-doctype, day, month, year, name,
+             affiliation, email, language, role, lhs, rhs, com,
+             typename, date, loc, nt, sub, sup, term, termref,
+             titleref, xnt, xspecref, xtermref
+
+             This is *solely* to support automated diffing. Users
+             are explicitly forbidden from using this as an escape
+             hatch to get extra markup in these contexts.
+
+#2001-10-08: nwalsh: Added local.arg.att and local.proto.att
+
+#2002-08-14: nwalsh: Published V2.2
+
+  Added marked sections around element and attlist declarations and
+  added the altlocs element
+
+MAINTAINERS:
+  Norman Walsh
+  Sun Microsystems, Inc.
+  Norman.Walsh@Sun.COM
+  voice: +1 413 256 6985
+  fax:   +1 413 256 6985
+
+  Eve Maler
+  Sun Microsystems, Inc.
+  elm@east.sun.com
+  voice: +1 781 442 3190
+  fax:   +1 781 442 1437
+-->
+
+<!-- ............................................................... -->
+<!-- Entities for characters and symbols ........................... -->
+<!-- ............................................................... -->
+
+<!--
+#1998-03-10: maler: Added &ldquo; and &rdquo;.
+#                   Used 8879:1986-compatible decimal character
+#                   references.
+#                   Merged charent.mod file back into main file.
+#1998-05-14: maler: Fixed ldquo and rdquo.  Gave mdash a real number.
+#1998-12-03: maler: Escaped the leading ampersands.
+-->
+
+<!ENTITY lt     "&#38;#60;">
+<!ENTITY gt     "&#62;">
+<!ENTITY amp    "&#38;#38;">
+<!ENTITY apos   "&#39;">
+<!ENTITY quot   "&#34;">
+<!ENTITY nbsp   "&#160;">
+<!ENTITY mdash  "&#38;#x2014;">
+<!ENTITY ldquo  "&#38;#x201C;">
+<!ENTITY rdquo  "&#38;#x201D;">
+
+<!-- ............................................................... -->
+<!-- Entities for classes of standalone elements ................... -->
+<!-- ............................................................... -->
+
+<!--
+#1997-10-16: maler: Added table to %illus.class;.
+#1997-11-28: maler: Added htable to %illus.class;.
+#1997-12-29: maler: IGNOREd table.
+#1998-03-10: maler: Removed SGML Open-specific %illus.class;.
+#                   Added "local" entities for customization.
+#1998-05-14: maler: Added issue to %note.class;.
+#                   Removed %[local.]statusp.class;.
+#1998-05-21: maler: Added constraintnote to %note.class;.
+#1998-08-22: maler: Changed htable to table in %illus.class;.
+#                   Added definitions to %illus.class;.
+#2000-03-07: maler: Added proto and example to %illus.class;.
+-->
+
+<!ENTITY % local.p.class        " ">
+<!ENTITY % p.class              "p
+                                %local.p.class;">
+
+<!ENTITY % local.list.class     " ">
+<!ENTITY % list.class           "ulist|olist|slist|glist
+                                %local.list.class;">
+
+<!ENTITY % local.speclist.class " ">
+<!ENTITY % speclist.class       "orglist|blist
+                                %local.speclist.class;">
+
+<!ENTITY % local.note.class     " ">
+<!ENTITY % note.class           "note|issue|wfcnote|vcnote
+                                |constraintnote %local.note.class;">
+
+<!ENTITY % local.illus.class    " ">
+<!ENTITY % illus.class          "eg|graphic|scrap|table|definitions
+                                |proto|example
+                                %local.illus.class;">
+
+<!-- ............................................................... -->
+<!-- Entities for classes of phrase-level elements ................. -->
+<!-- ............................................................... -->
+
+<!--
+#1997-12-29: maler: Added xspecref to %ref.class;.
+#1998-03-10: maler: Added %ednote.class;.
+#                   Added "local" entities for customization.
+#2000-03-07: maler: Added function, var, el, att, and attval to
+#                   %tech.class;.
+#                   Added sub, sup, and phrase to %emph.class;.
+-->
+
+<!ENTITY % local.annot.class    " ">
+<!ENTITY % annot.class          "footnote
+                                %local.annot.class;">
+
+<!ENTITY % local.termdef.class  " ">
+<!ENTITY % termdef.class        "termdef|term
+                                %local.termdef.class;">
+
+<!ENTITY % local.emph.class     " ">
+<!ENTITY % emph.class           "emph|phrase|rfc2119|quote|sub|sup
+                                %local.emph.class;">
+
+<!ENTITY % local.ref.class      " ">
+<!ENTITY % ref.class            "bibref|specref|termref|titleref
+                                |xspecref|xtermref
+                                %local.ref.class;">
+
+<!ENTITY % local.loc.class      " ">
+<!ENTITY % loc.class            "loc
+                                %local.loc.class;">
+
+<!ENTITY % local.tech.class     " ">
+<!ENTITY % tech.class           "kw|nt|xnt|code|function|var
+                                |el|att|attval
+                                %local.tech.class;">
+
+<!ENTITY % local.ednote.class   " ">
+<!ENTITY % ednote.class         "ednote
+                                %local.ednote.class;">
+
+<!-- ............................................................... -->
+<!-- Entities for mixtures of standalone elements .................. -->
+<!-- ............................................................... -->
+
+<!--
+#1997-09-30: maler: Created %p.mix; to eliminate p from self.
+#1997-09-30: maler: Added %speclist.class; to %obj.mix; and %p.mix;.
+#1997-09-30: maler: Added %note.class; to %obj.mix; and %p.mix;.
+#1997-10-16: maler: Created %entry.mix;.  Note that some elements
+#                   left out here are still allowed in termdef,
+#                   which entry can contain through %p.pcd.mix;.
+#1997-11-28: maler: Added %p.class; to %statusobj.mix;.
+#1998-03-10: maler: Added %ednote.class; to all mixtures, except
+#                   %p.mix; and %statusobj.mix;, because paragraphs
+#                   and status paragraphs will contain ednote
+#                   through %p.pcd.mix;.
+#1998-03-23: maler: Added %termdef.mix; (broken out from
+#                    %termdef.pcd.mix;).
+#1998-05-14: maler: Removed %statusobj.mix; and all mentions of
+#                   %statusp.mix;.
+-->
+
+<!ENTITY % local.div.mix " "> <!-- compensate for IE bug; suggested by ht -->
+<!ENTITY % div.mix
+        "%p.class;|%list.class;|%speclist.class;|%note.class;
+        |%illus.class;|%ednote.class;%local.div.mix;">
+
+<!ENTITY % local.obj.mix " "> <!-- compensate for IE bug; suggested by ht -->
+<!ENTITY % obj.mix
+        "%p.class;|%list.class;|%speclist.class;|%note.class;
+        |%illus.class;|%ednote.class;%local.obj.mix;">
+
+<!ENTITY % local.p.mix " "> <!-- compensate for IE bug; suggested by ht -->
+<!ENTITY % p.mix
+        "%list.class;|%speclist.class;|%note.class;|%illus.class;%local.p.mix;">
+
+<!ENTITY % local.entry.mix " "> <!-- compensate for IE bug; suggested by ht -->
+<!ENTITY % entry.mix
+        "%list.class;|note|eg|graphic|%ednote.class;%local.entry.mix;">
+
+<!ENTITY % local.hdr.mix " "> <!-- compensate for IE bug; suggested by ht -->
+<!ENTITY % hdr.mix
+        "%p.class;|%list.class;|%ednote.class;%local.hdr.mix;">
+
+<!ENTITY % local.termdef.mix " "> <!-- compensate for IE bug; suggested by ht -->
+<!ENTITY % termdef.mix
+        "%note.class;|%illus.class;%local.termdef.mix;">
+
+<!-- ............................................................... -->
+<!-- Entities for mixtures of #PCDATA and phrase-level elements .... -->
+<!-- ............................................................... -->
+
+<!--    Note that %termdef.pcd.mix contains %note.class;
+        and %illus.class;, considered standalone elements. -->
+
+<!--
+#1997-09-30: maler: Added scrap and %note.class; to %termdef.pcd.mix;.
+#1997-11-28: maler: Added %loc.class; to %p.pcd.mix;.
+#1998-03-10: maler: Added %ednote.class; to all mixtures.
+#1998-03-23: maler: Moved some %termdef.pcd.mix; stuff out to
+#                   %termdef.mix;.
+#1998-05-14: maler: Removed %statusp.pcd.mix;.
+#1998-05-21: maler: Added constraint element to %eg.pcd.mix;.
+#1999-07-02: maler: Added %loc.class; to %head.pcd.mix;,
+#                   %label.pcd.mix;, %eg.pcd.mix;, %termdef.pcd.mix;,
+#                   %tech.pcd.mix; (net: all PCD mixes have it).
+#                   Removed unused %loc.pcd.mix;.
+-->
+
+<!ENTITY % local.p.pcd.mix " "> <!-- compensate for IE bug; suggested by ht -->
+<!ENTITY % p.pcd.mix
+        "#PCDATA|%annot.class;|%termdef.class;|%emph.class;
+        |%ref.class;|%tech.class;|%loc.class;|%ednote.class;%local.p.pcd.mix;">
+
+<!ENTITY % local.head.pcd.mix " "> <!-- compensate for IE bug; suggested by ht -->
+<!ENTITY % head.pcd.mix
+        "#PCDATA|%annot.class;|%emph.class;|%tech.class;
+        |%loc.class;|%ednote.class;%local.head.pcd.mix;">
+
+<!ENTITY % local.label.pcd.mix " "> <!-- compensate for IE bug; suggested by ht -->
+<!ENTITY % label.pcd.mix
+        "#PCDATA|%annot.class;|%termdef.class;|%emph.class;
+        |%tech.class;|%loc.class;|%ednote.class;%local.label.pcd.mix;">
+
+<!ENTITY % local.eg.pcd.mix " "> <!-- compensate for IE bug; suggested by ht -->
+<!ENTITY % eg.pcd.mix
+        "#PCDATA|%annot.class;|%emph.class;|%loc.class;
+        |%ednote.class;|constraint %local.eg.pcd.mix;">
+
+<!ENTITY % local.termdef.pcd.mix " "> <!-- compensate for IE bug; suggested by ht -->
+<!ENTITY % termdef.pcd.mix
+        "#PCDATA|term|%emph.class;|%ref.class;|%tech.class;
+        |%loc.class;|%ednote.class;%local.termdef.pcd.mix;">
+
+<!ENTITY % local.bibl.pcd.mix " "> <!-- compensate for IE bug; suggested by ht -->
+<!ENTITY % bibl.pcd.mix
+        "#PCDATA|%emph.class;|%ref.class;|%loc.class;|%ednote.class;%local.bibl.pcd.mix;">
+
+<!ENTITY % local.tech.pcd.mix " "> <!-- compensate for IE bug; suggested by ht -->
+<!ENTITY % tech.pcd.mix
+        "#PCDATA|%loc.class;|%ednote.class;|phrase|rfc2119 %local.tech.pcd.mix;">
+
+<!-- ............................................................... -->
+<!-- Entities for customizable content models ...................... -->
+<!-- ............................................................... -->
+
+<!--
+#1998-03-10: maler: Added customization entities.
+#1998-05-14: maler: Allowed prevlocs and latestloc in either order.
+#1999-07-02: maler: Made version optional; added copyright element.
+#2000-03-07: maler: Allowed status and abstract in opposite order.
+-->
+
+<!ENTITY % spec.mdl
+        "header, front?, body, back?">
+
+<!ENTITY % header.mdl
+        "title, subtitle?, version?, w3c-designation, w3c-doctype,
+        pubdate, notice*, publoc, altlocs?, ((prevlocs, latestloc?) |
+        (latestloc, prevlocs?))?, authlist, errataloc?, preverrataloc?,
+        translationloc?, copyright?,
+        ((status, abstract) | (abstract, status)), pubstmt?,
+        sourcedesc?, langusage, revisiondesc">
+
+<!ENTITY % pubdate.mdl
+        "day?, month, year">
+
+<!-- ............................................................... -->
+<!-- Entities for common attributes ................................ -->
+<!-- ............................................................... -->
+
+<!--
+#2000-03-07: maler: Added %argtypes;.
+-->
+
+<!--    argtypes:
+        Values for function prototype argument datatypes. -->
+<!ENTITY % argtypes
+        '(boolean
+         |expression
+         |location-set
+         |node-set
+         |number
+         |object
+         |point
+         |range
+         |string)'>
+
+<!--    key attribute:
+        Optionally provides a sorting or indexing key, for cases when
+        the element content is inappropriate for this purpose. -->
+<!ENTITY % key.att
+        'key                    CDATA           #IMPLIED'>
+
+<!--    def attribute:
+        Points to the element where the relevant definition can be
+        found, using the IDREF mechanism.  %def.att; is for optional
+        def attributes, and %def-req.att; is for required def
+        attributes. -->
+<!ENTITY % def.att
+        'def                    IDREF           #IMPLIED'>
+<!ENTITY % def-req.att
+        'def                    IDREF           #REQUIRED'>
+
+<!--    ref attribute:
+        Points to the element where more information can be found,
+        using the IDREF mechanism.  %ref.att; is for optional
+        ref attributes, and %ref-req.att; is for required ref
+        attributes. -->
+<!ENTITY % ref.att
+        'ref                    IDREF           #IMPLIED'>
+<!ENTITY % ref-req.att
+        'ref                    IDREF           #REQUIRED'>
+
+<!--
+#1998-03-23: maler: Added show and actuate attributes to href.
+#                   Added semi-common xml:space attribute.
+#1998-08-22: maler: Used new xlink:form and #IMPLIED features.
+#1999-07-02: maler: Reorganized XLink-related entities completely;
+#                   added xmlns:xlink attribute to the mix.
+#2000-03-07: maler: Updated XLink usage to February 2000 draft,
+#                   except that href still has no namespace prefix.
+-->
+
+<!--    xmlns:xlink and xlink:type attributes:
+        xmlns:xlink declares the association of the xlink prefix
+        with the namespace created by the XLink specification.
+        xlink:type identifies an element as an XLink "simple" linking
+        element. -->
+<!ENTITY % simple-xlink.att
+        'xmlns:xlink            CDATA   #FIXED
+                                        "http://www.w3.org/1999/xlink"
+        xlink:type              CDATA   #FIXED "simple" '>
+
+<!--    href attributes:
+        The href attribute locates the remote-resource half of a
+        simple link; the element on which the href appears is the
+        local-resource half.  Some elements are usable links only if
+        the author chooses to supply a functional href.  The attribute
+        name should really be xlink:href, but is kept without the
+        prefix for now in order to be backwards-compatible. -->
+
+<!ENTITY % href.att
+        'href                   CDATA           #IMPLIED '>
+<!ENTITY % href-req.att
+        'href                   CDATA           #REQUIRED '>
+
+<!--    xlink:show and xlink:actuate attributes:
+        These attributes offer instructions to the display engine
+        about how to handle traversal to resource indicated by an
+        href locator. -->
+<!ENTITY % auto-embed.att
+        'xlink:show             CDATA           #FIXED "embed"
+        xlink:actuate           CDATA           #FIXED "onLoad" '>
+<!ENTITY % user-replace.att
+        'xlink:show             CDATA           #FIXED "replace"
+        xlink:actuate           CDATA           #FIXED "onRequest" '>
+<!ENTITY % user-new.att
+        'xlink:show             CDATA           #FIXED "new"
+        xlink:actuate           CDATA           #FIXED "onRequest" '>
+
+<!--    xml:space attribute:
+        Indicates that the element contains whitespace that the
+        formatter or other application should retain, as appropriate
+        to its function. -->
+<!ENTITY % xmlspace.att
+        'xml:space              (default
+                                |preserve)      #FIXED "preserve" '>
+
+<!--
+#2000-03-07: maler: Added common diff attribute.  Made %role.att;.
+-->
+
+<!--    diff attribute:
+        Indicates in what way the element has changed.  When a value
+        is not provided, that subelement should inherit a value from
+        its parent.  If the root element has no value supplied,
+        assume "off". -->
+<!ENTITY % diff.att
+        'diff                   (chg
+                                |add
+                                |del
+                                |off)           #IMPLIED'>
+
+<!--    role attribute:
+        Extends the useful life of the DTD by allowing authors to
+        make a subtype of any element.  No default. -->
+<!ENTITY % role.att
+        'role                   NMTOKEN         #IMPLIED'>
+
+<!--    Common attributes:
+        Every element has an ID attribute for links, a role
+        attribute, and a diff attribute. %common.att; is for
+        common attributes where the ID is optional, and
+        %common-idreq.att; is for common attributes where the
+        ID is required. -->
+
+<!ENTITY % local.common.att " ">
+<!ENTITY % common.att
+        'id                     ID              #IMPLIED
+        %role.att;
+        %diff.att;
+        %local.common.att;'>
+
+<!ENTITY % local.common-idreq.att " ">
+<!ENTITY % common-idreq.att
+        'id                     ID              #REQUIRED
+        %role.att;
+        %diff.att;
+        %local.common-idreq.att;'>
+
+<!-- ............................................................... -->
+<!-- Common elements ............................................... -->
+<!-- ............................................................... -->
+
+<!--    head: Title on divisions, productions, and the like -->
+<!ENTITY % head.element "INCLUDE">
+<![%head.element;[
+<!ELEMENT head (%head.pcd.mix;)*>
+]]>
+<!ENTITY % head.attlist "INCLUDE">
+<![%head.attlist;[
+<!ATTLIST head %common.att;>
+]]>
+
+<!-- ............................................................... -->
+<!-- Major specification structure ................................. -->
+<!-- ............................................................... -->
+
+<!--
+#1998-03-10: maler: Made spec content model easily customizable.
+#1999-07-02: maler: Added doctype atts and status att.
+#2000-03-07: maler: Added cr, issues, and dispcmts to w3c-doctype.
+-->
+
+<!ENTITY % spec.element "INCLUDE">
+<![%spec.element;[
+<!ELEMENT spec (%spec.mdl;)>
+]]>
+<!--    w3c-doctype attributes:
+        Indicates the type of document, so that the appropriate
+        stylesheet or workflow routing can be applied.  Should
+        *not* generate any text (such as the "REC-" or "NOTE-"
+        prefix on the W3C designation content).  No default.  If
+        w3c-doctype is "other", other-doctype should be filled in.
+
+        status attribute:
+        Indicates the stage of review of the document.  May affect
+        the stylesheet's treatment of ednotes (e.g., whether to
+        output them).  No default. -->
+
+<!ENTITY % local.spec.att " ">
+<!ENTITY % spec.attlist "INCLUDE">
+<![%spec.attlist;[
+<!ATTLIST spec
+        %common.att;
+        %local.spec.att;
+        w3c-doctype     (cr
+                        |dispcmts
+                        |issues
+                        |wgnote
+                        |memsub
+                        |teamsub
+                        |note
+                        |other
+                        |pr
+                        |per
+                        |rec
+                        |wd
+                        |review)                #IMPLIED
+        other-doctype   CDATA                   #IMPLIED
+        status          (int-review
+                        |ext-review
+                        |final)                 #IMPLIED
+>
+]]>
+
+<!ENTITY % front.element "INCLUDE">
+<![%front.element;[
+<!ELEMENT front (div1+)>
+]]>
+<!ENTITY % front.attlist "INCLUDE">
+<![%front.attlist;[
+<!ATTLIST front %common.att;>
+]]>
+
+<!ENTITY % body.element "INCLUDE">
+<![%body.element;[
+<!ELEMENT body (div1+)>
+]]>
+<!ENTITY % body.attlist "INCLUDE">
+<![%body.attlist;[
+<!ATTLIST body %common.att;>
+]]>
+
+<!--
+#1997-09-30: maler: Added inform-div1 to back content.
+-->
+
+<!ENTITY % back.element "INCLUDE">
+<![%back.element;[
+<!ELEMENT back ((div1+, inform-div1*) | inform-div1+)>
+]]>
+<!ENTITY % back.attlist "INCLUDE">
+<![%back.attlist;[
+<!ATTLIST back %common.att;>
+]]>
+
+<!ENTITY % div1.element "INCLUDE">
+<![%div1.element;[
+<!ELEMENT div1 (head, (%div.mix;)*, div2*)>
+]]>
+<!ENTITY % div1.attlist "INCLUDE">
+<![%div1.attlist;[
+<!ATTLIST div1 %common.att;>
+]]>
+
+<!--
+#1997-09-30: maler: Added inform-div1 declarations.
+#2000-03-07: maler: Added div5 level.
+-->
+
+<!--    inform-div1: Non-normative division in back matter -->
+<!ENTITY % inform-div1.element "INCLUDE">
+<![%inform-div1.element;[
+<!ELEMENT inform-div1 (head, (%div.mix;)*, div2*)>
+]]>
+<!ENTITY % inform-div1.attlist "INCLUDE">
+<![%inform-div1.attlist;[
+<!ATTLIST inform-div1 %common.att;>
+]]>
+
+<!ENTITY % div2.element "INCLUDE">
+<![%div2.element;[
+<!ELEMENT div2 (head, (%div.mix;)*, div3*)>
+]]>
+<!ENTITY % div2.attlist "INCLUDE">
+<![%div2.attlist;[
+<!ATTLIST div2 %common.att;>
+]]>
+
+<!ENTITY % div3.element "INCLUDE">
+<![%div3.element;[
+<!ELEMENT div3 (head, (%div.mix;)*, div4*)>
+]]>
+<!ENTITY % div3.attlist "INCLUDE">
+<![%div3.attlist;[
+<!ATTLIST div3 %common.att;>
+]]>
+
+<!ENTITY % div4.element "INCLUDE">
+<![%div4.element;[
+<!ELEMENT div4 (head, (%div.mix;)*, div5*)>
+]]>
+<!ENTITY % div4.attlist "INCLUDE">
+<![%div4.attlist;[
+<!ATTLIST div4 %common.att;>
+]]>
+
+<!ENTITY % div5.element "INCLUDE">
+<![%div5.element;[
+<!ELEMENT div5 (head, (%div.mix;)*)>
+]]>
+<!ENTITY % div5.attlist "INCLUDE">
+<![%div5.attlist;[
+<!ATTLIST div5 %common.att;>
+]]>
+
+<!-- ............................................................... -->
+<!-- Specification header .......................................... -->
+<!-- ............................................................... -->
+
+<!--
+#1998-03-10: maler: Made header content model easily customizable.
+-->
+
+<!ENTITY % header.element "INCLUDE">
+<![%header.element;[
+<!ELEMENT header (%header.mdl;)>
+]]>
+<!ENTITY % header.attlist "INCLUDE">
+<![%header.attlist;[
+<!ATTLIST header %common.att;>
+]]>
+
+<!--    Example of title: "Extensible Cheese Language (XCL)" -->
+<!ENTITY % title.element "INCLUDE">
+<![%title.element;[
+<!ELEMENT title (#PCDATA|phrase)*>
+]]>
+<!ENTITY % title.attlist "INCLUDE">
+<![%title.attlist;[
+<!ATTLIST title %common.att;>
+]]>
+
+<!--    Example of subtitle: "A Cheesy Specification" -->
+<!ENTITY % subtitle.element "INCLUDE">
+<![%subtitle.element;[
+<!ELEMENT subtitle (#PCDATA|phrase)*>
+]]>
+<!ENTITY % subtitle.attlist "INCLUDE">
+<![%subtitle.attlist;[
+<!ATTLIST subtitle %common.att;>
+]]>
+
+<!--    Example of version: "Version 666.0" -->
+<!ENTITY % version.element "INCLUDE">
+<![%version.element;[
+<!ELEMENT version (#PCDATA|phrase)*>
+]]>
+<!ENTITY % version.attlist "INCLUDE">
+<![%version.attlist;[
+<!ATTLIST version %common.att;>
+]]>
+
+<!--    Example of w3c-designation: "WD-xcl-19991231" -->
+<!ENTITY % w3c-designation.element "INCLUDE">
+<![%w3c-designation.element;[
+<!ELEMENT w3c-designation (#PCDATA|phrase)*>
+]]>
+<!ENTITY % w3c-designation.attlist "INCLUDE">
+<![%w3c-designation.attlist;[
+<!ATTLIST w3c-designation %common.att;>
+]]>
+
+<!--    Example of w3c-doctype: "W3C Working Draft" -->
+<!ENTITY % w3c-doctype.element "INCLUDE">
+<![%w3c-doctype.element;[
+<!ELEMENT w3c-doctype (#PCDATA|phrase)*>
+]]>
+<!ENTITY % w3c-doctype.attlist "INCLUDE">
+<![%w3c-doctype.attlist;[
+<!ATTLIST w3c-doctype %common.att;>
+]]>
+
+<!--
+#1998-03-10: maler: Made pubdate content model easily customizable.
+-->
+
+<!ENTITY % pubdate.element "INCLUDE">
+<![%pubdate.element;[
+<!ELEMENT pubdate (%pubdate.mdl;)>
+]]>
+<!ENTITY % pubdate.attlist "INCLUDE">
+<![%pubdate.attlist;[
+<!ATTLIST pubdate %common.att;>
+]]>
+
+<!ENTITY % day.element "INCLUDE">
+<![%day.element;[
+<!ELEMENT day (#PCDATA|phrase)*>
+]]>
+<!ENTITY % day.attlist "INCLUDE">
+<![%day.attlist;[
+<!ATTLIST day %common.att;>
+]]>
+
+<!ENTITY % month.element "INCLUDE">
+<![%month.element;[
+<!ELEMENT month (#PCDATA|phrase)*>
+]]>
+<!ENTITY % month.attlist "INCLUDE">
+<![%month.attlist;[
+<!ATTLIST month %common.att;>
+]]>
+
+<!ENTITY % year.element "INCLUDE">
+<![%year.element;[
+<!ELEMENT year (#PCDATA|phrase)*>
+]]>
+<!ENTITY % year.attlist "INCLUDE">
+<![%year.attlist;[
+<!ATTLIST year %common.att;>
+]]>
+
+<!--
+#1999-07-02: maler: Declared copyright element.
+-->
+
+<!ENTITY % copyright.element "INCLUDE">
+<![%copyright.element;[
+<!ELEMENT copyright (%hdr.mix;)+>
+]]>
+<!ENTITY % copyright.attlist "INCLUDE">
+<![%copyright.attlist;[
+<!ATTLIST copyright %common.att;>
+]]>
+
+<!--    Example of notice: "This draft is for public comment..." -->
+<!ENTITY % notice.element "INCLUDE">
+<![%notice.element;[
+<!ELEMENT notice (%hdr.mix;)+>
+]]>
+<!ENTITY % notice.attlist "INCLUDE">
+<![%notice.attlist;[
+<!ATTLIST notice %common.att;>
+]]>
+
+<!--
+#2000-03-07: maler: Broadened models of *loc to %p.pcd.mix;.
+-->
+
+<!ENTITY % publoc.element "INCLUDE">
+<![%publoc.element;[
+<!ELEMENT publoc (%p.pcd.mix;)*>
+]]>
+<!ENTITY % publoc.attlist "INCLUDE">
+<![%publoc.attlist;[
+<!ATTLIST publoc %common.att;>
+]]>
+
+<!--
+#2002-08-15: nwalsh: Added altlocs element.
+  The semantics of the altlocs are equivalent to the Dublin Core relation element
+  with type="hasVersion". Each of the loc elements inside altlocs should identify
+  an alternate version of the resource described by the document, for example
+  HTML, XML, and PDF forms.
+-->
+<!ENTITY % altlocs.element "INCLUDE">
+<![%altlocs.element;[
+<!ELEMENT altlocs (loc+)>
+]]>
+<!ENTITY % altlocs.attlist "INCLUDE">
+<![%altlocs.attlist;[
+<!ATTLIST altlocs %common.att;>
+]]>
+
+<!ENTITY % prevlocs.element "INCLUDE">
+<![%prevlocs.element;[
+<!ELEMENT prevlocs (%p.pcd.mix;)*>
+]]>
+<!ENTITY % prevlocs.attlist "INCLUDE">
+<![%prevlocs.attlist;[
+<!ATTLIST prevlocs %common.att;>
+]]>
+
+<!--
+#2005-10-13: nwalsh: restrict latestloc content model.
+  New pubrules allows for multiple latestlocs. For some reason, this element
+  used to allow PCDATA. Now it allows only loc elements. If this causes
+  trouble, tell Norm.
+-->
+<!ENTITY % latestloc.element "INCLUDE">
+<![%latestloc.element;[
+<!ELEMENT latestloc (loc+)>
+]]>
+<!ENTITY % latestloc.attlist "INCLUDE">
+<![%latestloc.attlist;[
+<!ATTLIST latestloc %common.att;>
+]]>
+
+<!ENTITY % errataloc.element "INCLUDE">
+<![%errataloc.element;[
+<!ELEMENT errataloc EMPTY>
+]]>
+<!ENTITY % errataloc.attlist "INCLUDE">
+<![%errataloc.attlist;[
+<!ATTLIST errataloc
+	%common.att;
+        %simple-xlink.att;
+	%href-req.att;
+>
+]]>
+
+<!ENTITY % preverrataloc.element "INCLUDE">
+<![%preverrataloc.element;[
+<!ELEMENT preverrataloc EMPTY>
+]]>
+<!ENTITY % preverrataloc.attlist "INCLUDE">
+<![%preverrataloc.attlist;[
+<!ATTLIST preverrataloc
+	%common.att;
+        %simple-xlink.att;
+	%href-req.att;
+>
+]]>
+
+<!ENTITY % translationloc.element "INCLUDE">
+<![%translationloc.element;[
+<!ELEMENT translationloc EMPTY>
+]]>
+<!ENTITY % translationloc.attlist "INCLUDE">
+<![%translationloc.attlist;[
+<!ATTLIST translationloc
+	%common.att;
+        %simple-xlink.att;
+	%href-req.att;
+>
+]]>
+
+<!--      loc (defined in "Phrase-level elements" below) -->
+
+<!ENTITY % authlist.element "INCLUDE">
+<![%authlist.element;[
+<!ELEMENT authlist (author+)>
+]]>
+<!ENTITY % authlist.attlist "INCLUDE">
+<![%authlist.attlist;[
+<!ATTLIST authlist %common.att;>
+]]>
+
+<!--
+#1997-09-30: maler: Made affiliation optional.
+#1998-03-10: maler: Made email optional.
+-->
+
+<!ENTITY % author.element "INCLUDE">
+<![%author.element;[
+<!ELEMENT author (name, affiliation?, email?)>
+]]>
+<!ENTITY % author.attlist "INCLUDE">
+<![%author.attlist;[
+<!ATTLIST author %common.att;>
+]]>
+
+<!ENTITY % name.element "INCLUDE">
+<![%name.element;[
+<!ELEMENT name (#PCDATA|phrase)*>
+]]>
+<!ENTITY % name.attlist "INCLUDE">
+<![%name.attlist;[
+<!ATTLIST name
+        %common.att;
+        %key.att;>
+]]>
+
+<!ENTITY % affiliation.element "INCLUDE">
+<![%affiliation.element;[
+<!ELEMENT affiliation (#PCDATA|phrase)*>
+]]>
+<!ENTITY % affiliation.attlist "INCLUDE">
+<![%affiliation.attlist;[
+<!ATTLIST affiliation %common.att;>
+]]>
+
+<!--
+#1999-07-02: maler: Added show/actuate attributes and default values.
+-->
+
+
+<!ENTITY % email.element "INCLUDE">
+<![%email.element;[
+<!ELEMENT email (#PCDATA|phrase)*>
+]]>
+<!--    href attribute:
+        email functions as a hypertext reference through this
+        required attribute.  Typically the reference would use
+        the mailto: scheme.  E.g.:
+
+<email href="mailto:elm@arbortext.com">elm@arbortext.com</email>
+        -->
+
+<!ENTITY % email.attlist "INCLUDE">
+<![%email.attlist;[
+<!ATTLIST email
+        %common.att;
+        %simple-xlink.att;
+        %href-req.att;
+        %user-new.att;>
+]]>
+
+<!--
+#1998-05-15: maler: Changed status content from %statusobj.mix;
+#                   to plain %obj.mix;.  statusp is obsolete.
+-->
+
+<!ENTITY % status.element "INCLUDE">
+<![%status.element;[
+<!ELEMENT status (%obj.mix;)+>
+]]>
+<!ENTITY % status.attlist "INCLUDE">
+<![%status.attlist;[
+<!ATTLIST status %common.att;>
+]]>
+
+<!ENTITY % abstract.element "INCLUDE">
+<![%abstract.element;[
+<!ELEMENT abstract (%hdr.mix;)*>
+]]>
+<!ENTITY % abstract.attlist "INCLUDE">
+<![%abstract.attlist;[
+<!ATTLIST abstract %common.att;>
+]]>
+
+<!ENTITY % pubstmt.element "INCLUDE">
+<![%pubstmt.element;[
+<!ELEMENT pubstmt (%hdr.mix;)+>
+]]>
+<!ENTITY % pubstmt.attlist "INCLUDE">
+<![%pubstmt.attlist;[
+<!ATTLIST pubstmt %common.att;>
+]]>
+
+<!ENTITY % sourcedesc.element "INCLUDE">
+<![%sourcedesc.element;[
+<!ELEMENT sourcedesc (%hdr.mix;)+>
+]]>
+<!ENTITY % sourcedesc.attlist "INCLUDE">
+<![%sourcedesc.attlist;[
+<!ATTLIST sourcedesc %common.att;>
+]]>
+
+<!ENTITY % langusage.element "INCLUDE">
+<![%langusage.element;[
+<!ELEMENT langusage (language+)>
+]]>
+<!ENTITY % langusage.attlist "INCLUDE">
+<![%langusage.attlist;[
+<!ATTLIST langusage %common.att;>
+]]>
+
+<!ENTITY % language.element "INCLUDE">
+<![%language.element;[
+<!ELEMENT language (#PCDATA|phrase)*>
+]]>
+<!ENTITY % language.attlist "INCLUDE">
+<![%language.attlist;[
+<!ATTLIST language %common.att;>
+]]>
+
+<!ENTITY % revisiondesc.element "INCLUDE">
+<![%revisiondesc.element;[
+<!ELEMENT revisiondesc (%hdr.mix;)+>
+]]>
+<!ENTITY % revisiondesc.attlist "INCLUDE">
+<![%revisiondesc.attlist;[
+<!ATTLIST revisiondesc %common.att;>
+]]>
+
+<!-- ............................................................... -->
+<!-- Paragraph ..................................................... -->
+<!-- ............................................................... -->
+
+<!--
+#1997-09-30: maler: Changed from %obj.mix; to %p.mix;.
+#1997-12-29: maler: Changed order of %p.mix; and %p.pcd.mix;
+#                   references.
+#1997-12-29: maler: Changed order of %statusobj.mix; and
+#                   %statusp.pcd.mix; references.
+#1998-05-14: maler: Removed statusp declarations.
+-->
+
+<!ENTITY % p.element "INCLUDE">
+<![%p.element;[
+<!ELEMENT p (%p.pcd.mix;|%p.mix;)*>
+]]>
+<!ENTITY % p.attlist "INCLUDE">
+<![%p.attlist;[
+<!ATTLIST p %common.att;>
+]]>
+
+<!-- ............................................................... -->
+<!-- Regular lists ................................................. -->
+<!-- ............................................................... -->
+
+<!--    ulist: Unordered list, typically bulleted. -->
+<!ENTITY % ulist.element "INCLUDE">
+<![%ulist.element;[
+<!ELEMENT ulist (item+)>
+]]>
+<!--    spacing attribute:
+        Use "normal" to get normal vertical spacing for items;
+        use "compact" to get less spacing.  The default is dependent
+        on the stylesheet. -->
+<!ENTITY % ulist.attlist "INCLUDE">
+<![%ulist.attlist;[
+<!ATTLIST ulist
+        %common.att;
+        spacing         (normal|compact)        #IMPLIED>
+]]>
+
+<!--    olist: Ordered list, typically numbered. -->
+<!ENTITY % olist.element "INCLUDE">
+<![%olist.element;[
+<!ELEMENT olist (item+)>
+]]>
+<!--    spacing attribute:
+        Use "normal" to get normal vertical spacing for items;
+        use "compact" to get less spacing.  The default is dependent
+        on the stylesheet. -->
+<!ENTITY % olist.attlist "INCLUDE">
+<![%olist.attlist;[
+<!ATTLIST olist
+        %common.att;
+        spacing         (normal|compact)        #IMPLIED>
+]]>
+
+<!ENTITY % item.element "INCLUDE">
+<![%item.element;[
+<!ELEMENT item (%obj.mix;)+>
+]]>
+<!ENTITY % item.attlist "INCLUDE">
+<![%item.attlist;[
+<!ATTLIST item %common.att;>
+]]>
+
+<!--    slist: Simple list, typically with no mark. -->
+<!ENTITY % slist.element "INCLUDE">
+<![%slist.element;[
+<!ELEMENT slist (sitem+)>
+]]>
+<!ENTITY % slist.attlist "INCLUDE">
+<![%slist.attlist;[
+<!ATTLIST slist %common.att;>
+]]>
+
+<!ENTITY % sitem.element "INCLUDE">
+<![%sitem.element;[
+<!ELEMENT sitem (%p.pcd.mix;)*>
+]]>
+<!ENTITY % sitem.attlist "INCLUDE">
+<![%sitem.attlist;[
+<!ATTLIST sitem %common.att;>
+]]>
+
+<!--    glist: Glossary list, typically two-column. -->
+<!ENTITY % glist.element "INCLUDE">
+<![%glist.element;[
+<!ELEMENT glist (gitem+)>
+]]>
+<!ENTITY % glist.attlist "INCLUDE">
+<![%glist.attlist;[
+<!ATTLIST glist %common.att;>
+]]>
+
+<!ENTITY % gitem.element "INCLUDE">
+<![%gitem.element;[
+<!ELEMENT gitem (label, def)>
+]]>
+<!ENTITY % gitem.attlist "INCLUDE">
+<![%gitem.attlist;[
+<!ATTLIST gitem %common.att;>
+]]>
+
+<!ENTITY % label.element "INCLUDE">
+<![%label.element;[
+<!ELEMENT label (%label.pcd.mix;)*>
+]]>
+<!ENTITY % label.attlist "INCLUDE">
+<![%label.attlist;[
+<!ATTLIST label %common.att;>
+]]>
+
+<!ENTITY % def.element "INCLUDE">
+<![%def.element;[
+<!ELEMENT def (%obj.mix;)*>
+]]>
+<!ENTITY % def.attlist "INCLUDE">
+<![%def.attlist;[
+<!ATTLIST def %common.att;>
+]]>
+
+<!-- ............................................................... -->
+<!-- Special lists ................................................. -->
+<!-- ............................................................... -->
+
+<!--    blist: Bibliography list. -->
+<!ENTITY % blist.element "INCLUDE">
+<![%blist.element;[
+<!ELEMENT blist (bibl+)>
+]]>
+<!ENTITY % blist.attlist "INCLUDE">
+<![%blist.attlist;[
+<!ATTLIST blist %common.att;>
+]]>
+
+<!--
+#1999-07-02: maler: Added show/actuate attributes and default values.
+-->
+
+<!ENTITY % bibl.element "INCLUDE">
+<![%bibl.element;[
+<!ELEMENT bibl (%bibl.pcd.mix;)*>
+]]>
+<!--    href attribute:
+        bibl optionally functions as a hypertext reference to the
+        referred-to resource through this attribute.  E.g.:
+
+        <bibl href="http://www.my.com/doc.htm">My Document</bibl>
+        -->
+<!ENTITY % bibl.attlist "INCLUDE">
+<![%bibl.attlist;[
+<!ATTLIST bibl
+        %common.att;
+        %simple-xlink.att;
+        %href.att;
+        %user-replace.att;
+        %key.att;>
+]]>
+
+<!--    orglist: Organization member list. -->
+<!ENTITY % orglist.element "INCLUDE">
+<![%orglist.element;[
+<!ELEMENT orglist (member+)>
+]]>
+<!ENTITY % orglist.attlist "INCLUDE">
+<![%orglist.attlist;[
+<!ATTLIST orglist %common.att;>
+]]>
+
+<!--
+#1997-09-30: maler: Added optional affiliation.
+-->
+
+<!ENTITY % member.element "INCLUDE">
+<![%member.element;[
+<!ELEMENT member (name, affiliation?, role?)>
+]]>
+<!ENTITY % member.attlist "INCLUDE">
+<![%member.attlist;[
+<!ATTLIST member %common.att;>
+]]>
+
+<!--      name (defined in "Specification header" above) -->
+<!--      affiliation (defined in "Specification header" above) -->
+
+<!ENTITY % role.element "INCLUDE">
+<![%role.element;[
+<!ELEMENT role (#PCDATA|phrase)*>
+]]>
+<!ENTITY % role.attlist "INCLUDE">
+<![%role.attlist;[
+<!ATTLIST role %common.att;>
+]]>
+
+<!-- ............................................................... -->
+<!-- Notes ......................................................... -->
+<!-- ............................................................... -->
+
+<!ENTITY % note.element "INCLUDE">
+<![%note.element;[
+<!ELEMENT note (%obj.mix;)+>
+]]>
+<!ENTITY % note.attlist "INCLUDE">
+<![%note.attlist;[
+<!ATTLIST note %common.att;>
+]]>
+
+<!--
+#1998-05-14: maler: Declared issue element.
+#2000-03-07: maler: Added head, source, resolution, and status.
+-->
+
+<!ENTITY % issue.element "INCLUDE">
+<![%issue.element;[
+<!ELEMENT issue (head?, source*, (%obj.mix;)+, resolution?)>
+]]>
+<!--    status attribute:
+        Indicates whether the issue is open or closed.  Note that
+        the lack of a resolution element does not necessarily mean
+        that the issue is still open. -->
+<!ENTITY % issue.attlist "INCLUDE">
+<![%issue.attlist;[
+<!ATTLIST issue
+        id              ID              #REQUIRED
+        %role.att;
+        %diff.att;
+        status          (open
+                        |closed)        "open"
+>
+]]>
+
+<!ENTITY % source.element "INCLUDE">
+<![%source.element;[
+<!ELEMENT source (%p.pcd.mix;)*>
+]]>
+<!ENTITY % source.attlist "INCLUDE">
+<![%source.attlist;[
+<!ATTLIST source
+        %common.att;>
+]]>
+
+<!ENTITY % resolution.element "INCLUDE">
+<![%resolution.element;[
+<!ELEMENT resolution (%obj.mix;)+>
+]]>
+<!ENTITY % resolution.attlist "INCLUDE">
+<![%resolution.attlist;[
+<!ATTLIST resolution %common.att;>
+]]>
+
+<!--    wfcnote: Well-formedness constraint note. -->
+<!ENTITY % wfcnote.element "INCLUDE">
+<![%wfcnote.element;[
+<!ELEMENT wfcnote (head, (%obj.mix;)+)>
+]]>
+<!--    ID attribute:
+        wfcnote must have an ID so that it can be pointed to
+        from a wfc element in a production. -->
+<!ENTITY % wfcnote.attlist "INCLUDE">
+<![%wfcnote.attlist;[
+<!ATTLIST wfcnote
+        %common-idreq.att;>
+]]>
+
+<!--    vcnote: Validity constraint note. -->
+<!ENTITY % vcnote.element "INCLUDE">
+<![%vcnote.element;[
+<!ELEMENT vcnote (head, (%obj.mix;)+)>
+]]>
+<!--    ID attribute:
+        vcnote must have an ID so that it can be pointed to
+        from a vc element in a production. -->
+<!ENTITY % vcnote.attlist "INCLUDE">
+<![%vcnote.attlist;[
+<!ATTLIST vcnote
+        %common-idreq.att;>
+]]>
+
+<!--
+#1998-05-21: maler: Declared generic constraintnote element.
+-->
+
+<!--    constraintnote: Generic constraint note. -->
+<!ENTITY % constraintnote.element "INCLUDE">
+<![%constraintnote.element;[
+<!ELEMENT constraintnote (head, (%obj.mix;)+)>
+]]>
+<!--    ID attribute:
+        constraintnote must have an ID so that it can be
+        pointed to from a constraint element in a production. -->
+<!--    type attribute:
+        constraintnote must have a type value keyword so that
+        it can be correctly characterized in the specification. -->
+<!ENTITY % constraintnote.attlist "INCLUDE">
+<![%constraintnote.attlist;[
+<!ATTLIST constraintnote
+        %common-idreq.att;
+        type            NMTOKEN         #REQUIRED>
+]]>
+
+<!-- ............................................................... -->
+<!-- Basic display elements ........................................ -->
+<!-- ............................................................... -->
+
+<!--
+#1998-03-23: maler: Added xml:space attribute.
+-->
+
+<!--    eg: Example element, with whitespace respected. -->
+<!ENTITY % eg.element "INCLUDE">
+<![%eg.element;[
+<!ELEMENT eg (%eg.pcd.mix;)*>
+]]>
+<!ENTITY % eg.attlist "INCLUDE">
+<![%eg.attlist;[
+<!ATTLIST eg
+        %common.att;
+        %xmlspace.att;>
+]]>
+
+<!--
+#2000-03-07: maler: Removed the xml:attributes attribute.
+#                   Added %local.graphic.att;.
+-->
+
+<!--    graphic: Displayed graphic.  Graphic data should be
+        displayed at the point where it is referenced.  Not
+        actually conforming to XLink right now. -->
+<!ENTITY % graphic.element "INCLUDE">
+<![%graphic.element;[
+<!ELEMENT graphic EMPTY>
+]]>
+<!--    source attribute:
+        The graphic data must reside at the location pointed to. -->
+<!ENTITY % local.graphic.att " ">
+<!ENTITY % graphic.attlist "INCLUDE">
+<![%graphic.attlist;[
+<!ATTLIST graphic
+        %common.att;
+        %simple-xlink.att;
+        source                  CDATA           #REQUIRED
+        %auto-embed.att;
+        alt                     CDATA           #IMPLIED
+        %local.graphic.att;>
+]]>
+
+<!--
+#2000-03-07: maler: Added proto element structure.
+-->
+
+<!--    proto: Function prototype, in the XPath/XPointer style. -->
+<!ENTITY % proto.element "INCLUDE">
+<![%proto.element;[
+<!ELEMENT proto (arg*)>
+]]>
+
+<!ENTITY % local.proto.att " ">
+<!ENTITY % proto.attlist "INCLUDE">
+<![%proto.attlist;[
+<!ATTLIST proto
+        %common.att;
+	%local.proto.att;
+        name            NMTOKEN         #REQUIRED
+        return-type     %argtypes;      #REQUIRED
+>
+]]>
+
+<!ENTITY % local.arg.att " ">
+<!ENTITY % arg.element "INCLUDE">
+<![%arg.element;[
+<!ELEMENT arg EMPTY>
+]]>
+<!ENTITY % arg.attlist "INCLUDE">
+<![%arg.attlist;[
+<!ATTLIST arg
+        %common.att;
+	%local.arg.att;
+        type            %argtypes;      #REQUIRED
+        occur           (opt|req)       #IMPLIED
+>
+]]>
+
+<!--
+#2000-03-07: maler: Added example element.
+-->
+
+<!ENTITY % example.element "INCLUDE">
+<![%example.element;[
+<!ELEMENT example (head?, (%obj.mix;)+)>
+]]>
+<!ENTITY % example.attlist "INCLUDE">
+<![%example.attlist;[
+<!ATTLIST example %common.att;>
+]]>
+
+<!-- ............................................................... -->
+<!-- EBNF .......................................................... -->
+<!-- ............................................................... -->
+
+<!--
+#1997-11-28: maler: Added prodgroup to scrap and defined it.
+#1998-05-21: maler: Added constraint to prod.
+#1999-07-02: maler: Added prodrecap to scrap; broadened scrap model.
+#                   Added headstyle attribute to scrap.
+-->
+
+<!--    scrap: Collection of EBNF language productions. -->
+<!ENTITY % scrap.element "INCLUDE">
+<![%scrap.element;[
+<!ELEMENT scrap (head, (prodgroup | prod | bnf | prodrecap)+)>
+]]>
+<!--    lang attribute:
+        The scrap can link to a description of the language used,
+        found in a language element in the header.
+        headstyle attribute:
+        Allows a scrap title to be suppressed from output.  To be
+        used only when a scrap title directly next to a section
+        title is distracting or repetetive. -->
+<!ENTITY % scrap.attlist "INCLUDE">
+<![%scrap.attlist;[
+<!ATTLIST scrap
+        %common.att;
+        lang            IDREF           #IMPLIED
+        headstyle       (show|suppress) "show"
+>
+]]>
+
+<!--    prodgroup: Sub-collection of productions, needed for
+        formatting reasons. -->
+<!ENTITY % prodgroup.element "INCLUDE">
+<![%prodgroup.element;[
+<!ELEMENT prodgroup (prod+)>
+]]>
+<!--    pcw<n> attributes:
+        Presentational attributes to control the width
+        of the "pseudo-table" columns used to output
+        groups of productions. -->
+<!ENTITY % prodgroup.attlist "INCLUDE">
+<![%prodgroup.attlist;[
+<!ATTLIST prodgroup
+        %common.att;
+        pcw1            CDATA           #IMPLIED
+        pcw2            CDATA           #IMPLIED
+        pcw3            CDATA           #IMPLIED
+        pcw4            CDATA           #IMPLIED
+        pcw5            CDATA           #IMPLIED
+>
+]]>
+
+<!--    prod: EBNF language production. -->
+<!ENTITY % prod.element "INCLUDE">
+<![%prod.element;[
+<!ELEMENT prod (lhs, (rhs, (com|wfc|vc|constraint)*)+)>
+]]>
+<!--    ID attribute:
+        The production must have an ID so that cross-references
+        (specref) and mentions of nonterminals (nt) can link to
+        it. -->
+<!ENTITY % prod.attlist "INCLUDE">
+<![%prod.attlist;[
+<!ATTLIST prod
+        %common-idreq.att;
+	num	CDATA	#IMPLIED>
+]]>
+
+<!--    lhs: Left-hand side of production. -->
+<!ENTITY % lhs.element "INCLUDE">
+<![%lhs.element;[
+<!ELEMENT lhs (#PCDATA|phrase)*>
+]]>
+<!ENTITY % lhs.attlist "INCLUDE">
+<![%lhs.attlist;[
+<!ATTLIST lhs %common.att;>
+]]>
+
+<!--    rhs: Right-hand side of production; may have many
+        "right-hand sides," one to a line. -->
+<!ENTITY % rhs.element "INCLUDE">
+<![%rhs.element;[
+<!ELEMENT rhs (#PCDATA|phrase|nt|xnt|com)*>
+]]>
+<!ENTITY % rhs.attlist "INCLUDE">
+<![%rhs.attlist;[
+<!ATTLIST rhs %common.att;>
+]]>
+
+<!--      nt and xnt (defined in "Phrase-level elements" below) -->
+
+<!--
+#1997-11-28: maler: Added loc and bibref to com content.
+-->
+
+<!--    com: Production comment. -->
+<!ENTITY % com.element "INCLUDE">
+<![%com.element;[
+<!ELEMENT com (#PCDATA|phrase|loc|bibref)*>
+]]>
+<!ENTITY % com.attlist "INCLUDE">
+<![%com.attlist;[
+<!ATTLIST com %common.att;>
+]]>
+
+<!--    wfc: Reference to a well-formedness constraint; should
+        generate the head of the wfcnote pointed to. -->
+<!ENTITY % wfc.element "INCLUDE">
+<![%wfc.element;[
+<!ELEMENT wfc EMPTY>
+]]>
+<!--    def attribute:
+        Each well formedness tagline in a production must link to the
+        wfcnote that defines it. -->
+<!ENTITY % wfc.attlist "INCLUDE">
+<![%wfc.attlist;[
+<!ATTLIST wfc
+        %def-req.att;
+        %common.att;>
+]]>
+
+<!--    vc: Reference to a validity constraint; should generate
+        the head of the vcnote pointed to. -->
+<!ENTITY % vc.element "INCLUDE">
+<![%vc.element;[
+<!ELEMENT vc EMPTY>
+]]>
+<!--    def attribute:
+        Each validity tagline in a production must link to the vcnote
+        that defines it. -->
+<!ENTITY % vc.attlist "INCLUDE">
+<![%vc.attlist;[
+<!ATTLIST vc
+        %def-req.att;
+        %common.att;>
+]]>
+
+<!--
+#1998-05-21: maler: Declared generic constraint element.
+-->
+
+<!--    constraint: Reference to a generic constraint; should
+        generate the head of the constraintnote pointed to. -->
+<!ENTITY % constraint.element "INCLUDE">
+<![%constraint.element;[
+<!ELEMENT constraint EMPTY>
+]]>
+<!--    def attribute:
+        Each constraint tagline in a production must link to the
+        constraint note that defines it. -->
+<!ENTITY % constraint.attlist "INCLUDE">
+<![%constraint.attlist;[
+<!ATTLIST constraint
+        %def-req.att;
+        %common.att;>
+]]>
+
+<!--
+#1998-03-23: maler: Added xml:space attribute.
+-->
+
+<!--    bnf: Un-marked-up EBNF production, with whitespace
+        respected. -->
+<!ENTITY % bnf.element "INCLUDE">
+<![%bnf.element;[
+<!ELEMENT bnf (%eg.pcd.mix;)*>
+]]>
+<!ENTITY % bnf.attlist "INCLUDE">
+<![%bnf.attlist;[
+<!ATTLIST bnf
+        %common.att;
+        %xmlspace.att;>
+]]>
+
+<!--
+#1999-07-02: maler: Declared prodrecap.
+-->
+
+<!--    prodrecap: Reference to production or bnf that appears
+        in its "normative" form elsewhere in the spec; should
+        generate a copy of the original production, without
+        a production number next to it. -->
+<!ENTITY % prodrecap.element "INCLUDE">
+<![%prodrecap.element;[
+<!ELEMENT prodrecap EMPTY>
+]]>
+<!ENTITY % prodrecap.attlist "INCLUDE">
+<![%prodrecap.attlist;[
+<!ATTLIST prodrecap
+        %common.att;
+        %ref-req.att;>
+]]>
+
+<!-- ............................................................... -->
+<!-- Table ......................................................... -->
+<!-- ............................................................... -->
+
+<!--
+#1997-10-16: maler: Added table mechanism.
+#1997-11-28: maler: Added non-null system ID to entity declaration.
+#                   Added HTML table module.
+#1997-12-29: maler: IGNOREd SGML Open table model.
+#1998-03-10: maler: Removed SGML Open table model.
+#                   Merged html-tbl.mod file into main file.
+#                   Added %common.att; to all HTML table elements.
+#1998-05-14: maler: Replaced table model with full HTML 4.0 model.
+#                   Removed htable in favor of table.
+#                   Removed htbody in favor of tbody.
+-->
+
+<!ENTITY % cellhalign.att
+        'align          (left|center
+                        |right|justify
+                        |char)          #IMPLIED
+        char            CDATA           #IMPLIED
+        charoff         CDATA           #IMPLIED'>
+
+<!ENTITY % cellvalign.att
+        'valign         (top|middle
+                        |bottom
+                        |baseline)      #IMPLIED'>
+
+<!ENTITY % thtd.att
+        'abbr           CDATA           #IMPLIED
+        axis            CDATA           #IMPLIED
+        headers         IDREFS          #IMPLIED
+        scope           (row
+                        |col
+                        |rowgroup
+                        |colgroup)      #IMPLIED
+        rowspan         NMTOKEN         "1"
+        colspan         NMTOKEN         "1"'>
+
+<!ENTITY % width.att
+        'width          CDATA           #IMPLIED'>
+
+<!ENTITY % span.att
+        'span           NMTOKEN         "1"'>
+
+<!--    table: HTML-based geometric table model. -->
+<!ENTITY % table.element "INCLUDE">
+<![%table.element;[
+<!ELEMENT table
+        (caption?, (col*|colgroup*), thead?, tfoot?, tbody+)>
+]]>
+<!ENTITY % table.attlist "INCLUDE">
+<![%table.attlist;[
+<!ATTLIST table
+        %common.att;
+        %width.att;
+        summary         CDATA           #IMPLIED
+        border          CDATA           #IMPLIED
+        frame           (void|above
+                        |below|hsides
+                        |lhs|rhs
+                        |vsides|box
+                        |border)        #IMPLIED
+        rules           (none|groups
+                        |rows|cols
+                        |all)           #IMPLIED
+        cellspacing     CDATA           #IMPLIED
+        cellpadding     CDATA           #IMPLIED>
+]]>
+
+<!ENTITY % caption.element "INCLUDE">
+<![%caption.element;[
+<!ELEMENT caption (%p.pcd.mix;)*>
+]]>
+<!ENTITY % caption.attlist "INCLUDE">
+<![%caption.attlist;[
+<!ATTLIST caption %common.att;>
+]]>
+
+<!ENTITY % col.element "INCLUDE">
+<![%col.element;[
+<!ELEMENT col EMPTY>
+]]>
+<!ENTITY % col.attlist "INCLUDE">
+<![%col.attlist;[
+<!ATTLIST col
+        %common.att;
+        %span.att;
+        %width.att;
+        %cellhalign.att;
+        %cellvalign.att;>
+]]>
+
+<!ENTITY % colgroup.element "INCLUDE">
+<![%colgroup.element;[
+<!ELEMENT colgroup (col)*>
+]]>
+<!ENTITY % colgroup.attlist "INCLUDE">
+<![%colgroup.attlist;[
+<!ATTLIST colgroup
+        %common.att;
+        %span.att;
+        %width.att;
+        %cellhalign.att;
+        %cellvalign.att;>
+]]>
+
+<!ENTITY % thead.element "INCLUDE">
+<![%thead.element;[
+<!ELEMENT thead (tr)+>
+]]>
+<!ENTITY % thead.attlist "INCLUDE">
+<![%thead.attlist;[
+<!ATTLIST thead
+        %common.att;
+        %cellhalign.att;
+        %cellvalign.att;>
+]]>
+
+<!ENTITY % tfoot.element "INCLUDE">
+<![%tfoot.element;[
+<!ELEMENT tfoot (tr)+>
+]]>
+<!ENTITY % tfoot.attlist "INCLUDE">
+<![%tfoot.attlist;[
+<!ATTLIST tfoot
+        %common.att;
+        %cellhalign.att;
+        %cellvalign.att;>
+]]>
+
+<!ENTITY % tbody.element "INCLUDE">
+<![%tbody.element;[
+<!ELEMENT tbody (tr)+>
+]]>
+<!ENTITY % tbody.attlist "INCLUDE">
+<![%tbody.attlist;[
+<!ATTLIST tbody
+        %common.att;
+        %cellhalign.att;
+        %cellvalign.att;>
+]]>
+
+<!ENTITY % tr.element "INCLUDE">
+<![%tr.element;[
+<!ELEMENT tr (th|td)+>
+]]>
+<!ENTITY % tr.attlist "INCLUDE">
+<![%tr.attlist;[
+<!ATTLIST tr
+        %common.att;
+        %cellhalign.att;
+        %cellvalign.att;>
+]]>
+
+<!ENTITY % th.element "INCLUDE">
+<![%th.element;[
+<!ELEMENT th (%p.pcd.mix;|%p.mix;)*>
+]]>
+<!ENTITY % th.attlist "INCLUDE">
+<![%th.attlist;[
+<!ATTLIST th
+        %common.att;
+        %thtd.att;
+        %cellhalign.att;
+        %cellvalign.att;>
+]]>
+
+<!ENTITY % td.element "INCLUDE">
+<![%td.element;[
+<!ELEMENT td (%p.pcd.mix;|%p.mix;)*>
+]]>
+<!ENTITY % td.attlist "INCLUDE">
+<![%td.attlist;[
+<!ATTLIST td
+        %common.att;
+        %thtd.att;
+        %cellhalign.att;
+        %cellvalign.att;>
+]]>
+
+<!-- ............................................................... -->
+<!-- IDL structures for DOM specifications ......................... -->
+<!-- ............................................................... -->
+
+<!-- ............................................................... -->
+<!-- Specialized entities for classes .............................. -->
+
+<!ENTITY % idl-desc.class
+        "p|note">
+
+<!ENTITY % idl-tdef.class
+        "typedef|constant|exception|reference|group">
+
+<!ENTITY % idl-mod.class
+        "module|interface">
+
+<!ENTITY % idl-struct.class
+        "struct|enum|sequence|union|typename">
+
+<!ENTITY % idl-meth.class
+        "method|attribute">
+
+<!-- ............................................................... -->
+<!-- Specialized entities for mixtures ............................. -->
+
+<!--    Quick reference to content model mixtures:
+
+                        desc tdef mod struct meth
+group                     x    x   x    x      x
+definitions, module       x    x   x
+interface                 x    x               x
+typedef, case, component                x
+-->
+
+<!ENTITY % idl-grp.mix
+        "%idl-desc.class;|%idl-tdef.class;|%idl-mod.class;
+        |%idl-struct.class;|%idl-meth.class;">
+
+<!ENTITY % idl-defn.mix
+        "%idl-desc.class;|%idl-tdef.class;|%idl-mod.class;">
+
+<!ENTITY % idl-intfc.mix
+        "%idl-desc.class;|%idl-tdef.class;|%idl-meth.class;">
+
+<!ENTITY % idl-type.mix
+        "%idl-struct.class;">
+
+<!-- ............................................................... -->
+<!-- Specialized entities for common attributes .................... -->
+
+<!--    name attribute:
+        Provides a name.  Required. -->
+<!ENTITY % idl-name.att
+        'name                   CDATA           #REQUIRED'>
+
+<!--    type attribute:
+        Provides a type.  Required. -->
+<!ENTITY % idl-type.att
+        'type                   CDATA           #REQUIRED'>
+
+<!-- ............................................................... -->
+<!-- Common IDL element ............................................ -->
+
+<!ENTITY % descr.element "INCLUDE">
+<![%descr.element;[
+<!ELEMENT descr ((%obj.mix;)*)>
+]]>
+<!ENTITY % descr.attlist "INCLUDE">
+<![%descr.attlist;[
+<!ATTLIST descr %common.att;>
+]]>
+
+<!-- ............................................................... -->
+<!-- IDL definition elements ....................................... -->
+
+<!--    definitions: Top-level element for definitions. -->
+<!ENTITY % definitions.element "INCLUDE">
+<![%definitions.element;[
+<!ELEMENT definitions (%idl-defn.mix;)+>
+]]>
+<!ENTITY % definitions.attlist "INCLUDE">
+<![%definitions.attlist;[
+<!ATTLIST definitions %common.att;>
+]]>
+
+<!--    group: Element used to group a set of definitions. -->
+
+<!ENTITY % group.element "INCLUDE">
+<![%group.element;[
+<!ELEMENT group (descr, (%idl-grp.mix;)*)>
+]]>
+<!ENTITY % group.attlist "INCLUDE">
+<![%group.attlist;[
+<!ATTLIST group
+        %common.att;
+        %idl-name.att;>
+]]>
+
+<!--    interface: Definition of an interface. -->
+<!ENTITY % interface.element "INCLUDE">
+<![%interface.element;[
+<!ELEMENT interface (descr, (%idl-intfc.mix;)*)>
+]]>
+<!ENTITY % interface.attlist "INCLUDE">
+<![%interface.attlist;[
+<!ATTLIST interface
+        %common.att;
+        %idl-name.att;
+        inherits        CDATA           #IMPLIED>
+]]>
+
+<!--    module: Definition of a module. -->
+<!ENTITY % module.element "INCLUDE">
+<![%module.element;[
+<!ELEMENT module (descr, (%idl-defn.mix;)*)>
+]]>
+<!ENTITY % module.attlist "INCLUDE">
+<![%module.attlist;[
+<!ATTLIST module
+        %common.att;
+        %idl-name.att;>
+]]>
+
+<!--    reference: Reference to some other declaration. -->
+<!ENTITY % reference.element "INCLUDE">
+<![%reference.element;[
+<!ELEMENT reference EMPTY>
+]]>
+<!ENTITY % reference.attlist "INCLUDE">
+<![%reference.attlist;[
+<!ATTLIST reference
+        %common.att;
+        declaration     IDREF           #REQUIRED>
+]]>
+
+<!--    typedef: Definition of a named type. -->
+<!ENTITY % typedef.element "INCLUDE">
+<![%typedef.element;[
+<!ELEMENT typedef (descr, (%idl-type.mix;))>
+]]>
+<!ENTITY % typedef.attlist "INCLUDE">
+<![%typedef.attlist;[
+<!ATTLIST typedef
+        %common.att;
+        %idl-name.att;
+        array.size      NMTOKEN         #IMPLIED>
+]]>
+
+<!--    struct: Declaration of a struct type. -->
+<!ENTITY % struct.element "INCLUDE">
+<![%struct.element;[
+<!ELEMENT struct (descr, component+)>
+]]>
+<!ENTITY % struct.attlist "INCLUDE">
+<![%struct.attlist;[
+<!ATTLIST struct
+        %common.att;
+        %idl-name.att;>
+]]>
+
+<!--    component: Declaration of a structural member. -->
+<!ENTITY % component.element "INCLUDE">
+<![%component.element;[
+<!ELEMENT component (%idl-type.mix;)>
+]]>
+<!ENTITY % component.attlist "INCLUDE">
+<![%component.attlist;[
+<!ATTLIST component
+        %common.att;
+        %idl-name.att;>
+]]>
+
+<!--    union: Declaration of a union type. -->
+<!ENTITY % union.element "INCLUDE">
+<![%union.element;[
+<!ELEMENT union (descr, case+)>
+]]>
+<!ENTITY % union.attlist "INCLUDE">
+<![%union.attlist;[
+<!ATTLIST union
+        %common.att;
+        %idl-name.att;
+        switch.type     CDATA           #REQUIRED>
+]]>
+
+<!ENTITY % case.element "INCLUDE">
+<![%case.element;[
+<!ELEMENT case (descr, (%idl-type.mix;))>
+]]>
+<!ENTITY % case.attlist "INCLUDE">
+<![%case.attlist;[
+<!ATTLIST case
+        %common.att;
+        labels          CDATA           #REQUIRED>
+]]>
+
+<!--    enum: Declaration of an enum type. -->
+<!ENTITY % enum.element "INCLUDE">
+<![%enum.element;[
+<!ELEMENT enum (descr, enumerator+)>
+]]>
+<!ENTITY % enum.attlist "INCLUDE">
+<![%enum.attlist;[
+<!ATTLIST enum
+        %common.att;
+        %idl-name.att;>
+]]>
+
+<!ENTITY % enumerator.element "INCLUDE">
+<![%enumerator.element;[
+<!ELEMENT enumerator (descr)>
+]]>
+<!ENTITY % enumerator.attlist "INCLUDE">
+<![%enumerator.attlist;[
+<!ATTLIST enumerator
+        %common.att;
+        %idl-name.att;>
+]]>
+
+<!--    sequence: Declaration of a sequence type (not named). -->
+<!ENTITY % sequence.element "INCLUDE">
+<![%sequence.element;[
+<!ELEMENT sequence (sequence*)>
+]]>
+<!ENTITY % sequence.attlist "INCLUDE">
+<![%sequence.attlist;[
+<!ATTLIST sequence
+        %common.att;
+        %idl-type.att;
+        size            NMTOKEN         #IMPLIED>
+]]>
+
+<!--    constant: Declaration of a named constant. -->
+<!ENTITY % constant.element "INCLUDE">
+<![%constant.element;[
+<!ELEMENT constant (descr)>
+]]>
+<!ENTITY % constant.attlist "INCLUDE">
+<![%constant.attlist;[
+<!ATTLIST constant
+        %common.att;
+        %idl-name.att;
+        %idl-type.att;
+        value           CDATA           #REQUIRED>
+]]>
+
+<!--    exception: Declaration of an exception. -->
+<!ENTITY % exception.element "INCLUDE">
+<![%exception.element;[
+<!ELEMENT exception (descr, component*)>
+]]>
+<!ENTITY % exception.attlist "INCLUDE">
+<![%exception.attlist;[
+<!ATTLIST exception
+        %common.att;
+        %idl-name.att;>
+]]>
+<!-- component (defined under struct, above)-->
+
+<!--    attribute: Declaration of an attribute (data member). -->
+<!ENTITY % attribute.element "INCLUDE">
+<![%attribute.element;[
+<!ELEMENT attribute (descr)>
+]]>
+<!ENTITY % attribute.attlist "INCLUDE">
+<![%attribute.attlist;[
+<!ATTLIST attribute
+        %common.att;
+        %idl-name.att;
+        %idl-type.att;
+        readonly        (yes
+                        |no)            "no">
+]]>
+
+<!--    method: Declaration of a method. -->
+<!ENTITY % method.element "INCLUDE">
+<![%method.element;[
+<!ELEMENT method (descr, parameters, returns, raises)>
+]]>
+<!ENTITY % method.attlist "INCLUDE">
+<![%method.attlist;[
+<!ATTLIST method
+        %common.att;
+        %idl-name.att;>
+]]>
+
+<!ENTITY % parameters.element "INCLUDE">
+<![%parameters.element;[
+<!ELEMENT parameters (param*)>
+]]>
+<!ENTITY % parameters.attlist "INCLUDE">
+<![%parameters.attlist;[
+<!ATTLIST parameters %common.att;>
+]]>
+
+<!ENTITY % param.element "INCLUDE">
+<![%param.element;[
+<!ELEMENT param (descr)>
+]]>
+<!ENTITY % param.attlist "INCLUDE">
+<![%param.attlist;[
+<!ATTLIST param
+        %common.att;
+        %idl-name.att;
+        %idl-type.att;
+        attr            (in
+                        |out
+                        |inout)         "inout">
+]]>
+
+<!ENTITY % returns.element "INCLUDE">
+<![%returns.element;[
+<!ELEMENT returns (descr)>
+]]>
+<!ENTITY % returns.attlist "INCLUDE">
+<![%returns.attlist;[
+<!ATTLIST returns
+        %common.att;
+        %idl-type.att;>
+]]>
+
+<!ENTITY % raises.element "INCLUDE">
+<![%raises.element;[
+<!ELEMENT raises (exception*)>
+]]>
+<!-- exception (defined under constant, above)-->
+
+<!ENTITY % typename.element "INCLUDE">
+<![%typename.element;[
+<!ELEMENT typename (#PCDATA|phrase)*>
+]]>
+<!ENTITY % typename.attlist "INCLUDE">
+<![%typename.attlist;[
+<!ATTLIST typename %common.att;>
+]]>
+
+<!-- ............................................................... -->
+<!-- Phrase-level elements ......................................... -->
+<!-- ............................................................... -->
+
+<!--
+#2000-03-07: maler: Added att and attval elements.
+-->
+
+<!--    att: Attribute name. -->
+<!ENTITY % att.element "INCLUDE">
+<![%att.element;[
+<!ELEMENT att (%tech.pcd.mix;)*>
+]]>
+<!ENTITY % att.attlist "INCLUDE">
+<![%att.attlist;[
+<!ATTLIST att %common.att;>
+]]>
+
+<!--    attval: Attribute value. -->
+<!ENTITY % attval.element "INCLUDE">
+<![%attval.element;[
+<!ELEMENT attval (%tech.pcd.mix;)*>
+]]>
+<!ENTITY % attval.attlist "INCLUDE">
+<![%attval.attlist;[
+<!ATTLIST attval %common.att;>
+]]>
+
+<!--    bibref: Reference to a bibliography list entry; should
+        generate, in square brackets, "key" on bibl. -->
+<!ENTITY % bibref.element "INCLUDE">
+<![%bibref.element;[
+<!ELEMENT bibref EMPTY>
+]]>
+<!--    ref attribute:
+        A bibliography reference must link to the bibl element that
+        describes the resource. -->
+<!ENTITY % bibref.attlist "INCLUDE">
+<![%bibref.attlist;[
+<!ATTLIST bibref
+        %common.att;
+        %ref-req.att;>
+]]>
+
+<!ENTITY % code.element "INCLUDE">
+<![%code.element;[
+<!ELEMENT code (%tech.pcd.mix;)*>
+]]>
+<!ENTITY % code.attlist "INCLUDE">
+<![%code.attlist;[
+<!ATTLIST code %common.att;>
+]]>
+
+<!--
+#1998-03-10: maler: Declared ednote and related elements.
+#1999-07-02: maler: Changed edtext content from #PCDATA to %p.pcd.mix;.
+-->
+
+<!--    ednote: Editorial note for communication among editors. -->
+<!ENTITY % ednote.element "INCLUDE">
+<![%ednote.element;[
+<!ELEMENT ednote (name?, date?, edtext)>
+]]>
+<!ENTITY % ednote.attlist "INCLUDE">
+<![%ednote.attlist;[
+<!ATTLIST ednote %common.att;>
+]]>
+
+<!ENTITY % date.element "INCLUDE">
+<![%date.element;[
+<!ELEMENT date (#PCDATA|phrase)*>
+]]>
+<!ENTITY % date.attlist "INCLUDE">
+<![%date.attlist;[
+<!ATTLIST date %common.att;>
+]]>
+
+<!ENTITY % edtext.element "INCLUDE">
+<![%edtext.element;[
+<!ELEMENT edtext (%p.pcd.mix;)*>
+]]>
+<!ENTITY % edtext.attlist "INCLUDE">
+<![%edtext.attlist;[
+<!ATTLIST edtext %common.att;>
+]]>
+
+<!--
+#2000-03-07: maler: Added el element.
+-->
+
+<!--    el: Element type name (GI). -->
+<!ENTITY % el.element "INCLUDE">
+<![%el.element;[
+<!ELEMENT el (%tech.pcd.mix;)*>
+]]>
+<!ENTITY % el.attlist "INCLUDE">
+<![%el.attlist;[
+<!ATTLIST el %common.att;>
+]]>
+
+<!--
+#2000-03-07: maler: Expanded emph to %p.pcd.mix;.
+-->
+
+<!ENTITY % emph.element "INCLUDE">
+<![%emph.element;[
+<!ELEMENT emph (%p.pcd.mix;)*>
+]]>
+<!ENTITY % emph.attlist "INCLUDE">
+<![%emph.attlist;[
+<!ATTLIST emph %common.att;>
+]]>
+
+<!--    footnote: Both footnote content and call to footnote. -->
+<!ENTITY % footnote.element "INCLUDE">
+<![%footnote.element;[
+<!ELEMENT footnote (%obj.mix;)+>
+]]>
+<!ENTITY % footnote.attlist "INCLUDE">
+<![%footnote.attlist;[
+<!ATTLIST footnote %common.att;>
+]]>
+
+<!--
+#2000-03-07: maler: Added function and gave it content of
+#                   %tech.pcd.mix; instead of XPath's #PCDATA.
+-->
+
+<!ENTITY % function.element "INCLUDE">
+<![%function.element;[
+<!ELEMENT function (%tech.pcd.mix;)*>
+]]>
+<!ENTITY % function.attlist "INCLUDE">
+<![%function.attlist;[
+<!ATTLIST function %common.att;>
+]]>
+
+<!ENTITY % kw.element "INCLUDE">
+<![%kw.element;[
+<!ELEMENT kw (%tech.pcd.mix;)*>
+]]>
+<!ENTITY % kw.attlist "INCLUDE">
+<![%kw.attlist;[
+<!ATTLIST kw %common.att;>
+]]>
+
+<!--
+#1999-07-02: maler: Added show/actuate attributes and default values.
+-->
+
+<!--    loc: Generic link to a Web resource, similar to HTML's A. -->
+<!ENTITY % loc.element "INCLUDE">
+<![%loc.element;[
+<!ELEMENT loc (#PCDATA|phrase)*>
+]]>
+<!--    href attribute:
+        The purpose of a loc element is to function as a A-like
+        hypertext link to a resource.  (Ideally, the content of loc
+        will also mention the URI of the resource, so that readers of
+        the printed version will be able to locate the resource.) E.g.:
+
+<loc href="http://www.my.com/doc.htm">http://www.my.com/doc.htm</loc>
+        -->
+<!ENTITY % loc.attlist "INCLUDE">
+<![%loc.attlist;[
+<!ATTLIST loc
+        %common.att;
+        %simple-xlink.att;
+        %href-req.att;
+        %user-replace.att;>
+]]>
+
+<!--    nt: Mention of a nonterminal in text, along with a link to
+        the production in the current document that defines it. -->
+<!ENTITY % nt.element "INCLUDE">
+<![%nt.element;[
+<!ELEMENT nt (#PCDATA|phrase)*>
+]]>
+<!--    def attribute:
+        The nonterminal must link to the production that defines
+        it. -->
+<!ENTITY % nt.attlist "INCLUDE">
+<![%nt.attlist;[
+<!ATTLIST nt
+        %common.att;
+        %def-req.att;>
+]]>
+
+<!--
+#2000-03-07: maler: Declared phrase.
+-->
+
+<!--    phrase: "Attribute hanger" for small bits of (e.g.) differenced
+        text in a paragraph or similar, when another element isn't handy.
+        Beware that its content model may allow more nested elements than
+        would normally be allowed in some contexts. -->
+<!ENTITY % phrase.element "INCLUDE">
+<![%phrase.element;[
+<!ELEMENT phrase (%p.pcd.mix;)*>
+]]>
+<!ENTITY % phrase.attlist "INCLUDE">
+<![%phrase.attlist;[
+<!ATTLIST phrase %common.att;>
+]]>
+
+<!--
+#2003-06-25: nwalsh: RFC2119 elements
+-->
+
+<!ENTITY % rfc2119.element "INCLUDE">
+<![%rfc2119.element;[
+<!ELEMENT rfc2119 (#PCDATA|phrase)*>
+]]>
+<!ENTITY % rfc2119.attlist "INCLUDE">
+<![%rfc2119.attlist;[
+<!ATTLIST rfc2119 %common.att;>
+]]>
+
+<!--
+#1998-03-10: maler: Declared quote.
+-->
+
+<!--    quote: Scare quotes and other purely presentational quotes. -->
+<!ENTITY % quote.element "INCLUDE">
+<![%quote.element;[
+<!ELEMENT quote (%p.pcd.mix;)*>
+]]>
+<!ENTITY % quote.attlist "INCLUDE">
+<![%quote.attlist;[
+<!ATTLIST quote %common.att;>
+]]>
+
+<!--    specref: Reference to a div, olist item, prod, or issue
+        in the current document; should generate italic "[n.n],
+        Section Title" for div, "n" for numbered item, "[n]" for
+        production, or "Issue id" for issue. -->
+<!ENTITY % specref.element "INCLUDE">
+<![%specref.element;[
+<!ELEMENT specref EMPTY>
+]]>
+<!--    ref attribute:
+        The purpose of a specref element is to link to a div, item
+        in an olist, or production in the current spec. -->
+<!ENTITY % specref.attlist "INCLUDE">
+<![%specref.attlist;[
+<!ATTLIST specref
+        %common.att;
+        %ref-req.att;>
+]]>
+
+<!--
+#2000-03-07: maler: Added sub and sup.
+-->
+
+<!--    sub: Subscript. -->
+<!ENTITY % sub.element "INCLUDE">
+<![%sub.element;[
+<!ELEMENT sub (#PCDATA|phrase)*>
+]]>
+<!ENTITY % sub.attlist "INCLUDE">
+<![%sub.attlist;[
+<!ATTLIST sub %common.att;>
+]]>
+
+<!--    sup: Superscript. -->
+<!ENTITY % sup.element "INCLUDE">
+<![%sup.element;[
+<!ELEMENT sup (#PCDATA|phrase)*>
+]]>
+<!ENTITY % sup.attlist "INCLUDE">
+<![%sup.attlist;[
+<!ATTLIST sup %common.att;>
+]]>
+
+<!--    term: The term in text that is being defined in text. -->
+<!ENTITY % term.element "INCLUDE">
+<![%term.element;[
+<!ELEMENT term (#PCDATA|phrase)*>
+]]>
+<!ENTITY % term.attlist "INCLUDE">
+<![%term.attlist;[
+<!ATTLIST term %common.att;>
+]]>
+
+<!--    termdef: Definition of a term in text. -->
+<!ENTITY % termdef.element "INCLUDE">
+<![%termdef.element;[
+<!ELEMENT termdef (%termdef.pcd.mix;|%termdef.mix;)*>
+]]>
+<!--    ID attribute:
+        A term definition must have an ID so that it can be linked
+        to from termref elements. -->
+<!--    term attribute:
+        The canonical form of the term or phrase being defined must
+        appear in this attribute, even if the term or phrase also
+        appears in the element content in identical form (e.g., in
+        the term element). -->
+<!ENTITY % termdef.attlist "INCLUDE">
+<![%termdef.attlist;[
+<!ATTLIST termdef
+        %common-idreq.att;
+        term            CDATA           #REQUIRED>
+]]>
+
+<!--    termref: Mention of a term, along with a link to the
+        definition in the current document. -->
+<!ENTITY % termref.element "INCLUDE">
+<![%termref.element;[
+<!ELEMENT termref (#PCDATA|phrase)*>
+]]>
+<!--    ref attribute:
+        A term reference must link to the termdef element that
+        defines the term. -->
+<!ENTITY % termref.attlist "INCLUDE">
+<![%termref.attlist;[
+<!ATTLIST termref
+        %common.att;
+        %def-req.att;>
+]]>
+
+<!--
+#1999-07-02: maler: Added show/actuate attributes and default values.
+-->
+
+<!--    titleref: Citation of another document, which can also
+        link to that document if it is a Web resource. -->
+<!ENTITY % titleref.element "INCLUDE">
+<![%titleref.element;[
+<!ELEMENT titleref (#PCDATA|phrase)*>
+]]>
+<!--    href attribute:
+        A title reference can optionally function as a hypertext
+        link to the resource with this title.  E.g.:
+
+<loc href="http://www.my.com/doc.htm">http://www.my.com/doc.htm</loc>
+        -->
+
+<!ENTITY % titleref.attlist "INCLUDE">
+<![%titleref.attlist;[
+<!ATTLIST titleref
+        %common.att;
+        %simple-xlink.att;
+        %href.att;
+        %user-new.att;>
+]]>
+
+<!--
+#2000-03-07: maler: Added var.
+-->
+
+<!--    var: String standing for a variable value that the user
+        or system will supply.  For example: "For each node
+        <var>x</var> in this node-set..." -->
+<!ENTITY % var.element "INCLUDE">
+<![%var.element;[
+<!ELEMENT var (%tech.pcd.mix;)*>
+]]>
+<!ENTITY % var.attlist "INCLUDE">
+<![%var.attlist;[
+<!ATTLIST var %common.att;>
+]]>
+
+<!--
+#1999-07-02: maler: Added show/actuate attributes and default values.
+-->
+
+<!--    xnt: Mention of a nonterminal in text, along with a link to
+        the production in another document that defines it. -->
+<!ENTITY % xnt.element "INCLUDE">
+<![%xnt.element;[
+<!ELEMENT xnt (#PCDATA|phrase)*>
+]]>
+<!--    href attribute:
+        The nonterminal must hyperlink to a resource that serves
+        to define it (e.g., a production in a related XML
+        specification).  E.g.:
+
+<xnt href="http://www.w3.org/TR/spec.htm#prod3">Name</xnt>
+        -->
+
+<!ENTITY % xnt.attlist "INCLUDE">
+<![%xnt.attlist;[
+<!ATTLIST xnt
+        %common.att;
+        %simple-xlink.att;
+        %href-req.att;
+        %user-new.att;>
+]]>
+
+<!--
+#1997-12-29: maler: Declared xspecref.
+#1999-07-02: maler: Added show/actuate attributes and default values.
+-->
+
+<!--    xspecref: Reference to a div, olist item, prod, or issue
+        in a related specification document; should generate
+        no special text. -->
+<!ENTITY % xspecref.element "INCLUDE">
+<![%xspecref.element;[
+<!ELEMENT xspecref (#PCDATA|phrase)*>
+]]>
+<!--    href attribute:
+        The spec reference must hyperlink to the resource to
+        cross-refer to (e.g., a section in a related XML
+        specification).  E.g.:
+
+<xspecref href="http://www.w3.org/TR/spec.htm#sec2">
+the section on constraints</xspecref>
+        -->
+
+<!ENTITY % xspecref.attlist "INCLUDE">
+<![%xspecref.attlist;[
+<!ATTLIST xspecref
+        %common.att;
+        %simple-xlink.att;
+        %href-req.att;
+        %user-new.att;>
+]]>
+
+<!--
+#1999-07-02: maler: Added show/actuate attributes and default values.
+-->
+
+<!--    termref: Mention of a term, along with a link to the
+        definition in a related document. -->
+<!ENTITY % xtermref.element "INCLUDE">
+<![%xtermref.element;[
+<!ELEMENT xtermref (#PCDATA|phrase)*>
+]]>
+<!--    href attribute:
+        The term reference must hyperlink to the resource that
+        serves to define the term (e.g., a term definition in
+        a related XML specification).  E.g.:
+
+<xtermref href="http://www.w3.org/TR/spec.htm#term5">
+entity
+</xtermref>
+        -->
+
+<!ENTITY % xtermref.attlist "INCLUDE">
+<![%xtermref.attlist;[
+<!ATTLIST xtermref
+        %common.att;
+        %simple-xlink.att;
+        %href-req.att;
+        %user-new.att;>
+]]>
+
+<!-- ............................................................... -->
+<!-- Unused elements for ADEPT ..................................... -->
+<!-- ............................................................... -->
+
+<!--
+#1997-09-30: maler: Added unusued elements.
+#1997-10-14: maler: Fixed div to move nested div to the mixture.
+#1998-05-14: maler: Added key-term, htable, and htbody.
+#1998-11-30: maler: Added para, listitem, itemizedlist, and orderedlist.
+-->
+
+<!--    The following elements are purposely declared but never
+        referenced.  Declaring them allows them to be pasted from
+        an HTML document, an earlier version of an XMLspec document,
+        or a DocBook document into a document using this DTD in ADEPT.
+        The ATD Context Transformation mechanism will try to convert
+        them to the appropriate element for this DTD.  While this
+        conversion will not work for all fragments, it does allow many
+        cases to work reasonably well. -->
+
+<!ENTITY % div.element "INCLUDE">
+<![%div.element;[
+<!ELEMENT div
+        (head?, (%div.mix;|ul|ol|h1|h2|h3|h4|h5|h6|div)*)>
+]]>
+<!ENTITY % h1.element "INCLUDE">
+<![%h1.element;[
+<!ELEMENT h1 (%head.pcd.mix;|em|a)*>
+]]>
+<!ENTITY % h2.element "INCLUDE">
+<![%h2.element;[
+<!ELEMENT h2 (%head.pcd.mix;|em|a)*>
+]]>
+<!ENTITY % h3.element "INCLUDE">
+<![%h3.element;[
+<!ELEMENT h3 (%head.pcd.mix;|em|a)*>
+]]>
+<!ENTITY % h4.element "INCLUDE">
+<![%h4.element;[
+<!ELEMENT h4 (%head.pcd.mix;|em|a)*>
+]]>
+<!ENTITY % h5.element "INCLUDE">
+<![%h5.element;[
+<!ELEMENT h5 (%head.pcd.mix;|em|a)*>
+]]>
+<!ENTITY % h6.element "INCLUDE">
+<![%h6.element;[
+<!ELEMENT h6 (%head.pcd.mix;|em|a)*>
+]]>
+<!ENTITY % pre.element "INCLUDE">
+<![%pre.element;[
+<!ELEMENT pre (%eg.pcd.mix;|em)*>
+]]>
+<!ENTITY % ul.element "INCLUDE">
+<![%ul.element;[
+<!ELEMENT ul (item|li)*>
+]]>
+<!ENTITY % ol.element "INCLUDE">
+<![%ol.element;[
+<!ELEMENT ol (item|li)*>
+]]>
+<!ENTITY % li.element "INCLUDE">
+<![%li.element;[
+<!ELEMENT li (#PCDATA|%obj.mix;)*>
+]]>
+<!ENTITY % em.element "INCLUDE">
+<![%em.element;[
+<!ELEMENT em (#PCDATA)*>
+]]>
+<!ENTITY % a.element "INCLUDE">
+<![%a.element;[
+<!ELEMENT a (#PCDATA)*>
+]]>
+
+<!ENTITY % key-term.element "INCLUDE">
+<![%key-term.element;[
+<!ELEMENT key-term (#PCDATA)*>
+]]>
+<!ENTITY % htable.element "INCLUDE">
+<![%htable.element;[
+<!ELEMENT htable
+        (caption?, (col*|colgroup*), thead?, tfoot?, tbody+)>
+]]>
+<!ENTITY % htbody.element "INCLUDE">
+<![%htbody.element;[
+<!ELEMENT htbody (tr)+>
+]]>
+<!ENTITY % statusp.element "INCLUDE">
+<![%statusp.element;[
+<!ELEMENT statusp (%p.pcd.mix;|%p.mix;)*>
+]]>
+
+<!ENTITY % itemizedlist.element "INCLUDE">
+<![%itemizedlist.element;[
+<!ELEMENT itemizedlist (listitem*)>
+]]>
+<!ENTITY % orderedlist.element "INCLUDE">
+<![%orderedlist.element;[
+<!ELEMENT orderedlist (listitem*)>
+]]>
+<!ENTITY % listitem.element "INCLUDE">
+<![%listitem.element;[
+<!ELEMENT listitem (para*)>
+]]>
+<!ENTITY % para.element "INCLUDE">
+<![%para.element;[
+<!ELEMENT para (#PCDATA)*>
+]]>
+
+<!-- ............................................................... -->
+<!-- Change history ................................................ -->
+<!-- ............................................................... -->
+
+<!--
+#This revision history is no longer being maintained. See the CVS log
+#for detailed revisions history.
+#####################################################################
+#1997-08-18: maler
+#- Did a major revision.
+#1997-09-10: maler
+#- Updated FPI.
+#- Removed namekey element and put key attribute on name element.
+#- Made statusp element and supporting entities.
+#- Added slist element with sitem+ content.
+#- Required head on scrap and added new bnf subelement.
+#- Added an xnt element and allowed it and nt in regular text and rhs.
+#- Removed the ntref element.
+#- Added back the com element to the content of rhs.
+#- Added a key attribute to bibl.
+#- Removed the ident element.
+#- Added a term element to be used inside termdef.
+#- Added an xtermref element parallel to termref.
+#- Beefed up DTD comments.
+#1997-09-12: maler
+#- Allowed term element in general text.
+#- Changed bibref to EMPTY.
+#- Added ref.class to termdef.pcd.mix.
+#1997-09-14: maler
+#- Changed main attribute of xtermref from def to href.
+#- Added termdef.class to label contents.
+#1997-09-30: maler
+#- Added character entity module and added new entities.
+#- Removed p from appearing directly in self; created %p.mix;.
+#- Added inform-div (non-normative division) element.
+#- Fixed xtermref comment to mention href, not ref.
+#- Extended orglist model to allow optional affiliation.
+#- Modified author to make affiliation optional.
+#- Added %speclist.class; and %note.class; to %obj.mix; and %p.mix;.
+#- Added %note.class; and %illus.class; to %termdef.pcd.mix;.
+#- Added unused HTML elements.
+#- Put empty system ID next to public ID in entity declarations.
+#1997-10-14: maler
+#- Fixed "unused" div content model to move nested div to mixture.
+#1997-10-16: maler
+#- Added SGML Open Exchange tables.
+#1997-11-28: maler
+#- Added support for prodgroup and its attributes.
+#- Added support for HTML tables.
+#- Added loc and bibref to content of com.
+#- Added loc to general p content models.
+#- Allowed p as alternative to statusp in status.
+#- Added non-null system IDs to external parameter entity declarations.
+#- (Modified the SGML Open table module to make it XML-compliant.)
+#- (Modified the character entity module.)
+#1997-12-29: maler
+#- Moved #PCDATA occurrences to come before GIs in content models.
+#- Removed use of the SGML Open table module.
+#- Added xspecref element.
+#- Ensured that all FPIs contain 4-digit year.
+#- (Modified the character entity module.)
+#1998-03-10: maler
+#- Merged the character entity and table modules into the main file.
+#- Added ldquo and rdquo entities.
+#- Added common attributes to prodgroup.
+#- Made the email element in header optional.
+#- Removed reference to the SGML Open table model.
+#- Added ednote element.
+#- Added quote element.
+#- Updated XLink usage to reflect 3 March 1998 WD.
+#- Added "local" entities to the class entities for customization.
+#- Parameterized several content models to allow for customization.
+#1998-03-23: maler
+#- Cleaned up some comments and removed some others.
+#- Added xml:space semi-common attribute to eg and bnf elements.
+#- Added show and embed attributes on all the uses of href.
+#- Added %common.att; to all HTML table elements.
+#- Added a real URI to the "typical invocation" comment.
+#1998-05-14: maler
+#- Fixed mdash, ldquo, and rdquo character entities.
+#- Switched to the full HTML 4.0 table model.
+#- Removed htable/htbody elements and replaced them with table/tbody.
+#- Added issue element to %note.class; and declared it.
+#- Allowed prevlocs and latestloc in either order.
+#- Added key-term, htable, htbody, and statusp as unused elements.
+#- Removed real statusp element in favor of plain p.
+#1998-05-21: maler
+#- Declared generic constraint and constraintnote elements.
+#- Added constraintnote to %note.class;.
+#- Added constraint to %eg.pcd.mix; and prod content model.
+#1998-08-22: maler
+#- Fixed %illus.class; to mention table instead of htable.
+#- Added definitions to %illus.class; for DOM model.
+#- Added DOM definitions element and its substructure.
+#- Updated XLink usage in %href.att; to use xlink:form and #IMPLIED.
+#- Added clarifying comments to href-using elements.
+#1998-11-30: maler
+#- Added new unused elements to support DocBook translation.
+#- Updated maler phone numbers.
+#1998-12-3: maler
+#- Fixed character entities with respect to escaping of ampersands.
+#- Added many more explanatory comments.
+#1999-07-02: maler
+#- Added %loc.class; to all PCD mixes that didn't already have it.
+#- Removed unused %loc.pcd.mix;.
+#- Made version in spec header optional.
+#- Added three new attributes to spec.
+#- Broadened content of edtext.
+#- Added optional copyright element to header.
+#- Reorganized XLink-related parameter entities; added xmlns:xlink.
+#- Changed edtext content from #PCDATA to %p.pcd.mix;.
+#- Added show/actuate atts and default values to all href elements.
+#- Changed versioning scheme from 8-digit dates to version numbers.
+#- Added w3c-doctype, other-doctype, status atts to spec element.
+#- Added prodrecap element inside scrap.
+#- Added headstyle attribute to scrap.
+#2000-03-07: maler
+#- Added proto element, its arg subelement, and the %argtypes; entity.
+#- Added function, var, sub, sup, phrase, el, att, attval elements.
+#- Expanded emph to %p.pcd.mix;.
+#- Allowed status and abstract to appear in the opposite order.
+#- Updated XLink usage to the latest WD, except for href and source.
+#- Removed the xml:attributes attribute from graphic.
+#- Added %local.graphic.att; to graphic.
+#- Added common diff attribute.
+#- Added div5 element.
+#- Broadened content models of publoc, prevlocs, and latestloc.
+#- Added head, source, resolution, and status attribute to issue.
+#- Added cr, issues, and dispcmts to w3c-doctype attribute on spec.
+#- Added example element.
+-->
+
+<!-- ............................................................... -->
+<!-- End of XML specification DTD .................................. -->
+<!-- ............................................................... -->
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ttml11/spec/xmlspec.xsl	Wed Apr 11 22:47:38 2012 -0600
@@ -0,0 +1,2764 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--This file was created automatically by html2xhtml-->
+<!--from the HTML stylesheets. Do not edit this file.-->
+<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" exclude-result-prefixes="saxon" version="1.0">
+
+<!-- ====================================================================== -->
+<!-- xmlspec.xsl: An HTML XSL[1] Stylesheet for XML Spec V2.1[2] markup
+
+     Version: $Id$
+
+     URI:     http://dev.w3.org/cvsweb/spec-prod/html/xmlspec.xsl
+
+     Authors: Norman Walsh (norman.walsh@sun.com)
+              Chris Maden (crism@lexica.net)
+              Ben Trafford (ben@legendary.org)
+              Eve Maler (eve.maler@sun.com)
+              Henry S. Thompson (ht@cogsci.ed.ac.uk)
+
+     Date:    Created 07 September 1999
+              Last updated $Date$ by $Author$
+
+     Copyright (C) 2000, 2001, 2002 Sun Microsystems, Inc. All Rights Reserved.
+     This document is governed by the W3C Software License[3] as
+     described in the FAQ[4].
+
+       [1] http://www.w3.org/TR/xslt
+       [2] http://www.w3.org/XML/1998/06/xmlspec-report-v21.htm
+       [3] http://www.w3.org/Consortium/Legal/copyright-software-19980720
+       [4] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
+
+     Notes:
+
+     This stylesheet attempts to implement the XML Specification V2.1
+     DTD.  Documents conforming to earlier DTDs may not be correctly
+     transformed.
+
+     ChangeLog: (See also: CVS ChangeLog)
+
+     15 August 2002: Norman Walsh, <Norman.Walsh@Sun.COM>
+       - Version 1.3 released at http://www.w3.org/2002/xmlspec/html/1.3/xmlspec.xsl
+         There have never been any "official" releases before, so the version number
+         is arbitrary.
+
+     15 August 2001: Hugo Haas <hugo@w3.org>
+       - Slightly modified the status sentence introducing editors'
+         copies.
+       - Now using role to distinguish editors' copies: e.g.
+         <spec w3c-doctype="wd" role="editors-copy">
+
+     14 August 2001: Hugo Haas <hugo@w3.org>
+       - If w3c-doctype is not a W3C TR, do not use a Note style
+         sheet, use <http://www.w3.org/StyleSheets/TR/base.css>
+         instead.
+       - If the other-doctype is "editors-copy", do not use the W3C
+         logo and mark the document as such in the status section.
+
+     12 Jun 2001: (Norman.Walsh@Sun.COM)
+       - Support non-tabular examples. If tabular.examples is non-zero,
+         tables will be used for examples, otherwise nested divs and
+         CSS will be used. tabular.examples is *zero* by default.
+
+     06 Jun 2001: (Norman.Walsh@Sun.COM)
+       - Support copyright element in header; use the content of that
+         element if it is present, otherwise use the auto-generated
+         copyright statement.
+
+     15 May 2001: (Norman.Walsh@Sun.COM)
+       - Changed copyright link to point to dated IPR statement:
+         http://www.w3.org/Consortium/Legal/ipr-notice-20000612
+
+     25 Sep 2000: (Norman.Walsh@East.Sun.COM)
+       - Sync'd with Eve's version:
+         o Concatenated each inline element's output all on one line
+           to avoid spurious spaces in the output. (This is really an
+           IE bug, but...) (15 Sep 2000)
+         o Updated crism's email address in header (7 Sep 2000)
+         o Changed handling of affiliation to use comma instead of
+           parentheses (9 Aug 2000)
+
+     14 Aug 2000: (Norman.Walsh@East.Sun.COM)
+
+       - Added additional.title param (for diffspec.xsl to change)
+       - Fixed URI of W3C home icon
+       - Made CSS stylesheet selection depend on the w3c-doctype attribute
+         of spec instead of the w3c-doctype element in the header
+
+     26 Jul 2000: (Norman.Walsh@East.Sun.COM)
+
+       - Improved semantics of specref. Added xsl:message for unsupported
+         cases. (I'm by no means confident that I've covered the whole
+         list.)
+       - Support @role on author.
+       - Make lhs/rhs "code" in EBNF.
+       - Fixed bug in ID/IDREF linking.
+       - More effectively disabled special markup for showing @diffed
+         versions
+
+     21 Jul 2000: (Norman.Walsh@East.Sun.COM)
+
+       - Added support for @diff change tracking, primarily through
+         the auxiliary stylesheet diffspec.xsl. However, it was
+         impractical to handle some constructions, such as DLs and TABLEs,
+         in a completely out-of-band manner. So there is some inline
+         support for @diff markup.
+
+       - Added $additional.css to allow downstream stylesheets to add
+         new markup to the <style> element.
+
+       - Added required "type" attribute to the <style> element.
+
+       - Fixed pervasive problem with nested <a> elements.
+
+       - Added doctype-public to xsl:output.
+
+       - Added $validity.hacks. If "1", then additional disable-output-escaping
+         markup may be inserted in some places to attempt to get proper,
+         valid HTML. For example, if a <glist> appears inside a <p> in the
+         xmlspec source, this creates a nested <dl> inside a <p> in the
+         HTML, which is not valid. If $validity.hacks is "1", then an
+         extra </p>, <p> pair is inserted around the <dl>.
+
+   5 June 2001, Henry S. Thompson (ht@cogsci.ed.ac.uk)
+
+       - Fixed a link in copyright boilerplate to be dated
+
+  -->
+<!-- ====================================================================== -->
+
+  <xsl:preserve-space elements="*"/>
+
+  <xsl:strip-space elements="    abstract arg attribute authlist author back bibref blist body case col    colgroup component constant constraint constraintnote copyright def    definitions descr div div1 div2 div3 div4 div5 ednote enum enumerator    example exception footnote front gitem glist graphic group header    htable htbody inform-div1 interface issue item itemizedlist langusage    listitem member method module note notice ol olist orderedlist orglist    param parameters prod prodgroup prodrecap proto pubdate pubstmt raises    reference resolution returns revisiondesc scrap sequence slist    sourcedesc spec specref status struct table tbody tfoot thead tr    typedef ul ulist union vc vcnote wfc wfcnote"/>
+
+  <xsl:param name="validity.hacks" select="1"/>
+  <xsl:param name="show.diff.markup" select="0"/>
+  <xsl:param name="additional.css"/>
+  <xsl:param name="additional.title"/>
+  <xsl:param name="called.by.diffspec" select="0"/>
+  <xsl:param name="show.ednotes" select="1"/>
+  <xsl:param name="tabular.examples" select="0"/>
+  <xsl:param name="toc.level" select="5"/>
+
+  <xsl:key name="ids" match="*[@id]" use="@id"/>
+  <xsl:key name="specrefs" match="specref" use="@ref"/>
+
+  <xsl:output method="xml" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="no" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
+
+  <!-- not handled:
+    attribute:   unhandled IDL stuff
+    case:        unhandled IDL stuff
+    component:   unhandled IDL stuff
+    constant:    unhandled IDL stuff
+    copyright:   boilerplate notice always used instead
+    definitions: unhandled IDL stuff
+    descr:       unhandled IDL stuff
+    enum:        unhandled IDL stuff
+    enumerator:  unhandled IDL stuff
+    exception:   unhandled IDL stuff
+    group:       unhandled IDL stuff
+    interface:   unhandled IDL stuff
+    method:      unhandled IDL stuff
+    module:      unhandled IDL stuff
+    param:       unhandled IDL stuff
+    parameters:  unhandled IDL stuff
+    raises:      unhandled IDL stuff
+    reference:   unhandled IDL stuff
+    returns:     unhandled IDL stuff
+    sequence:    unhandled IDL stuff
+    struct:      unhandled IDL stuff
+    typedef:     unhandled IDL stuff
+    typename:    unhandled IDL stuff
+    union:       unhandled IDL stuff
+
+    Warning!
+    Only handles statuses of NOTE, WD, and REC.
+    -->
+
+  <!-- Output a warning for unhandled elements! -->
+  <xsl:template match="*">
+    <xsl:message>
+      <xsl:text>No template matches </xsl:text>
+      <xsl:value-of select="name(.)"/>
+      <xsl:text>.</xsl:text>
+    </xsl:message>
+
+    <font xmlns="http://www.w3.org/1999/xhtml" color="red">
+      <xsl:text>&lt;</xsl:text>
+      <xsl:value-of select="name(.)"/>
+      <xsl:text>&gt;</xsl:text>
+      <xsl:apply-templates/>
+      <xsl:text>&lt;/</xsl:text>
+      <xsl:value-of select="name(.)"/>
+      <xsl:text>&gt;</xsl:text>
+    </font>
+  </xsl:template>
+
+  <!-- Template for the root node.  Creation of <html> element could
+       go here, but that doesn't feel right. -->
+  <xsl:template match="/">
+    <xsl:if test="//prod[@num] and //prod[not(@num)]">
+      <xsl:message terminate="yes">
+        <xsl:text>Manually and automatically numbered productions </xsl:text>
+        <xsl:text>cannot coexist.</xsl:text>
+      </xsl:message>
+    </xsl:if>
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <!-- abstract: appears only in header -->
+  <!-- format as a second-level div -->
+  <!-- called in enforced order from header's template -->
+  <xsl:template match="abstract">
+    <div xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:text>
+</xsl:text>
+      <h2>
+        <xsl:call-template name="anchor">
+          <xsl:with-param name="conditional" select="0"/>
+          <xsl:with-param name="default.id" select="'abstract'"/>
+        </xsl:call-template>
+        <xsl:text>Abstract</xsl:text>
+      </h2>
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <!-- affiliation: follows a name in author and member -->
+  <!-- put it in parens with a leading space -->
+  <xsl:template match="affiliation">
+    <xsl:text>, </xsl:text>
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <!-- arg: appears only in proto -->
+  <!-- argument in function prototype -->
+  <!-- output argument type, italicized as placeholder; separate the
+       list with commas and spaces -->
+  <xsl:template match="arg">
+    <xsl:if test="preceding-sibling::arg">
+      <xsl:text>, </xsl:text>
+    </xsl:if>
+    <var xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:value-of select="@type"/>
+    </var>
+    <xsl:if test="@occur = 'opt'">
+      <xsl:text>?</xsl:text>
+    </xsl:if>
+  </xsl:template>
+
+  <!-- att: attribute name -->
+  <!-- used lots of places -->
+  <!-- format as monospaced code -->
+  <xsl:template match="att">
+    <code xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></code>
+  </xsl:template>
+
+  <!-- attribute: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- attval: attribute name -->
+  <!-- used lots of places -->
+  <!-- format as quoted string -->
+  <xsl:template match="attval">
+    <xsl:text>"</xsl:text>
+    <xsl:apply-templates/>
+    <xsl:text>"</xsl:text>
+  </xsl:template>
+
+  <!-- authlist: list of authors (editors, really) -->
+  <!-- called in enforced order from header's template, in <dl>
+       context -->
+  <xsl:template match="authlist">
+    <dt xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:text>Editor</xsl:text>
+      <xsl:if test="count(author) &gt; 1">
+        <xsl:text>s</xsl:text>
+      </xsl:if>
+      <xsl:text>:</xsl:text>
+    </dt>
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <!-- author: an editor of a spec -->
+  <!-- only appears in authlist -->
+  <!-- called in <dl> context -->
+  <xsl:template match="author">
+    <dd xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+      <xsl:if test="@role = '2e'">
+        <xsl:text> - Second Edition</xsl:text>
+      </xsl:if>
+    </dd>
+  </xsl:template>
+
+  <!-- back: back matter for the spec -->
+  <!-- make a <div> for neatness -->
+  <!-- affects numbering of div1 children -->
+  <xsl:template match="back">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="back">
+      <xsl:apply-templates/>
+      <xsl:call-template name="autogenerated-appendices"/>
+    </div>
+  </xsl:template>
+
+  <!-- bibl: bibliographic entry -->
+  <!-- only appears in blist -->
+  <!-- called with <dl> context -->
+  <!-- if there's a key, use it in the <dt>, otherwise use the ID -->
+  <!-- if there's an href, add a ref in parens at the end of the text -->
+  <xsl:template match="bibl">
+    <dt xmlns="http://www.w3.org/1999/xhtml" class="label">
+      <xsl:if test="@id">
+        <a name="{@id}" id="{@id}"/>
+      </xsl:if>
+      <xsl:choose>
+        <xsl:when test="@key">
+          <xsl:value-of select="@key"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="@id"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </dt>
+    <dd xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+      <xsl:if test="@href">
+        <xsl:text>  (See </xsl:text>
+        <xsl:value-of select="@href"/>
+        <xsl:text>.)</xsl:text>
+      </xsl:if>
+    </dd>
+  </xsl:template>
+
+  <!-- bibref: reference to a bibliographic entry -->
+  <!-- make a link to the bibl -->
+  <!-- if the bibl has a key, put it in square brackets; otherwise use
+       the bibl's ID -->
+  <xsl:template match="bibref">
+    <a xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:attribute name="href">
+        <xsl:call-template name="href.target">
+          <xsl:with-param name="target" select="key('ids', @ref)"/>
+        </xsl:call-template>
+      </xsl:attribute>
+      <xsl:text>[</xsl:text>
+      <xsl:choose>
+        <xsl:when test="key('ids', @ref)/@key">
+          <xsl:value-of select="key('ids', @ref)/@key"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="@ref"/>
+        </xsl:otherwise>
+      </xsl:choose>
+      <xsl:text>]</xsl:text>
+    </a>
+  </xsl:template>
+
+  <!-- blist: list of bibliographic entries -->
+  <!-- set up the list and process children -->
+  <xsl:template match="blist">
+    <dl xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </dl>
+  </xsl:template>
+
+  <!-- bnf: un-marked-up BNF productions -->
+  <!-- preformatted within a table cell -->
+  <!-- scrap provides <table> context -->
+  <xsl:template match="bnf">
+    <tbody xmlns="http://www.w3.org/1999/xhtml">
+      <tr>
+        <td>
+          <xsl:if test="@diff and $show.diff.markup != 0">
+            <xsl:attribute name="class">
+              <xsl:text>diff-</xsl:text>
+              <xsl:value-of select="@diff"/>
+            </xsl:attribute>
+          </xsl:if>
+          <pre>
+            <xsl:apply-templates/>
+          </pre>
+        </td>
+      </tr>
+    </tbody>
+  </xsl:template>
+
+  <!-- body: the meat of the spec -->
+  <!-- create a TOC and then go to work -->
+  <!-- (don't forget the TOC for the back matter and a pointer to end
+       notes) -->
+  <xsl:template match="body">
+    <xsl:if test="$toc.level &gt; 0">
+      <div xmlns="http://www.w3.org/1999/xhtml" class="toc">
+        <xsl:text>
+</xsl:text>
+        <h2>
+          <xsl:call-template name="anchor">
+            <xsl:with-param name="conditional" select="0"/>
+            <xsl:with-param name="default.id" select="'contents'"/>
+          </xsl:call-template>
+          <xsl:text>Table of Contents</xsl:text>
+        </h2>
+        <p class="toc">
+          <xsl:apply-templates select="div1" mode="toc"/>
+        </p>
+        <xsl:if test="../back">
+          <xsl:text>
+</xsl:text>
+          <h3>
+            <xsl:call-template name="anchor">
+              <xsl:with-param name="conditional" select="0"/>
+              <xsl:with-param name="default.id" select="'appendices'"/>
+            </xsl:call-template>
+
+            <xsl:text>Appendi</xsl:text>
+            <xsl:choose>
+              <xsl:when test="count(../back/div1 | ../back/inform-div1) &gt; 1">
+                <xsl:text>ces</xsl:text>
+              </xsl:when>
+              <xsl:otherwise>
+                <xsl:text>x</xsl:text>
+              </xsl:otherwise>
+            </xsl:choose>
+          </h3>
+          <p class="toc">
+            <xsl:apply-templates mode="toc" select="../back/div1 | ../back/inform-div1"/>
+            <xsl:call-template name="autogenerated-appendices-toc"/>
+          </p>
+        </xsl:if>
+        <xsl:if test="//footnote[not(ancestor::table)]">
+          <p class="toc">
+            <a href="#endnotes">
+              <xsl:text>End Notes</xsl:text>
+            </a>
+          </p>
+        </xsl:if>
+      </div>
+      <hr xmlns="http://www.w3.org/1999/xhtml"/>
+    </xsl:if>
+    <div xmlns="http://www.w3.org/1999/xhtml" class="body">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <xsl:template name="autogenerated-appendices">
+    <!-- there are none by default -->
+  </xsl:template>
+
+  <xsl:template name="autogenerated-appendices-toc">
+    <!-- there are none by default -->
+  </xsl:template>
+
+  <!-- caption: see table -->
+
+  <!-- case: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- code: generic computer code -->
+  <!-- output as HTML <code> for monospaced formatting -->
+  <xsl:template match="code">
+    <code xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></code>
+  </xsl:template>
+
+  <!-- col: see table -->
+
+  <!-- colgroup: see table -->
+
+  <!-- com: formal production comment -->
+  <!-- can appear in prod or rhs -->
+  <xsl:template match="com">
+    <xsl:choose>
+      <xsl:when test="preceding-sibling::*[1][name()='rhs']">
+        <td xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:if test="ancestor-or-self::*/@diff and $show.diff.markup != 0">
+            <xsl:attribute name="class">
+              <xsl:text>diff-</xsl:text>
+              <xsl:value-of select="ancestor-or-self::*/@diff"/>
+            </xsl:attribute>
+          </xsl:if>
+          <i>
+            <xsl:text>/* </xsl:text>
+            <xsl:apply-templates/>
+            <xsl:text> */</xsl:text>
+          </i>
+        </td>
+      </xsl:when>
+      <xsl:otherwise>
+        <tr xmlns="http://www.w3.org/1999/xhtml" valign="baseline">
+          <td/><td/><td/><td/>
+          <td>
+            <xsl:if test="ancestor-or-self::*/@diff and $show.diff.markup != 0">
+              <xsl:attribute name="class">
+                <xsl:text>diff-</xsl:text>
+                <xsl:value-of select="ancestor-or-self::*/@diff"/>
+              </xsl:attribute>
+            </xsl:if>
+            <i>
+              <xsl:text>/* </xsl:text>
+              <xsl:apply-templates/>
+              <xsl:text> */</xsl:text>
+            </i>
+          </td>
+        </tr>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <!-- this could probably be handled better, but given that rhs can
+       have arbitrary text and com mixed in, I don't feel like
+       spending enough time to figure out how -->
+  <xsl:template match="rhs/com">
+    <i xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:text>/* </xsl:text>
+      <xsl:apply-templates/>
+      <xsl:text> */</xsl:text>
+    </i>
+  </xsl:template>
+
+  <!-- component: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- constant: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- constraint: a note in a formal production -->
+  <!-- refers to a constraint note -->
+  <xsl:template match="constraint">
+    <xsl:choose>
+      <xsl:when test="preceding-sibling::*[1][name()='rhs']">
+        <td xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:if test="@diff and $show.diff.markup != 0">
+            <xsl:attribute name="class">
+              <xsl:text>diff-</xsl:text>
+              <xsl:value-of select="@diff"/>
+            </xsl:attribute>
+          </xsl:if>
+          <a>
+            <xsl:attribute name="href">
+              <xsl:call-template name="href.target">
+                <xsl:with-param name="target" select="key('ids', @def)"/>
+              </xsl:call-template>
+            </xsl:attribute>
+            <xsl:text>[Constraint: </xsl:text>
+            <xsl:apply-templates select="key('ids', @def)/head" mode="text"/>
+            <xsl:text>]</xsl:text>
+          </a>
+        </td>
+      </xsl:when>
+      <xsl:otherwise>
+        <tr xmlns="http://www.w3.org/1999/xhtml" valign="baseline">
+          <td/><td/><td/><td/>
+          <td>
+            <xsl:if test="@diff and $show.diff.markup != 0">
+              <xsl:attribute name="class">
+                <xsl:text>diff-</xsl:text>
+                <xsl:value-of select="@diff"/>
+              </xsl:attribute>
+            </xsl:if>
+            <a>
+              <xsl:attribute name="href">
+                <xsl:call-template name="href.target">
+                  <xsl:with-param name="target" select="key('ids', @def)"/>
+                </xsl:call-template>
+              </xsl:attribute>
+              <xsl:text>[Constraint: </xsl:text>
+              <xsl:apply-templates select="key('ids', @def)/head" mode="text"/>
+              <xsl:text>]</xsl:text>
+            </a>
+          </td>
+        </tr>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <!-- constraintnote: note constraining a formal production -->
+  <!-- see also constraintnote/head -->
+  <xsl:template match="constraintnote">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="constraint">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <!-- copyright: notice for this document-->
+  <!-- right now, a boilerplate copyright notice is inserted by the
+       template for header; this may need to be changed -->
+
+  <!-- day: day of month of spec -->
+  <!-- only used in pudate; called directly from header template -->
+  <xsl:template match="day">
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <!-- def: glossary definition -->
+  <!-- already in <dl> context from glist -->
+  <xsl:template match="def">
+    <dd xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </dd>
+  </xsl:template>
+
+  <!-- definitions: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- descr: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- div[n]: structural divisions -->
+  <!-- make an HTML div -->
+  <!-- see also div[n]/head -->
+  <xsl:template match="div1">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="div1">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <xsl:template match="div2">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="div2">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <xsl:template match="div3">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="div3">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <xsl:template match="div4">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="div4">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <xsl:template match="div5">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="div5">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <!-- ednote: editors' note -->
+  <xsl:template match="ednote">
+    <xsl:if test="$show.ednotes != 0">
+      <table xmlns="http://www.w3.org/1999/xhtml" border="1">
+        <xsl:attribute name="summary">
+          <xsl:text>Editorial note</xsl:text>
+          <xsl:if test="name">
+            <xsl:text>: </xsl:text>
+            <xsl:value-of select="name"/>
+          </xsl:if>
+        </xsl:attribute>
+        <tr>
+          <td align="left" valign="top" width="50%">
+            <b>
+              <xsl:text>Editorial note</xsl:text>
+              <xsl:if test="name">
+                <xsl:text>: </xsl:text>
+                <xsl:apply-templates select="name"/>
+              </xsl:if>
+            </b>
+          </td>
+          <td align="right" valign="top" width="50%">
+            <xsl:choose>
+              <xsl:when test="date">
+                <xsl:apply-templates select="date"/>
+              </xsl:when>
+              <xsl:otherwise> </xsl:otherwise>
+            </xsl:choose>
+          </td>
+        </tr>
+        <tr>
+          <td colspan="2" align="left" valign="top">
+            <xsl:apply-templates select="edtext"/>
+          </td>
+        </tr>
+      </table>
+    </xsl:if>
+  </xsl:template>
+
+  <xsl:template match="date">
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <xsl:template match="edtext">
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <!-- edtext: text of an editors' note -->
+  <!-- ednote is currently hidden -->
+
+  <!-- el: an XML element -->
+  <!-- present as preformatted text, no markup -->
+  <!-- Chris's personal preference is to put pointy-brackets around
+       this, but he seems to be in the minority -->
+  <xsl:template match="el">
+    <code xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></code>
+  </xsl:template>
+
+  <!-- email: an email address for an editor -->
+  <!-- only occurs in author -->
+  <xsl:template match="email">
+    <xsl:text> </xsl:text>
+    <a xmlns="http://www.w3.org/1999/xhtml" href="{@href}">
+      <xsl:text>&lt;</xsl:text>
+      <xsl:apply-templates/>
+      <xsl:text>&gt;</xsl:text>
+    </a>
+  </xsl:template>
+
+  <!-- emph: in-line emphasis -->
+  <!-- equates to HTML <em> -->
+  <!-- the role attribute could be used for multiple kinds of
+       emphasis, but that would not be kind -->
+  <xsl:template match="emph">
+    <em xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></em>
+  </xsl:template>
+
+  <!-- rfc2119: identifies RFC 2119 keywords -->
+  <xsl:template match="rfc2119">
+    <strong xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></strong>
+  </xsl:template>
+
+  <!-- enum: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- enumerator: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- example: what it seems -->
+  <!-- block-level with title -->
+  <!-- see also example/head -->
+  <xsl:template match="example">
+    <xsl:variable name="class">
+      <xsl:choose>
+        <xsl:when test="$tabular.examples = 0">exampleOuter</xsl:when>
+        <xsl:otherwise>example</xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+    <div xmlns="http://www.w3.org/1999/xhtml" class="{$class}">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <xsl:template match="example/head">
+    <xsl:text>
+</xsl:text>
+    <xsl:choose>
+      <xsl:when test="$tabular.examples = 0">
+        <div xmlns="http://www.w3.org/1999/xhtml" class="exampleHeader">
+          <xsl:call-template name="anchor">
+            <xsl:with-param name="node" select=".."/>
+            <xsl:with-param name="conditional" select="0"/>
+          </xsl:call-template>
+          <xsl:text>Example: </xsl:text>
+          <xsl:apply-templates/>
+        </div>
+      </xsl:when>
+      <xsl:otherwise>
+        <h5 xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:call-template name="anchor">
+            <xsl:with-param name="node" select=".."/>
+            <xsl:with-param name="conditional" select="0"/>
+          </xsl:call-template>
+
+          <xsl:text>Example: </xsl:text>
+          <xsl:apply-templates/>
+        </h5>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <!-- eg: a literal example -->
+  <!-- present as preformatted text -->
+  <xsl:template match="eg">
+    <xsl:variable name="content">
+      <xsl:call-template name="anchor"/>
+      <pre xmlns="http://www.w3.org/1999/xhtml">
+        <xsl:if test="@diff and $show.diff.markup != 0">
+          <xsl:attribute name="class">
+            <xsl:text>diff-</xsl:text>
+            <xsl:value-of select="@diff"/>
+          </xsl:attribute>
+        </xsl:if>
+        <xsl:apply-templates/>
+      </pre>
+    </xsl:variable>
+    <xsl:choose>
+      <xsl:when test="$tabular.examples = 0">
+        <div xmlns="http://www.w3.org/1999/xhtml" class="exampleInner">
+          <xsl:copy-of select="$content"/>
+        </div>
+      </xsl:when>
+      <xsl:otherwise>
+        <table xmlns="http://www.w3.org/1999/xhtml" class="eg" cellpadding="5" border="1" bgcolor="#99ffff" width="100%" summary="Example">
+          <tr>
+            <td>
+              <xsl:copy-of select="$content"/>
+            </td>
+          </tr>
+        </table>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <!-- exception: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- footnote: format as endnote, actually -->
+  <xsl:template match="footnote">
+    <xsl:variable name="this-note-id">
+      <xsl:choose>
+        <xsl:when test="@id">
+          <xsl:value-of select="@id"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="generate-id(.)"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+    <sup xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:text>[</xsl:text>
+      <a name="FN-ANCH-{$this-note-id}" id="FN-ANCH-{$this-note-id}" href="#{$this-note-id}">
+        <xsl:apply-templates select="." mode="number-simple"/>
+      </a>
+      <xsl:text>]</xsl:text>
+    </sup>
+  </xsl:template>
+
+  <!-- front: front matter for the spec -->
+  <!-- make a div for cleanliness -->
+  <xsl:template match="front">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="front">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <!-- function: name of a function -->
+  <!-- format as HTML <code> for monospaced presentation -->
+  <xsl:template match="function">
+    <code xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></code>
+  </xsl:template>
+
+  <!-- gitem: glossary list entry -->
+  <!-- just pass children through for <dd>/<dt> formatting -->
+  <xsl:template match="gitem">
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <!-- glist: glossary list -->
+  <!-- create <dl> and handle children -->
+  <xsl:template match="glist">
+    <xsl:if test="$validity.hacks = 1 and local-name(..) = 'p'">
+      <xsl:text disable-output-escaping="yes">&lt;/p&gt;</xsl:text>
+    </xsl:if>
+    <dl xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </dl>
+    <xsl:if test="$validity.hacks = 1 and local-name(..) = 'p'">
+      <xsl:text disable-output-escaping="yes">&lt;p&gt;</xsl:text>
+    </xsl:if>
+  </xsl:template>
+
+  <!-- graphic: external illustration -->
+  <!-- reference external graphic file with alt text -->
+  <xsl:template match="graphic">
+    <img xmlns="http://www.w3.org/1999/xhtml" src="{@source}">
+      <xsl:if test="@alt">
+        <xsl:attribute name="alt">
+          <xsl:value-of select="@alt"/>
+        </xsl:attribute>
+      </xsl:if>
+    </img>
+  </xsl:template>
+
+  <!-- group: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- head: title for a variety of constructs -->
+
+  <!-- constraintnotes have different types, but they're
+       non-enumerated; nothing is done with them right now -->
+  <xsl:template match="constraintnote/head">
+    <p xmlns="http://www.w3.org/1999/xhtml" class="prefix">
+      <xsl:if test="../@id">
+        <a name="{../@id}" id="{../@id}"/>
+      </xsl:if>
+      <b><xsl:text>Constraint: </xsl:text><xsl:apply-templates/></b>
+    </p>
+  </xsl:template>
+
+  <xsl:template match="div1/head">
+    <xsl:text>
+</xsl:text>
+    <h2 xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:call-template name="anchor">
+        <xsl:with-param name="conditional" select="0"/>
+        <xsl:with-param name="node" select=".."/>
+      </xsl:call-template>
+      <xsl:apply-templates select=".." mode="divnum"/>
+      <xsl:apply-templates/>
+    </h2>
+  </xsl:template>
+
+  <xsl:template match="div2/head">
+    <xsl:text>
+</xsl:text>
+    <h3 xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:call-template name="anchor">
+        <xsl:with-param name="conditional" select="0"/>
+        <xsl:with-param name="node" select=".."/>
+      </xsl:call-template>
+      <xsl:apply-templates select=".." mode="divnum"/>
+      <xsl:apply-templates/>
+    </h3>
+  </xsl:template>
+
+  <xsl:template match="div3/head">
+    <xsl:text>
+</xsl:text>
+    <h4 xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:call-template name="anchor">
+        <xsl:with-param name="conditional" select="0"/>
+        <xsl:with-param name="node" select=".."/>
+      </xsl:call-template>
+      <xsl:apply-templates select=".." mode="divnum"/>
+      <xsl:apply-templates/>
+    </h4>
+  </xsl:template>
+
+  <xsl:template match="div4/head">
+    <xsl:text>
+</xsl:text>
+    <h5 xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:call-template name="anchor">
+        <xsl:with-param name="conditional" select="0"/>
+        <xsl:with-param name="node" select=".."/>
+      </xsl:call-template>
+      <xsl:apply-templates select=".." mode="divnum"/>
+      <xsl:apply-templates/>
+    </h5>
+  </xsl:template>
+
+  <xsl:template match="div5/head">
+    <xsl:text>
+</xsl:text>
+    <h6 xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:call-template name="anchor">
+        <xsl:with-param name="conditional" select="0"/>
+        <xsl:with-param name="node" select=".."/>
+      </xsl:call-template>
+      <xsl:apply-templates select=".." mode="divnum"/>
+      <xsl:apply-templates/>
+    </h6>
+  </xsl:template>
+
+  <xsl:template match="inform-div1/head">
+    <xsl:text>
+</xsl:text>
+    <h2 xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:call-template name="anchor">
+        <xsl:with-param name="conditional" select="0"/>
+        <xsl:with-param name="node" select=".."/>
+      </xsl:call-template>
+      <xsl:apply-templates select=".." mode="divnum"/>
+      <xsl:apply-templates/>
+      <xsl:text> (Non-Normative)</xsl:text>
+    </h2>
+  </xsl:template>
+
+  <xsl:template match="issue/head">
+    <p xmlns="http://www.w3.org/1999/xhtml" class="prefix">
+      <b><xsl:apply-templates/></b>
+    </p>
+  </xsl:template>
+
+  <xsl:template match="scrap/head">
+    <xsl:text>
+</xsl:text>
+    <h5 xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:call-template name="anchor">
+        <xsl:with-param name="node" select=".."/>
+        <xsl:with-param name="conditional" select="0"/>
+      </xsl:call-template>
+
+      <xsl:apply-templates/>
+    </h5>
+  </xsl:template>
+
+  <xsl:template match="vcnote/head">
+    <p xmlns="http://www.w3.org/1999/xhtml" class="prefix">
+      <xsl:if test="../@id">
+        <a name="{../@id}" id="{../@id}"/>
+      </xsl:if>
+      <b><xsl:text>Validity constraint: </xsl:text><xsl:apply-templates/></b>
+    </p>
+  </xsl:template>
+
+  <xsl:template match="wfcnote/head">
+    <p xmlns="http://www.w3.org/1999/xhtml" class="prefix">
+      <xsl:if test="../@id">
+        <a name="{../@id}" id="{../@id}"/>
+      </xsl:if>
+      <b><xsl:text>Well-formedness constraint: </xsl:text><xsl:apply-templates/></b>
+    </p>
+  </xsl:template>
+
+  <!-- header: metadata about the spec -->
+  <!-- pull out information into standard W3C layout -->
+  <xsl:template match="header">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="head">
+      <xsl:if test="not(/spec/@role='editors-copy')">
+        <p>
+          <a href="http://www.w3.org/">
+            <img src="http://www.w3.org/Icons/w3c_home" alt="W3C" height="48" width="72"/>
+          </a>
+	  <xsl:choose>
+	    <xsl:when test="/spec/@w3c-doctype='memsub'">
+	      <a href="http://www.w3.org/Submission/">
+		<img alt="Member Submission" src="http://www.w3.org/Icons/member_subm"/>
+	      </a>
+	    </xsl:when>
+	    <xsl:when test="/spec/@w3c-doctype='teamsub'">
+	      <a href="http://www.w3.org/2003/06/TeamSubmission">
+		<img alt="Team Submission" src="http://www.w3.org/Icons/team_subm"/>
+	      </a>
+	    </xsl:when>
+	  </xsl:choose>
+        </p>
+      </xsl:if>
+      <xsl:text>
+</xsl:text>
+      <h1>
+        <xsl:call-template name="anchor">
+          <xsl:with-param name="node" select="title[1]"/>
+          <xsl:with-param name="conditional" select="0"/>
+          <xsl:with-param name="default.id" select="'title'"/>
+        </xsl:call-template>
+
+        <xsl:apply-templates select="title"/>
+        <xsl:if test="version">
+          <xsl:text> </xsl:text>
+          <xsl:apply-templates select="version"/>
+        </xsl:if>
+      </h1>
+      <xsl:if test="subtitle">
+        <xsl:text>
+</xsl:text>
+        <h2>
+          <xsl:call-template name="anchor">
+            <xsl:with-param name="node" select="subtitle[1]"/>
+            <xsl:with-param name="conditional" select="0"/>
+            <xsl:with-param name="default.id" select="'subtitle'"/>
+          </xsl:call-template>
+          <xsl:apply-templates select="subtitle"/>
+        </h2>
+      </xsl:if>
+      <xsl:text>
+</xsl:text>
+      <h2>
+	<xsl:call-template name="anchor">
+	  <xsl:with-param name="node" select="w3c-doctype[1]"/>
+	  <xsl:with-param name="conditional" select="0"/>
+	  <xsl:with-param name="default.id" select="'w3c-doctype'"/>
+	</xsl:call-template>
+
+	<xsl:choose>
+	  <xsl:when test="/spec/@w3c-doctype = 'review'">
+	    <xsl:text>Editor's Draft</xsl:text>
+	  </xsl:when>
+	  <xsl:otherwise>
+	    <xsl:value-of select="w3c-doctype[1]"/>
+	  </xsl:otherwise>
+	</xsl:choose>
+	<xsl:text> </xsl:text>
+        <xsl:if test="pubdate/day">
+          <xsl:apply-templates select="pubdate/day"/>
+          <xsl:text> </xsl:text>
+        </xsl:if>
+        <xsl:apply-templates select="pubdate/month"/>
+        <xsl:text> </xsl:text>
+        <xsl:apply-templates select="pubdate/year"/>
+      </h2>
+      <dl>
+        <xsl:apply-templates select="publoc"/>
+        <xsl:apply-templates select="latestloc"/>
+        <xsl:apply-templates select="prevlocs"/>
+        <xsl:apply-templates select="authlist"/>
+      </dl>
+
+      <!-- output the errataloc and altlocs -->
+      <xsl:apply-templates select="errataloc"/>
+      <xsl:apply-templates select="preverrataloc"/>
+      <xsl:apply-templates select="translationloc"/>
+      <xsl:apply-templates select="altlocs"/>
+
+      <xsl:choose>
+        <xsl:when test="copyright">
+          <xsl:apply-templates select="copyright"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <p class="copyright">
+            <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">
+              <xsl:text>Copyright</xsl:text>
+            </a>
+            <xsl:text> © </xsl:text>
+            <xsl:apply-templates select="pubdate/year"/>
+            <xsl:text> </xsl:text>
+            <a href="http://www.w3.org/">
+              <acronym title="World Wide Web Consortium">W3C</acronym>
+            </a>
+            <sup>®</sup>
+            <xsl:text> (</xsl:text>
+            <a href="http://www.csail.mit.edu/">
+              <acronym title="Massachusetts Institute of Technology">MIT</acronym>
+            </a>
+            <xsl:text>, </xsl:text>
+            <a href="http://www.ercim.eu/">
+              <acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym>
+            </a>
+            <xsl:text>, </xsl:text>
+            <a href="http://www.keio.ac.jp/">Keio</a>
+            <xsl:text>), All Rights Reserved. W3C </xsl:text>
+            <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>
+            <xsl:text>, </xsl:text>
+            <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a>
+            <xsl:text> and </xsl:text>
+            <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a>
+            <xsl:text> rules apply.</xsl:text>
+          </p>
+        </xsl:otherwise>
+      </xsl:choose>
+    </div>
+    <hr xmlns="http://www.w3.org/1999/xhtml"/>
+    <xsl:apply-templates select="notice"/>
+    <xsl:apply-templates select="abstract"/>
+    <xsl:apply-templates select="status"/>
+    <xsl:apply-templates select="revisiondesc"/>
+  </xsl:template>
+
+  <xsl:template match="revisiondesc">
+    <!-- suppressed by default -->
+  </xsl:template>
+
+  <xsl:template match="copyright">
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <xsl:template match="copyright/p">
+    <p xmlns="http://www.w3.org/1999/xhtml" class="copyright">
+      <xsl:apply-templates/>
+    </p>
+  </xsl:template>
+
+  <!-- inform-div1: non-normative back matter top-level division -->
+  <!-- treat like div1 except add "(Non-Normative)" to title -->
+  <xsl:template match="inform-div1">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="div1">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <!-- interface: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- issue: open issue before the Working Group -->
+  <!-- maintain an ID for linking to it -->
+  <!-- currently generates boilerplate head plus optional head child
+       element; this should probably be cleaned up to only use the
+       head if it's present -->
+  <xsl:template match="issue">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="issue">
+      <p class="prefix">
+        <xsl:if test="@id">
+          <a name="{@id}" id="{@id}"/>
+        </xsl:if>
+        <b>
+          <xsl:text>Issue (</xsl:text>
+          <xsl:value-of select="@id"/>
+          <xsl:text>):</xsl:text>
+        </b>
+      </p>
+      <xsl:apply-templates/>
+
+      <xsl:if test="not(resolution)">
+        <p class="prefix">
+          <b>
+            <xsl:text>Resolution:</xsl:text>
+          </b>
+        </p>
+        <p>None recorded.</p>
+      </xsl:if>
+    </div>
+  </xsl:template>
+
+  <!-- item: generic list item -->
+  <xsl:template match="item">
+    <li xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:if test="@id">
+	<xsl:attribute name="id">
+	  <xsl:value-of select="@id"/>
+	</xsl:attribute>
+      </xsl:if>
+      <xsl:apply-templates/>
+    </li>
+  </xsl:template>
+
+  <!-- kw: keyword -->
+  <!-- make it bold -->
+  <xsl:template match="kw">
+    <b xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></b>
+  </xsl:template>
+
+  <!-- label: term for defintion in glossary entry -->
+  <!-- already in <dl> context from glist -->
+  <xsl:template match="label">
+    <dt xmlns="http://www.w3.org/1999/xhtml" class="label">
+      <xsl:call-template name="anchor">
+        <xsl:with-param name="node" select=".."/>
+      </xsl:call-template>
+      <xsl:call-template name="anchor"/>
+
+      <xsl:apply-templates/>
+    </dt>
+  </xsl:template>
+
+  <!-- language: -->
+  <!-- langusage: -->
+  <!-- identify language usage within a spec; not actually formatted -->
+
+  <!-- latestloc: latest location for this spec -->
+  <!-- called in a <dl> context from header -->
+
+  <!-- New pubrules will allow more than one, support multiple loc elements -->
+  <!-- DTD actually allows p.pcd.mix (!?) so be careful here... -->
+
+  <xsl:template match="latestloc">
+    <xsl:choose>
+      <xsl:when test="count(loc) &gt; 1">
+	<xsl:for-each select="loc">
+	  <dt xmlns="http://www.w3.org/1999/xhtml">
+	    <xsl:apply-templates select="node()"/>
+	  </dt>
+	  <dd xmlns="http://www.w3.org/1999/xhtml">
+	    <a href="{@href}">
+	      <xsl:value-of select="@href"/>
+	    </a>
+	  </dd>
+	</xsl:for-each>
+      </xsl:when>
+      <xsl:otherwise>
+	<dt xmlns="http://www.w3.org/1999/xhtml">Latest version:</dt>
+	<dd xmlns="http://www.w3.org/1999/xhtml">
+	  <xsl:apply-templates/>
+	</dd>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <!-- lhs: left-hand side of formal productions -->
+  <!-- make a table row with the lhs and the corresponding other
+       pieces in this crazy mixed-up content model -->
+  <xsl:template match="lhs">
+    <tr xmlns="http://www.w3.org/1999/xhtml" valign="baseline">
+      <td>
+        <xsl:if test="ancestor-or-self::*/@diff and $show.diff.markup != 0">
+          <xsl:attribute name="class">
+            <xsl:text>diff-</xsl:text>
+            <xsl:value-of select="ancestor-or-self::*/@diff"/>
+          </xsl:attribute>
+        </xsl:if>
+        <xsl:if test="../@id">
+          <a name="{../@id}" id="{../@id}"/>
+        </xsl:if>
+        <xsl:apply-templates select="ancestor::prod" mode="number"/>
+<!--
+  This could be done right here, but XT goes into deep space when the
+  node to be numbered isn't the current node and level="any":
+          <xsl:number count="prod" level="any" from="spec"
+            format="[1]"/>
+  -->
+        <xsl:text>   </xsl:text>
+      </td>
+      <td>
+        <xsl:if test="ancestor-or-self::*/@diff and $show.diff.markup != 0">
+          <xsl:attribute name="class">
+            <xsl:text>diff-</xsl:text>
+            <xsl:value-of select="ancestor-or-self::*/@diff"/>
+          </xsl:attribute>
+        </xsl:if>
+        <code><xsl:apply-templates/></code>
+      </td>
+      <td>
+        <xsl:if test="ancestor-or-self::*/@diff and $show.diff.markup != 0">
+          <xsl:attribute name="class">
+            <xsl:text>diff-</xsl:text>
+            <xsl:value-of select="ancestor-or-self::*/@diff"/>
+          </xsl:attribute>
+        </xsl:if>
+        <xsl:text>   ::=   </xsl:text>
+      </td>
+      <xsl:apply-templates select="following-sibling::*[1][name()='rhs']"/>
+    </tr>
+  </xsl:template>
+
+  <!-- loc: a Web location -->
+  <!-- outside the header, it's a normal cross-reference -->
+  <xsl:template match="loc">
+    <xsl:if test="starts-with(@href, '#')">
+      <xsl:if test="not(key('ids', substring-after(@href, '#')))">
+        <xsl:message terminate="yes">
+          <xsl:text>Internal loc href to </xsl:text>
+          <xsl:value-of select="@href"/>
+          <xsl:text>, but that ID does not exist in this document.</xsl:text>
+        </xsl:message>
+      </xsl:if>
+    </xsl:if>
+
+    <a xmlns="http://www.w3.org/1999/xhtml" href="{@href}">
+      <xsl:choose>
+        <xsl:when test="count(child::node())=0">
+          <xsl:value-of select="@href"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:apply-templates/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </a>
+  </xsl:template>
+
+  <!-- member: member of an organization -->
+  <!-- appears only in orglist, which creates <ul> context -->
+  <xsl:template match="member">
+    <li xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </li>
+  </xsl:template>
+
+  <!-- method: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- module: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- month: month of spec -->
+  <!-- only used in pudate; called directly from header template -->
+  <xsl:template match="month">
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <!-- name: name of an editor or organization member -->
+  <!-- only appears in author and member -->
+  <!-- just output text -->
+  <xsl:template match="name">
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <!-- note: a note about the spec -->
+  <xsl:template match="note">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="note">
+      <p class="prefix">
+        <b>Note:</b>
+      </p>
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <!-- notice: a front-matter advisory about the spec's status -->
+  <!-- make sure people notice it -->
+  <xsl:template match="notice">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="notice">
+      <p class="prefix">
+        <b>NOTICE:</b>
+      </p>
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <!-- nt: production non-terminal -->
+  <!-- make a link to the non-terminal's definition -->
+  <xsl:template match="nt">
+    <a xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:attribute name="href">
+        <xsl:call-template name="href.target">
+          <xsl:with-param name="target" select="key('ids', @def)"/>
+        </xsl:call-template>
+      </xsl:attribute>
+      <xsl:apply-templates/>
+    </a>
+  </xsl:template>
+
+  <!-- ====================================================================== -->
+  <!-- OrderedList Numeration -->
+
+  <xsl:template name="list.numeration">
+    <xsl:variable name="depth" select="count(ancestor::olist)"/>
+    <xsl:choose>
+      <xsl:when test="$depth mod 5 = 0">ar</xsl:when>
+      <xsl:when test="$depth mod 5 = 1">la</xsl:when>
+      <xsl:when test="$depth mod 5 = 2">lr</xsl:when>
+      <xsl:when test="$depth mod 5 = 3">ua</xsl:when>
+      <xsl:when test="$depth mod 5 = 4">ur</xsl:when>
+    </xsl:choose>
+  </xsl:template>
+
+  <!-- olist: an ordered list -->
+  <xsl:template match="olist">
+    <xsl:variable name="numeration">
+      <xsl:call-template name="list.numeration"/>
+    </xsl:variable>
+
+    <ol xmlns="http://www.w3.org/1999/xhtml" class="enum{$numeration}">
+      <xsl:apply-templates/>
+    </ol>
+  </xsl:template>
+
+  <!-- orglist: a list of an organization's members -->
+  <xsl:template match="orglist">
+    <ul xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </ul>
+  </xsl:template>
+
+  <!-- p: a standard paragraph -->
+  <xsl:template match="p">
+    <p xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:if test="@id">
+        <xsl:attribute name="id">
+          <xsl:value-of select="@id"/>
+        </xsl:attribute>
+      </xsl:if>
+      <xsl:if test="@role">
+        <xsl:attribute name="class">
+          <xsl:value-of select="@role"/>
+        </xsl:attribute>
+      </xsl:if>
+      <xsl:apply-templates/>
+    </p>
+  </xsl:template>
+
+  <!-- param: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- parameters: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- phrase: semantically meaningless markup hanger -->
+  <!-- role attributes may be used to request different formatting,
+       which isn't currently handled -->
+  <xsl:template match="phrase">
+    <span xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:if test="@role">
+        <xsl:attribute name="class">
+          <xsl:value-of select="@role"/>
+        </xsl:attribute>
+      </xsl:if>
+      <xsl:apply-templates/>
+    </span>
+  </xsl:template>
+
+  <!-- prevlocs: previous locations for this spec -->
+  <!-- called in a <dl> context from header -->
+  <xsl:template match="prevlocs">
+    <dt xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:text>Previous version</xsl:text>
+      <xsl:if test="count(loc) &gt; 1">s</xsl:if>
+      <xsl:text>:</xsl:text>
+    </dt>
+    <dd xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </dd>
+  </xsl:template>
+
+  <!-- prod: a formal grammar production -->
+  <!-- if not in a prodgroup, needs a <tbody> -->
+  <!-- has a weird content model; makes a table but there are no
+       explicit rules; many different things can start a new row -->
+  <!-- process the first child in each row, and it will process the
+       others -->
+  <xsl:template match="prod">
+    <tbody xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates select="lhs |                 rhs[preceding-sibling::*[1][name()!='lhs']] |                 com[preceding-sibling::*[1][name()!='rhs']] |                 constraint[preceding-sibling::*[1][name()!='rhs']] |                 vc[preceding-sibling::*[1][name()!='rhs']] |                 wfc[preceding-sibling::*[1][name()!='rhs']]"/>
+    </tbody>
+  </xsl:template>
+
+  <xsl:template match="prodgroup/prod">
+    <xsl:apply-templates select="lhs |               rhs[preceding-sibling::*[1][name()!='lhs']] |               com[preceding-sibling::*[1][name()!='rhs']] |               constraint[preceding-sibling::*[1][name()!='rhs']] |               vc[preceding-sibling::*[1][name()!='rhs']] |               wfc[preceding-sibling::*[1][name()!='rhs']]"/>
+  </xsl:template>
+
+  <!-- prodgroup: group of formal productions -->
+  <!-- create one <tbody> for each group -->
+  <xsl:template match="prodgroup">
+    <tbody xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </tbody>
+  </xsl:template>
+
+  <!-- prodrecap: reiteration of a prod -->
+  <!-- process the prod in another node that will never generate a
+       <tbody> or a number, plus links the lhs to the original
+       production -->
+  <xsl:template match="prodrecap">
+    <tbody xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates select="key('ids', @ref)" mode="ref"/>
+    </tbody>
+  </xsl:template>
+
+  <xsl:template match="processing-instruction('specprod')">
+    <xsl:if test="contains(., 'production-recap')"/>
+    <table xmlns="http://www.w3.org/1999/xhtml" class="scrap" summary="Scrap">
+      <tbody>
+        <xsl:apply-templates select="//prod" mode="ref"/>
+      </tbody>
+    </table>
+  </xsl:template>
+
+  <!-- proto: function prototype -->
+  <!-- type and name of the function, with arguments in parens -->
+  <xsl:template match="proto">
+    <p xmlns="http://www.w3.org/1999/xhtml">
+      <em><xsl:value-of select="@return-type"/></em>
+      <xsl:text> </xsl:text>
+      <b><xsl:value-of select="@name"/></b>
+      <xsl:text>(</xsl:text>
+      <xsl:apply-templates/>
+      <xsl:text>)</xsl:text>
+    </p>
+  </xsl:template>
+
+  <!-- pubdate: date of spec -->
+  <!-- called directly from header -->
+
+  <!-- publoc: location of current version of spec -->
+  <!-- called from header in <dl> context -->
+  <xsl:template match="publoc">
+    <dt xmlns="http://www.w3.org/1999/xhtml">This version:</dt>
+    <dd xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </dd>
+  </xsl:template>
+
+  <xsl:template match="altlocs">
+    <p xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:text>This document is also available </xsl:text>
+      <xsl:text>in these non-normative formats: </xsl:text>
+      <xsl:for-each select="loc">
+        <xsl:if test="position() &gt; 1">
+          <xsl:if test="last() &gt; 2">
+            <xsl:text>, </xsl:text>
+          </xsl:if>
+          <xsl:if test="last() = 2">
+            <xsl:text> </xsl:text>
+          </xsl:if>
+        </xsl:if>
+        <xsl:if test="position() = last() and position() &gt; 1">and </xsl:if>
+        <xsl:apply-templates select="."/>
+      </xsl:for-each>
+      <xsl:text>.</xsl:text>
+    </p>
+  </xsl:template>
+
+  <xsl:template match="errataloc">
+    <p xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:text>Please refer to the </xsl:text>
+      <a href="{@href}">errata</a>
+      <xsl:text> for this document, which may
+      include normative corrections.</xsl:text>
+    </p>
+  </xsl:template>
+
+  <xsl:template match="preverrataloc">
+    <p xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:text>The </xsl:text>
+      <a href="{@href}">previous errata</a>
+      <xsl:text> for this document, are also available.</xsl:text>
+    </p>
+  </xsl:template>
+
+  <xsl:template match="translationloc">
+    <p xmlns="http://www.w3.org/1999/xhtml">See also <a href="{@href}"><strong>translations</strong></a>.</p>
+  </xsl:template>
+
+  <!-- pubstmt: statement of publication -->
+  <!-- not currently output -->
+
+  <!-- quote: a quoted string or phrase -->
+  <!-- it would be nice to use HTML <q> elements, but browser support
+       is abysmal -->
+  <xsl:template match="quote">
+    <xsl:text>"</xsl:text>
+    <xsl:apply-templates/>
+    <xsl:text>"</xsl:text>
+  </xsl:template>
+
+  <!-- raises: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- reference: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- resolution: resolution of an issue -->
+  <xsl:template match="resolution">
+    <p xmlns="http://www.w3.org/1999/xhtml" class="prefix">
+      <b>
+        <xsl:if test="@role='partial'">Partial </xsl:if>
+        <xsl:text>Resolution:</xsl:text>
+      </b>
+    </p>
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <!-- returns: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- revisiondesc: description of spec revision -->
+  <!-- used for internal tracking; not formatted -->
+
+  <!-- rhs: right-hand side of a formal production -->
+  <!-- make a table cell; if it's not the first after an LHS, make a
+       new row, too -->
+  <xsl:template match="rhs">
+    <xsl:choose>
+      <xsl:when test="preceding-sibling::*[1][name()='lhs']">
+        <td xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:if test="ancestor-or-self::*/@diff and $show.diff.markup != 0">
+            <xsl:attribute name="class">
+              <xsl:text>diff-</xsl:text>
+              <xsl:value-of select="ancestor-or-self::*/@diff"/>
+            </xsl:attribute>
+          </xsl:if>
+          <code><xsl:apply-templates/></code>
+        </td>
+        <xsl:apply-templates select="following-sibling::*[1][name()='com' or                                           name()='constraint' or                                           name()='vc' or                                           name()='wfc']"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <tr xmlns="http://www.w3.org/1999/xhtml" valign="baseline">
+          <td/><td/><td/>
+          <td>
+            <xsl:if test="ancestor-or-self::*/@diff and $show.diff.markup != 0">
+              <xsl:attribute name="class">
+                <xsl:text>diff-</xsl:text>
+                <xsl:value-of select="ancestor-or-self::*/@diff"/>
+              </xsl:attribute>
+            </xsl:if>
+            <code><xsl:apply-templates/></code>
+          </td>
+          <xsl:apply-templates select="following-sibling::*[1][name()='com' or                                             name()='constraint' or                                             name()='vc' or                                             name()='wfc']"/>
+        </tr>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <!-- role: part played by a member of an organization -->
+  <xsl:template match="role">
+    <xsl:text> (</xsl:text>
+    <i xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></i>
+    <xsl:text>) </xsl:text>
+  </xsl:template>
+
+  <!-- scrap: series of formal grammar productions -->
+  <!-- set up a <table> and handle children -->
+  <xsl:template match="scrap">
+    <xsl:apply-templates select="head"/>
+    <table xmlns="http://www.w3.org/1999/xhtml" class="scrap" summary="Scrap">
+      <xsl:apply-templates select="bnf | prod | prodgroup"/>
+    </table>
+  </xsl:template>
+
+  <!-- sequence: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- sitem: simple list item -->
+  <!-- just make one paragraph with <br>s between items -->
+  <xsl:template match="sitem">
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <xsl:template match="sitem[position() &gt; 1]" priority="2">
+    <br xmlns="http://www.w3.org/1999/xhtml"/>
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <!-- slist: simple list -->
+  <!-- using a <blockquote> to indent the list is very wrong, but it works -->
+  <xsl:template match="slist">
+    <blockquote xmlns="http://www.w3.org/1999/xhtml">
+      <p>
+        <xsl:apply-templates/>
+      </p>
+    </blockquote>
+  </xsl:template>
+
+  <!-- source: the source of an issue -->
+  <xsl:template match="source">
+    <p xmlns="http://www.w3.org/1999/xhtml">
+      <b>Source</b>
+      <xsl:text>: </xsl:text>
+      <xsl:apply-templates/>
+    </p>
+  </xsl:template>
+
+  <!-- sourcedesc: description of spec preparation -->
+  <!-- used for tracking the source, but not formatted -->
+
+  <!-- spec: the specification itself -->
+  <xsl:template match="spec">
+    <html xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:if test="header/langusage/language">
+        <xsl:attribute name="lang">
+          <xsl:value-of select="header/langusage/language/@id"/>
+        </xsl:attribute>
+      </xsl:if>
+      <head>
+        <title>
+          <xsl:apply-templates select="header/title"/>
+          <xsl:if test="header/version">
+            <xsl:text> </xsl:text>
+            <xsl:apply-templates select="header/version"/>
+          </xsl:if>
+          <xsl:if test="$additional.title != ''">
+            <xsl:text> -- </xsl:text>
+            <xsl:value-of select="$additional.title"/>
+          </xsl:if>
+        </title>
+        <xsl:call-template name="css"/>
+	<xsl:call-template name="additional-head"/>
+      </head>
+      <body>
+        <xsl:apply-templates/>
+        <xsl:if test="//footnote[not(ancestor::table)]">
+          <hr/>
+          <div class="endnotes">
+            <xsl:text>
+</xsl:text>
+            <h3>
+              <xsl:call-template name="anchor">
+                <xsl:with-param name="conditional" select="0"/>
+                <xsl:with-param name="default.id" select="'endnotes'"/>
+              </xsl:call-template>
+              <xsl:text>End Notes</xsl:text>
+            </h3>
+            <dl>
+              <xsl:apply-templates select="//footnote[not(ancestor::table)]" mode="notes"/>
+            </dl>
+          </div>
+        </xsl:if>
+      </body>
+    </html>
+  </xsl:template>
+
+  <!-- Specref -->
+
+  <!-- specref: reference to another part of teh current specification -->
+  <xsl:template match="specref">
+    <xsl:param name="target" select="key('ids', @ref)[1]"/>
+
+    <xsl:choose>
+      <xsl:when test="not($target)">
+	<xsl:message>
+	  <xsl:text>specref to non-existent ID: </xsl:text>
+	  <xsl:value-of select="@ref"/>
+	</xsl:message>
+      </xsl:when>
+      <xsl:when test="local-name($target)='issue'                       or starts-with(local-name($target), 'div')                       or starts-with(local-name($target), 'inform-div')                       or local-name($target) = 'vcnote'                       or local-name($target) = 'prod'                       or local-name($target) = 'example'                       or local-name($target) = 'label'         or $target/self::item[parent::olist]">
+        <xsl:apply-templates select="$target" mode="specref"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:message>
+          <xsl:text>Unsupported specref to </xsl:text>
+          <xsl:value-of select="local-name($target)"/>
+          <xsl:text> [</xsl:text>
+          <xsl:value-of select="@ref"/>
+          <xsl:text>] </xsl:text>
+          <xsl:text> (Contact stylesheet maintainer).</xsl:text>
+        </xsl:message>
+        <b xmlns="http://www.w3.org/1999/xhtml">
+          <a>
+            <xsl:attribute name="href">
+              <xsl:call-template name="href.target">
+                <xsl:with-param name="target" select="key('ids', @ref)"/>
+              </xsl:call-template>
+            </xsl:attribute>
+            <xsl:text>???</xsl:text>
+          </a>
+        </b>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <xsl:template match="item" mode="specref">
+    <xsl:variable name="items" select="ancestor-or-self::item[parent::olist]"/>
+
+    <a xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:attribute name="href">
+        <xsl:call-template name="href.target"/>
+      </xsl:attribute>
+
+      <!--
+      <xsl:value-of select="count($items)"/>
+      <xsl:text>;</xsl:text>
+      -->
+
+      <xsl:for-each select="$items">
+	<xsl:variable name="number" select="count(preceding-sibling::item)+1"/>
+	<xsl:variable name="numeration">
+	  <!-- this is related to, but not the same as, list.numeration -->
+	  <xsl:choose>
+	    <xsl:when test="count(ancestor::olist) mod 5 = 1">ar</xsl:when>
+	    <xsl:when test="count(ancestor::olist) mod 5 = 2">la</xsl:when>
+	    <xsl:when test="count(ancestor::olist) mod 5 = 3">lr</xsl:when>
+	    <xsl:when test="count(ancestor::olist) mod 5 = 4">ua</xsl:when>
+	    <xsl:when test="count(ancestor::olist) mod 5 = 0">ur</xsl:when>
+	  </xsl:choose>
+	</xsl:variable>
+
+	<xsl:choose>
+	  <xsl:when test="$numeration = 'la'">
+	    <xsl:number value="$number" format="a"/>
+	  </xsl:when>
+	  <xsl:when test="$numeration = 'lr'">
+	    <xsl:number value="$number" format="i"/>
+	  </xsl:when>
+	  <xsl:when test="$numeration = 'ua'">
+	    <xsl:number value="$number" format="A"/>
+	  </xsl:when>
+	  <xsl:when test="$numeration = 'ur'">
+	    <xsl:number value="$number" format="I"/>
+	  </xsl:when>
+	  <xsl:otherwise>
+	    <xsl:value-of select="$number"/>
+	  </xsl:otherwise>
+	</xsl:choose>
+	<xsl:text>.</xsl:text>
+
+	<!--
+	<xsl:text>(</xsl:text>
+	<xsl:value-of select="$number"/>
+	<xsl:text>;</xsl:text>
+	<xsl:value-of select="$numeration"/>
+	<xsl:text>)</xsl:text>
+	-->
+
+      </xsl:for-each>
+
+    </a>
+  </xsl:template>
+
+  <xsl:template match="issue" mode="specref">
+    <xsl:text>[</xsl:text>
+    <a xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:attribute name="href">
+        <xsl:call-template name="href.target"/>
+      </xsl:attribute>
+      <b>
+        <xsl:text>Issue </xsl:text>
+        <xsl:apply-templates select="." mode="number"/>
+        <xsl:text>: </xsl:text>
+        <xsl:apply-templates select="head" mode="text"/>
+      </b>
+    </a>
+    <xsl:text>]</xsl:text>
+  </xsl:template>
+
+  <xsl:template match="div1|div2|div3|div4|div5" mode="specref">
+    <a xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:attribute name="href">
+        <xsl:call-template name="href.target"/>
+      </xsl:attribute>
+      <b>
+        <xsl:apply-templates select="." mode="divnum"/>
+        <xsl:apply-templates select="head" mode="text"/>
+      </b>
+    </a>
+  </xsl:template>
+
+  <xsl:template match="inform-div1" mode="specref">
+    <a xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:attribute name="href">
+        <xsl:call-template name="href.target"/>
+      </xsl:attribute>
+      <b>
+        <xsl:apply-templates select="." mode="divnum"/>
+        <xsl:apply-templates select="head" mode="text"/>
+      </b>
+    </a>
+  </xsl:template>
+
+  <xsl:template match="vcnote" mode="specref">
+    <b xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:text>[VC: </xsl:text>
+      <a>
+        <xsl:attribute name="href">
+          <xsl:call-template name="href.target"/>
+        </xsl:attribute>
+        <xsl:apply-templates select="head" mode="text"/>
+      </a>
+      <xsl:text>]</xsl:text>
+    </b>
+  </xsl:template>
+
+  <xsl:template match="prod" mode="specref">
+    <b xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:text>[PROD: </xsl:text>
+      <a>
+        <xsl:attribute name="href">
+          <xsl:call-template name="href.target"/>
+        </xsl:attribute>
+        <xsl:apply-templates select="." mode="number-simple"/>
+      </a>
+      <xsl:text>]</xsl:text>
+    </b>
+  </xsl:template>
+
+  <xsl:template match="label" mode="specref">
+    <b xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:text>[</xsl:text>
+      <a>
+        <xsl:attribute name="href">
+          <xsl:call-template name="href.target"/>
+        </xsl:attribute>
+        <xsl:value-of select="."/>
+      </a>
+      <xsl:text>]</xsl:text>
+    </b>
+  </xsl:template>
+
+  <xsl:template match="example" mode="specref">
+    <xsl:apply-templates select="head" mode="specref"/>
+  </xsl:template>
+
+  <xsl:template match="example/head" mode="specref">
+    <xsl:variable name="id">
+      <xsl:call-template name="object.id">
+        <xsl:with-param name="node" select=".."/>
+      </xsl:call-template>
+    </xsl:variable>
+
+    <a xmlns="http://www.w3.org/1999/xhtml" href="#{$id}">
+      <xsl:text>Example</xsl:text>
+    </a>
+  </xsl:template>
+
+  <!-- /Specref -->
+
+  <!-- status: the status of the spec -->
+  <xsl:template match="status">
+    <div xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:text>
+</xsl:text>
+      <h2>
+        <xsl:call-template name="anchor">
+          <xsl:with-param name="conditional" select="0"/>
+          <xsl:with-param name="default.id" select="'status'"/>
+        </xsl:call-template>
+        <xsl:text>Status of this Document</xsl:text>
+      </h2>
+      <xsl:if test="/spec/@role='editors-copy'">
+        <p><strong>This document is an editors' copy that has
+        no official standing.</strong></p>
+      </xsl:if>
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <!-- struct: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- sub: subscript -->
+  <xsl:template match="sub">
+    <sub xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </sub>
+  </xsl:template>
+
+  <!-- subtitle: secondary title of spec -->
+  <!-- handled directly within header -->
+  <xsl:template match="title">
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <!-- sup: superscript -->
+  <xsl:template match="sup">
+    <sup xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </sup>
+  </xsl:template>
+
+  <!-- table: the HTML table model adopted wholesale; note however that we -->
+  <!-- do this such that the XHTML stylesheet will do the right thing. -->
+  <xsl:template match="caption|col|colgroup|tfoot|thead|tr|tbody">
+    <xsl:element name="{local-name(.)}" namespace="http://www.w3.org/1999/xhtml">
+      <xsl:for-each select="@*">
+        <!-- Wait: some of these aren't HTML attributes after all... -->
+        <xsl:choose>
+          <xsl:when test="local-name(.) = 'role'">
+            <xsl:attribute name="class">
+              <xsl:value-of select="."/>
+            </xsl:attribute>
+          </xsl:when>
+          <xsl:when test="local-name(.) = 'diff'">
+            <!-- nop -->
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:copy-of select="."/>
+          </xsl:otherwise>
+        </xsl:choose>
+      </xsl:for-each>
+      <xsl:apply-templates/>
+    </xsl:element>
+  </xsl:template>
+
+  <!-- td/th are special -->
+  <xsl:template match="td|th">
+    <xsl:element name="{local-name(.)}" namespace="http://www.w3.org/1999/xhtml">
+      <xsl:for-each select="@*">
+        <!-- Wait: some of these aren't HTML attributes after all... -->
+	<xsl:choose>
+          <xsl:when test="local-name(.) = 'role'">
+            <xsl:attribute name="class">
+              <xsl:value-of select="."/>
+            </xsl:attribute>
+          </xsl:when>
+          <xsl:when test="local-name(.) = 'diff'"/>
+	  <xsl:when test="local-name(.) = 'colspan' and . = 1"/>
+	  <xsl:when test="local-name(.) = 'rowspan' and . = 1"/>
+	  <xsl:otherwise>
+            <xsl:copy-of select="."/>
+          </xsl:otherwise>
+        </xsl:choose>
+      </xsl:for-each>
+      <xsl:apply-templates/>
+    </xsl:element>
+  </xsl:template>
+
+  <!-- but table is special, to handle footnotes -->
+  <xsl:template match="table">
+    <xsl:call-template name="anchor"/>
+    <table xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:for-each select="@*">
+        <!-- Wait: some of these aren't HTML attributes after all... -->
+        <xsl:choose>
+          <xsl:when test="local-name(.) = 'role'">
+            <xsl:attribute name="class">
+              <xsl:value-of select="."/>
+            </xsl:attribute>
+          </xsl:when>
+          <xsl:when test="local-name(.) = 'diff' or local-name(.) = 'id'">
+            <!-- nop -->
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:copy-of select="."/>
+          </xsl:otherwise>
+        </xsl:choose>
+      </xsl:for-each>
+      <xsl:apply-templates/>
+
+      <xsl:if test=".//footnote">
+        <tbody>
+          <tr>
+            <td>
+              <xsl:apply-templates select=".//footnote" mode="table.notes"/>
+            </td>
+          </tr>
+        </tbody>
+      </xsl:if>
+    </table>
+  </xsl:template>
+
+  <!-- term: the actual mention of a term within a termdef -->
+  <xsl:template match="term">
+    <b xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></b>
+  </xsl:template>
+
+  <!-- termdef: sentence or phrase defining a term -->
+  <xsl:template match="termdef">
+    <xsl:text>[</xsl:text>
+    <a xmlns="http://www.w3.org/1999/xhtml" name="{@id}" id="{@id}" title="{@term}">
+      <xsl:text>Definition</xsl:text>
+    </a>
+    <xsl:text>: </xsl:text>
+    <xsl:apply-templates/>
+    <xsl:text>]</xsl:text>
+  </xsl:template>
+
+  <!-- termref: reference to a defined term -->
+  <xsl:template match="termref">
+    <a xmlns="http://www.w3.org/1999/xhtml" title="{key('ids', @def)/@term}">
+      <xsl:attribute name="href">
+        <xsl:call-template name="href.target">
+          <xsl:with-param name="target" select="key('ids', @def)"/>
+        </xsl:call-template>
+      </xsl:attribute>
+      <xsl:apply-templates/>
+    </a>
+  </xsl:template>
+
+  <!-- tfoot: see table -->
+  <!-- th: see table -->
+  <!-- thead: see table -->
+
+  <!-- title: title of the specification -->
+  <!-- called directly within header -->
+
+  <!-- titleref: reference to the title of any work -->
+  <!-- if a URL is given, link it -->
+  <xsl:template match="titleref">
+    <xsl:choose>
+      <xsl:when test="@href">
+        <a xmlns="http://www.w3.org/1999/xhtml" href="{@href}">
+          <cite>
+            <xsl:apply-templates/>
+          </cite>
+        </a>
+      </xsl:when>
+      <xsl:when test="ancestor::bibl/@href">
+        <a xmlns="http://www.w3.org/1999/xhtml" href="{ancestor::bibl/@href}">
+          <cite>
+            <xsl:apply-templates/>
+          </cite>
+        </a>
+      </xsl:when>
+      <xsl:otherwise>
+        <cite xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:apply-templates/>
+        </cite>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <!-- tr: see table -->
+
+  <!-- typedef: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- typename: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- ulist: unordered list -->
+  <xsl:template match="ulist">
+    <ul xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </ul>
+  </xsl:template>
+
+  <!-- union: -->
+  <!-- IDL stuff isn't handled yet -->
+
+  <!-- var: a variable -->
+  <xsl:template match="var">
+    <var xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </var>
+  </xsl:template>
+
+  <!-- vc: validity check reference in a formal production -->
+  <xsl:template match="vc">
+    <xsl:choose>
+      <xsl:when test="preceding-sibling::*[1][name()='rhs']">
+        <td xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:if test="@diff and $show.diff.markup != 0">
+            <xsl:attribute name="class">
+              <xsl:text>diff-</xsl:text>
+              <xsl:value-of select="@diff"/>
+            </xsl:attribute>
+          </xsl:if>
+          <a>
+            <xsl:attribute name="href">
+              <xsl:call-template name="href.target">
+                <xsl:with-param name="target" select="key('ids', @def)"/>
+              </xsl:call-template>
+            </xsl:attribute>
+            <xsl:text>[VC: </xsl:text>
+            <xsl:apply-templates select="key('ids', @def)/head" mode="text"/>
+            <xsl:text>]</xsl:text>
+          </a>
+        </td>
+      </xsl:when>
+      <xsl:otherwise>
+        <tr xmlns="http://www.w3.org/1999/xhtml" valign="baseline">
+          <td/><td/><td/><td/>
+          <td>
+            <xsl:if test="@diff and $show.diff.markup != 0">
+              <xsl:attribute name="class">
+                <xsl:text>diff-</xsl:text>
+                <xsl:value-of select="@diff"/>
+              </xsl:attribute>
+            </xsl:if>
+            <a>
+              <xsl:attribute name="href">
+                <xsl:call-template name="href.target">
+                  <xsl:with-param name="target" select="key('ids', @def)"/>
+                </xsl:call-template>
+              </xsl:attribute>
+              <xsl:text>[VC: </xsl:text>
+              <xsl:apply-templates select="key('ids', @def)/head" mode="text"/>
+              <xsl:text>]</xsl:text>
+            </a>
+          </td>
+        </tr>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <!-- vcnote: validity check note after a formal production -->
+  <xsl:template match="vcnote">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="constraint">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <!-- version: version of this spec -->
+  <!-- called directly from header -->
+  <xsl:template match="version">
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <!-- w3c-designation: canonical name for this spec -->
+  <!-- not used for formatting -->
+
+  <!-- wfc: well-formedness check reference in a formal production -->
+  <xsl:template match="wfc">
+    <xsl:choose>
+      <xsl:when test="preceding-sibling::*[1][name()='rhs']">
+        <td xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:if test="@diff and $show.diff.markup != 0">
+            <xsl:attribute name="class">
+              <xsl:text>diff-</xsl:text>
+              <xsl:value-of select="@diff"/>
+            </xsl:attribute>
+          </xsl:if>
+          <a>
+            <xsl:attribute name="href">
+              <xsl:call-template name="href.target">
+                <xsl:with-param name="target" select="key('ids', @def)"/>
+              </xsl:call-template>
+            </xsl:attribute>
+            <xsl:text>[WFC: </xsl:text>
+            <xsl:apply-templates select="key('ids', @def)/head" mode="text"/>
+            <xsl:text>]</xsl:text>
+          </a>
+        </td>
+      </xsl:when>
+      <xsl:otherwise>
+        <tr xmlns="http://www.w3.org/1999/xhtml" valign="baseline">
+          <td/><td/><td/><td/>
+          <td>
+            <xsl:if test="@diff and $show.diff.markup != 0">
+              <xsl:attribute name="class">
+                <xsl:text>diff-</xsl:text>
+                <xsl:value-of select="@diff"/>
+              </xsl:attribute>
+            </xsl:if>
+            <a>
+              <xsl:attribute name="href">
+                <xsl:call-template name="href.target">
+                  <xsl:with-param name="target" select="key('ids', @def)"/>
+                </xsl:call-template>
+              </xsl:attribute>
+              <xsl:text>[WFC: </xsl:text>
+              <xsl:apply-templates select="key('ids', @def)/head" mode="text"/>
+              <xsl:text>]</xsl:text>
+            </a>
+          </td>
+        </tr>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <!-- wfcnote: well-formedness check note after formal production -->
+  <xsl:template match="wfcnote">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="constraint">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
+  <!-- xnt: external non-terminal -->
+  <!-- xspecref: external specification reference -->
+  <!-- xtermref: external term reference -->
+  <!-- just link to URI provided -->
+  <xsl:template match="xnt | xspecref | xtermref">
+    <a xmlns="http://www.w3.org/1999/xhtml" href="{@href}">
+      <xsl:apply-templates/>
+    </a>
+  </xsl:template>
+
+  <!-- year: year of spec -->
+  <!-- only used in pudate; called directly from header template -->
+  <xsl:template match="year">
+    <xsl:apply-templates/>
+  </xsl:template>
+
+  <!-- Silly HTML elements used for pasting stuff in; shouldn't ever
+       show up in a spec, but they're easy to handle and you just
+       never know. -->
+  <xsl:template match="a|div|em|h1|h2|h3|h4|h5|h6|li|ol|pre|ul">
+    <xsl:element name="{local-name(.)}" namespace="http://www.w3.org/1999/xhtml">
+      <xsl:copy-of select="@*"/>
+      <xsl:apply-templates/>
+    </xsl:element>
+  </xsl:template>
+
+  <!-- legacy XML spec stuff -->
+  <xsl:template match="htable">
+    <table xmlns="http://www.w3.org/1999/xhtml" summary="HTML Table">
+      <xsl:copy-of select="@*"/>
+      <xsl:apply-templates/>
+    </table>
+  </xsl:template>
+  <xsl:template match="htbody">
+    <tbody xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:copy-of select="@*"/>
+      <xsl:apply-templates/>
+    </tbody>
+  </xsl:template>
+  <xsl:template match="key-term">
+    <b xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates/></b>
+  </xsl:template>
+  <xsl:template match="statusp">
+    <p xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </p>
+  </xsl:template>
+
+  <!-- legacy DocBook stuff -->
+  <xsl:template match="itemizedlist">
+    <ul xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </ul>
+  </xsl:template>
+  <xsl:template match="listitem">
+    <li xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </li>
+  </xsl:template>
+  <xsl:template match="orderedlist">
+    <ol xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </ol>
+  </xsl:template>
+  <xsl:template match="para">
+    <p xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </p>
+  </xsl:template>
+
+  <!-- mode: divnum -->
+  <xsl:template mode="divnum" match="div1">
+    <xsl:number format="1 "/>
+  </xsl:template>
+
+  <xsl:template mode="divnum" match="back/div1 | inform-div1">
+    <xsl:number count="div1 | inform-div1" format="A "/>
+  </xsl:template>
+
+  <xsl:template mode="divnum" match="front/div1 | front//div2 | front//div3 | front//div4 | front//div5"/>
+
+  <xsl:template mode="divnum" match="div2">
+    <xsl:number level="multiple" count="div1 | div2" format="1.1 "/>
+  </xsl:template>
+
+  <xsl:template mode="divnum" match="back//div2">
+    <xsl:number level="multiple" count="div1 | div2 | inform-div1" format="A.1 "/>
+  </xsl:template>
+
+  <xsl:template mode="divnum" match="div3">
+    <xsl:number level="multiple" count="div1 | div2 | div3" format="1.1.1 "/>
+  </xsl:template>
+
+  <xsl:template mode="divnum" match="back//div3">
+    <xsl:number level="multiple" count="div1 | div2 | div3 | inform-div1" format="A.1.1 "/>
+  </xsl:template>
+
+  <xsl:template mode="divnum" match="div4">
+    <xsl:number level="multiple" count="div1 | div2 | div3 | div4" format="1.1.1.1 "/>
+  </xsl:template>
+
+  <xsl:template mode="divnum" match="back//div4">
+    <xsl:number level="multiple" count="div1 | div2 | div3 | div4 | inform-div1" format="A.1.1.1 "/>
+  </xsl:template>
+
+  <xsl:template mode="divnum" match="div5">
+    <xsl:number level="multiple" count="div1 | div2 | div3 | div4 | div5" format="1.1.1.1.1 "/>
+  </xsl:template>
+
+  <xsl:template mode="divnum" match="back//div5">
+    <xsl:number level="multiple" count="div1 | div2 | div3 | div4 | div5 | inform-div1" format="A.1.1.1.1 "/>
+  </xsl:template>
+
+  <!-- mode: notes -->
+  <xsl:template mode="notes" match="footnote">
+    <xsl:variable name="this-note-id">
+      <xsl:choose>
+        <xsl:when test="@id">
+          <xsl:value-of select="@id"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="generate-id(.)"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+    <dt xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:text>[</xsl:text>
+      <a name="{$this-note-id}" id="{$this-note-id}" href="#FN-ANCH-{$this-note-id}">
+        <xsl:apply-templates select="." mode="number-simple"/>
+      </a>
+      <xsl:text>]</xsl:text>
+    </dt>
+    <dd xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates/>
+    </dd>
+  </xsl:template>
+
+  <!-- mode: table.notes -->
+  <xsl:template match="footnote" mode="table.notes">
+    <xsl:apply-templates mode="table.notes"/>
+  </xsl:template>
+
+  <xsl:template match="footnote/p[1]" mode="table.notes">
+    <xsl:variable name="this-note-id">
+      <xsl:choose>
+        <xsl:when test="../@id">
+          <xsl:value-of select="../@id"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="generate-id(parent::*)"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+    <p xmlns="http://www.w3.org/1999/xhtml" class="table.footnote">
+      <sup>
+        <a name="{$this-note-id}" id="{$this-note-id}" href="#FN-ANCH-{$this-note-id}">
+          <xsl:apply-templates select="parent::footnote" mode="number-simple"/>
+          <xsl:text>.</xsl:text>
+        </a>
+      </sup>
+      <xsl:text> </xsl:text>
+      <xsl:apply-templates/>
+    </p>
+  </xsl:template>
+
+  <!-- mode: number -->
+  <xsl:template mode="number" match="prod">
+    <xsl:text>[</xsl:text>
+    <xsl:apply-templates select="." mode="number-simple"/>
+    <xsl:text>]</xsl:text>
+  </xsl:template>
+
+  <xsl:template mode="number" match="issue">
+    <xsl:number level="single" format="1"/>
+  </xsl:template>
+
+  <xsl:template mode="number" match="prod[@diff='add']">
+    <xsl:text>[</xsl:text>
+    <xsl:apply-templates select="preceding::prod[not(@diff='add')][1]" mode="number-simple"/>
+<!--
+  Once again, this could be done right here, but XT won't hear of it.
+    <xsl:number level="any" count="prod[not(@diff='add')]"/>
+  -->
+    <xsl:number level="any" count="prod[@diff='add']" from="prod[not(@diff='add')]" format="a"/>
+    <xsl:text>]</xsl:text>
+  </xsl:template>
+
+  <!-- mode: number-simple -->
+  <xsl:template mode="number-simple" match="prod">
+    <!-- Using @num and auto-numbered productions is forbidden. -->
+    <xsl:choose>
+      <xsl:when test="@num">
+        <xsl:value-of select="@num"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:number level="any" count="prod[not(@diff='add')]"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <xsl:template mode="number-simple" match="footnote">
+    <xsl:number level="any" format="1"/>
+  </xsl:template>
+
+  <!-- mode: ref -->
+  <xsl:template match="lhs" mode="ref">
+    <tr xmlns="http://www.w3.org/1999/xhtml" valign="baseline">
+      <td>
+        <xsl:if test="ancestor-or-self::*/@diff and $show.diff.markup != 0">
+          <xsl:attribute name="class">
+            <xsl:text>diff-</xsl:text>
+            <xsl:value-of select="ancestor-or-self::*/@diff"/>
+          </xsl:attribute>
+        </xsl:if>
+        <xsl:apply-templates select="ancestor::prod" mode="number"/>
+        <xsl:text>   </xsl:text>
+      </td>
+      <td>
+        <xsl:if test="ancestor-or-self::*/@diff and $show.diff.markup != 0">
+          <xsl:attribute name="class">
+            <xsl:text>diff-</xsl:text>
+            <xsl:value-of select="ancestor-or-self::*/@diff"/>
+          </xsl:attribute>
+        </xsl:if>
+        <xsl:choose>
+          <xsl:when test="../@id">
+            <a href="#{../@id}">
+              <code><xsl:apply-templates/></code>
+            </a>
+          </xsl:when>
+          <xsl:otherwise>
+            <code><xsl:apply-templates/></code>
+          </xsl:otherwise>
+        </xsl:choose>
+      </td>
+      <td>
+        <xsl:if test="ancestor-or-self::*/@diff and $show.diff.markup != 0">
+          <xsl:attribute name="class">
+            <xsl:text>diff-</xsl:text>
+            <xsl:value-of select="ancestor-or-self::*/@diff"/>
+          </xsl:attribute>
+        </xsl:if>
+        <xsl:text>   ::=   </xsl:text>
+      </td>
+      <xsl:apply-templates select="following-sibling::*[1][name()='rhs']"/>
+    </tr>
+  </xsl:template>
+
+  <xsl:template mode="ref" match="prod">
+    <xsl:apply-templates select="lhs" mode="ref"/>
+    <xsl:apply-templates select="rhs[preceding-sibling::*[1][name()!='lhs']] |               com[preceding-sibling::*[1][name()!='rhs']] |               constraint[preceding-sibling::*[1][name()!='rhs']] |               vc[preceding-sibling::*[1][name()!='rhs']] |               wfc[preceding-sibling::*[1][name()!='rhs']]"/>
+  </xsl:template>
+
+  <!-- mode: text -->
+  <!-- most stuff processes just as text here, but some things should
+       be hidden -->
+  <xsl:template mode="text" match="ednote | footnote"/>
+
+  <!-- mode: toc -->
+  <xsl:template mode="toc" match="div1">
+    <xsl:apply-templates select="." mode="divnum"/>
+    <a xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:attribute name="href">
+        <xsl:call-template name="href.target">
+          <xsl:with-param name="target" select="."/>
+        </xsl:call-template>
+      </xsl:attribute>
+      <xsl:apply-templates select="head" mode="text"/>
+    </a>
+    <br xmlns="http://www.w3.org/1999/xhtml"/>
+    <xsl:text>
+</xsl:text>
+    <xsl:if test="$toc.level &gt; 1">
+      <xsl:apply-templates select="div2" mode="toc"/>
+    </xsl:if>
+  </xsl:template>
+
+  <xsl:template mode="toc" match="div2">
+    <xsl:text>    </xsl:text>
+    <xsl:apply-templates select="." mode="divnum"/>
+    <a xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:attribute name="href">
+        <xsl:call-template name="href.target">
+          <xsl:with-param name="target" select="."/>
+        </xsl:call-template>
+      </xsl:attribute>
+      <xsl:apply-templates select="head" mode="text"/>
+    </a>
+    <br xmlns="http://www.w3.org/1999/xhtml"/>
+    <xsl:text>
+</xsl:text>
+    <xsl:if test="$toc.level &gt; 2">
+      <xsl:apply-templates select="div3" mode="toc"/>
+    </xsl:if>
+  </xsl:template>
+
+  <xsl:template mode="toc" match="div3">
+    <xsl:text>        </xsl:text>
+    <xsl:apply-templates select="." mode="divnum"/>
+    <a xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:attribute name="href">
+        <xsl:call-template name="href.target">
+          <xsl:with-param name="target" select="."/>
+        </xsl:call-template>
+      </xsl:attribute>
+      <xsl:apply-templates select="head" mode="text"/>
+    </a>
+    <br xmlns="http://www.w3.org/1999/xhtml"/>
+    <xsl:text>
+</xsl:text>
+    <xsl:if test="$toc.level &gt; 3">
+      <xsl:apply-templates select="div4" mode="toc"/>
+    </xsl:if>
+  </xsl:template>
+
+  <xsl:template mode="toc" match="div4">
+    <xsl:text>            </xsl:text>
+    <xsl:apply-templates select="." mode="divnum"/>
+    <a xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:attribute name="href">
+        <xsl:call-template name="href.target">
+          <xsl:with-param name="target" select="."/>
+        </xsl:call-template>
+      </xsl:attribute>
+      <xsl:apply-templates select="head" mode="text"/>
+    </a>
+    <br xmlns="http://www.w3.org/1999/xhtml"/>
+    <xsl:text>
+</xsl:text>
+    <xsl:if test="$toc.level &gt; 4">
+      <xsl:apply-templates select="div5" mode="toc"/>
+    </xsl:if>
+  </xsl:template>
+
+  <xsl:template mode="toc" match="div5">
+    <xsl:text>                </xsl:text>
+    <xsl:apply-templates select="." mode="divnum"/>
+    <a xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:attribute name="href">
+        <xsl:call-template name="href.target">
+          <xsl:with-param name="target" select="."/>
+        </xsl:call-template>
+      </xsl:attribute>
+      <xsl:apply-templates select="head" mode="text"/>
+    </a>
+    <br xmlns="http://www.w3.org/1999/xhtml"/>
+    <xsl:text>
+</xsl:text>
+  </xsl:template>
+
+  <xsl:template mode="toc" match="inform-div1">
+    <xsl:apply-templates select="." mode="divnum"/>
+    <a xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:attribute name="href">
+        <xsl:call-template name="href.target">
+          <xsl:with-param name="target" select="."/>
+        </xsl:call-template>
+      </xsl:attribute>
+      <xsl:apply-templates select="head" mode="text"/>
+    </a>
+    <xsl:text> (Non-Normative)</xsl:text>
+    <br xmlns="http://www.w3.org/1999/xhtml"/>
+    <xsl:text>
+</xsl:text>
+    <xsl:if test="$toc.level &gt; 2">
+      <xsl:apply-templates select="div2" mode="toc"/>
+    </xsl:if>
+  </xsl:template>
+
+  <xsl:template name="css">
+    <style xmlns="http://www.w3.org/1999/xhtml" type="text/css">
+      <xsl:text>
+code           { font-family: monospace; }
+
+div.constraint,
+div.issue,
+div.note,
+div.notice     { margin-left: 2em; }
+
+ol.enumar      { list-style-type: decimal; }
+ol.enumla      { list-style-type: lower-alpha; }
+ol.enumlr      { list-style-type: lower-roman; }
+ol.enumua      { list-style-type: upper-alpha; }
+ol.enumur      { list-style-type: upper-roman; }
+
+</xsl:text>
+      <xsl:if test="$tabular.examples = 0">
+        <xsl:text>
+div.exampleInner pre { margin-left: 1em;
+                       margin-top: 0em; margin-bottom: 0em}
+div.exampleOuter {border: 4px double gray;
+                  margin: 0em; padding: 0em}
+div.exampleInner { background-color: #d5dee3;
+                   border-top-width: 4px;
+                   border-top-style: double;
+                   border-top-color: #d3d3d3;
+                   border-bottom-width: 4px;
+                   border-bottom-style: double;
+                   border-bottom-color: #d3d3d3;
+                   padding: 4px; margin: 0em }
+div.exampleWrapper { margin: 4px }
+div.exampleHeader { font-weight: bold;
+                    margin: 4px}
+</xsl:text>
+      </xsl:if>
+      <xsl:value-of select="$additional.css"/>
+    </style>
+    <link xmlns="http://www.w3.org/1999/xhtml" rel="stylesheet" type="text/css">
+      <xsl:attribute name="href">
+        <xsl:text>http://www.w3.org/StyleSheets/TR/</xsl:text>
+        <xsl:choose>
+          <xsl:when test="/spec/@role='editors-copy'">W3C-ED</xsl:when>
+          <xsl:otherwise>
+            <xsl:choose>
+	      <!-- Editor's review drafts are a special case. -->
+              <xsl:when test="/spec/@w3c-doctype='review'          or contains(/spec/header/w3c-doctype, 'Editor')">W3C-ED</xsl:when>
+              <xsl:when test="/spec/@w3c-doctype='wd'">W3C-WD</xsl:when>
+              <xsl:when test="/spec/@w3c-doctype='rec'">W3C-REC</xsl:when>
+              <xsl:when test="/spec/@w3c-doctype='pr'">W3C-PR</xsl:when>
+              <xsl:when test="/spec/@w3c-doctype='per'">W3C-PER</xsl:when>
+              <xsl:when test="/spec/@w3c-doctype='cr'">W3C-CR</xsl:when>
+              <xsl:when test="/spec/@w3c-doctype='note'">W3C-NOTE</xsl:when>
+              <xsl:when test="/spec/@w3c-doctype='wgnote'">W3C-WG-NOTE</xsl:when>
+              <xsl:when test="/spec/@w3c-doctype='memsub'">W3C-Member-SUBM</xsl:when>
+              <xsl:when test="/spec/@w3c-doctype='teamsub'">W3C-Team-SUBM</xsl:when>
+              <xsl:otherwise>base</xsl:otherwise>
+            </xsl:choose>
+          </xsl:otherwise>
+        </xsl:choose>
+        <xsl:text>.css</xsl:text>
+      </xsl:attribute>
+    </link>
+  </xsl:template>
+
+  <xsl:template name="additional-head">
+    <!-- nop -->
+  </xsl:template>
+
+  <xsl:template name="href.target">
+    <xsl:param name="target" select="."/>
+
+    <xsl:text>#</xsl:text>
+
+    <xsl:choose>
+      <xsl:when test="$target/@id">
+        <xsl:value-of select="$target/@id"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:value-of select="generate-id($target)"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+<!-- ================================================================= -->
+
+<xsl:template name="object.id">
+  <xsl:param name="node" select="."/>
+  <xsl:param name="default.id" select="''"/>
+
+  <xsl:choose>
+    <!-- can't use the default ID if it's used somewhere else in the document! -->
+    <xsl:when test="$default.id != '' and not(key('ids', $default.id))">
+      <xsl:value-of select="$default.id"/>
+    </xsl:when>
+    <xsl:when test="$node/@id">
+      <xsl:value-of select="$node/@id"/>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:value-of select="generate-id($node)"/>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
+<xsl:template name="anchor">
+  <xsl:param name="node" select="."/>
+  <xsl:param name="conditional" select="1"/>
+  <xsl:param name="default.id" select="''"/>
+
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id">
+      <xsl:with-param name="node" select="$node"/>
+      <xsl:with-param name="default.id" select="$default.id"/>
+    </xsl:call-template>
+  </xsl:variable>
+  <xsl:if test="$conditional = 0 or $node/@id">
+    <a xmlns="http://www.w3.org/1999/xhtml" name="{$id}" id="{$id}"/>
+  </xsl:if>
+</xsl:template>
+
+<!-- ================================================================= -->
+
+</xsl:transform>