W3C home > Mailing lists > Public > public-html-commits@w3.org > July 2010

html5/markup/tools generate-spec-source.xsl,1.274,1.275

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 27 Jul 2010 13:20:22 +0000
To: public-html-commits@w3.org
Message-Id: <E1Odk50-0003J0-6G@lionel-hutz.w3.org>
Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv11604/tools

Modified Files:
	generate-spec-source.xsl 
Log Message:
make <input> and <meta> spec links target more specific parts of the HTML5 spec


Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.274
retrieving revision 1.275
diff -u -d -r1.274 -r1.275
--- generate-spec-source.xsl	27 Jul 2010 09:23:47 -0000	1.274
+++ generate-spec-source.xsl	27 Jul 2010 13:20:20 -0000	1.275
@@ -1142,10 +1142,29 @@
         <h2 class="element-head">
           <xsl:variable name="target">
             <xsl:choose>
+              <xsl:when test="$name = 'input.text'">#text-state-and-search-state</xsl:when>
+              <xsl:when test="$name = 'input.search'">#text-state-and-search-state</xsl:when>
+              <xsl:when test="$name = 'input.radio'">#radio-button-state</xsl:when>
+              <xsl:when test="$name = 'input.submit'">#submit-button-state</xsl:when>
+              <xsl:when test="$name = 'input.reset'">#reset-button-state</xsl:when>
+              <xsl:when test="$name = 'input.tel'">#telephone-state</xsl:when>
+              <xsl:when test="$name = 'input.datetime'">#date-and-time-state</xsl:when>
+              <xsl:when test="$name = 'input.datetime-local'">#local-date-and-time-state</xsl:when>
+              <xsl:when test="$name = 'input.file'">#file-upload-state</xsl:when>
+              <xsl:when test="$name = 'input.image'">#image-button-state</xsl:when>
+              <xsl:when test="$name = 'input.email'">#e-mail-state</xsl:when>
+              <xsl:when test="starts-with($name,'input.')">
+                <xsl:value-of select="concat('#',substring-after($name,'input.'),'-state')"/>
+              </xsl:when>
               <xsl:when test="starts-with($name,'button')">#the-button-element</xsl:when>
               <xsl:when test="starts-with($name,'command')">#the-command</xsl:when>
-              <xsl:when test="starts-with($name,'input')">#the-input-element</xsl:when>
-              <xsl:when test="starts-with($name,'meta')">#meta</xsl:when>
+              <xsl:when test="$name = 'meta.http-equiv.content-language'">#attr-meta-http-equiv-content-language</xsl:when>
+              <xsl:when test="$name = 'meta.http-equiv.content-type'">#attr-meta-http-equiv-content-type</xsl:when>
+              <xsl:when test="$name = 'meta.http-equiv.default-style'">#attr-meta-http-equiv-default-style</xsl:when>
+              <xsl:when test="$name = 'meta.http-equiv.refresh'">#attr-meta-http-equiv-refresh</xsl:when>
+              <xsl:when test="$name = 'meta.charset'">#attr-meta-charset</xsl:when>
+              <xsl:when test="$name = 'meta.name'">#attr-meta-name</xsl:when>
+              <xsl:when test="$name = 'meta'">#meta</xsl:when>
               <xsl:when test="$name = 'audio'">#audio</xsl:when>
               <xsl:when test="$name = 'body'">#the-body-element-0</xsl:when>
               <xsl:when test="$name = 'command'">#the-command</xsl:when>
@@ -1176,7 +1195,7 @@
           </xsl:variable>
           <span class="spec-link">
             <xsl:text> </xsl:text>
-            <a title="Read about the {$name} element in the HTML5 spec"
+            <a title="Read about the {$short-name} element in the HTML5 spec"
               href="{$filename}.html{$target}">&#9432;</a>
           </span>
           <xsl:choose>
Received on Tuesday, 27 July 2010 13:20:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 July 2010 13:20:26 GMT