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

html5/markup/tools generate-spec-source.xsl,1.257,1.258

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 05 Jul 2010 14:07:22 +0000
To: public-html-commits@w3.org
Message-Id: <E1OVmKQ-0000lH-A3@lionel-hutz.w3.org>
Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv837/tools

Modified Files:
	generate-spec-source.xsl 
Log Message:
checkpointing additional per-attribute HTML5 spec links


Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.257
retrieving revision 1.258
diff -u -d -r1.257 -r1.258
--- generate-spec-source.xsl	5 Jul 2010 10:19:39 -0000	1.257
+++ generate-spec-source.xsl	5 Jul 2010 14:07:19 -0000	1.258
@@ -420,14 +420,6 @@
                       title="This markup feature has been obsoleted in HTML5."
                       >OBSOLETE</span>
                   </xsl:if>
-                  <xsl:if test="document('../src/map-attributes.html')/*[.=$ref]">
-                    <xsl:variable name="spec-target" select="document('../src/map-attributes.html')/*[preceding-sibling::*[self::.=$ref]]"/>
-                    <xsl:text> </xsl:text>
-                    <span class="spec-link">
-                      <a title="Read about this attribute in the HTML5 spec"
-                        href="http://dev.w3.org/html5/spec-author-view/#{$spec-target}">&#9432;</a>
-                    </span>
-                  </xsl:if>
                   <a class="hash" href="#{@id}">#</a>
                 </dt>
                 <xsl:variable name="ref" select="@id"/>
@@ -2632,6 +2624,21 @@
               </xsl:otherwise>
             </xsl:choose>
           </span>
+          <xsl:variable name="spec-target">
+            <xsl:choose>
+              <xsl:when test="not($name='') and document('../src/map-attributes.html')//*[preceding-sibling::*=$ref]">
+                <xsl:value-of select="document('../src/map-attributes.html')//*[preceding-sibling::*=$ref]"/>
+              </xsl:when>
+              <xsl:otherwise>
+                <xsl:value-of select="concat('attr-',$name,'-',$attribute-name)"/>
+              </xsl:otherwise>
+            </xsl:choose>
+          </xsl:variable>
+          <xsl:text> </xsl:text>
+          <span class="spec-link">
+            <a title="Read about this attribute in the HTML5 spec"
+              href="http://dev.w3.org/html5/spec-author-view/#{$spec-target}">&#9432;</a>
+          </span>
           <xsl:text> </xsl:text>
           <xsl:if test="not($name='') and document(concat('../elements/',$name,'.html'))//*[@id=$ref][contains(@class,'new')]
             or document('../src/attributes.html')//*[@id=$ref][contains(@class,'new')]
@@ -2652,14 +2659,6 @@
               title="This markup feature has been obsoleted in HTML5."
               >OBSOLETE</span>
           </xsl:if>
-          <xsl:if test="not($name='') and document('../src/map-attributes.html')//*[preceding-sibling::*=$ref]">
-            <xsl:variable name="spec-target" select="document('../src/map-attributes.html')//*[preceding-sibling::*=$ref]"/>
-            <xsl:text> </xsl:text>
-            <span class="spec-link">
-              <a title="Read about this attribute in the HTML5 spec"
-                href="http://dev.w3.org/html5/spec-author-view/#{$spec-target}">&#9432;</a>
-            </span>
-          </xsl:if>
         </xsl:element>
         <xsl:if test="$wrapper='dt'">
           <xsl:text>&#10;            </xsl:text>
Received on Monday, 5 July 2010 14:07:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 July 2010 14:07:24 GMT