blob: 81f8cbb31b4f31e1e88327734a0848c3fe9fcacb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="https://beratung-franzke.de/web-tpl"
xmlns:rss2="http://purl.org/rss/2.0/"
xmlns:str="http://exslt.org/strings"
extension-element-prefixes="str">
<xsl:include href="xsl/layout.xsl" />
<xsl:template match="s:buchhalterservice" mode="html">
<div class="news">
<xsl:for-each select="document('buchhalterservice.xml')/rss2:rss/rss2:channel/rss2:item">
<xsl:variable name="i">
<xsl:number />
</xsl:variable>
<xsl:if test="$i <= 5">
<div>
<h3><a href="{rss2:link}"><xsl:value-of select="rss2:title" /></a></h3>
<xsl:copy-of select="rss2:description/*" />
</div>
</xsl:if>
</xsl:for-each>
</div>
</xsl:template>
</xsl:stylesheet>
|