- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 05 Aug 2010 05:40:30 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv7990/tools
Modified Files:
chunker.xsl specgen.xsl
Log Message:
build tweak (moved IDs to html element (document element) in multipage output)
Index: specgen.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/specgen.xsl,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- specgen.xsl 4 Aug 2010 15:51:15 -0000 1.78
+++ specgen.xsl 5 Aug 2010 05:40:28 -0000 1.79
@@ -302,6 +302,7 @@
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="write.chunk">
+ <xsl:with-param name="id">index</xsl:with-param>
<xsl:with-param name="maturity" select="$maturity"/>
<xsl:with-param name="quiet" select="$quiet"/>
<xsl:with-param name="content" select="$index-contents"/>
@@ -809,7 +810,14 @@
<xsl:template match='h:section'>
<xsl:variable name="content">
<div>
- <xsl:copy-of select='@*[namespace-uri()="" or namespace-uri="http://www.w3.org/XML/1998/namespace"]'/>
+ <xsl:choose>
+ <xsl:when test="(../*[@id=$sectionsID or @id=$appendicesID] or contains(@class,'elementpage')) and not($chunk = 0)">
+ <xsl:copy-of select='@*[namespace-uri()="" or namespace-uri="http://www.w3.org/XML/1998/namespace"][not(name()="id")]'/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select='@*[namespace-uri()="" or namespace-uri="http://www.w3.org/XML/1998/namespace"]'/>
+ </xsl:otherwise>
+ </xsl:choose>
<xsl:attribute name="class">
<xsl:value-of select="normalize-space(concat(@class,' section'))"/>
</xsl:attribute>
@@ -819,6 +827,7 @@
<xsl:choose>
<xsl:when test="not($chunk=0) and (count(ancestor::h:section)=0 or child::h:h2[@class='element-head'])">
<xsl:call-template name="write.chunk">
+ <xsl:with-param name="id" select="@id"/>
<xsl:with-param name="maturity" select="$maturity"/>
<xsl:with-param name="quiet" select="$quiet"/>
<xsl:with-param name="content" select="$content"/>
Index: chunker.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/chunker.xsl,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- chunker.xsl 4 Aug 2010 15:51:15 -0000 1.15
+++ chunker.xsl 5 Aug 2010 05:40:28 -0000 1.16
@@ -11,6 +11,7 @@
<!-- * "Acknowledgements" comment at the end of this file. -->
<xsl:template name="write.chunk">
+ <xsl:param name="id"/>
<xsl:param name="maturity">ED</xsl:param>
<xsl:param name="filename" select="''"/>
<xsl:param name="quiet" select="0"/>
@@ -128,7 +129,7 @@
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
- <html>
+ <html id="{@id}">
<xsl:text> </xsl:text>
<head>
<xsl:text> </xsl:text>
Received on Thursday, 5 August 2010 05:40:32 UTC