Created
May 10, 2012 14:40
-
-
Save xpathr/2653499 to your computer and use it in GitHub Desktop.
HTML5 Master Stylesheet (XHTML syntax with indenting) by DavidOliver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
| <xsl:output method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" omit-xml-declaration="yes" encoding="UTF-8" indent="yes"/> | |
| <xsl:template match="/"> | |
| <xsl:comment><![CDATA[[if IE 6]><html lang="en" class="no-js ie6 lte-ie9 lte-ie8 lte-ie7 lte-ie6 gte-ie6"><![endif]]]></xsl:comment> | |
| <xsl:comment><![CDATA[[if IE 7]><html lang="en" class="no-js ie7 lte-ie9 lte-ie8 lte-ie7 gte-ie7 gte-ie6"><![endif]]]></xsl:comment> | |
| <xsl:comment><![CDATA[[if IE 8]><html lang="en" class="no-js ie8 lte-ie9 lte-ie8 gte-ie8 gte-ie7 gte-ie6"><![endif]]]></xsl:comment> | |
| <xsl:comment><![CDATA[[if IE 9]><html lang="en" class="no-js ie9 lte-ie9 gte-ie9 gte-ie8 gte-ie7 gte-ie6"><![endif]]]></xsl:comment> | |
| <xsl:comment><![CDATA[[if !(lte IE 9)]><!]]></xsl:comment><html lang="en" class="no-js"><xsl:comment><![CDATA[<![endif]]]></xsl:comment> | |
| <head> | |
| <title><xsl:value-of select="$page-title"/><xsl:text> — </xsl:text><xsl:value-of select="$website-name"/></title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.8, maximum-scale=2.0" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
| <link rel="stylesheet" href="{$workspace}/styles/style.css" /> | |
| <script src="{$workspace}/scripts/modernizr.js"></script> | |
| </head> | |
| <body class="page-{$current-page}"> | |
| <a href="#content-main" class="skip">Skip to main content</a> | |
| <header> | |
| <h1><xsl:value-of select="$page-title"/></h1> | |
| </header> | |
| <div id="content-main"> | |
| <xsl:apply-templates select="/data"/> | |
| </div> | |
| <footer> | |
| </footer> | |
| </body> | |
| </html> | |
| </xsl:template> | |
| </xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment