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

html5/markup/tools generate-spec-source.xsl,1.263,1.264

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 12 Jul 2010 17:34:59 +0000
To: public-html-commits@w3.org
Message-Id: <E1OYMuB-0006yX-Qt@lionel-hutz.w3.org>
Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv26285/tools

Modified Files:
	generate-spec-source.xsl 
Log Message:
for "changed" elements, make it more clear what exactly the changes has been


Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.263
retrieving revision 1.264
diff -u -d -r1.263 -r1.264
--- generate-spec-source.xsl	12 Jul 2010 14:16:43 -0000	1.263
+++ generate-spec-source.xsl	12 Jul 2010 17:34:57 -0000	1.264
@@ -1303,6 +1303,12 @@
           <xsl:with-param name="name" select="$name"/>
         </xsl:call-template>
         <!-- * ***************************************************************** -->
+        <!-- * * MAKE "CHANGES" SECTION -->
+        <!-- * ***************************************************************** -->
+        <xsl:call-template name="make.changes.section">
+          <xsl:with-param name="name" select="$name"/>
+        </xsl:call-template>
+        <!-- * ***************************************************************** -->
         <!-- * * MAKE "DETAILS" SECTION -->
         <!-- * ***************************************************************** -->
         <xsl:call-template name="make.details.section">
@@ -1907,6 +1913,24 @@
   </xsl:template>
 
   <!-- * ***************************************************************** -->
+  <!-- * * MAKE THE "CHANGES" SECTION -->
+  <!-- * ***************************************************************** -->
+  <xsl:template name="make.changes.section">
+    <xsl:param name="name"/>
+    <xsl:if
+      test="document(concat('../elements/',$name,'.html'))//h:div[@id='changes']">
+      <xsl:text>&#10;        </xsl:text>
+      <div class="no-number no-toc" id="{$name}-changes">
+        <xsl:text>&#10;        </xsl:text>
+        <h2 class="element-subhead">Changes in HTML5</h2>
+        <div class="changes">
+          <xsl:copy-of select="document(concat('../elements/',$name,'.html'))//h:div[@id='changes']/node()"/>
+        </div>
+      </div>
+    </xsl:if>
+  </xsl:template>
+
+  <!-- * ***************************************************************** -->
   <!-- * * MAKE THE "DETAILS" SECTION -->
   <!-- * ***************************************************************** -->
   <xsl:template name="make.details.section">
Received on Monday, 12 July 2010 17:35:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 12 July 2010 17:35:18 GMT