diff options
Diffstat (limited to 'services.xsl')
-rw-r--r-- | services.xsl | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/services.xsl b/services.xsl deleted file mode 100644 index 1391b68..0000000 --- a/services.xsl +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - version="1.0" - xmlns:s="https://beratung-franzke.de/web-tpl" - xmlns:rss2="http://purl.org/rss/2.0/" - xmlns:str="http://exslt.org/strings" - xmlns="http://www.w3.org/1999/xhtml" - exclude-result-prefixes="s rss2" - extension-element-prefixes="str"> - - <xsl:include href="xsl/layout.xsl" /> - - <!-- Convert inline p-tags to spans, since there is not a - consistent use of p in buchhalterservice's xml. --> - <xsl:template match="p" mode="copy-description"> - <span> - <xsl:apply-templates mode="copy-description"/> - </span> - </xsl:template> - - <xsl:template match="*" mode="copy-description"> - <xsl:element name="{local-name()}"> - <xsl:apply-templates mode="copy-description" select="@*|node()" /> - </xsl:element> - </xsl:template> - <xsl:template match="@*" mode="copy-description"> - <xsl:attribute name="{local-name()}"> - <xsl:value-of select="." /> - </xsl:attribute> - </xsl:template> - - <xsl:template match="s:buchhalterservice" mode="html"> - <div class="news"> - <xsl:for-each select="document(@filename)/rss2:rss/rss2:channel/rss2:item"> - <xsl:variable name="i"> - <xsl:number /> - </xsl:variable> - <xsl:if test="$i <= 5"> - <div> - <a href="{rss2:link}"><xsl:value-of select="rss2:title" /></a> - <p> - <xsl:apply-templates mode="copy-description" select="rss2:description/node()"/> - </p> - </div> - </xsl:if> - </xsl:for-each> - </div> - </xsl:template> - -</xsl:stylesheet> |