html5/markup/tools generate-spec-source.xsl,1.310,1.311 specgen.xsl,1.99,1.100

Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv31913/tools

Modified Files:
	generate-spec-source.xsl specgen.xsl 
Log Message:
various updates to sync to upstream schema


Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.310
retrieving revision 1.311
diff -u -d -r1.310 -r1.311
--- generate-spec-source.xsl	4 Jul 2011 08:34:44 -0000	1.310
+++ generate-spec-source.xsl	24 Aug 2011 07:56:17 -0000	1.311
@@ -498,7 +498,7 @@
                     <h2 class="common-subhead"><dfn id="{@id}">URL potentially surrounded by spaces</dfn></h2>
                   </xsl:when>
                   <xsl:when test="$pattern='uri.non-empty'">
-                    <h2 class="common-subhead"><dfn id="{@id}">Non-empty URL potentially surrounded by spaces</dfn></h2>
+                    <h2 class="common-subhead"><dfn id="{@id}">non-empty URL potentially surrounded by spaces</dfn></h2>
                   </xsl:when>
                   <xsl:when test="$pattern='uris'">
                     <h2 class="common-subhead"><dfn id="{@id}">list of URIs</dfn></h2>
@@ -2486,6 +2486,15 @@
                 <xsl:with-param name="ref" select="$ref"/>
               </xsl:call-template>
             </xsl:when>
+            <xsl:when test="$ref = 'time.attrs.datetime'">
+              <span class="attribute-name">datetime</span> (any)
+            </xsl:when>
+            <xsl:when test="$ref = 'time.attrs.datetime.dateonly'">
+              <span class="attribute-name">datetime</span> (date only)
+            </xsl:when>
+            <xsl:when test="$ref = 'time.attrs.datetime.tz'">
+              <span class="attribute-name">datetime</span> (date and time)
+            </xsl:when>
             <xsl:when test="contains(node(),'.')">
               <span class="attribute-name">
                 <xsl:choose>
@@ -2592,6 +2601,12 @@
                     <xsl:when test="normalize-space(key('elements',$ref)//*[@class='model'])='string'">
                       <a href="#data-string">string</a>
                     </xsl:when>
+                    <xsl:when test="normalize-space(key('elements',$ref)//*[@class='model'])='d:link-rel'">
+                      <a href="#common.data.tokens">set of space-separated tokens</a>
+                    </xsl:when>
+                    <xsl:when test="normalize-space(key('elements',$ref)//*[@class='model'])='d:meta-name'">
+                      <a href="#data-string">string</a>
+                    </xsl:when>
                     <xsl:when
                       test="not(key('elements',$ref)//*[@class='model']/h:a)">
                       <xsl:for-each select="key('elements',$ref)//*[@class='model']/node()">
@@ -3200,6 +3215,17 @@
       </xsl:choose>
     </xsl:for-each>
   </xsl:template>
+  <xsl:template match="h:a[@class = 'html5-spec']" priority="100">
+    <xsl:message> FOO FOO FOO </xsl:message>
+    <xsl:variable name="filename">
+      <xsl:call-template name="get-spec-filename">
+        <xsl:with-param name="ref" select="@href"/>
+      </xsl:call-template>
+    </xsl:variable>
+    <a href="{$filename}{@href}" class="html5-spec">
+      <xsl:copy-of select="node()"/>
+    </a>
+  </xsl:template>
 
 <!-- * ***************************************************************** -->
 <!-- * * UTILITY TEMPLATES -->
@@ -3355,7 +3381,7 @@
         <a href="{@href}">URL potentially surrounded by spaces</a>
       </xsl:when>
       <xsl:when test=".='uri.non-empty'">
-        <a href="{@href}">Non-empty URL potentially surrounded by spaces</a>
+        <a href="{@href}">non-empty URL potentially surrounded by spaces</a>
       </xsl:when>
       <xsl:when test=".='uris'">
         <a href="{@href}">list of URIs</a>

Index: specgen.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/specgen.xsl,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- specgen.xsl	23 May 2011 01:34:03 -0000	1.99
+++ specgen.xsl	24 Aug 2011 07:56:17 -0000	1.100
@@ -1199,6 +1199,15 @@
   </xsl:otherwise>
   </xsl:choose>
   </xsl:template>
+  <xsl:template match="h:a[. = 'datetime']">
+    <a href="#time.attrs.datetime">datetime (any)</a>
+  </xsl:template>
+  <xsl:template match="h:a[. = 'datetime.dateonly']">
+    <a href="#time.attrs.datetime.dateonly">datetime (date only)</a>
+  </xsl:template>
+  <xsl:template match="h:a[. = 'datetime.tz']">
+    <a href="#time.attrs.datetime.tz">datetime (date and time)</a>
+  </xsl:template>
   <xsl:template match="h:div[@id='tocjump']">
     <div id="tocjump" class="skip-link" style="text-align: center">
       <a href="{$toc-link}">Skip to Table of Contents</a>

Received on Wednesday, 24 August 2011 07:56:24 UTC