- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Sun, 28 Mar 2010 23:11:09 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/tools In directory hutz:/tmp/cvs-serv24624/tools Modified Files: generate-spec-source.xsl toc.xsl Log Message: special-cased some spec links Index: generate-spec-source.xsl =================================================================== RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v retrieving revision 1.248 retrieving revision 1.249 diff -u -d -r1.248 -r1.249 --- generate-spec-source.xsl 28 Mar 2010 20:50:31 -0000 1.248 +++ generate-spec-source.xsl 28 Mar 2010 23:11:06 -0000 1.249 @@ -1173,9 +1173,33 @@ </xsl:if> <xsl:text> </xsl:text> <xsl:if test="not(contains($name,'.'))"> + <xsl:variable name="target"> + <xsl:choose> + <xsl:when test="$name = 'audio'">audio</xsl:when> + <xsl:when test="$name = 'body'">the-body-element-0</xsl:when> + <xsl:when test="$name = 'command'">the-command</xsl:when> + <xsl:when test="$name = 'h1'">the-h1-h2-h3-h4-h5-and-h6-elements</xsl:when> + <xsl:when test="$name = 'h2'">the-h1-h2-h3-h4-h5-and-h6-elements</xsl:when> + <xsl:when test="$name = 'h3'">the-h1-h2-h3-h4-h5-and-h6-elements</xsl:when> + <xsl:when test="$name = 'h4'">the-h1-h2-h3-h4-h5-and-h6-elements</xsl:when> + <xsl:when test="$name = 'h5'">the-h1-h2-h3-h4-h5-and-h6-elements</xsl:when> + <xsl:when test="$name = 'h6'">the-h1-h2-h3-h4-h5-and-h6-elements</xsl:when> + <xsl:when test="$name = 'head'">the-head-element-0</xsl:when> + <xsl:when test="$name = 'html'">the-html-element-0</xsl:when> + <xsl:when test="$name = 'menu'">menus</xsl:when> + <xsl:when test="$name = 'meta'">meta</xsl:when> + <xsl:when test="$name = 'sub'">the-sub-and-sup-elements</xsl:when> + <xsl:when test="$name = 'sup'">the-sub-and-sup-elements</xsl:when> + <xsl:when test="$name = 'title'">the-title-element-0</xsl:when> + <xsl:when test="$name = 'video'">video</xsl:when> + <xsl:otherwise> + <xsl:value-of select="concat('the-',$name,'-element')"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> <span class="spec-link"> <a title="Read about the {$name} element in the HTML5 spec" - href="http://dev.w3.org/html5/spec-author-view/#the-{$name}-element"><img + href="http://dev.w3.org/html5/spec-author-view/#{$target}"><img src="images/External.png"></img></a> </span> </xsl:if> Index: toc.xsl =================================================================== RCS file: /sources/public/html5/markup/tools/toc.xsl,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- toc.xsl 28 Mar 2010 20:50:32 -0000 1.15 +++ toc.xsl 28 Mar 2010 23:11:06 -0000 1.16 @@ -118,9 +118,33 @@ ancestor::h:section[@id='elements'] and not(contains(@id,'.'))"> + <xsl:variable name="target"> + <xsl:choose> + <xsl:when test="@id = 'audio'">audio</xsl:when> + <xsl:when test="@id = 'body'">the-body-element-0</xsl:when> + <xsl:when test="@id = 'command'">the-command</xsl:when> + <xsl:when test="@id = 'h1'">the-h1-h2-h3-h4-h5-and-h6-elements</xsl:when> + <xsl:when test="@id = 'h2'">the-h1-h2-h3-h4-h5-and-h6-elements</xsl:when> + <xsl:when test="@id = 'h3'">the-h1-h2-h3-h4-h5-and-h6-elements</xsl:when> + <xsl:when test="@id = 'h4'">the-h1-h2-h3-h4-h5-and-h6-elements</xsl:when> + <xsl:when test="@id = 'h5'">the-h1-h2-h3-h4-h5-and-h6-elements</xsl:when> + <xsl:when test="@id = 'h6'">the-h1-h2-h3-h4-h5-and-h6-elements</xsl:when> + <xsl:when test="@id = 'head'">the-head-element-0</xsl:when> + <xsl:when test="@id = 'html'">the-html-element-0</xsl:when> + <xsl:when test="@id = 'menu'">menus</xsl:when> + <xsl:when test="@id = 'meta'">meta</xsl:when> + <xsl:when test="@id = 'sub'">the-sub-and-sup-elements</xsl:when> + <xsl:when test="@id = 'sup'">the-sub-and-sup-elements</xsl:when> + <xsl:when test="@id = 'title'">the-title-element-0</xsl:when> + <xsl:when test="@id = 'video'">video</xsl:when> + <xsl:otherwise> + <xsl:value-of select="concat('the-',@id,'-element')"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> <span class="spec-link"> <a title="Read about the {@id} element in the HTML5 spec" - href="http://dev.w3.org/html5/spec-author-view/#the-{@id}-element"><img + href="http://dev.w3.org/html5/spec-author-view/#{$target}"><img src="images/External.png"></img></a> </span> </xsl:if>
Received on Sunday, 28 March 2010 23:11:10 UTC