- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 12 Jul 2010 06:34:52 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec-author-view/tools In directory hutz:/tmp/cvs-serv16384/tools Modified Files: postprocess.xsl Removed Files: postprocess-complete.xsl Log Message: fixed stylesheet precedence --- postprocess-complete.xsl DELETED --- Index: postprocess.xsl =================================================================== RCS file: /sources/public/html5/spec-author-view/tools/postprocess.xsl,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- postprocess.xsl 12 Jul 2010 04:52:59 -0000 1.4 +++ postprocess.xsl 12 Jul 2010 06:34:50 -0000 1.5 @@ -14,14 +14,21 @@ <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:template> - <xsl:template match="head"> - <head> - <xsl:for-each select="node()"/> - <xsl:copy> - <xsl:apply-templates/> - </xsl:copy> - <link href="style.css" rel="stylesheet"/> - </head> + <xsl:template match="style[1]"> + <xsl:text> </xsl:text> + <link href="whatwg.css" rel="stylesheet"/> + <xsl:text> </xsl:text> + <xsl:copy-of select="."/> + <xsl:text> </xsl:text> + </xsl:template> + <xsl:template match="style[contains(.,'.domintro:before')]"/> + <xsl:template match="link[starts-with(@href,'http://www.w3.org/StyleSheets/TR/')][last()]"> + <xsl:copy-of select="."/> + <xsl:text> </xsl:text> + <link href="style.css" rel="stylesheet"/> + <xsl:text> </xsl:text> + <script src="link-fixup.js"></script> + <xsl:text> </xsl:text> </xsl:template> <xsl:template match="h1"> <h1>
Received on Monday, 12 July 2010 06:34:55 UTC