noted idea on comparing current and date of the news posted
This commit is contained in:
parent
0e32e49904
commit
9d9a63871d
|
@ -87,6 +87,11 @@
|
|||
<xsl:template match="item" mode="news">
|
||||
<xsl:param name="link"/>
|
||||
|
||||
<!-- date cannot be compared (to current date) in xslt 1.0 without a param handed over -->
|
||||
<!-- current-date() as of XSLT 2.0 -->
|
||||
<!--
|
||||
<xsl:if test="{@date}">
|
||||
-->
|
||||
<item date="{@date}" class="news">
|
||||
<header>News</header>
|
||||
<footer>by <xsl:value-of select="@author"/></footer>
|
||||
|
@ -94,6 +99,9 @@
|
|||
<xsl:apply-templates select=".//image[1]" mode="news"/>
|
||||
<link><xsl:value-of select="$link"/></link>
|
||||
</item>
|
||||
<!--
|
||||
</xsl:if>
|
||||
-->
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="item/image[1]" mode="news">
|
||||
|
|
Loading…
Reference in New Issue