html5/spec-author-view/tools preprocess.xsl,1.65,1.66

Update of /sources/public/html5/spec-author-view/tools
In directory hutz:/tmp/cvs-serv7600/tools

Modified Files:
	preprocess.xsl 
Log Message:
Revamp how audioTracks and videoTracks work on HTMLMediaElement and MediaStream. (whatwg r6275)

[updated by splitter]


Index: preprocess.xsl
===================================================================
RCS file: /sources/public/html5/spec-author-view/tools/preprocess.xsl,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- preprocess.xsl	1 Jul 2011 03:42:36 -0000	1.65
+++ preprocess.xsl	1 Jul 2011 04:09:47 -0000	1.66
@@ -522,13 +522,26 @@
         and not($title = 'dom-HTMLFormControlsCollection-namedItem' and preceding::code[@title = 'dom-HTMLFormControlsCollection-namedItem'])
         and not($title = 'dom-HTMLOptionsCollection-namedItem' and preceding::code[@title = 'dom-HTMLOptionsCollection-namedItem'])
         ">
-        <code>
-          <xsl:copy-of select="@*"/>
-          <xsl:attribute name="id">
-            <xsl:value-of select="translate(@title, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')"/>
-          </xsl:attribute>
-          <xsl:apply-templates/>
-        </code>
+        <xsl:choose>
+          <xsl:when test="self::*[local-name() = 'code']">
+            <code>
+              <xsl:copy-of select="@*"/>
+              <xsl:attribute name="id">
+                <xsl:value-of select="translate(@title, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')"/>
+              </xsl:attribute>
+              <xsl:apply-templates/>
+            </code>
+          </xsl:when>
+          <xsl:otherwise>
+            <a>
+              <xsl:copy-of select="@*"/>
+              <xsl:attribute name="id">
+                <xsl:value-of select="translate(@title, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')"/>
+              </xsl:attribute>
+              <xsl:apply-templates/>
+            </a>
+          </xsl:otherwise>
+        </xsl:choose>
       </xsl:when>
       <xsl:otherwise>
         <xsl:copy-of select="."/>

Received on Friday, 1 July 2011 04:09:51 UTC