Playing around with the leaflets list.
svn path=/trunk/; revision=10198
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="folder">
|
||||
<name>FSFE - Φάκελος</name>
|
||||
<description>
|
||||
Φάκελος με πληροφορίες για το FSFE
|
||||
</description>
|
||||
|
||||
<!--
|
||||
<pdflink>http://wherever.com/documents/leaflets/folder.pdf</pdflink>
|
||||
-->
|
||||
<xhtmllink>/documents/leaflets/folder.html</xhtmllink>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="folder">
|
||||
<name>FSFE - Folder</name>
|
||||
<description>
|
||||
Folder with FSFE information
|
||||
</description>
|
||||
|
||||
<!--
|
||||
<pdflink>http://wherever.com/documents/leaflets/folder.pdf</pdflink>
|
||||
-->
|
||||
<xhtmllink>/documents/leaflets/folder.html</xhtmllink>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="folder">
|
||||
<name>FSFE - Dossier</name>
|
||||
<description>
|
||||
Dossier d'information sur la FSFE
|
||||
</description>
|
||||
|
||||
<!--
|
||||
<pdflink>http://wherever.com/documents/leaflets/folder.pdf</pdflink>
|
||||
-->
|
||||
<xhtmllink>/documents/leaflets/folder.html</xhtmllink>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="folder">
|
||||
<name>FSFE - Cartellina</name>
|
||||
<description>
|
||||
Cartellina con le informazioni su FSFE
|
||||
</description>
|
||||
|
||||
<!--
|
||||
<pdflink>http://wherever.com/documents/leaflets/folder.pdf</pdflink>
|
||||
-->
|
||||
<xhtmllink>/documents/leaflets/folder.html</xhtmllink>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="folder">
|
||||
<name>FSFE - Brochure</name>
|
||||
<description>
|
||||
Brochure met FSFE-informatie
|
||||
</description>
|
||||
|
||||
<!--
|
||||
<pdflink>http://wherever.com/documents/leaflets/folder.pdf</pdflink>
|
||||
-->
|
||||
<xhtmllink>/documents/leaflets/folder.html</xhtmllink>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="leaflet">
|
||||
<name>FTF - Περίγραμμα</name>
|
||||
<description>
|
||||
Σχετικά με το FTF
|
||||
</description>
|
||||
<!--
|
||||
<pdflink>Link to pdf-variant</pdflink>
|
||||
-->
|
||||
<xhtmllink>/documents/leaflets/leaflet-FTF-about.html</xhtmllink>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="leaflet">
|
||||
<name>FTF - About</name>
|
||||
<description>
|
||||
About FTF
|
||||
</description>
|
||||
<!--
|
||||
<pdflink>Link to pdf-variant</pdflink>
|
||||
-->
|
||||
<xhtmllink>/documents/leaflets/leaflet-FTF-about.html</xhtmllink>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="leaflet">
|
||||
<name>FTF - Informazioni</name>
|
||||
<description>
|
||||
Informazioni sulla FTF
|
||||
</description>
|
||||
<!--
|
||||
<pdflink>Link to pdf-variant</pdflink>
|
||||
-->
|
||||
<xhtmllink>/documents/leaflets/leaflet-FTF-about.html</xhtmllink>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="leaflet">
|
||||
<name>FTF Info</name>
|
||||
<description>
|
||||
De Freedom Task Force
|
||||
</description>
|
||||
<!--
|
||||
<pdflink>Link to pdf-variant</pdflink>
|
||||
-->
|
||||
<xhtmllink>/documents/leaflets/leaflet-FTF-about.html</xhtmllink>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="leaflet">
|
||||
<name>SELF - Περίγραμμα</name>
|
||||
<description>
|
||||
Σχετικά με το SELF
|
||||
</description>
|
||||
<!--
|
||||
<pdflink></pdflink>
|
||||
-->
|
||||
<xhtmllink>/documents/leaflets/leaflet-SELF-about.html</xhtmllink>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="leaflet">
|
||||
<name>SELF - About</name>
|
||||
<description>
|
||||
About SELF
|
||||
</description>
|
||||
<!--
|
||||
<pdflink></pdflink>
|
||||
-->
|
||||
<xhtmllink>/documents/leaflets/leaflet-SELF-about.html</xhtmllink>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="leaflet">
|
||||
<name>SELF - Informazioni</name>
|
||||
<description>
|
||||
Informazioni su SELF
|
||||
</description>
|
||||
<!--
|
||||
<pdflink></pdflink>
|
||||
-->
|
||||
<xhtmllink>/documents/leaflets/leaflet-SELF-about.html</xhtmllink>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="leaflet">
|
||||
<name>SELF info</name>
|
||||
<description>
|
||||
Over SELF
|
||||
</description>
|
||||
<!--
|
||||
<pdflink></pdflink>
|
||||
-->
|
||||
<xhtmllink>/documents/leaflets/leaflet-SELF-about.html</xhtmllink>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,21 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>FSFE - Leaflets</title>
|
||||
<title>FSFE - Printable Information Material</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>FSFE - Leaflets</h1>
|
||||
<h1>Printable Information Material</h1>
|
||||
|
||||
<p>
|
||||
Note that this page is still work in progress. The PDF links are not yet
|
||||
working.
|
||||
</p>
|
||||
|
||||
<h2>Folder</h2>
|
||||
|
||||
<dynamic-content type="folder" />
|
||||
<dynamic-content type="folder"/>
|
||||
|
||||
<h2>Leaflets</h2>
|
||||
|
||||
<dynamic-content type="leaflet" />
|
||||
|
||||
<dynamic-content type="leaflet">
|
||||
<text id="online">Online version</text>
|
||||
<text id="pdf">PDF version</text>
|
||||
<text id="pdf1">with graphics</text>
|
||||
<text id="pdf2">without graphics</text>
|
||||
</dynamic-content>
|
||||
</body>
|
||||
|
||||
<timestamp>$Date$ $Author$</timestamp>
|
||||
|
17
documents/leaflets/leaflets.en.xml
Normal file
17
documents/leaflets/leaflets.en.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<publicationset>
|
||||
<publication type="leaflet" id="leaflet-FTF-about">
|
||||
<translation lang="de" langname="Deutsch">Über die Freedom Task Force</translation>
|
||||
<translation lang="el" langname="Ελληνικά">Σχετικά με την Ομάδα Εργασίας Ελευθερίας</translation>
|
||||
<translation lang="en" langname="English">About the Freedom Task Force</translation>
|
||||
<translation lang="it" langname="Italiano">Cos'è la Freedom Task Force</translation>
|
||||
<translation lang="nl" langname="Nederlands">De Freedom Task Force</translation>
|
||||
</publication>
|
||||
<publication type="leaflet" id="leaflet-SELF-about">
|
||||
<translation lang="el" langname="Ελληνικά">Σχετικά με το πρόγραμμα SELF</translation>
|
||||
<translation lang="en" langname="English">About the SELF project</translation>
|
||||
<translation lang="it" langname="Italiano">Cos'è il progetto SELF</translation>
|
||||
<translation lang="nl" langname="Nederlands">SELF-project</translation>
|
||||
</publication>
|
||||
</publicationset>
|
@@ -1,2 +1 @@
|
||||
documents/leaflets/leaflet:global
|
||||
documents/leaflets/folder:global
|
||||
documents/leaflets/leaflets:global
|
||||
|
@@ -1,53 +1,82 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="xml" encoding="ISO-8859-1" indent="yes" />
|
||||
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
|
||||
|
||||
<!-- Fill dynamic content -->
|
||||
<xsl:template match="dynamic-content">
|
||||
<xsl:variable name="type">
|
||||
<xsl:value-of select="@type"/>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="type"><xsl:value-of select="@type"/></xsl:variable>
|
||||
<xsl:variable name="text-online"><xsl:value-of select="text[@id='online']"/></xsl:variable>
|
||||
<xsl:variable name="text-pdf"><xsl:value-of select="text[@id='pdf']"/></xsl:variable>
|
||||
<xsl:variable name="text-pdf1"><xsl:value-of select="text[@id='pdf1']"/></xsl:variable>
|
||||
<xsl:variable name="text-pdf2"><xsl:value-of select="text[@id='pdf2']"/></xsl:variable>
|
||||
|
||||
<xsl:for-each select="/html/set/publication[@type=$type]">
|
||||
<xsl:sort select="@id"/>
|
||||
<xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
|
||||
|
||||
<!-- Header -->
|
||||
<xsl:element name="h3">
|
||||
<xsl:choose>
|
||||
<xsl:when test="translation[@lang=/html/@lang]!=''">
|
||||
<xsl:value-of select="translation[@lang=/html/@lang]"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="translation[@lang='en']"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:element>
|
||||
<xsl:element name="ul">
|
||||
|
||||
<!-- Debug -->
|
||||
<!--
|
||||
<xsl:element name="p">
|
||||
<xsl:value-of select="@type"/>
|
||||
</xsl:element>
|
||||
-->
|
||||
|
||||
<xsl:for-each select="/html/set/publication [@type = $type]">
|
||||
<xsl:sort select="name" />
|
||||
<!-- Link to online version -->
|
||||
<xsl:element name="li">
|
||||
<xsl:element name="p">
|
||||
<xsl:element name="b">
|
||||
<xsl:element name="a">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="xhtmllink" />
|
||||
<xsl:value-of select="$id"/>
|
||||
<xsl:text>.html</xsl:text>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="name" />
|
||||
<xsl:value-of select="$text-online"/>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
<xsl:variable name="pdflink">
|
||||
<xsl:value-of select="pdflink"/>
|
||||
</xsl:variable>
|
||||
<xsl:if test="$pdflink!=''">
|
||||
<xsl:text> (</xsl:text>
|
||||
|
||||
<!-- List of translations -->
|
||||
<xsl:element name="li">
|
||||
<xsl:value-of select="$text-pdf"/>
|
||||
<xsl:element name="ul">
|
||||
<xsl:for-each select="translation">
|
||||
<xsl:sort select="@lang"/>
|
||||
<xsl:element name="li">
|
||||
<xsl:value-of select="@langname"/>
|
||||
<xsl:text>: </xsl:text>
|
||||
<xsl:value-of select="node()"/>
|
||||
<xsl:text> [</xsl:text>
|
||||
<xsl:element name="a">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pdflink" />
|
||||
<xsl:value-of select="$id"/>
|
||||
<xsl:text>-</xsl:text>
|
||||
<xsl:value-of select="@lang"/>
|
||||
<xsl:text>-G.pdf</xsl:text>
|
||||
</xsl:attribute>
|
||||
<xsl:text>PDF</xsl:text>
|
||||
<xsl:value-of select="$text-pdf1"/>
|
||||
</xsl:element>
|
||||
<xsl:text>)</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:element name="br"/>
|
||||
<xsl:value-of select="description" />
|
||||
<xsl:text>] [</xsl:text>
|
||||
<xsl:element name="a">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$id"/>
|
||||
<xsl:text>-</xsl:text>
|
||||
<xsl:value-of select="@lang"/>
|
||||
<xsl:text>-0.pdf</xsl:text>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$text-pdf2"/>
|
||||
</xsl:element>
|
||||
<xsl:text>]</xsl:text>
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Do not copy <set> to output at all -->
|
||||
|
Reference in New Issue
Block a user