- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 28 Jun 2011 08:53:38 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec-author-view/tools
In directory hutz:/tmp/cvs-serv22411/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.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- preprocess.xsl 28 Jun 2011 08:30:46 -0000 1.43
+++ preprocess.xsl 28 Jun 2011 08:53:36 -0000 1.44
@@ -436,13 +436,21 @@
elements.</p>
</xsl:template>
<xsl:template match="dl[@class = 'domintro']/dt/code[@title[starts-with(.,'dom-')]]">
- <code>
- <xsl:copy-of select="@*"/>
- <xsl:attribute name="id">
- <xsl:value-of select="translate(@title, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')"/>
- </xsl:attribute>
- <xsl:apply-templates/>
- </code>
+ <xsl:variable name="title" select="@title"/>
+ <xsl:choose>
+ <xsl:when test="preceding::dl[@class = 'domintro']/dt/code[@title = $title]">
+ <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>
+ <xsl:copy-of select="."/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="link[@href[starts-with(.,'data:text/css')]]"/>
</xsl:stylesheet>
Received on Tuesday, 28 June 2011 08:53:43 UTC