diff options
Diffstat (limited to 'services.xsl')
-rw-r--r-- | services.xsl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/services.xsl b/services.xsl new file mode 100644 index 0000000..81f8cbb --- /dev/null +++ b/services.xsl @@ -0,0 +1,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> |