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

html5/spec-author-view/tools preprocess.xsl,1.63,1.64

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 01 Jul 2011 02:50:26 +0000
To: public-html-commits@w3.org
Message-Id: <E1QcToI-00009P-1r@lionel-hutz.w3.org>
Update of /sources/public/html5/spec-author-view/tools
In directory hutz:/tmp/cvs-serv538/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.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- preprocess.xsl	30 Jun 2011 17:02:35 -0000	1.63
+++ preprocess.xsl	1 Jul 2011 02:50:23 -0000	1.64
@@ -445,20 +445,38 @@
     </xsl:for-each>
   </xsl:template>
   <xsl:template match="div[@class = 'impl']/p[child::a[@href = '#reflect']]"/>
-  <xsl:template match="a[@href[starts-with(.,'#handler-window-on')]]">
-    <a>
-      <xsl:copy-of select="@*"/>
-      <xsl:attribute name="href">
-        <xsl:value-of select="concat('#ix-handler-window-on', substring-after(@href, '-on'))"/>
-      </xsl:attribute>
-      <xsl:apply-templates/>
-    </a>
+  <xsl:template match="div[@class = 'impl'][child::p[child::dfn[@id = 'dom-a-protocol']]]">
+    <xsl:for-each select="p[child::dfn[@id = 'dom-a-protocol']]">
+      <xsl:text>&#10;</xsl:text>
+      <p>
+        <xsl:apply-templates/>
+      </p>
+      <xsl:text>&#10;</xsl:text>
+    </xsl:for-each>
   </xsl:template>
-  <xsl:template match="pre[@class = 'idl']//a[@href[starts-with(.,'#handler-on')]]">
+  <xsl:template match="div[@class = 'impl']/p[child::dfn[@id = 'dom-a-protocol']]"/>
+  <xsl:template match="div[@class = 'impl'][child::p[child::dfn[@id = 'dom-area-protocol']]]">
+    <xsl:for-each select="p[child::dfn[@id = 'dom-area-protocol']]">
+      <xsl:text>&#10;</xsl:text>
+      <p>
+        <xsl:apply-templates/>
+      </p>
+      <xsl:text>&#10;</xsl:text>
+    </xsl:for-each>
+  </xsl:template>
+  <xsl:template match="div[@class = 'impl']/p[child::dfn[@id = 'dom-area-protocol']]"/>
+  <xsl:template match="pre[@class = 'idl']//a[@href[starts-with(.,'#handler-')]]">
     <a>
       <xsl:copy-of select="@*"/>
       <xsl:attribute name="href">
-        <xsl:value-of select="concat('#ix-handler-on', substring-after(@href, '-on'))"/>
+        <xsl:choose>
+          <xsl:when test="@href[starts-with(.,'#handler-window-on')]">
+            <xsl:value-of select="concat('#ix-handler-window-on', substring-after(@href, '-on'))"/>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:value-of select="concat('#ix-handler-on', substring-after(@href, '-on'))"/>
+          </xsl:otherwise>
+        </xsl:choose>
       </xsl:attribute>
       <xsl:apply-templates/>
     </a>
Received on Friday, 1 July 2011 02:50:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 1 July 2011 02:50:27 GMT