trying to add fetch-news function

svn path=/trunk/; revision=27889
This commit is contained in:
Max Mehl 2014-02-05 14:51:56 +00:00
parent dea7791b6f
commit 84d109e3e2
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,9 @@
news/*/news:global
news/generated_xml/:global
news/nl/nl:global
de/news/*/news:de
es/news/*/news:es
fr/news/*/news:fr
it/news/*/news:it
se/news/*/news:se
sq/news/*/news:sq

View File

@ -0,0 +1,30 @@
<?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:import href="../../fsfe.xsl" />
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
<xsl:template match="fetch-news">
<xsl:call-template name="fetch-news">
<xsl:with-param name="tag" select="'procurement'"/>
<xsl:with-param name="nb-items" select="15"/>
</xsl:call-template>
</xsl:template>
<!-- How to show a link -->
<xsl:template match="/buildinfo/document/set/news/link">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="text()" />
</xsl:attribute>
<xsl:text>[</xsl:text>
<xsl:value-of select="/buildinfo/document/text[@id='more']" />
<xsl:text>]</xsl:text>
</xsl:element>
</xsl:template>
</xsl:stylesheet>