summaryrefslogtreecommitdiff
path: root/xml
diff options
context:
space:
mode:
authorneysx <neysx>2008-11-01 13:19:12 +0000
committerneysx <neysx>2008-11-01 13:19:12 +0000
commitb9cca300f0b5e9b308319b40daa2aa5583f9407a (patch)
treefe9eede61db98345350e7563ac201261a661059a /xml
parent#204402 use local planet icon (diff)
downloadwww-redesign-b9cca300f0b5e9b308319b40daa2aa5583f9407a.tar.gz
www-redesign-b9cca300f0b5e9b308319b40daa2aa5583f9407a.tar.bz2
www-redesign-b9cca300f0b5e9b308319b40daa2aa5583f9407a.zip
Test blog posts without any title
Diffstat (limited to 'xml')
-rwxr-xr-xxml/htdocs/xsl/guide2.xsl12
1 files changed, 10 insertions, 2 deletions
diff --git a/xml/htdocs/xsl/guide2.xsl b/xml/htdocs/xsl/guide2.xsl
index 71ca5b89..83b500ad 100755
--- a/xml/htdocs/xsl/guide2.xsl
+++ b/xml/htdocs/xsl/guide2.xsl
@@ -713,8 +713,16 @@
<body><table>
<xsl:for-each select="$planet//item[substring(pubDate,1,16)=$pubDate and not(contains(link, 'http://www.gentoo.org/news'))]">
<tr>
- <ti><xsl:value-of select="substring-before(title,': ')"/></ti>
- <ti><uri link="{link}"><xsl:value-of select="substring-after(title,': ')"/></uri></ti>
+ <xsl:choose>
+ <xsl:when test="contains(title,': ')">
+ <ti><xsl:value-of select="substring-before(title,': ')"/></ti>
+ <ti><uri link="{link}"><xsl:value-of select="substring-after(title,': ')"/></uri></ti>
+ </xsl:when>
+ <xsl:otherwise>
+ <ti><xsl:value-of select="title"/></ti>
+ <ti><uri link="{link}">. . .</uri></ti>
+ </xsl:otherwise>
+ </xsl:choose>
</tr>
</xsl:for-each>
</table></body>