- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 15 Jun 2009 20:27:04 +0000
- To: public-html-commits@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> </xsl:text> <h2>Other shared attributes</h2> - <section id="common-media-attrs"> - <xsl:text> </xsl:text> - <h2>Media attributes</h2> - <xsl:text> </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> </xsl:text> - </div> - <xsl:text> </xsl:text> - <div class="no-number no-toc"> - <xsl:text> </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> </xsl:text> - </dl> - <xsl:text> </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> </xsl:text> - </dl> - <xsl:text> </xsl:text> - </div> - <xsl:text> </xsl:text> - </section> <xsl:text> </xsl:text> <section id="shared-hyperlink-attrs"> <xsl:text> </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> </xsl:text> @@ -2085,6 +2050,22 @@ <xsl:text> </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 UTC