PHP Classes

File: Example/_layout.xsl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Pierre-Henry Soria  >  XSLT PHP Template Engine  >  Example/_layout.xsl  >  Download  
File: Example/_layout.xsl
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: XSLT PHP Template Engine
Process templates using XSLT
Author: By
Last change:
Date: 3 years ago
Size: 1,512 bytes


Class file image Download
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns="" xmlns:xsl="" xmlns:php="" exclude-result-prefixes="php">

<!-- Output in HTML5 with doctype-system="about:legacy-compat" -->
<xsl:output method="xml" omit-xml-declaration="yes" doctype-system="about:legacy-compat" encoding="utf-8" />

  <xsl:include href="" />

  <xsl:template match="/">

    <html lang="{$lang}">
      <xsl:call-template name="metatags" />
      <xsl:call-template name="css" />


      <div id="container">

          <xsl:element name="h1"><xsl:value-of select="$heading1" /></xsl:element>

            <xsl:apply-templates />

          <p>Powered By <strong>
                  <xsl:attribute name="href"><xsl:value-of select="$copyright-link" /></xsl:attribute>
                  <xsl:attribute name="title"><xsl:value-of select="$copyright-title-link" /></xsl:attribute>
                  <xsl:value-of select="$copyright-title-link" />
              </strong> &#169; 2012 - <xsl:value-of select="php:function('date', 'Y')" />. &#160; &#8226; &#160; This website is valid <a href=""><abbr title="HyperText Markup Language 5">HTML5</abbr></a></p>