Public feed #724094

Stuff

public text v1 · immutable
Raw Edit
·published 2007-10-03 09:53 UTC
rendered paste body
		<xsl:variable name="previousYear" select="/motr/content/news/item[
			(
				count (/motr/meta/params/param) = 0
					and
				publishdate_time/@year = /motr/content/news/item[position () = $dateItemsLength]/publishdate_time/@year
			) or (
				count (/motr/meta/params/param) = 1 
					and 
<!--felet sker mellan här-->
				publishdate_time/@year 
					= 
				/motr/content/news/item[
					position () 
						= 
					count(
						/motr/content/news/item[
							publishdate_time/@year &gt; /motr/meta/params/param[
								position () = 1
							]
						]
					)
				]/publishdate_time/@year
<!-- och här ->
			)
			]/publishdate_time/@year" />