W3C home > Mailing lists > Public > public-html-commits@w3.org > July 2011

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

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 01 Jul 2011 04:09:50 +0000
To: public-html-commits@w3.org
Message-Id: <E1QcV38-00020L-5L@lionel-hutz.w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 1 July 2011 04:09:52 GMT