Fix syntax errors in translated documents. These 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 16:13:30 +00:00
parent b9d31cf178
commit a4266c0837
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=40560
13 changed files with 43 additions and 33 deletions

View file

@ -9,12 +9,14 @@
<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: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" />