-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimised transform (how it should be in xdv 0.4)
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dv="http://namespaces.plone.org/xdv" xmlns:esi="http://www.edge-delivery.org/esi/1.0" xmlns:exsl="http://exslt.org/common" xmlns:str="http://exslt.org/strings" xmlns:xhtml="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="exsl str dv xhtml esi"> | ||
<xsl:output method="xml" indent="no" omit-xml-declaration="yes" media-type="text/html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/> | ||
|
||
<xsl:template match="/"> | ||
<html><head><xsl:apply-templates select="/html/head/base"/><meta http-equiv="content-type" content="text/html; charset=utf-8"/><xsl:apply-templates select="/html/head/title"/><meta name="keywords" content=""/><meta name="description" content=""/><link href="http://oskar:8080/theme/style.css" rel="stylesheet" type="text/css" media="screen"/></head><body> | ||
<div id="header"> | ||
<div id="menu"><xsl:apply-templates select="//*[@id = 'portal-globalnav']"/></div> | ||
<xsl:comment> end #menu </xsl:comment> | ||
<div id="search"><xsl:apply-templates select="//*[@id = 'portal-searchbox']"/></div> | ||
<xsl:comment> end #search </xsl:comment> | ||
</div> | ||
<xsl:comment> end #header </xsl:comment> | ||
<xsl:comment> end #header-wrapper </xsl:comment> | ||
<div id="logo"> | ||
<h1><a href="#">Substantial </a></h1> | ||
<p><em> template design by <a href="http://www.freecsstemplates.org/"> CSS Templates</a></em></p> | ||
</div> | ||
<hr/><xsl:comment> end #logo </xsl:comment><div id="page"> | ||
<div id="content"> | ||
<div id="content-bgtop"> | ||
<div id="content-bgbtm"><xsl:apply-templates select="//*[@id = 'content']/*"/></div> | ||
</div> | ||
</div> | ||
<xsl:comment> end #content </xsl:comment> | ||
<div id="sidebar"><xsl:apply-templates select="//*[@id = 'portal-column-two']"/></div> | ||
<xsl:comment> end #sidebar </xsl:comment> | ||
<div style="clear: both;"> </div> | ||
<xsl:comment> end #page </xsl:comment> | ||
<div id="footer"> | ||
<p><xsl:apply-templates select="//*[@id = 'portal-colophon']/div[contains(concat(' ', normalize-space(@class), ' '), ' colophonWrapper ')]/ul/li"/></p> | ||
</div> | ||
<xsl:comment> end #footer </xsl:comment> | ||
</div> | ||
<xsl:apply-templates select="/html/body/@id"/></body></html> | ||
</xsl:template> | ||
<xsl:template match="style|script|xhtml:style|xhtml:script" priority="5"> | ||
<xsl:element name="{local-name()}"> | ||
<xsl:apply-templates select="@*"/> | ||
<xsl:value-of select="text()" disable-output-escaping="yes"/> | ||
</xsl:element> | ||
</xsl:template> | ||
<xsl:template match="node()|@*" priority="1"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="node()|@*"/> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
<!-- | ||
Extra templates | ||
--> | ||
|
||
</xsl:stylesheet> |