2e2010fbb7
- The structure of transtable.xml is revised. <word> should be bracketed with <group>. - A sorting order of the FreeBSD mirror sites rendered using mirrors.xml has been determined by sort(1). - A template "transtable-lookup" has been added for localization on word-by-word basis. - Replace English month names in news.xml, press.xml, and advisories.xml with numbers that correspond to the names. The number->name translation is performed on the fly. - Since information in mirrors.xml is used in www/ tree, it depends on doc/ tree now. When WITHOUT_DOC is defined it can be built without doc/ tree, but some information becomes unavailable. For example, a list of the mirror sites generated in index.html becomes a dummy one, and calling "transtable-lookup" with a word returns the word itself. Neither www/ nor doc/ build should be broken due to this commit, but until the necessary changes are applied in the localized directories, the transtable does not work; it simply generates non-localized contents even if transtable.xsl is used.
30 lines
946 B
XML
30 lines
946 B
XML
<?xml version="1.0" encoding="euc-jp"?>
|
|
<!-- $FreeBSD$ -->
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
|
|
<!-- must point to master copy, doc/share/sgml/mirrors-master.xsl -->
|
|
<xsl:import href="../../../share/sgml/mirrors-master.xsl" />
|
|
|
|
<xsl:output type="xml" encoding="euc-jp"
|
|
omit-xml-declaration="yes"
|
|
indent="yes"/>
|
|
|
|
<!-- template: "mirrors-docbook-contact" -->
|
|
|
|
<xsl:template name="mirrors-docbook-contact">
|
|
<xsl:param name="email" value="'someone@somewhere'"/>
|
|
|
|
<!-- for Japanese version -->
|
|
<para>問題がある場合は、このドメインのホストマスタ
|
|
<email><xsl:value-of select="$email" /></email> 宛にお問い合わせください。</para>
|
|
</xsl:template>
|
|
|
|
<!-- template: "mirrors-lastmodified" -->
|
|
|
|
<xsl:template name="mirrors-lastmodified">
|
|
<xsl:call-template name="mirrors-lastmodified-utc" />
|
|
<xsl:text> 現在</xsl:text>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|