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

html5/spec-author-view/tools preprocess.xsl,1.61,1.62

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 30 Jun 2011 16:39:32 +0000
To: public-html-commits@w3.org
Message-Id: <E1QcKH6-0003AC-43@lionel-hutz.w3.org>
Update of /sources/public/html5/spec-author-view/tools
In directory hutz:/tmp/cvs-serv11141/tools

Modified Files:
	preprocess.xsl 
Log Message:
Structured clone: Preserve sparse arrays and mention that non-index properties of arrays are preserved too. (whatwg r6274)

[updated by splitter]


Index: preprocess.xsl
===================================================================
RCS file: /sources/public/html5/spec-author-view/tools/preprocess.xsl,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- preprocess.xsl	30 Jun 2011 15:55:26 -0000	1.61
+++ preprocess.xsl	30 Jun 2011 16:39:30 -0000	1.62
@@ -436,15 +436,15 @@
       elements.</p>
   </xsl:template>
   <xsl:template match="div[@class = 'impl'][child::p[child::a[@href = '#reflect']]]">
-    <p>
-      <xsl:copy-of select="p[child::a[@href = '#reflect']]"/>
-      <xsl:apply-templates select="p[child::a[@href = '#reflect']]"/>
-    </p>
-    <div>
-      <xsl:copy-of select="@*"/>
-      <xsl:copy-of select="node()[not(p[child::a[@href = '#reflect']])]"/>
-    </div>
+    <xsl:for-each select="p[child::a[@href = '#reflect']]">
+      <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::a[@href = '#reflect']]"/>
   <xsl:template match="a[@href[starts-with(.,'#handler-window-on')]]">
     <a>
       <xsl:copy-of select="@*"/>
Received on Thursday, 30 June 2011 16:39:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 30 June 2011 16:39:44 GMT