html5/markup/tools toc.xsl,1.5,1.6

Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv14804/tools

Modified Files:
	toc.xsl 
Log Message:
output a "NEW" indicate on the TOC next to elements that are newly added in HTML5


Index: toc.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/toc.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- toc.xsl	1 Aug 2009 17:59:10 -0000	1.5
+++ toc.xsl	9 Sep 2009 09:26:39 -0000	1.6
@@ -87,6 +87,56 @@
               <xsl:text> </xsl:text>
               <xsl:copy-of select='(h:h2|h:h3|h:h4|h:h5|h:h6)/node()'/>
             </a>
+            <xsl:if test='@id="aside"
+              or @id="audio"
+              or @id="canvas"
+              or @id="command"
+              or @id="command.command"
+              or @id="command.radio"
+              or @id="command.checkbox"
+              or @id="command.checkbox"
+              or @id="datalist"
+              or @id="details"
+              or @id="dialog"
+              or @id="figure"
+              or @id="header"
+              or @id="hgroup"
+              or @id="input.datetime"
+              or @id="input.datetime-local"
+              or @id="input.date"
+              or @id="input.month"
+              or @id="input.time"
+              or @id="input.week"
+              or @id="input.number"
+              or @id="input.range"
+              or @id="input.email"
+              or @id="input.url"
+              or @id="input.search"
+              or @id="input.tel"
+              or @id="input.color"
+              or @id="keygen"
+              or @id="mark"
+              or @id="mark"
+              or @id="menu"
+              or @id="meta.charset"
+              or @id="meter"
+              or @id="nav"
+              or @id="output"
+              or @id="output"
+              or @id="progress"
+              or @id="rp"
+              or @id="rt"
+              or @id="ruby"
+              or @id="section"
+              or @id="source"
+              or @id="time"
+              or @id="video"
+
+
+              '>
+              <xsl:text> </xsl:text>
+              <span class="new-element">NEW</span>
+            </xsl:if>
             <xsl:if test='h:h2[@class = "element-head"]
               and .//*[@class = "obsolete"]'>
               <xsl:text> </xsl:text>

Received on Wednesday, 9 September 2009 09:35:49 UTC