html5/markup/tools generate-spec-source.xsl,1.255,1.256

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

Modified Files:
	generate-spec-source.xsl 
Log Message:
added per-attribute links for <a> element back to corresponding parts of HTML5; will add for other elements later


Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.255
retrieving revision 1.256
diff -u -d -r1.255 -r1.256
--- generate-spec-source.xsl	5 Jul 2010 07:17:57 -0000	1.255
+++ generate-spec-source.xsl	5 Jul 2010 09:53:01 -0000	1.256
@@ -420,6 +420,14 @@
                       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"/>
@@ -2644,6 +2652,14 @@
               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 09:53:06 UTC