aboutsummaryrefslogtreecommitdiff
path: root/xsl/layout.xsl
blob: 6b4b15f3414d9934edfb661688bcfff1fc77e38a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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>