Browse Source

Update to xhtml+xslt, and some reorganization of the menus.

svn path=/trunk/; revision=202
pull/8/head
villate 20 years ago
parent
commit
97c9d89822
8 changed files with 626 additions and 742 deletions
  1. +45
    -12
      Makefile
  2. +45
    -0
      boilerplate.de.xhtml
  3. +45
    -0
      boilerplate.en.xhtml
  4. +45
    -0
      boilerplate.fr.xhtml
  5. +43
    -730
      fsfe.xsl
  6. +134
    -0
      navigation.de.xsl
  7. +134
    -0
      navigation.en.xsl
  8. +135
    -0
      navigation.fr.xsl

+ 45
- 12
Makefile View File

@ -1,18 +1,51 @@
pags = index.html mailinglists.html background.html
pags.de = index.de.html
pags.fr = index.fr.html
#
# XML validator
# -------------
# apt-get install rxp
# or
# ftp://ftp.cogsci.ed.ac.uk/pub/richard/rxp-1.2.3.tar.gz
#
# XSLT processor
# --------------
#
# sablotron (sabcmd)
# apt-get install sablotron
#
# libxslt + libxml2 (xsltproc)
# http://www.xmlsoft.org/
#
XSLTPROC = sabcmd
all: $(pags) $(pags.de) $(pags.fr)
FSFFRANCE = http://france.fsfeurope.org
FSFEUROPE = . # http://www.fsfeurope.org
FSF = http://www.fsf.org
GNU = http://www.gnu.org
$(pags): %.html: %.xml menu.xml fsfe.xsl
sabcmd fsfe.xsl $< > $@
XSLTOPTS = \
'$$fsffrance=$(FSFFRANCE)' \
'$$fsf=$(FSF)' \
'$$gnu=$(GNU)'
$(pags.de): %.html: %.xml menu.de.xml fsfe.de.xsl
sabcmd fsfe.de.xsl $< > $@
all:: process
$(pags.fr): %.html: %.xml menu.fr.xml fsfe.fr.xsl
sabcmd fsfe.fr.xsl $< > $@
# process xhtml files in all subdirectories, except fr/
process:
@find * -path 'fr' -prune -o -name '*.xhtml' -print | while read path ; \
do \
base=`expr $$path : '\(.*\).xhtml'` ; \
filebase=`basename $$base` ; \
dir=`dirname $$path` ; \
root=`dirname $$path | perl -pe 'chop; s:([^/]+):..:g if($$_ ne ".")'` ; \
$(XSLTPROC) fsfe.xsl $$path $(XSLTOPTS) '$$fsfeurope='$$root '$$filebase='$$filebase | \
perl -MFile::Copy -p -e '$$| = 1; copy("'$$dir'/$$1", \*STDOUT) if(/\#include virtual=\"(.*?)\"/); s/\$$//g if(/\$$''Date:/);' > $$base.html ; \
done
clean:
rm $(pags) $(pags.de) $(pags.fr)
# validate xhtml files in all subdirectories, except fr/
validate:
find . -path './fr' -prune -o -name '*.xhtml' -print | while read file ; \
do \
echo $$file ; \
rxp -Vs $$file ; \
done
.PHONY: process recurse

+ 45
- 0
boilerplate.de.xhtml View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="de">
<head>
<title>FSF Europe - Boilerplate</title>
</head>
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
Deutsch |
<a href="boilerplate.en.html">English</a> |
<a href="boilerplate.fr.html">Français</a>
]
</center>
<!-- Begin page content -->
<p>This rocks</p>
<!-- End page content -->
</div> <!-- The footer will be inserted here -->
Last update:
<!-- timestamp start -->
$Date: $ $Author: $
<!-- timestamp end -->
</body>
</html>
<!--
Local Variables: ***
mode: html ***
End: ***
-->

+ 45
- 0
boilerplate.en.xhtml View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
<title>FSF Europe - Boilerplate</title>
</head>
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="boilerplate.de.html">Deutsch</a> |
English |
<a href="boilerplate.fr.html">Français</a>
]
</center>
<!-- Begin page content -->
<p>This rocks</p>
<!-- End page content -->
</div> <!-- The footer will be inserted here -->
Last update:
<!-- timestamp start -->
$Date$ $Author$
<!-- timestamp end -->
</body>
</html>
<!--
Local Variables: ***
mode: html ***
End: ***
-->

+ 45
- 0
boilerplate.fr.xhtml View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="fr">
<head>
<title>FSF Europe - Boilerplate</title>
</head>
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="boilerplate.de.html">Deutsch</a> |
<a href="boilerplate.en.html">English</a> |
Français
]
</center>
<!-- Begin page content -->
<p>This rocks</p>
<!-- End page content -->
</div> <!-- The footer will be inserted here -->
Mis à jour:
<!-- timestamp start -->
$Date: $ $Author: $
<!-- timestamp end -->
</body>
</html>
<!--
Local Variables: ***
mode: html ***
End: ***
-->

+ 43
- 730
fsfe.xsl
File diff suppressed because it is too large
View File


+ 134
- 0
navigation.de.xsl View File

@ -0,0 +1,134 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/html[@lang='de']/body/div">
<!-- FSF related sites -->
<table cellspacing="0" cellpadding="0" width="100%" border="0"><tr bgcolor="#e7e7e7"><td><img src="{$fsffrance}/images/pix.png" width="1" height="1" alt="" /></td></tr></table>
<table cellspacing="0" cellpadding="1" width="100%" border="0">
<tr valign="middle">
<td class="newstext">
&nbsp;&nbsp;
<a class="topbanner" href="{$fsfeurope}/">FSF Europe</a>
</td>
<td class="newstext" align="right">
<a class="topbanner" href="{$fsf}/">FSF</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
<a class="topbanner" href="{$gnu}/">GNU</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
<a class="topbanner" href="http://es.gnu.org/">GNU Spain</a><br/>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr valign="middle" bgcolor="#6f6f6f">
<td><img src="{$fsffrance}/images/pix.png" width="1" height="1" alt="" /></td>
</tr>
</table>
<!-- Top menu line -->
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td class="TopTitle">
&nbsp;<a href="{$fsffrance}/index.en.html" class="T1">France</a> |
Germany
</td>
</tr>
</table>
<!-- Title bar -->
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td class="TopBody">
<a href="{$fsffrance}/index.en.html">
<img src="{$fsffrance}/images/gnulogo.jpg" alt="GNU Logo" border="0" />
</a>
</td>
<td class="TopBody" width="99%" height="99%">
<a class="TopTitleB">FSF Europe</a>
<br/>
<a class="TopTitle">Free Software - equal chances for economy and people</a>
</td>
<td align="right" valign="top" class="TopBody">
<a href="{$fsfeurope}/documents/freesoftware.de.html" class="T2">Was&nbsp;ist&nbsp;Freie&nbsp;Software?</a><br/>
<a href="{$fsfeurope}/documents/gnuproject.de.html" class="T2">Was&nbsp;ist&nbsp;das&nbsp;GNU-Projekt?</a><br/>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="99%" valign="top">
<xsl:apply-templates select="@*|node()"/>
<br/>
</td>
<!-- Menu column. On the right to be Lynx friendly. -->
<td>&nbsp;</td>
<td valign="top" class="TopBody">
<table summary="" width="150" border="0" cellspacing="0"
cellpadding="4">
<tr>
<td class="TopTitle" align="center">Sections</td>
</tr>
<tr>
<td align="right"><br/>
<a href="{$fsfeurope}/index.html" class="T2">Home</a><br/>
<a href="{$fsfeurope}/contact/index.html"
class="T2">Contact</a><br/>
<a href="{$fsfeurope}/background.html"
class="T2">Background</a><br/>
<a href="{$fsfeurope}/press/index.html"
class="T2">Press section</a><br/>
<a href="{$fsfeurope}/gbn/index.html"
class="T2">GNU Business Network</a><br/>
<br/></td>
</tr>
<tr>
<td class="TopTitle" align="center">Admin</td>
</tr>
<tr>
<td align="right"><br/>
<a href="http://savannah.gnu.org/projects/fsfe/"
class="T2">Project Summary</a><br/>
<a href="http://mailman.fsfeurope.org/mailman/listinfo/"
class="T2">Mailing Lists</a><br/>
<a href="http://www.gnu.org/server/standards/"
class="T2">GNU Guide</a><br/>
<a href="http://savannah.gnu.org/pm/task.php?group_id=53"
class="T2">Tasks</a><br/>
<br/></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- Bottom line -->
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="TopTitle">
<a href="{$filebase}.xhtml" class="T1">XHTML Source</a>&nbsp;&nbsp;|
&nbsp;&nbsp;<a href="{$fsfeurope}/fsfe.xsl" class="T1">XSL Style
Sheet</a><br/>
</td>
<td class="TopTitle" align="right">
&nbsp;<a href="mailto:webmaster@fsfeurope.org"
class="T1">webmaster@fsfeurope.org</a>
</td>
</tr>
<tr>
<td class="Body" align="center">
<font size="-2">
Copyright (C) 2001 FSF Europe<br/>
Verbatim copying and distribution of this entire article is
permitted in any medium, provided this notice is preserved.
</font>
</td>
<td class="Body">&nbsp;</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>

+ 134
- 0
navigation.en.xsl View File

@ -0,0 +1,134 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/html[@lang='en']/body/div">
<!-- FSF related sites -->
<table cellspacing="0" cellpadding="0" width="100%" border="0"><tr bgcolor="#e7e7e7"><td><img src="{$fsffrance}/images/pix.png" width="1" height="1" alt="" /></td></tr></table>
<table cellspacing="0" cellpadding="1" width="100%" border="0">
<tr valign="middle">
<td class="newstext">
&nbsp;&nbsp;
<a class="topbanner" href="{$fsfeurope}/">FSF Europe</a>
</td>
<td class="newstext" align="right">
<a class="topbanner" href="{$fsf}/">FSF</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
<a class="topbanner" href="{$gnu}/">GNU</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
<a class="topbanner" href="http://es.gnu.org/">GNU Spain</a><br/>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr valign="middle" bgcolor="#6f6f6f">
<td><img src="{$fsffrance}/images/pix.png" width="1" height="1" alt="" /></td>
</tr>
</table>
<!-- Top menu line -->
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td class="TopTitle">
&nbsp;<a href="{$fsffrance}/index.en.html" class="T1">France</a> |
Germany
</td>
</tr>
</table>
<!-- Title bar -->
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td class="TopBody">
<a href="{$fsffrance}/index.en.html">
<img src="{$fsffrance}/images/gnulogo.jpg" alt="GNU Logo" border="0" />
</a>
</td>
<td class="TopBody" width="99%" height="99%">
<a class="TopTitleB">FSF Europe</a>
<br/>
<a class="TopTitle">Free Software - equal chances for economy and people</a>
</td>
<td align="right" valign="top" class="TopBody">
<a href="{$fsfeurope}/documents/freesoftware.html" class="T2">What's&nbsp;Free&nbsp;Software?</a><br/>
<a href="{$fsfeurope}/documents/gnuproject.html" class="T2">What's&nbsp;the&nbsp;GNU&nbsp;Project?</a><br/>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="99%" valign="top">
<xsl:apply-templates select="@*|node()"/>
<br/>
</td>
<!-- Menu column. On the right to be Lynx friendly. -->
<td>&nbsp;</td>
<td valign="top" class="TopBody">
<table summary="" width="150" border="0" cellspacing="0"
cellpadding="4">
<tr>
<td class="TopTitle" align="center">Sections</td>
</tr>
<tr>
<td align="right"><br/>
<a href="{$fsfeurope}/index.html" class="T2">Home</a><br/>
<a href="{$fsfeurope}/contact/index.html"
class="T2">Contact</a><br/>
<a href="{$fsfeurope}/background.html"
class="T2">Background</a><br/>
<a href="{$fsfeurope}/press/index.html"
class="T2">Press section</a><br/>
<a href="{$fsfeurope}/gbn/index.html"
class="T2">GNU Business Network</a><br/>
<br/></td>
</tr>
<tr>
<td class="TopTitle" align="center">Admin</td>
</tr>
<tr>
<td align="right"><br/>
<a href="http://savannah.gnu.org/projects/fsfe/"
class="T2">Project Summary</a><br/>
<a href="http://mailman.fsfeurope.org/mailman/listinfo/"
class="T2">Mailing Lists</a><br/>
<a href="http://www.gnu.org/server/standards/"
class="T2">GNU Guide</a><br/>
<a href="http://savannah.gnu.org/pm/task.php?group_id=53"
class="T2">Tasks</a><br/>
<br/></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- Bottom line -->
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="TopTitle">
<a href="{$filebase}.xhtml" class="T1">XHTML Source</a>&nbsp;&nbsp;|
&nbsp;&nbsp;<a href="{$fsfeurope}/fsfe.xsl" class="T1">XSL Style
Sheet</a><br/>
</td>
<td class="TopTitle" align="right">
&nbsp;<a href="mailto:webmaster@fsfeurope.org"
class="T1">webmaster@fsfeurope.org</a>
</td>
</tr>
<tr>
<td class="Body" align="center">
<font size="-2">
Copyright (C) 2001 FSF Europe<br/>
Verbatim copying and distribution of this entire article is
permitted in any medium, provided this notice is preserved.
</font>
</td>
<td class="Body">&nbsp;</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>

+ 135
- 0
navigation.fr.xsl View File

@ -0,0 +1,135 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/html[@lang='fr']/body/div">
<!-- FSF related sites -->
<table cellspacing="0" cellpadding="0" width="100%" border="0"><tr bgcolor="#e7e7e7"><td><img src="{$fsffrance}/images/pix.png" width="1" height="1" alt="" /></td></tr></table>
<table cellspacing="0" cellpadding="1" width="100%" border="0">
<tr valign="middle">
<td class="newstext">
&nbsp;&nbsp;
<a class="topbanner" href="{$fsfeurope}/">FSF Europe</a>
</td>
<td class="newstext" align="right">
<a class="topbanner" href="{$fsf}/">FSF</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
<a class="topbanner" href="{$gnu}/">GNU</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
<a class="topbanner" href="http://es.gnu.org/">GNU Espagne</a><br/>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr valign="middle" bgcolor="#6f6f6f">
<td><img src="{$fsffrance}/images/pix.png" width="1" height="1" alt="" /></td>
</tr>
</table>
<!-- Top menu line -->
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td class="TopTitle">
&nbsp;<a href="{$fsffrance}/index.en.html" class="T1">France</a> |
Germany
</td>
</tr>
</table>
<!-- Title bar -->
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td class="TopBody">
<a href="{$fsffrance}/index.en.html">
<img src="{$fsffrance}/images/gnulogo.jpg" alt="GNU Logo" border="0" />
</a>
</td>
<td class="TopBody" width="99%" height="99%">
<a class="TopTitleB">FSF Europe</a>
<br/>
<a class="TopTitle">Free Software - equal chances for economy and people</a>
</td>
<td align="right" valign="top" class="TopBody">
<a href="{$fsfeurope}/documents/freesoftware.html" class="T2">What's&nbsp;Free&nbsp;Software?</a><br/>
<a href="{$fsfeurope}/documents/gnuproject.html" class="T2">What's&nbsp;the&nbsp;GNU&nbsp;Project?</a><br/>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="99%" valign="top">
<xsl:apply-templates select="@*|node()"/>
<br/>
</td>
<!-- Menu column. On the right to be Lynx friendly. -->
<td>&nbsp;</td>
<td valign="top" class="TopBody">
<table summary="" width="150" border="0" cellspacing="0"
cellpadding="4">
<tr>
<td class="TopTitle" align="center">Sections</td>
</tr>
<tr>
<td align="right"><br/>
<a href="{$fsfeurope}/index.html" class="T2">Home</a><br/>
<a href="{$fsfeurope}/contact/index.html"
class="T2">Contact</a><br/>
<a href="{$fsfeurope}/background.html"
class="T2">Background</a><br/>
<a href="{$fsfeurope}/press/index.html"
class="T2">Press section</a><br/>
<a href="{$fsfeurope}/gbn/index.html"
class="T2">GNU Business Network</a><br/>
<br/></td>
</tr>
<tr>
<td class="TopTitle" align="center">Admin</td>
</tr>
<tr>
<td align="right"><br/>
<a href="http://savannah.gnu.org/projects/fsfe/"
class="T2">Project Summary</a><br/>
<a href="http://mailman.fsfeurope.org/mailman/listinfo/"
class="T2">Mailing Lists</a><br/>
<a href="http://www.gnu.org/server/standards/"
class="T2">GNU Guide</a><br/>
<a href="http://savannah.gnu.org/pm/task.php?group_id=53"
class="T2">Tasks</a><br/>
<br/></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- Bottom line -->
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="TopTitle">
<a href="{$filebase}.xhtml" class="T1">XHTML Source</a>&nbsp;&nbsp;|
&nbsp;&nbsp;<a href="{$fsfeurope}/fsfe.xsl" class="T1">XSL Style
Sheet</a><br/>
</td>
<td class="TopTitle" align="right">
&nbsp;<a href="mailto:webmaster@fsfeurope.org"
class="T1">webmaster@fsfeurope.org</a>
</td>
</tr>
<tr>
<td class="Body" align="center">
<font size="-2">
Copyright (C) 2001 FSF Europe<br/>
La reproduction exacte et la distribution intégrale de cet article
sont permises sur n'importe quel support d'archivage, pourvu que
cette notice soit préservée.
</font>
</td>
<td class="Body">&nbsp;</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>

Loading…
Cancel
Save