|
|
@ -2,29 +2,31 @@ |
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="post"> |
|
|
|
<xsl:template match="post"> |
|
|
|
<item> |
|
|
|
<xsl:if test="not(poster/user/name = /session/user/name)"> |
|
|
|
<title> |
|
|
|
<item> |
|
|
|
<xsl:value-of select="title"/> |
|
|
|
<title> |
|
|
|
<xsl:text> îò </xsl:text> |
|
|
|
<xsl:value-of select="title"/> |
|
|
|
<xsl:value-of select="poster/user/name"/> |
|
|
|
<xsl:text> îò </xsl:text> |
|
|
|
</title> |
|
|
|
<xsl:value-of select="poster/user/name"/> |
|
|
|
<description> |
|
|
|
</title> |
|
|
|
<xsl:value-of select="body"/> |
|
|
|
<description> |
|
|
|
</description> |
|
|
|
<xsl:value-of select="body"/> |
|
|
|
<link> |
|
|
|
</description> |
|
|
|
<xsl:value-of select="$mainUrl"/> |
|
|
|
<link> |
|
|
|
<xsl:text>/Post/</xsl:text> |
|
|
|
<xsl:value-of select="$mainUrl"/> |
|
|
|
<xsl:value-of select="id"/> |
|
|
|
<xsl:text>/Post/</xsl:text> |
|
|
|
<xsl:text>/</xsl:text> |
|
|
|
<xsl:value-of select="id"/> |
|
|
|
</link> |
|
|
|
<xsl:text>/</xsl:text> |
|
|
|
<guid> |
|
|
|
</link> |
|
|
|
<xsl:text>post-</xsl:text> |
|
|
|
<guid> |
|
|
|
<xsl:value-of select="id"/> |
|
|
|
<xsl:text>post-</xsl:text> |
|
|
|
</guid> |
|
|
|
<xsl:value-of select="id"/> |
|
|
|
<pubDate> |
|
|
|
</guid> |
|
|
|
<xsl:apply-templates select="postDate/date" mode="dateTime"/> |
|
|
|
<pubDate> |
|
|
|
</pubDate> |
|
|
|
<xsl:apply-templates select="postDate/date" mode="dateTime"/> |
|
|
|
</item> |
|
|
|
</pubDate> |
|
|
|
|
|
|
|
</item> |
|
|
|
|
|
|
|
</xsl:if> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
</xsl:stylesheet> |
|
|
|
</xsl:stylesheet> |