xsl/xhtml5: fix news @date check again
This commit is contained in:
parent
ee5c98a0f4
commit
22ca23d9d3
|
@ -257,16 +257,17 @@
|
|||
<xsl:for-each select="document('../news.xml')/page/news/newsfile">
|
||||
<xsl:sort select="date:seconds(document(concat('../', .))/item/@date)" data-type="number" order="descending" />
|
||||
<xsl:variable name="newsfile" select="."/>
|
||||
<xsl:variable name="news" select="document(concat('../', $newsfile))"/>
|
||||
|
||||
<xsl:for-each select="document(concat('../', $newsfile))/item">
|
||||
<xsl:for-each select="$news/item">
|
||||
<xsl:if test="((string-length($prefix) = 0) or
|
||||
starts-with($newsfile, concat('content/news/', $prefix))) and
|
||||
(($details != 'resources-only') or
|
||||
(count(resource) > 0)) and
|
||||
starts-with(
|
||||
date:difference(
|
||||
document(concat('../', .))/item/@date,
|
||||
date:date-time()
|
||||
date:date-time(),
|
||||
$news/item/@date
|
||||
),
|
||||
'-'
|
||||
)">
|
||||
|
|
Loading…
Reference in New Issue