$baseurl and item/link/. fixed
git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@372 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
parent
a68c89b46c
commit
36f8131165
|
@ -12,7 +12,7 @@
|
|||
encoding="utf-8"
|
||||
indent="yes"/>
|
||||
|
||||
<xsl:variable name="baseurl"/>
|
||||
<xsl:variable name="baseurl">https://www.c3d2.de/</xsl:variable>
|
||||
|
||||
<xsl:template match="news">
|
||||
<xsl:element name="feed">
|
||||
|
@ -46,7 +46,7 @@
|
|||
<entry>
|
||||
<id><xsl:value-of select="crypto:sha1(concat(@title,@date))"/></id>
|
||||
<title><xsl:value-of select="@title"/></title>
|
||||
<link href="https://www.c3d2.de/{substring-before($newsfile, '.xml')}.html"/>
|
||||
<link href="{$baseurl}{substring-before(substring-after($newsfile, 'content/'), '.xml')}.html"/>
|
||||
<updated><xsl:value-of select="@date"/></updated>
|
||||
<author>
|
||||
<name><xsl:value-of select="@author"/></name>
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
encoding="utf-8"
|
||||
indent="yes"/>
|
||||
|
||||
<xsl:variable name="baseurl">https://www.c3d2.de/</xsl:variable>
|
||||
|
||||
<xsl:template match="news">
|
||||
<xsl:element name="rss">
|
||||
<xsl:attribute name="version">2.0</xsl:attribute>
|
||||
|
@ -36,7 +38,7 @@
|
|||
<xsl:param name="newsfile"/>
|
||||
<item>
|
||||
<title><xsl:value-of select="@title"/></title>
|
||||
<link>https://www.c3d2.de/<xsl:value-of select="substring-before($newsfile, '.xml')"/>.html</link>
|
||||
<link><xsl:value-of select="$baseurl"/><xsl:value-of select="substring-before(substring-after($newsfile, 'content/'), '.xml')"/>.html</link>
|
||||
<description><xsl:apply-templates mode="escaped"/></description>
|
||||
<author><xsl:value-of select="@author"/></author>
|
||||
<category><xsl:value-of select="@category"/></category>
|
||||
|
|
Loading…
Reference in New Issue