Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
An HTML5 master utility template for SymphonyCMS (XSLT).
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:output method="html" encoding="UTF-8" indent="yes" />
<xsl:template match="/">
<xsl:text disable-output-escaping="yes">&lt;</xsl:text>!DOCTYPE html<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
<xsl:text disable-output-escaping="yes"><![CDATA[
<!--[if lt IE 7 ]> <html lang="en" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js lt-ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head prefix="og: article:">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<!-- Meta -->
<meta name="description" content="DESC" />
<meta name="keywords" content="KEYW" />
<!-- Open Graph Meta -->
<meta property="og:title" content="TITLE" />
<meta property="og:description" content="DESC" />
<meta property="og:type" content="TYPE" />
<meta property="og:url" content="URL" />
<meta property="og:image" content="IMG" />
<meta property="og:site_name" content="TITLE" />
<link rel="shortcut icon" href="IMG" />
<!-- Stylesheets -->
<link rel="stylesheet" href="CSS" />
<!-- HTML5 tag fix -->
<xsl:text disable-output-escaping="yes"><![CDATA[
<!--[if lt IE 9 ]>
<script src=""></script>
<!-- Page content -->
<!-- Page content End -->
<!-- JavaScript -->
<script src="//"></script>
<script src="JS"></script>
<xsl:text disable-output-escaping="yes"><![CDATA[</html>]]></xsl:text>
<xsl:strip-space elements="*"/>
Copy link

animaux commented Mar 24, 2015

Using this: do you get the <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">-part still in your HTML too?

Aparently it’s valid, but an unneccessary double of the <meta charset="UTF-8" />.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment