Fix a syntax error. This caused a build breakage in newer libxslt which check

the stylesheet syntax more strictly.

|It is an error for the value of either the use attribute or the match
|attribute to contain a VariableReference.
| (XSL Transformations (XSLT) Version 1.0, Section 12.2)
This commit is contained in:
Hiroki Sato 2013-01-09 14:50:21 +00:00
parent 0aa8e8251a
commit f88fe6df4c
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=40558

View file

@ -8,14 +8,16 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml">
xmlns:date="http://exslt.org/dates-and-times"
xmlns="http://www.w3.org/1999/xhtml"
extension-element-prefixes="date">
<xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/xml/libcommon.xsl"/>
<xsl:import href="http://www.FreeBSD.org/XML/www/share/xml/xhtml.xsl"/>
<xsl:variable name="title">&title;</xsl:variable>
<xsl:key name="last-year-event-by-country" match="event[number(enddate/year) = (number($curdate.year) - 1)]"
<xsl:key name="last-year-event-by-country" match="event[number(enddate/year) = (number(date:year()) - 1)]"
use="location/country" />
<xsl:key name="event-by-year" match="event" use="enddate/year" />