Fix für <link/> in news-rss.xml

git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@386 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
astro 2006-06-08 16:16:31 +00:00
parent 9e51377f34
commit 22d0b09855
1 changed files with 6 additions and 10 deletions

View File

@ -47,11 +47,11 @@
</xsl:template>
<xsl:template match="pre" mode="escaped">
&lt;pre&gt;<xsl:apply-templates/>&lt;/pre&gt;
&lt;pre&gt;<xsl:apply-templates mode="escaped"/>&lt;/pre&gt;
</xsl:template>
<xsl:template match="p" mode="escaped">
&lt;p&gt;<xsl:apply-templates/>&lt;/p&gt;
&lt;p&gt;<xsl:apply-templates mode="escaped"/>&lt;/p&gt;
</xsl:template>
<xsl:template match="image" mode="escaped">
@ -59,13 +59,9 @@
</xsl:template>
<xsl:template match="link" mode="escaped">
&lt;a<xsl:choose>
<xsl:when test="@href">
href="<xsl:value-of select="@href"/>"
</xsl:when>
<xsl:otherwise>
href="<xsl:value-of select="."/>"
</xsl:otherwise>
</xsl:choose><xsl:apply-templates/>&gt;
&lt;a <xsl:choose>
<xsl:when test="@href">href="<xsl:value-of select="@href"/>"</xsl:when>
<xsl:otherwise>href="<xsl:value-of select="."/>"</xsl:otherwise>
</xsl:choose>&gt;<xsl:apply-templates mode="escaped"/>&lt;/a&gt;
</xsl:template>
</xsl:stylesheet>