Browse Source

legal news page, first draft

svn path=/trunk/; revision=22096
pull/8/head
nicoulas 8 years ago
parent
commit
65a6a31ff0
3 changed files with 63 additions and 0 deletions
  1. +24
    -0
      news/legal-news.en.xhtml
  2. +8
    -0
      news/legal-news.sources
  3. +31
    -0
      news/legal-news.xsl

+ 24
- 0
news/legal-news.en.xhtml View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>

<html>
<head>
<title>Legal News Archive – FSFE</title>
</head>
<body>
<h1>Legal News Archive</h1>

<p id="introduction">
This page collects all news items about legal matters.
</p>
<legal-news/>
</body>
<timestamp>$Date: 2011-04-22 17:37:47 +0200 (ven. 22 avril 2011) $ $Author: ato $</timestamp>
</html>
<!--
Local Variables: ***
mode: xml ***
End: ***
-->

+ 8
- 0
news/legal-news.sources View File

@@ -0,0 +1,8 @@
news/*/news:global
news/generated_xml/:global
de/news/*/news:de
es/news/*/news:es
fi/news/*/news:fi
fr/news/*/news:fr
it/news/*/news:it
se/news/*/news:se

+ 31
- 0
news/legal-news.xsl View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../tools/xsltsl/tagging.xsl" />
<xsl:output method="xml" encoding="UTF-8" indent="yes" />
<xsl:template match="/">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="legal-news">
<xsl:call-template name="fetch-news">
<xsl:with-param name="tag" select="'legal-news'" />
</xsl:call-template>
</xsl:template>
<!-- Do not copy <set> and <text> to output at all -->
<xsl:template match="/html/set" />
<xsl:template match="/html/text" />
<!-- For all other nodes, copy verbatim -->
<xsl:template match="@*|node()" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

Loading…
Cancel
Save