Changed whyfs to be automatically updated.

Fixed XSL to disable-output-escaping.

svn path=/trunk/; revision=3139
This commit is contained in:
2003-02-01 19:02:24 +00:00
parent c88b68eb1c
commit f469de52bb
4 changed files with 40 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<set>
<table width="80%" cellpadding="1" border="0">
<tr>
<td><a href="http://www.alcove.com/">Alcôve</a></td>
@@ -36,3 +37,4 @@
<td></td>
</tr>
</table>
</set>

View File

@@ -8,8 +8,6 @@
<title>FSF Europe - Why we speak about Free Software</title>
</head>
<body>
<div> <!-- The header will be inserted here -->
<!-- Begin page content -->
<center><h2>We speak about Free Software</h2></center>
@@ -111,11 +109,9 @@ information <a href="whyfs-howto.en.html">here</a>.</p>
<hr />
<h2>We speak about Free Software</h2>
<ul>
&companies;
</ul>
</body>
<footer>
<br />
@@ -130,14 +126,12 @@ Software&quot; campaign.</ul></p>
<!-- End page content -->
</div> <!-- The footer will be inserted here -->
Last update:
<!-- timestamp start -->
$Date$ $Author$
<!-- timestamp end -->
</body>
</footer>
</html>
<!--
Local Variables: ***

34
documents/whyfs.xsl Normal file
View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<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:template match="/">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
<xsl:template match="/html/body">
<body>
<xsl:apply-templates />
<xsl:apply-templates select="/html/set" />
<xsl:apply-templates select="/html/footer" />
</body>
</xsl:template>
<xsl:template match="@*|node()" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="set">
</xsl:template>
</xsl:stylesheet>

View File

@@ -73,7 +73,7 @@
<xsl:sort select="@id" />
<xsl:choose>
<xsl:when test="@id=/buildinfo/@language">
<xsl:value-of select="." />
<xsl:value-of select="." disable-output-escaping="yes" />
</xsl:when>
<xsl:otherwise>
<xsl:element name="a">