svn commit: r40560 - in head: de_DE.ISO8859-1/htdocs es_ES.ISO8859-1/htdocs/search fr_FR.ISO8859-1/htdocs/search hu_HU.ISO8859-2/htdocs hu_HU.ISO8859-2/htdocs/search hu_HU.ISO8859-2/share/xml ja_JP...
Hiroki Sato
hrs at FreeBSD.org
Wed Jan 9 16:13:33 UTC 2013
Author: hrs
Date: Wed Jan 9 16:13:30 2013
New Revision: 40560
URL: http://svnweb.freebsd.org/changeset/doc/40560
Log:
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)
Modified:
head/de_DE.ISO8859-1/htdocs/community.xsl
head/es_ES.ISO8859-1/htdocs/search/index-site.xsl
head/fr_FR.ISO8859-1/htdocs/search/index-site.xsl
head/hu_HU.ISO8859-2/htdocs/community.xsl
head/hu_HU.ISO8859-2/htdocs/search/index-site.xsl
head/hu_HU.ISO8859-2/share/xml/templates.events.xsl
head/ja_JP.eucJP/htdocs/community.xsl
head/ja_JP.eucJP/htdocs/search/index-site.xsl
head/ja_JP.eucJP/share/xml/templates.events.xsl
head/nl_NL.ISO8859-1/htdocs/community.xsl
head/ru_RU.KOI8-R/htdocs/community.xsl
head/ru_RU.KOI8-R/htdocs/search/index-site.xsl
head/ru_RU.KOI8-R/share/xml/templates.events.xsl
Modified: head/de_DE.ISO8859-1/htdocs/community.xsl
==============================================================================
--- head/de_DE.ISO8859-1/htdocs/community.xsl Wed Jan 9 14:52:58 2013 (r40559)
+++ head/de_DE.ISO8859-1/htdocs/community.xsl Wed Jan 9 16:13:30 2013 (r40560)
@@ -11,12 +11,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" />
Modified: head/es_ES.ISO8859-1/htdocs/search/index-site.xsl
==============================================================================
--- head/es_ES.ISO8859-1/htdocs/search/index-site.xsl Wed Jan 9 14:52:58 2013 (r40559)
+++ head/es_ES.ISO8859-1/htdocs/search/index-site.xsl Wed Jan 9 16:13:30 2013 (r40560)
@@ -21,7 +21,7 @@
<xsl:variable name="title">&title;</xsl:variable>
- <xsl:key name="indexLetter" match="term" use="translate(substring(text, 1, 1), $lowercase, $uppercase)"/>
+ <xsl:key name="indexLetter" match="term" use="translate(substring(text, 1, 1), 'aábcdeéfghiíjklmnñoópqrstuúvwxyz', 'AÁBCDEÉFGHIÍJKLMNÑOÓPQRSTUÚVWXYZ')"/>
<xsl:template name="process.contentwrap">
<xsl:call-template name="html-sitemap"/>
Modified: head/fr_FR.ISO8859-1/htdocs/search/index-site.xsl
==============================================================================
--- head/fr_FR.ISO8859-1/htdocs/search/index-site.xsl Wed Jan 9 14:52:58 2013 (r40559)
+++ head/fr_FR.ISO8859-1/htdocs/search/index-site.xsl Wed Jan 9 16:13:30 2013 (r40560)
@@ -27,7 +27,7 @@
<xsl:variable name="title">&title;</xsl:variable>
- <xsl:key name="indexLetter" match="term" use="translate(substring(text, 1, 1), $lowercase, $uppercase)"/>
+ <xsl:key name="indexLetter" match="term" use="translate(substring(text, 1, 1), 'aàbcçdeéèêfghiîjklmnoôpqrstuùûvwxyz', 'AÀBCÇDEÉÈÊFGHIÎJKLMNOÔPQRSTUÙÛVWXYZ')"/>
<xsl:template name="process.contentwrap">
<xsl:call-template name="html-sitemap"/>
Modified: head/hu_HU.ISO8859-2/htdocs/community.xsl
==============================================================================
--- head/hu_HU.ISO8859-2/htdocs/community.xsl Wed Jan 9 14:52:58 2013 (r40559)
+++ head/hu_HU.ISO8859-2/htdocs/community.xsl Wed Jan 9 16:13:30 2013 (r40560)
@@ -14,12 +14,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" />
Modified: head/hu_HU.ISO8859-2/htdocs/search/index-site.xsl
==============================================================================
--- head/hu_HU.ISO8859-2/htdocs/search/index-site.xsl Wed Jan 9 14:52:58 2013 (r40559)
+++ head/hu_HU.ISO8859-2/htdocs/search/index-site.xsl Wed Jan 9 16:13:30 2013 (r40560)
@@ -18,7 +18,7 @@
<xsl:variable name="title">&title;</xsl:variable>
- <xsl:key name="indexLetter" match="term" use="translate(substring(text, 1, 1), $lowercase, $uppercase)"/>
+ <xsl:key name="indexLetter" match="term" use="translate(substring(text, 1, 1), 'aábcdeéfghiíjklmnoóöõpqrstuúüûvwxyz', 'AÁBCDEÉFGHIÍJKLMNOÓÖÕPQRSTUÚÜÛVWXYZ')"/>
<xsl:template name="process.contentwrap">
<xsl:call-template name="html-sitemap"/>
Modified: head/hu_HU.ISO8859-2/share/xml/templates.events.xsl
==============================================================================
--- head/hu_HU.ISO8859-2/share/xml/templates.events.xsl Wed Jan 9 14:52:58 2013 (r40559)
+++ head/hu_HU.ISO8859-2/share/xml/templates.events.xsl Wed Jan 9 16:13:30 2013 (r40560)
@@ -57,12 +57,12 @@
<xsl:key name="event-by-country" match="event"
use="location/country/@code" />
- <xsl:key name="upcoming-event-by-country" match="event[((number(enddate/year) > number($curdate.year)) or
- (number(enddate/year) = number($curdate.year) and
- number(enddate/month) > number($curdate.month)) or
- (number(enddate/year) = number($curdate.year) and
- number(enddate/month) = number($curdate.month) and
- enddate/day >= $curdate.day))]"
+ <xsl:key name="upcoming-event-by-country" match="event[((number(enddate/year) > number(date:year())) or
+ (number(enddate/year) = number(date:year()) and
+ number(enddate/month) > number(date:month-in-year())) or
+ (number(enddate/year) = number(date:year()) and
+ number(enddate/month) = number(date:month-in-year()) and
+ enddate/day >= date:day-in-month()))]"
use="location/country/@code" />
<xsl:variable name="charturl" select="'http://chart.apis.google.com/chart?cht=t&chs=400x200&chtm=world&chco=ffffff,ffbe38,600000&chf=bg,s,4D89F9'" />
Modified: head/ja_JP.eucJP/htdocs/community.xsl
==============================================================================
--- head/ja_JP.eucJP/htdocs/community.xsl Wed Jan 9 14:52:58 2013 (r40559)
+++ head/ja_JP.eucJP/htdocs/community.xsl Wed Jan 9 16:13:30 2013 (r40560)
@@ -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" />
Modified: head/ja_JP.eucJP/htdocs/search/index-site.xsl
==============================================================================
--- head/ja_JP.eucJP/htdocs/search/index-site.xsl Wed Jan 9 14:52:58 2013 (r40559)
+++ head/ja_JP.eucJP/htdocs/search/index-site.xsl Wed Jan 9 16:13:30 2013 (r40560)
@@ -16,7 +16,7 @@
<xsl:import href="http://www.FreeBSD.org/XML/www/share/xml/libcommon.xsl"/>
<xsl:import href="http://www.FreeBSD.org/XML/www/share/xml/xhtml.xsl"/>
- <xsl:key name="indexLetter" match="term" use="translate(substring(text, 1, 1), $lowercase, $uppercase)"/>
+ <xsl:key name="indexLetter" match="term" use="translate(substring(text, 1, 1), 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
<xsl:variable name="title">&title;</xsl:variable>
Modified: head/ja_JP.eucJP/share/xml/templates.events.xsl
==============================================================================
--- head/ja_JP.eucJP/share/xml/templates.events.xsl Wed Jan 9 14:52:58 2013 (r40559)
+++ head/ja_JP.eucJP/share/xml/templates.events.xsl Wed Jan 9 16:13:30 2013 (r40560)
@@ -53,12 +53,12 @@
<xsl:key name="event-by-country" match="event"
use="location/country" />
- <xsl:key name="upcoming-event-by-country" match="event[((number(enddate/year) > number($curdate.year)) or
- (number(enddate/year) = number($curdate.year) and
- number(enddate/month) > number($curdate.month)) or
- (number(enddate/year) = number($curdate.year) and
- number(enddate/month) = number($curdate.month) and
- enddate/day >= $curdate.day))]"
+ <xsl:key name="upcoming-event-by-country" match="event[((number(enddate/year) > number(date:year())) or
+ (number(enddate/year) = number(date:year()) and
+ number(enddate/month) > number(date:month-in-year())) or
+ (number(enddate/year) = number(date:year()) and
+ number(enddate/month) = number(date:month-in-year()) and
+ enddate/day >= date:day-in-month()))]"
use="location/country" />
<xsl:variable name="charturl" select="'http://chart.apis.google.com/chart?cht=t&chs=400x200&chtm=world&chco=ffffff,ffbe38,600000&chf=bg,s,4D89F9'" />
Modified: head/nl_NL.ISO8859-1/htdocs/community.xsl
==============================================================================
--- head/nl_NL.ISO8859-1/htdocs/community.xsl Wed Jan 9 14:52:58 2013 (r40559)
+++ head/nl_NL.ISO8859-1/htdocs/community.xsl Wed Jan 9 16:13:30 2013 (r40560)
@@ -11,12 +11,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" />
Modified: head/ru_RU.KOI8-R/htdocs/community.xsl
==============================================================================
--- head/ru_RU.KOI8-R/htdocs/community.xsl Wed Jan 9 14:52:58 2013 (r40559)
+++ head/ru_RU.KOI8-R/htdocs/community.xsl Wed Jan 9 16:13:30 2013 (r40560)
@@ -14,12 +14,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" />
Modified: head/ru_RU.KOI8-R/htdocs/search/index-site.xsl
==============================================================================
--- head/ru_RU.KOI8-R/htdocs/search/index-site.xsl Wed Jan 9 14:52:58 2013 (r40559)
+++ head/ru_RU.KOI8-R/htdocs/search/index-site.xsl Wed Jan 9 16:13:30 2013 (r40560)
@@ -21,7 +21,7 @@
<xsl:import href="http://www.FreeBSD.org/XML/www/share/xml/libcommon.xsl"/>
<xsl:import href="http://www.FreeBSD.org/XML/www/share/xml/xhtml.xsl"/>
- <xsl:key name="indexLetter" match="term" use="translate(substring(text, 1, 1), $lowercase, $uppercase)"/>
+ <xsl:key name="indexLetter" match="term" use="translate(substring(text, 1, 1), 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
<xsl:variable name="title">&title;</xsl:variable>
Modified: head/ru_RU.KOI8-R/share/xml/templates.events.xsl
==============================================================================
--- head/ru_RU.KOI8-R/share/xml/templates.events.xsl Wed Jan 9 14:52:58 2013 (r40559)
+++ head/ru_RU.KOI8-R/share/xml/templates.events.xsl Wed Jan 9 16:13:30 2013 (r40560)
@@ -57,12 +57,12 @@
<xsl:key name="event-by-country" match="event"
use="location/country" />
- <xsl:key name="upcoming-event-by-country" match="event[((number(enddate/year) > number($curdate.year)) or
- (number(enddate/year) = number($curdate.year) and
- number(enddate/month) > number($curdate.month)) or
- (number(enddate/year) = number($curdate.year) and
- number(enddate/month) = number($curdate.month) and
- enddate/day >= $curdate.day))]"
+ <xsl:key name="upcoming-event-by-country" match="event[((number(enddate/year) > number(date:year())) or
+ (number(enddate/year) = number(date:year()) and
+ number(enddate/month) > number(date:month-in-year())) or
+ (number(enddate/year) = number(date:year()) and
+ number(enddate/month) = number(date:month-in-year()) and
+ enddate/day >= date:day-in-month()))]"
use="location/country" />
<xsl:variable name="charturl" select="'http://chart.apis.google.com/chart?cht=t&chs=400x200&chtm=world&chco=ffffff,ffbe38,600000&chf=bg,s,4D89F9'" />
More information about the svn-doc-head
mailing list