Skip to content

Instantly share code, notes, and snippets.

@cmnstmntmn
Created November 23, 2014 23:40
Show Gist options
  • Save cmnstmntmn/799440acb5c746dc3a1a to your computer and use it in GitHub Desktop.
Save cmnstmntmn/799440acb5c746dc3a1a to your computer and use it in GitHub Desktop.
html5 doctype
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="page-title.xsl"/>
<xsl:import href="navigation.xsl"/>
<xsl:import href="date-time.xsl"/>
<xsl:output method="xml" encoding="utf-8" indent="yes" omit-xml-declaration="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html>
</xsl:text>
<html prefix="og: http://ogp.me/ns#">
<head>
<!-- Meta -->
<title><xsl:call-template name="page-title"/></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- Open Graph Meta -->
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
<link rel="icon" type="images/png" href="{$workspace}/img/bookmark.png" />
<link rel="stylesheet" type="text/css" media="screen" href="{$workspace}/css/app.css" />
</head>
<body>
<h1>
<a href="{$root}"><xsl:value-of select="$website-name"/></a>
</h1>
<xsl:apply-templates select="data/navigation"/>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment