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

html5/markup/tools generate-spec-source.xsl,1.186,1.187

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 29 Jul 2009 07:19:28 +0000
To: public-html-commits@w3.org
Message-Id: <E1MW3Rg-0006Lm-3M@lionel-hutz.w3.org>
Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv23951/tools

Modified Files:
	generate-spec-source.xsl 
Log Message:
added "Details" subsection to some elements


Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -d -r1.186 -r1.187
--- generate-spec-source.xsl	29 Jul 2009 05:38:11 -0000	1.186
+++ generate-spec-source.xsl	29 Jul 2009 07:19:25 -0000	1.187
@@ -1136,6 +1136,10 @@
           <xsl:with-param name="name" select="$name"/>
         </xsl:call-template>
         <xsl:text>&#10;      </xsl:text>
+        <xsl:call-template name="make.details.section">
+          <xsl:with-param name="name" select="$name"/>
+        </xsl:call-template>
+        <xsl:text>&#10;      </xsl:text>
         <xsl:call-template name="make.context.section">
           <xsl:with-param name="name">
             <xsl:choose>
@@ -1376,10 +1380,11 @@
   <!-- * ***************************************************************** -->
   <xsl:template name="make.constraints.section">
     <xsl:param name="name"/>
-    <xsl:text>&#10;        </xsl:text>
     <xsl:if
       test="document(concat('../elements/',$name,'.html'))//h:div[@id='constraints']">
+      <xsl:text>&#10;        </xsl:text>
       <div class="no-number no-toc" id="{$name}-constraints">
+        <xsl:text>&#10;        </xsl:text>
         <h2 class="element-subhead">Additional constraints</h2>
         <xsl:copy-of select="document(concat('../elements/',$name,'.html'))//h:div[@id='constraints']/node()"/>
       </div>
@@ -1387,6 +1392,22 @@
   </xsl:template>
 
   <!-- * ***************************************************************** -->
+  <!-- * * MAKE THE "DETAILS" SECTION -->
+  <!-- * ***************************************************************** -->
+  <xsl:template name="make.details.section">
+    <xsl:param name="name"/>
+    <xsl:if
+      test="document(concat('../elements/',$name,'.html'))//h:div[@id='details']">
+      <xsl:text>&#10;        </xsl:text>
+      <div class="no-number no-toc" id="{$name}-details">
+        <xsl:text>&#10;        </xsl:text>
+        <h2 class="element-subhead">Details</h2>
+        <xsl:copy-of select="document(concat('../elements/',$name,'.html'))//h:div[@id='details']/node()"/>
+      </div>
+    </xsl:if>
+  </xsl:template>
+
+  <!-- * ***************************************************************** -->
   <!-- * * MAKE THE "TAG OMISSION" SECTION -->
   <!-- * ***************************************************************** -->
   <xsl:template name="make.tag.omission.section">
Received on Wednesday, 29 July 2009 07:19:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 29 July 2009 07:19:40 GMT