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

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

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 05 Jul 2010 07:17:59 +0000
To: public-html-commits@w3.org
Message-Id: <E1OVfwF-0003Tz-9Z@lionel-hutz.w3.org>
Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv12926/tools

Modified Files:
	generate-spec-source.xsl 
Log Message:
added examples to section for <a> element

Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.254
retrieving revision 1.255
diff -u -d -r1.254 -r1.255
--- generate-spec-source.xsl	3 Jul 2010 02:26:34 -0000	1.254
+++ generate-spec-source.xsl	5 Jul 2010 07:17:57 -0000	1.255
@@ -1315,7 +1315,7 @@
             or starts-with(.,$name-bracket)
             ]]">
             <xsl:text>&#10;      </xsl:text>
-            <div class="no-number no-toc" id="{$name}-display">
+            <div class="no-number no-toc display" id="{$name}-display">
               <xsl:text>&#10;        </xsl:text>
               <h2 class="element-subhead">Typical default display properties</h2>
               <!-- * <p class="non-norm">This section is non-normative.</p> -->
@@ -1415,20 +1415,21 @@
         <!-- * ***************************************************************** -->
         <!-- * * MAKE EXAMPLES SECTION -->
         <!-- * ***************************************************************** -->
-        <!-- * <xsl:if -->
-          <!-- * test="document('../elements.html')//h:*[@id=$name]//h:div[@class='examples']"> -->
-          <!-- * <xsl:text>&#10;</xsl:text> -->
-          <!-- * <div class="no-number no-toc" id="{$name}-examples"> -->
-            <!-- * <xsl:text>&#10;</xsl:text> -->
-            <!-- * <h2 class="element-subhead">Examples</h2> -->
-            <!-- * <xsl:text>&#10;</xsl:text> -->
-            <!-- * <p class="non-norm">This section is non-normative.</p> -->
-            <!-- * <xsl:text>&#10;</xsl:text> -->
-            <!-- * <xsl:copy-of select="document('../elements.html')//h:*[@id=$name]//h:div[@class='examples']/node()"/> -->
-            <!-- * <xsl:text>&#10;</xsl:text> -->
-          <!-- * </div> -->
-          <!-- * <xsl:text>&#10;</xsl:text> -->
-        <!-- * </xsl:if> -->
+        <xsl:if
+          test="document(concat('../elements/',$name,'.html'))//h:div[@id='examples']">
+          <xsl:text>&#10;</xsl:text>
+          <div class="no-number no-toc examples" id="{$name}-examples">
+            <xsl:text>&#10;</xsl:text>
+            <h2 class="element-subhead">Examples</h2>
+            <xsl:text>&#10;</xsl:text>
+            <xsl:for-each 
+              select="document(concat('../elements/',$name,'.html'))//h:div[@id='examples']/h:div">
+              <xsl:copy-of select="document(concat('../examples/',.,'.xml'))"/>
+              <xsl:text>&#10;</xsl:text>
+            </xsl:for-each>
+          </div>
+          <xsl:text>&#10;</xsl:text>
+        </xsl:if>
       </section>
     </xsl:if>
   </xsl:template>
@@ -1790,7 +1791,7 @@
   <xsl:template name="make.dom-interface.section">
     <xsl:param name="name"/>
     <xsl:variable name="spec-url">http://dev.w3.org/html5/spec/</xsl:variable>
-    <div class="no-number no-toc" id="{$name}-interface">
+    <div class="no-number no-toc interface" id="{$name}-interface">
       <xsl:text>&#10;        </xsl:text>
       <h2 class="element-subhead">DOM interface</h2>
       <xsl:choose>
Received on Monday, 5 July 2010 07:18:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 July 2010 07:18:01 GMT