Phase 1 of renaming tt.* to ttaf1-dfxp.*
authorGlenn Adams <glenn@skynav.com>
Fri, 12 Dec 2008 11:15:04 +0000
changeset 56 bf98751ae07c
parent 55 beb5255f06ff
child 57 73a3b18a1fff
Phase 1 of renaming tt.* to ttaf1-dfxp.*
spec/build.xml
spec/ttaf1-dfxp.html
spec/ttaf1-dfxp.xml
spec/xmlspec-ttaf1-dfxp.xsl
--- a/spec/build.xml	Fri Dec 12 02:48:33 2008 +0000
+++ b/spec/build.xml	Fri Dec 12 11:15:04 2008 +0000
@@ -14,7 +14,7 @@
     <property name="last-public-draft" value="20070706"/>
 
     <target name="clean">
-        <delete quiet="true" file="tt.html"/>
+        <delete quiet="true" file="ttaf1-dfxp.html"/>
     </target>
 
     <target name="validate-xsl" description="Validates all XML files.">
@@ -30,7 +30,7 @@
     </target>
 
     <target name="validate-tt-specs" description="Validates all Timed Text spec files.">
-        <xmlvalidate lenient="false" warn="yes" file="tt.xml"/>
+        <xmlvalidate lenient="false" warn="yes" file="ttaf1-dfxp.xml"/>
     </target>
 
     <target name="validate" depends="validate-xsl,validate-svg,validate-tt-specs"/>
@@ -60,12 +60,12 @@
     </target>
 
     <target name="html" description="Transforms xml into html.">
-        <echo>Generating tt.html</echo>
+        <echo>Generating ttaf1-dfxp.html</echo>
         <java fork="true" classname="net.sf.saxon.Transform">
             <classpath refid="saxon8.classpath"/>
             <arg value="-o"/>
-            <arg value="${htmlOutputDir}tt.html"/>
-            <arg value="tt.xml"/>
+            <arg value="${htmlOutputDir}ttaf1-dfxp.html"/>
+            <arg value="ttaf1-dfxp.xml"/>
             <arg value="${stylesheet}"/>
             <arg value="showAssertions=true"/>
         </java>    
@@ -83,7 +83,7 @@
             <arg value="both"/>
             <arg value="-words"/>
             <arg value="tt-tr${last-public-draft}.xml"/>
-            <arg value="tt.xml"/>
+            <arg value="ttaf1-dfxp.xml"/>
             <arg value="tt-diff${last-public-draft}.xml"/>
             <classpath path="diffmk.jar:DiffMk.properties"> </classpath>
         </java>
@@ -115,7 +115,7 @@
 
     <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%252Ftt.xml%26forceXML%3Don" dest="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"
@@ -126,7 +126,7 @@
     <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>tt.html is ready for CVS commit</echo>
+      <echo>ttaf1-dfxp.html is ready for CVS commit</echo>
       <echo>Use target "generate" to avoid regenerating changelog.xml and acknowledgments.xml</echo>
     </target>
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/spec/ttaf1-dfxp.html	Fri Dec 12 11:15:04 2008 +0000
@@ -0,0 +1,158 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html
+  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-us"><head><title>Timed Text (TT) Authoring Format 1.0 – Distribution Format Exchange Profile (DFXP)</title><style type="text/css">
+/**/
+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; }
+
+dt.label       { display: run-in; }
+
+li, p           { margin-top: 0.3em;
+                 margin-bottom: 0.3em; }
+
+.diff-chg       { background-color: yellow; }
+.diff-del       { background-color: red; text-decoration: line-through;}
+.diff-add       { background-color: lime; }
+
+table          { empty-cells: show; }
+
+table caption {
+        font-weight: normal;
+        font-style: italic;
+        text-align: left;
+        margin-bottom: .5em;
+}
+
+div.issue {
+  color: red;
+}
+.rfc2119 {
+  font-variant: small-caps;
+}
+
+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}
+
+div.boxedtext {
+   border: solid #bebebe 1px;
+   margin: 2em 1em 1em 2em;
+ }
+
+span.practicelab {
+   margin: 1.5em 0.5em 1em 1em;
+   font-weight: bold;
+   font-style: italic;
+ }
+
+span.practicelab   { background: #dfffff; }
+
+ span.practicelab {
+   position: relative;
+   padding: 0 0.5em;
+   top: -1.5em;
+ }
+p.practice
+{
+   margin: 1.5em 0.5em 1em 1em;
+ }
+
+@media screen {
+ p.practice {
+   position: relative;
+   top: -2em;
+   padding: 0;
+   margin: 1.5em 0.5em -1em 1em;
+}
+}
+/**/
+      </style><link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/base.css"/></head><body><div class="head">
+<h1><a name="title" id="title"/>Timed Text (TT) Authoring Format 1.0 – Distribution Format Exchange Profile (DFXP)</h1>
+<h2><a name="w3c-doctype" id="w3c-doctype"/>Editors' copy $Date$ @@ @@@@ @@@@</h2><dl><dt>This version:</dt><dd>
+      <a href="tt.html">tt.html</a>
+    </dd><dt>Latest version:</dt><dd><a href="http://dev.w3.org/cvsweb/~checkout~/2008/tt/spec/tt.html?content-type=text/html; charset=utf-8">http://dev.w3.org/cvsweb/~checkout~/2008/tt/spec/tt.html?content-type=text/html; charset=utf-8</a></dd><dt>Editor:</dt><dd>Glenn Adams, Samsung</dd></dl><p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © @@@@ <a href="http://www.w3.org/"><acronym title="World Wide Web Consortium">W3C</acronym></a><sup>®</sup> (<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology">MIT</acronym></a>, <a href="http://www.ercim.org/"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>, <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.</p></div><hr/><div>
+<h2><a name="abstract" id="abstract"/>Abstract</h2><p>
+	This is the abstract.
+    </p></div><div>
+<h2><a name="status" id="status"/>Status of this Document</h2><p><strong>This document is an editors' copy that has
+        no official standing.</strong></p><p/></div><div class="toc">
+<h2><a name="contents" id="contents"/>Table of Contents</h2><p class="toc">1 <a href="#introduction">Introduction</a><br/>
+</p>
+<h3><a name="appendices" id="appendices"/>Appendices</h3><p class="toc">A <a href="#references">References</a><br/>
+B <a href="#acknowledgments">Acknowledgements</a> (Non-Normative)<br/>
+C <a href="#change-log">Change Log</a> (Non-Normative)<br/>
+</p></div><hr/><div class="body"><div class="div1">
+<h2><a name="introduction" id="introduction"/>1 Introduction</h2><p>This is a test.</p></div></div><div class="back"><div class="div1">
+<h2><a name="references" id="references"/>A References</h2><dl><dt class="label"><a name="rfc2119"/>[IETF RFC 2119] </dt><dd>
+    <cite><a href="http://www.ietf.org/rfc/rfc2119.txt">Key words for use in RFCs to Indicate Requirement
+    Levels</a></cite>, S. Bradner, Author. Internet Engineering Task
+    Force, March 1997.  Available at
+    http://www.ietf.org/rfc/rfc2119.txt.
+  </dd><dt class="label"><a name="rfc3987"/>[IETF RFC 3987] </dt><dd>
+    <cite><a href="http://www.ietf.org/rfc/rfc3987.txt">Internationalized Resource Identifiers (IRIs)
+    </a></cite>, M.  Duerst and M. Suignard, Authors. Internet
+    Engineering Task Force, January 2005. Available at
+    http://www.ietf.org/rfc/rfc3987.txt.
+  </dd><dt class="label"><a name="xml"/>[XML 1.0] </dt><dd>
+    <cite><a href="http://www.w3.org/TR/2006/REC-xml-20060816">Extensible Markup Language (XML) 1.0 (Fourth
+    Edition)</a></cite>, T. Bray, J. Paoli, C. M. Sperberg-McQueen,
+    E. Maler, and François Yergeau, Editors. World Wide Web Consortium, 10 February
+    1998, revised 16 August 2006. This version of the XML 1.0
+    Recommendation is http://www.w3.org/TR/2006/REC-xml-20060816.  The
+    <a href="http://www.w3.org/TR/REC-xml/">latest version of XML
+    1.0</a> is available at http://www.w3.org/TR/REC-xml.
+  </dd><dt class="label"><a name="XML-NS"/>[XML Namespaces] </dt><dd>
+    <cite><a href="http://www.w3.org/TR/2006/REC-xml-names-20060816/">Namespaces in XML 1.0</a></cite>, T. Bray, D. Hollander, A.
+    Layman, and R. Tobin, Editors. World Wide Web Consortium, 14 January 1999,
+    revised 16 August 2006. This version of the Namespaces in XML
+    Recommendation is http://www.w3.org/TR/2006/REC-xml-names-20060816/. The
+    <a href="http://www.w3.org/TR/REC-xml-names/">latest version of
+    Namespaces in XML</a> is available at
+  http://www.w3.org/TR/REC-xml-names. </dd><dt class="label"><a name="XMLSchemaPart1"/>[XML Schema Structures] </dt><dd>
+    <cite><a href="http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/">XML Schema Part 1: Structures Second Edition</a></cite>, H.
+    Thompson, D. Beech, M. Maloney, and N. Mendelsohn, Editors. World Wide Web
+    Consortium, 2 May 2001, revised 28 October 2004. This version of the XML
+    Schema Part 1 Recommendation is
+    http://www.w3.org/TR/2004/REC-xmlschema-1-20041028. The <a href="http://www.w3.org/TR/xmlschema-1/">latest version of XML Schema
+  Part 1</a> is available at http://www.w3.org/TR/xmlschema-1. </dd><dt class="label"><a name="XMLSchemaPart2"/>[XML Schema Datatypes] </dt><dd>
+    <cite><a href="http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/">XML Schema Part 2: Datatypes Second Edition</a></cite>, P. Byron
+    and A. Malhotra, Editors. World Wide Web Consortium, 2 May 2001, revised 28
+    October 2004. This version of the XML Schema Part 2 Recommendation is
+    http://www.w3.org/TR/2004/REC-xmlschema-2-20041028. The <a href="http://www.w3.org/TR/xmlschema-2/">latest version of XML Schema
+  Part 2</a> is available at http://www.w3.org/TR/xmlschema-2. </dd></dl></div><div class="div1">
+<h2><a name="acknowledgments" id="acknowledgments"/>B Acknowledgements (Non-Normative)</h2><p>This document is the work of the <a href="http://www.w3.org/AudioVideo/TT/">W3C Timed Text Working Group</a>.</p><p>
+    Members of the Working Group are (at the time of writing, and by
+    alphabetical order):
+      
+  </p><p>
+    Previous members of the Working Group were:
+      
+  </p><p>
+    The people who have contributed to <a href="http://lists.w3.org/Archives/Public/public-tt/">discussions
+    on public-tt@w3.org</a> are also gratefully
+    acknowledged.
+  </p></div><div class="div1">
+<h2><a name="change-log" id="change-log"/>C Change Log (Non-Normative)</h2><table xmlns:a="http://www.w3.org/2005/Atom" xmlns:h="http://www.w3.org/1999/xhtml" border="1"><tr><th>Date</th><th>Editor</th><th>Description</th></tr></table></div></div></body></html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/spec/ttaf1-dfxp.xml	Fri Dec 12 11:15:04 2008 +0000
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- $Id$ -->
+<!DOCTYPE spec PUBLIC "-//W3C//DTD Specification V2.10//EN" "xmlspec.dtd" [
+<!ENTITY prefix "tt">
+<!ENTITY % entities SYSTEM "entities.dtd" >
+%entities;
+<!ENTITY status SYSTEM "status.xml">
+<!ENTITY document.status "Editors' copy $Date$">
+<!ENTITY title "&title;">
+<!ENTITY prevloc "@@@">
+<!ENTITY hellip "&#8230;">
+<!ENTITY trade "&#x2122;">
+<!ENTITY mdash "&#x2014;">
+]>
+<?xml-stylesheet type='text/xsl' href='xmlspec-ttaf1-dfxp.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="authors">
+      <author>
+      	<name>Glenn Adams</name>
+      	<affiliation>Samsung</affiliation>
+      </author>
+    </authlist>
+    
+    <abstract>
+      <p>
+	This is the abstract.
+    </p>
+    
+    </abstract>
+    
+    &status;
+    
+    <langusage>
+      <language id='en-us'>English</language>
+    </langusage>
+    <revisiondesc>
+      <p>Last Modified: $Date$</p>
+    </revisiondesc>
+  </header>
+  
+  <body>
+    
+    <div1 id="introduction">
+      <head>Introduction</head>
+      
+      <p>This is a test.</p>
+
+  </div1>
+
+</body>
+
+<back>
+
+
+
+  <div1 id="references">
+  <head>References</head>
+
+  <blist>
+
+  <bibl key="IETF RFC 2119" href="http://www.ietf.org/rfc/rfc2119.txt"
+	id="rfc2119">
+    <titleref>Key words for use in RFCs to Indicate Requirement
+    Levels</titleref>, S. Bradner, Author. Internet Engineering Task
+    Force, March 1997.  Available at
+    http://www.ietf.org/rfc/rfc2119.txt.
+  </bibl>
+      
+  <bibl key="IETF RFC 3987" href="http://www.ietf.org/rfc/rfc3987.txt"
+	id="rfc3987">
+    <titleref>Internationalized Resource Identifiers (IRIs)
+    </titleref>, M.  Duerst and M. Suignard, Authors. Internet
+    Engineering Task Force, January 2005. Available at
+    http://www.ietf.org/rfc/rfc3987.txt.
+  </bibl>
+  
+  <bibl id="xml" key="XML 1.0" href="http://www.w3.org/TR/2006/REC-xml-20060816">
+    <titleref>Extensible Markup Language (XML) 1.0 (Fourth
+    Edition)</titleref>, T. Bray, J. Paoli, C. M. Sperberg-McQueen,
+    E. Maler, and François Yergeau, Editors. World Wide Web Consortium, 10 February
+    1998, revised 16 August 2006. This version of the XML 1.0
+    Recommendation is http://www.w3.org/TR/2006/REC-xml-20060816.  The
+    <loc href="http://www.w3.org/TR/REC-xml/">latest version of XML
+    1.0</loc> is available at http://www.w3.org/TR/REC-xml.
+  </bibl>
+
+  <bibl id="XML-NS" key="XML Namespaces"
+	href="http://www.w3.org/TR/2006/REC-xml-names-20060816/">
+    <titleref>Namespaces in XML 1.0</titleref>, T. Bray, D. Hollander, A.
+    Layman, and R. Tobin, Editors. World Wide Web Consortium, 14 January 1999,
+    revised 16 August 2006. This version of the Namespaces in XML
+    Recommendation is http://www.w3.org/TR/2006/REC-xml-names-20060816/. The
+    <loc href="http://www.w3.org/TR/REC-xml-names/">latest version of
+    Namespaces in XML</loc> is available at
+  http://www.w3.org/TR/REC-xml-names. </bibl>
+
+  <bibl id="XMLSchemaPart1" key="XML Schema Structures"
+	href="http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/">
+    <titleref>XML Schema Part 1: Structures Second Edition</titleref>, H.
+    Thompson, D. Beech, M. Maloney, and N. Mendelsohn, Editors. World Wide Web
+    Consortium, 2 May 2001, revised 28 October 2004. This version of the XML
+    Schema Part 1 Recommendation is
+    http://www.w3.org/TR/2004/REC-xmlschema-1-20041028. The <loc
+    href="http://www.w3.org/TR/xmlschema-1/">latest version of XML Schema
+  Part 1</loc> is available at http://www.w3.org/TR/xmlschema-1. </bibl>
+  <bibl key="XML Schema Datatypes" id="XMLSchemaPart2"
+	href="http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/">
+    <titleref>XML Schema Part 2: Datatypes Second Edition</titleref>, P. Byron
+    and A. Malhotra, Editors. World Wide Web Consortium, 2 May 2001, revised 28
+    October 2004. This version of the XML Schema Part 2 Recommendation is
+    http://www.w3.org/TR/2004/REC-xmlschema-2-20041028. The <loc
+    href="http://www.w3.org/TR/xmlschema-2/">latest version of XML Schema
+  Part 2</loc> is available at http://www.w3.org/TR/xmlschema-2. </bibl>
+  </blist>
+
+  </div1> <!-- references -->
+
+
+  &acknowledgements;
+
+        <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/spec/xmlspec-ttaf1-dfxp.xsl	Fri Dec 12 11:15:04 2008 +0000
@@ -0,0 +1,528 @@
+<?xml version="1.0"?>
+<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: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"/> 
+
+    <xsl:template match="inform-div1[head='Change Log']/p">
+        <xsl:apply-templates select="document('changelog.xml')">
+        </xsl:apply-templates>
+    </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">
+<!--        <xsl:text>[</xsl:text> -->
+        <cite xmlns="http://www.w3.org/1999/xhtml">
+            <a xmlns="http://www.w3.org/1999/xhtml">
+                <xsl:attribute name="href">
+                    <xsl:call-template name="href.target">
+                        <xsl:with-param name="target" select="id(@ref)"/>
+                    </xsl:call-template>
+                </xsl:attribute>
+                <xsl:choose>
+                    <xsl:when test="id(@ref)/@key">
+                        <xsl:value-of select="id(@ref)/@key"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:value-of select="@ref"/>
+                    </xsl:otherwise>
+                </xsl:choose>
+            </a>
+        </cite>
+<!--        <xsl:text>]</xsl:text> -->
+    </xsl:template>
+    <xsl:template match="bibl">
+        <dt xmlns="http://www.w3.org/1999/xhtml" class="label">
+            <xsl:attribute name="class">
+                <xsl:choose>
+                    <xsl:when test="@diff and $show.diff.markup != 0">
+                        <xsl:text>diff-</xsl:text>
+                        <xsl:value-of select="@diff"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:text>label</xsl:text>
+                    </xsl:otherwise>
+                </xsl:choose>
+            </xsl:attribute>
+            <xsl:if test="@id">
+                <a xmlns="http://www.w3.org/1999/xhtml" name="{@id}"/>
+            </xsl:if>
+            <xsl:text>[</xsl:text>
+            <xsl:choose>
+                <xsl:when test="@key">
+                    <xsl:value-of select="@key"/>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:value-of select="@id"/>
+                </xsl:otherwise>
+            </xsl:choose>
+            <xsl:text>] </xsl:text>
+        </dt>
+        <dd 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/>
+            <xsl:if test="not(titleref) and @href">
+                <xsl:text> (See </xsl:text>
+                <cite xmlns="http://www.w3.org/1999/xhtml">
+                    <a xmlns="http://www.w3.org/1999/xhtml" href="{@href}">
+                        <xsl:value-of select="@href"/>
+                    </a>
+                </cite>
+                <xsl:text>.)</xsl:text>
+            </xsl:if>
+        </dd>
+    </xsl:template>
+    <xsl:template match="titleref">
+        <xsl:choose>
+            <xsl:when test="../@href">
+                <cite xmlns="http://www.w3.org/1999/xhtml">
+                    <a xmlns="http://www.w3.org/1999/xhtml" href="{../@href}">
+                        <xsl:apply-templates/>
+                    </a>
+                </cite>
+            </xsl:when>
+            <xsl:otherwise>
+                <cite xmlns="http://www.w3.org/1999/xhtml">
+                    <xsl:apply-templates/>
+                </cite>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    <!--
+    <xsl:template match="b">
+        <b xmlns="http://www.w3.org/1999/xhtml">
+            <xsl:apply-templates/>
+        </b>
+    </xsl:template>
+    <xsl:template match="u">
+        <u xmlns="http://www.w3.org/1999/xhtml">
+            <xsl:apply-templates/>
+        </u>
+    </xsl:template>
+    <xsl:template match="i">
+        <i xmlns="http://www.w3.org/1999/xhtml">
+            <xsl:apply-templates/>
+        </i>
+    </xsl:template>
+-->
+    <xsl:template match="emph[@role='infoset-property']">
+        <strong xmlns="http://www.w3.org/1999/xhtml">
+            <xsl:text>[</xsl:text>
+            <xsl:apply-templates/>
+            <xsl:text>]</xsl:text>
+        </strong>
+    </xsl:template>
+
+    <!-- Filtering term definitions in the terminology section. These are taken from the WS-Policy-Framework document and are handled separately in extract-glist.xsl .-->
+    <xsl:template match="ulist[@role='termreference']"/>
+
+    <!-- Adding numbers to examples automatically. Template taken from xmlspec.xsl and modified. -->
+    <xsl:template match="eg[@role='needs-numbering']">
+        <xsl:variable name="content">
+            <pre xmlns="http://www.w3.org/1999/xhtml">
+        <xsl:if test="@diff and $show.diff.markup='1'">
+          <xsl:attribute name="class">
+            <xsl:text>diff-</xsl:text>
+            <xsl:value-of select="@diff"/>
+          </xsl:attribute>
+        </xsl:if>
+     <xsl:call-template name="addLineNumbers"/>
+      </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 xmlns="http://www.w3.org/1999/xhtml">
+                        <td xmlns="http://www.w3.org/1999/xhtml">
+                            <xsl:copy-of select="$content"/>
+                        </td>
+                    </tr>
+                </table>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    <xsl:template name="addLineNumbers">
+        <xsl:variable name="egWithLb" as="item()*">
+            <egWithLb>
+                <lb/>
+                <xsl:for-each select="text()|node()">
+                    <xsl:choose>
+                        <xsl:when test="self::text()">
+                            <xsl:analyze-string select="." regex="&#xA;">
+                                <xsl:matching-substring>
+                                    <xsl:text>&#xA;</xsl:text>
+                                    <lb/>
+                                </xsl:matching-substring>
+                                <xsl:non-matching-substring>
+                                    <xsl:value-of select="."/>
+                                </xsl:non-matching-substring>
+                            </xsl:analyze-string>
+                        </xsl:when>
+                        <xsl:when test="self::emph">
+                            <b xmlns="http://www.w3.org/1999/xhtml">
+                                <xsl:copy-of select="*|text()"/>
+                            </b>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <xsl:copy-of select="."/>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </xsl:for-each>
+            </egWithLb>
+        </xsl:variable>
+        <xsl:apply-templates select="$egWithLb/node()" mode="addLineNumbers"/>
+    </xsl:template>
+    <xsl:template match="lb" mode="addLineNumbers">
+        <xsl:choose>
+            <xsl:when test="not(contains(self::lb/following-sibling::text()[1],'xmlns'))">
+                <xsl:text>(</xsl:text>
+                <xsl:number format="01"
+                    count="lb[not(contains(self::lb/following-sibling::text()[1],'xmlns'))]"/>
+                <xsl:text>) </xsl:text>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+    <xsl:template match="node()" mode="addLineNumbers">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+
+    <!-- Used for wsdl11elementidentifiers.xml to allow italics within 
+code -->
+    <xsl:template match="code[@role='code-emph']">
+        <code xmlns="http://www.w3.org/1999/xhtml" style="font-style: italic;">
+            <xsl:value-of select="."/>
+        </code>
+    </xsl:template>
+<!-- Template for Best practices output, used only for guidelines document.-->
+    <xsl:template match="p[@role='practice']">
+        <xsl:variable name="practicenumber">
+            <xsl:number count="p[@role='practice']" level="any"/>
+        </xsl:variable>
+        <div xmlns="http://www.w3.org/1999/xhtml" class="boxedtext">
+            <p xmlns="http://www.w3.org/1999/xhtml">
+                <a xmlns="http://www.w3.org/1999/xhtml" name="{@id}" id="{@id}"/>
+                <span xmlns="http://www.w3.org/1999/xhtml" class="practicelab">
+                    <xsl:text>Best
+Practice </xsl:text>
+                    <xsl:value-of select="$practicenumber"/>
+                    <xsl:text>: </xsl:text>
+                    <xsl:value-of select="quote[1]"/>
+                </span>
+            </p>
+            <p xmlns="http://www.w3.org/1999/xhtml" class="practice">
+                <xsl:value-of select="quote[2]"/>
+            </p>
+        </div>
+    </xsl:template>
+    <xsl:template name="css">
+     <style xmlns="http://www.w3.org/1999/xhtml" type="text/css">
+/*<![CDATA[*/
+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; }
+
+dt.label       { display: run-in; }
+
+li, p           { margin-top: 0.3em;
+                 margin-bottom: 0.3em; }
+
+.diff-chg       { background-color: yellow; }
+.diff-del       { background-color: red; text-decoration: line-through;}
+.diff-add       { background-color: lime; }
+
+table          { empty-cells: show; }
+
+table caption {
+        font-weight: normal;
+        font-style: italic;
+        text-align: left;
+        margin-bottom: .5em;
+}
+
+div.issue {
+  color: red;
+}
+.rfc2119 {
+  font-variant: small-caps;
+}
+
+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}
+
+div.boxedtext {
+   border: solid #bebebe 1px;
+   margin: 2em 1em 1em 2em;
+ }
+
+span.practicelab {
+   margin: 1.5em 0.5em 1em 1em;
+   font-weight: bold;
+   font-style: italic;
+ }
+
+span.practicelab   { background: #dfffff; }
+
+ span.practicelab {
+   position: relative;
+   padding: 0 0.5em;
+   top: -1.5em;
+ }
+p.practice
+{
+   margin: 1.5em 0.5em 1em 1em;
+ }
+
+@media screen {
+ p.practice {
+   position: relative;
+   top: -2em;
+   padding: 0;
+   margin: 1.5em 0.5em -1em 1em;
+}
+}
+/*]]>*/
+      <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'">base</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')"
+			>base</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> 
+    
+    <!-- Necessary for guidelines document: BP numbering -->
+      <xsl:template mode="number" match="p[@role='practice']">
+    <xsl:number count="p[@role='practice']" level="any" format="1. "/>
+  </xsl:template>
+  <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="$target[local-name()='p' and @role='practice']">
+            <a xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:attribute name="href">
+            <xsl:call-template name="href.target">
+              <xsl:with-param name="target" select="id(@ref)"/>
+            </xsl:call-template>
+          </xsl:attribute>
+          <b xmlns="http://www.w3.org/1999/xhtml">
+            <xsl:apply-templates select="id(@ref)" mode="number"/>
+            <xsl:apply-templates select="id(@ref)/quote[1]" mode="text"/>
+          </b>
+        </a>
+        </xsl:when>
+      <xsl:when test="local-name($target)='issue'">
+        <xsl:text>[</xsl:text>
+        <a xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:attribute name="href">
+            <xsl:call-template name="href.target">
+              <xsl:with-param name="target" select="id(@ref)"/>
+            </xsl:call-template>
+          </xsl:attribute>
+          <b xmlns="http://www.w3.org/1999/xhtml">
+            <xsl:text>Issue </xsl:text>
+            <xsl:apply-templates select="id(@ref)" mode="number"/>
+            <xsl:text>: </xsl:text>
+            <xsl:for-each select="id(@ref)/head">
+              <xsl:apply-templates/>
+            </xsl:for-each>
+          </b>
+        </a>
+        <xsl:text>]</xsl:text>
+      </xsl:when>
+      <xsl:when test="starts-with(local-name($target), 'div')">
+        <a xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:attribute name="href">
+            <xsl:call-template name="href.target">
+              <xsl:with-param name="target" select="id(@ref)"/>
+            </xsl:call-template>
+          </xsl:attribute>
+          <b xmlns="http://www.w3.org/1999/xhtml">
+            <xsl:apply-templates select="id(@ref)" mode="divnum"/>
+            <xsl:apply-templates select="id(@ref)/head" mode="text"/>
+          </b>
+        </a>
+      </xsl:when>
+      <xsl:when test="starts-with(local-name($target), 'inform-div')">
+        <a xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:attribute name="href">
+            <xsl:call-template name="href.target">
+              <xsl:with-param name="target" select="id(@ref)"/>
+            </xsl:call-template>
+          </xsl:attribute>
+	  <b xmlns="http://www.w3.org/1999/xhtml">
+            <xsl:apply-templates select="id(@ref)" mode="divnum"/>
+            <xsl:apply-templates select="id(@ref)/head" mode="text"/>
+          </b>
+        </a>
+      </xsl:when>
+      <xsl:when test="local-name($target) = 'vcnote'">
+        <b xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:text>[VC: </xsl:text>
+          <a xmlns="http://www.w3.org/1999/xhtml">
+            <xsl:attribute name="href">
+              <xsl:call-template name="href.target">
+                <xsl:with-param name="target" select="id(@ref)"/>
+              </xsl:call-template>
+            </xsl:attribute>
+            <xsl:apply-templates select="id(@ref)/head" mode="text"/>
+          </a>
+          <xsl:text>]</xsl:text>
+        </b>
+      </xsl:when>
+      <xsl:when test="local-name($target) = 'prod'">
+        <b xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:text>[PROD: </xsl:text>
+          <a xmlns="http://www.w3.org/1999/xhtml">
+            <xsl:attribute name="href">
+              <xsl:call-template name="href.target">
+                <xsl:with-param name="target" select="id(@ref)"/>
+              </xsl:call-template>
+            </xsl:attribute>
+            <xsl:apply-templates select="$target" mode="number-simple"/>
+          </a>
+          <xsl:text>]</xsl:text>
+        </b>
+      </xsl:when>
+      <xsl:when test="local-name($target) = 'label'">
+        <b xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:text>[</xsl:text>
+          <a xmlns="http://www.w3.org/1999/xhtml">
+            <xsl:attribute name="href">
+              <xsl:call-template name="href.target">
+                <xsl:with-param name="target" select="id(@ref)"/>
+              </xsl:call-template>
+            </xsl:attribute>
+            <xsl:value-of select="$target"/>
+          </a>
+          <xsl:text>]</xsl:text>
+        </b>
+      </xsl:when>
+      <!-- MJH added table spec refs -->
+      <xsl:when test="local-name($target) = 'table'">
+        <a xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:attribute name="href">
+            <xsl:call-template name="href.target">
+              <xsl:with-param name="target" select="id(@ref)"/>
+            </xsl:call-template>
+          </xsl:attribute>
+	  <xsl:text>Table </xsl:text>
+	  <xsl:apply-templates select="id(@ref)/caption" mode="divnum"/>
+	  <!-- uncomment the following two line to add table captions to references -->
+	  <!--<xsl:text>, "</xsl:text>
+	  <xsl:apply-templates select="id(@ref)/caption" mode="text"/>
+	  <xsl:text>"</xsl:text>
+	  -->
+        </a>
+      </xsl:when>
+      <xsl:when test="local-name($target) = 'example'">
+        <a xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:attribute name="href">
+            <xsl:call-template name="href.target">
+              <xsl:with-param name="target" select="id(@ref)"/>
+            </xsl:call-template>
+          </xsl:attribute>
+	  <xsl:text>Example </xsl:text>
+	  <xsl:apply-templates select="id(@ref)/head" mode="divnum"/>
+        </a>
+      </xsl:when>
+      <xsl:when test="local-name($target) = 'graphic'">
+        <a xmlns="http://www.w3.org/1999/xhtml">
+          <xsl:attribute name="href">
+            <xsl:call-template name="href.target">
+              <xsl:with-param name="target" select="id(@ref)"/>
+            </xsl:call-template>
+          </xsl:attribute>
+	  <xsl:text>Figure </xsl:text>
+	  <xsl:apply-templates select="id(@ref)" mode="divnum"/>
+        </a>
+      </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 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>
+          </a>
+        </b>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+</xsl:stylesheet>