diff options
author | dakkar <dakkar@thenautilus.net> | 2009-08-18 13:24:38 +0200 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2009-08-18 13:24:38 +0200 |
commit | 67feec7f67b5de0ebc0c028f18172e348104cd65 (patch) | |
tree | db8574f48fa19586f51d07d0108520eeb92625ea /xsl/layout.xsl | |
download | sitemake-67feec7f67b5de0ebc0c028f18172e348104cd65.tar.gz sitemake-67feec7f67b5de0ebc0c028f18172e348104cd65.tar.bz2 sitemake-67feec7f67b5de0ebc0c028f18172e348104cd65.zip |
Diffstat (limited to 'xsl/layout.xsl')
-rw-r--r-- | xsl/layout.xsl | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/xsl/layout.xsl b/xsl/layout.xsl new file mode 100644 index 0000000..6b4b15f --- /dev/null +++ b/xsl/layout.xsl @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html [ + <!ENTITY nbsp " "> +]> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output method="xml" indent="yes"/> + +<xsl:template match="/html"> + <html> + <xsl:copy-of select="@*"/> + <head> + <xsl:copy-of select="head/node()"/> + <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> + <link href="resolve:screen-s" title="Gianni" rel="stylesheet" type="text/css" media="screen"/> + <link href="resolve:print-s" title="Gianni" rel="stylesheet" type="text/css" media="print"/> + </head> + <body> + <table id="flowtable" cellpadding="0" cellspacing="0"> + <col id="firstcol"/><col id="secondcol"/> + <tr><td id="orizzontale"><h1><xsl:value-of select="body/h1[1]"/></h1></td><td id="angolo"> </td></tr> + <tr><td id="contenuto"> + <xsl:copy-of select="body/*[position()>1]"/> + </td> + <td id="navbar"> + <xsl:apply-templates select="navigation"/> + </td></tr> + </table> + </body></html> +</xsl:template> + +<xsl:template match="navigation"> + <xsl:apply-templates select="link[@rel='up' or @rel='same']"/> + <p><xsl:apply-templates select="link[@rel='lang']"/></p> +</xsl:template> + +<xsl:template match="navigation/link[@rel='up']"> + <p class="sep"><a href="{@href}"><xsl:value-of select="@text"/></a></p> +</xsl:template> + +<xsl:template match="navigation/link[@rel='same']"> + <p><a href="{@href}"><xsl:value-of select="@text"/></a></p> +</xsl:template> + +<xsl:template match="navigation/link[@rel='lang']"> + [<a href="{@href}"><xsl:value-of select="@text"/></a>] +</xsl:template> + +</xsl:stylesheet>
\ No newline at end of file |