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

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

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 03 Jul 2010 02:26:36 +0000
To: public-html-commits@w3.org
Message-Id: <E1OUsRA-0008J2-3t@lionel-hutz.w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 3 July 2010 02:26:53 GMT