html5/spec toc-status.html,1.4,1.5 tocmix.xsl,1.4,1.5

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv21874

Modified Files:
	toc-status.html tocmix.xsl 
Log Message:
made with tweaks to the status-annotated TOC


Index: tocmix.xsl
===================================================================
RCS file: /sources/public/html5/spec/tocmix.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- tocmix.xsl	25 Jul 2009 04:10:35 -0000	1.4
+++ tocmix.xsl	25 Jul 2009 19:10:42 -0000	1.5
@@ -1,92 +1,83 @@
 <xsl:transform
-    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-    xmlns:h="http://www.w3.org/1999/xhtml"
-    xmlns="http://www.w3.org/1999/xhtml"
-    version="1.0">
-
-<xsl:param name="Annotations" />
-<xsl:param name="AnnoDB" select="document($Annotations)" />
-
-<xsl:template match="h:ol[@class='toc']">
-  <xsl:apply-templates mode="toc" />
-</xsl:template>
-
-<xsl:template match="h:li" mode="toc">
-  <xsl:variable name="frag"
-		select="substring(h:a/@href, 2)" />
-  <xsl:variable name="entry"
-		select="$AnnoDB/annotations/entry[@section=$frag]" />
-
-  <!-- * <xsl:message> -->
-    <!-- * TOC section: <xsl:value-of select="$frag"/> <xsl:value-of select="$entry"/> -->
-  <!-- * </xsl:message> -->
-
-  <xsl:copy>
-    <xsl:apply-templates select="@*" mode="toc"/>
-    <xsl:if test="$entry">
-      <b class="status {$entry/@status}"><xsl:value-of select="$entry/@status" /></b>
-      <xsl:text> </xsl:text>
-    </xsl:if>
-    <xsl:apply-templates select="node()" mode="toc"/>
-  </xsl:copy>
-</xsl:template>
-
-<xsl:template match="@*|node()" mode="toc">
-  <xsl:copy>
-    <xsl:apply-templates select="@*|node()"  mode="toc"/>
-  </xsl:copy>
-</xsl:template>
-
-<xsl:template match="h:html">
-  <html>
-    <xsl:apply-templates />
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:h="http://www.w3.org/1999/xhtml"
+  xmlns="http://www.w3.org/1999/xhtml"
+  version="1.0">
+  <xsl:param name="Annotations" />
+  <xsl:param name="AnnoDB" select="document($Annotations)" />
+  <xsl:template match="h:ol[@class='toc']">
+    <xsl:apply-templates mode="toc" />
+  </xsl:template>
+  <xsl:template match="h:a" mode="toc">
+    <xsl:variable name="frag"
+      select="substring(@href, 2)" />
+    <a href="../spec/#{$frag}">
+      <xsl:value-of select="."/>
+    </a>
+  </xsl:template>
+  <xsl:template match="h:li" mode="toc">
+    <xsl:variable name="frag"
+      select="substring(h:a/@href, 2)" />
+    <xsl:variable name="entry"
+      select="$AnnoDB/annotations/entry[@section=$frag]" />
+    <!-- * <xsl:message> -->
+      <!-- * TOC section: <xsl:value-of select="$frag"/> <xsl:value-of select="$entry"/> -->
+    <!-- * </xsl:message> -->
+    <xsl:copy>
+      <xsl:apply-templates select="@*" mode="toc"/>
+      <xsl:if test="$entry">
+        <b class="status {$entry/@status}"><xsl:value-of select="$entry/@status" /></b>
+        <xsl:text> </xsl:text>
+      </xsl:if>
+      <xsl:apply-templates select="node()" mode="toc"/>
+    </xsl:copy>
+  </xsl:template>
+  <xsl:template match="@*|node()" mode="toc">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|node()"  mode="toc"/>
+    </xsl:copy>
+  </xsl:template>
+  <xsl:template match="h:html">
+    <html>
+      <xsl:apply-templates />
+      <xsl:text>&#10;</xsl:text>
+    </html>
+  </xsl:template>
+  <xsl:template match="h:head">
     <xsl:text>&#10;</xsl:text>
-  </html>
-</xsl:template>
-
-<xsl:template match="h:head">
-  <xsl:text>&#10;</xsl:text>
-  <head>
-    <xsl:apply-templates />
-    <style>
-      li {
-      margin: 4px;
-      }
-      .status { 
-      padding: 1px;
-      border: 1px solid white;
-      }
-.status.UNKNOWN { background: gray; color: white; }
-.status.TBW { background: red; color: white; }
-.status.WIP { background: red; color: white; }
-.status.FD { background: orange; color: black; }
-.status.WD { background: orange; color: black; }
-.status.CWD { background: red; color: yellow; }
-.status.ATRISK { background: red; color: yellow; }
-.status.LC { background: yellow; color: black; }
-.status.CR { background: lime; color: black; }
-.status.REC { background: green; color: white; }
-.status.SPLITFD { background: navy; color: white; }
-.status.SPLIT/*CR*/ { background: navy; color: white; }
-.status.SPLITREC { background: navy; color: white; }
-    </style>
+    <head>
+      <xsl:apply-templates />
+      <style>
+        li { margin: 4px; list-style-type: none; }
+        .status { padding: 1px; border: 1px solid white; }
+        .status.UNKNOWN { background: gray; color: white; }
+        .status.TBW { background: red; color: white; }
+        .status.WIP { background: red; color: white; }
+        .status.FD { background: orange; color: black; }
+        .status.WD { background: orange; color: black; }
+        .status.CWD { background: red; color: yellow; }
+        .status.ATRISK { background: red; color: yellow; }
+        .status.LC { background: yellow; color: black; }
+        .status.CR { background: lime; color: black; }
+        .status.REC { background: green; color: white; }
+        .status.SPLITFD { background: navy; color: white; }
+        .status.SPLIT/*CR*/ { background: navy; color: white; }
+        .status.SPLITREC { background: navy; color: white; }
+      </style>
+      <xsl:text>&#10;</xsl:text>
+    </head>
+  </xsl:template>
+  <xsl:template match="h:title">
     <xsl:text>&#10;</xsl:text>
-  </head>
-</xsl:template>
-
-<xsl:template match="h:title">
-  <xsl:text>&#10;</xsl:text>
-  <title>Draft status by section</title>
-</xsl:template>
-
-<xsl:template match="h:body">
-  <xsl:text>&#10;</xsl:text>
-  <body>
-    <xsl:apply-templates />
+    <title>Draft status by section</title>
+  </xsl:template>
+  <xsl:template match="h:body">
     <xsl:text>&#10;</xsl:text>
-  </body>
-</xsl:template>
-
-<!-- don't pass text thru -->
-<xsl:template match="text()|@*"></xsl:template>
+    <body>
+      <xsl:apply-templates />
+      <xsl:text>&#10;</xsl:text>
+    </body>
+  </xsl:template>
+  <!-- don't pass text thru -->
+  <xsl:template match="text()|@*"></xsl:template>
 </xsl:transform>

Index: toc-status.html
===================================================================
RCS file: /sources/public/html5/spec/toc-status.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- toc-status.html	25 Jul 2009 04:10:35 -0000	1.4
+++ toc-status.html	25 Jul 2009 19:10:42 -0000	1.5
@@ -2,1656 +2,1651 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://www.w3.org/1999/xhtml">
 <head>
 <title>Draft status by section</title><style>
-      li {
-      margin: 4px;
-      }
-      .status { 
-      padding: 1px;
-      border: 1px solid white;
-      }
-.status.UNKNOWN { background: gray; color: white; }
[...2541 lines suppressed...]
 using other technologies that are further described herein</a>
 <ol>
-<li><a href="#localization"><span class="secno">13.1</span>
+<li><a href="../spec/#localization">13.1
 Localization</a></li>
-<li><a href="#declarative-3d-scenes"><span class="secno">13.2</span> Declarative 3D scenes</a></li>
-<li><a href="#rendering-and-the-dom"><span class="secno">13.3</span> Rendering and the DOM</a></li>
+<li><a href="../spec/#declarative-3d-scenes">13.2 Declarative 3D scenes</a></li>
+<li><a href="../spec/#rendering-and-the-dom">13.3 Rendering and the DOM</a></li>
 </ol>
 </li>
-<li><b class="status TBW">TBW</b> <a class="no-num" href="#index">Index</a></li>
-<li><b class="status TBW">TBW</b> <a class="no-num" href="#references">References</a></li>
-<li><b class="status WIP">WIP</b> <a class="no-num" href="#acknowledgements">Acknowledgements</a></li>
+<li><b class="status TBW">TBW</b> <a href="../spec/#index">Index</a></li>
+<li><b class="status TBW">TBW</b> <a href="../spec/#references">References</a></li>
+<li><b class="status WIP">WIP</b> <a href="../spec/#acknowledgements">Acknowledgements</a></li>
 
 </body>
 </html>

Received on Saturday, 25 July 2009 19:10:52 UTC