ATOM: content/@type doch wieder auf xhtml, RFC4287 ist total irreführend

In Resource-URLs werden spaces durch + ersetzt


git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@506 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
astro 2006-08-03 14:59:15 +00:00
parent a7dbd9869f
commit cf43a9d427
3 changed files with 5 additions and 5 deletions

View File

@ -63,7 +63,7 @@
<author> <author>
<name><xsl:value-of select="@author"/></name> <name><xsl:value-of select="@author"/></name>
</author> </author>
<content type="html"> <content type="xhtml">
<!--div xmlns="http://www.w3.org/1999/xhtml"--> <!--div xmlns="http://www.w3.org/1999/xhtml"-->
<xsl:apply-templates/> <xsl:apply-templates/>
<!--/div--> <!--/div-->
@ -71,7 +71,7 @@
<xsl:for-each select="resource"> <xsl:for-each select="resource">
<link <link
rel="enclosure" rel="enclosure"
href="{.}" href="{translate(., ' ', '+')}"
type="{@type}" type="{@type}"
length="{@size}" length="{@size}"
/> />

View File

@ -58,7 +58,7 @@
--> -->
<xsl:for-each select="resource"> <xsl:for-each select="resource">
<enclosure <enclosure
url="{.}" url="{replace(., ' ', '+')}"
length="{@size}" length="{@size}"
type="{@type}" type="{@type}"
/> />

View File

@ -251,7 +251,7 @@
<ul> <ul>
<xsl:for-each select="resource"> <xsl:for-each select="resource">
<li> <li>
<a href="{.}" type="{@type}"> <a href="{replace(., ' ', '+'}" type="{@type}">
<xsl:choose> <xsl:choose>
<xsl:when test="@title"><xsl:value-of select="@title"/></xsl:when> <xsl:when test="@title"><xsl:value-of select="@title"/></xsl:when>
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise> <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
@ -267,7 +267,7 @@
<ul> <ul>
<xsl:for-each select="resource[not(@hide='yes')]"> <xsl:for-each select="resource[not(@hide='yes')]">
<li> <li>
<a href="{.}" type="{@type}"> <a href="{replace(., ' ', '+')}" type="{@type}">
<xsl:choose> <xsl:choose>
<xsl:when test="@title"><xsl:value-of select="@title"/></xsl:when> <xsl:when test="@title"><xsl:value-of select="@title"/></xsl:when>
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise> <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>