aboutsummaryrefslogtreecommitdiff
path: root/xsl/layout.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'xsl/layout.xsl')
-rw-r--r--xsl/layout.xsl48
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 "&#160;">
+]>
+<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">&nbsp;</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