html5/markup/tools generate-spec-source.xsl,1.253,1.254

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

Modified Files:
	generate-spec-source.xsl 
Log Message:
added per-element 'Microdata property value' sections; changed title to 'HTML: The Markup Language Reference'

Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.253
retrieving revision 1.254
diff -u -d -r1.253 -r1.254
--- generate-spec-source.xsl	3 Jun 2010 04:52:02 -0000	1.253
+++ generate-spec-source.xsl	3 Jul 2010 02:26:34 -0000	1.254
@@ -1286,6 +1286,12 @@
         </xsl:call-template>
         <xsl:text>&#10;      </xsl:text>
         <!-- * ***************************************************************** -->
+        <!-- * * MAKE "MICRODATA PROPERTY VALUE" SECTION -->
+        <!-- * ***************************************************************** -->
+        <xsl:call-template name="make.microdata.section">
+          <xsl:with-param name="name" select="$name"/>
+        </xsl:call-template>
+        <!-- * ***************************************************************** -->
         <!-- * * MAKE "DETAILS" SECTION -->
         <!-- * ***************************************************************** -->
         <xsl:call-template name="make.details.section">
@@ -1677,6 +1683,27 @@
   </xsl:template>
 
   <!-- * ***************************************************************** -->
+  <!-- * * MAKE THE "MICRODATA PROPERTY VALUE" SECTION -->
+  <!-- * ***************************************************************** -->
+  <xsl:template name="make.microdata.section">
+    <xsl:param name="name"/>
+    <div class="no-number no-toc microdata" id="{$name}-microdata">
+      <xsl:text>&#10;        </xsl:text>
+      <h2 class="element-subhead">Microdata property value</h2>
+      <xsl:choose>
+        <xsl:when test="document(concat('../elements/',$name,'.html'))//h:div[@id='microdata']">
+          <xsl:copy-of select="document(concat('../elements/',$name,'.html'))//h:div[@id='microdata']"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <p>The
+            <a href="#text-content">text content</a>
+            of the element.</p>
+        </xsl:otherwise>
+      </xsl:choose>
+    </div>
+  </xsl:template>
+
+  <!-- * ***************************************************************** -->
   <!-- * * MAKE THE "CONTEXT" SECTION -->
   <!-- * ***************************************************************** -->
   <xsl:template name="make.context.section">

Received on Saturday, 3 July 2010 02:26:37 UTC