svn commit: r40558 - head/en_US.ISO8859-1/htdocs
Hiroki Sato
hrs at FreeBSD.org
Wed Jan 9 14:50:22 UTC 2013
Author: hrs
Date: Wed Jan 9 14:50:21 2013
New Revision: 40558
URL: http://svnweb.freebsd.org/changeset/doc/40558
Log:
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)
Modified:
head/en_US.ISO8859-1/htdocs/community.xsl
Modified: head/en_US.ISO8859-1/htdocs/community.xsl
==============================================================================
--- head/en_US.ISO8859-1/htdocs/community.xsl Wed Jan 9 14:45:35 2013 (r40557)
+++ head/en_US.ISO8859-1/htdocs/community.xsl Wed Jan 9 14:50:21 2013 (r40558)
@@ -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" />
More information about the svn-doc-head
mailing list