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

html5/markup/tools generate-spec-source.xsl,1.176,1.177

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 15 Jun 2009 20:27:04 +0000
To: public-html-commits@w3.org
Message-Id: <E1MGIlk-0007YJ-S5@lionel-hutz.w3.org>
Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv28605/tools

Modified Files:
	generate-spec-source.xsl 
Log Message:
h:tml; fixed handling of attribute descriptions for audio and video elements


Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -d -r1.176 -r1.177
--- generate-spec-source.xsl	15 Jun 2009 17:16:11 -0000	1.176
+++ generate-spec-source.xsl	15 Jun 2009 20:27:02 -0000	1.177
@@ -403,42 +403,6 @@
           <section id="shared-attributes">
             <xsl:text>&#10;        </xsl:text>
             <h2>Other shared attributes</h2>
-          <section id="common-media-attrs">
-            <xsl:text>&#10;        </xsl:text>
-            <h2>Media attributes</h2>
-            <xsl:text>&#10;        </xsl:text>
-            <div class="content-model">
-              <span class="common-pattern-name"><dfn
-                  id="media.attrs">media.attrs</dfn></span>
-              <xsl:text> = </xsl:text>
-              <xsl:for-each
-                select="document('../html.rnc.spec.html')//h:*[@id='media.attrs']/node()">
-                <xsl:copy-of select="."/>
-              </xsl:for-each>
-              <xsl:text> </xsl:text>
-              <a class="hash" href="#media.attrs">#</a>
-              <xsl:text>&#10;            </xsl:text>
-            </div>
-            <xsl:text>&#10;      </xsl:text>
-            <div class="no-number no-toc">
-              <xsl:text>&#10;        </xsl:text>
-              <dl class="attr-defs">
-                <xsl:for-each select="document('../html.rnc.spec.html')//h:*[@id='media.attrs']/h:a">
-                  <xsl:call-template name="make.attribute.definition"/>
-                </xsl:for-each>
-                <xsl:text>&#10;        </xsl:text>
-              </dl>
-              <xsl:text>&#10;      </xsl:text>
-              <dl class="attr-defs">
-                <xsl:for-each select="document('../html.rnc.spec.html')//h:*[@href='#media.attrs.src'][1]">
-                  <xsl:call-template name="make.attribute.definition"/>
-                </xsl:for-each>
-                <xsl:text>&#10;        </xsl:text>
-              </dl>
-              <xsl:text>&#10;      </xsl:text>
-            </div>
-            <xsl:text>&#10;    </xsl:text>
-          </section>
           <xsl:text>&#10;    </xsl:text>
           <section id="shared-hyperlink-attrs">
             <xsl:text>&#10;        </xsl:text>
@@ -2078,6 +2042,7 @@
       or @name = 'script'
       or @name = 'li'
       or @name = 'colgroup'
+      or @name = 'audio'
       ">
       <div class="no-number no-toc" id="{$name}-attributes">
         <xsl:text>&#10;        </xsl:text>
@@ -2085,6 +2050,22 @@
         <xsl:text>&#10;        </xsl:text>
         <dl class="attr-defs">
           <xsl:choose>
+            <xsl:when test="@name='video'">
+              <xsl:for-each select="document('../html.rnc.spec.html')//h:a[starts-with(@href,'#video.attrs.')]
+                ">
+                <xsl:call-template name="make.attribute.definition">
+                  <xsl:with-param name="name" select="$name"/>
+                </xsl:call-template>
+              </xsl:for-each>
+            </xsl:when>
+            <xsl:when test="@name='audio'">
+              <xsl:for-each select="document('../html.rnc.spec.html')//h:a[starts-with(@href,'#audio.attrs.')]
+                ">
+                <xsl:call-template name="make.attribute.definition">
+                  <xsl:with-param name="name" select="$name"/>
+                </xsl:call-template>
+              </xsl:for-each>
+            </xsl:when>
             <xsl:when test="@name='embed'">
               <xsl:for-each select="document('../html.rnc.spec.html')//h:a[starts-with(@href,'#embed.attrs.')]
                 [not(@href='#embed.attrs.other')]
@@ -2741,8 +2722,11 @@
         ">
         <a class="ref" href="{@href}-pattern"><xsl:value-of select="."/></a>
       </xsl:when>
-      <xsl:when test="@href='#media.attrs.src'">
-        <span class="attr-qualifier" >media.attrs.</span><a class="ref" href="{@href}">src</a>
+      <xsl:when test="@href='#audio.attrs.src'">
+        <a class="ref" href="{@href}">audio.attrs.src</a>
+      </xsl:when>
+      <xsl:when test="@href='#video.attrs.src'">
+        <a class="ref" href="{@href}">video.attrs.src</a>
       </xsl:when>
       <xsl:otherwise>
         <xsl:copy-of select="."/>
Received on Monday, 15 June 2009 20:27:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 15 June 2009 20:27:10 GMT