mirror of
https://github.com/apache/httpd.git
synced 2025-10-25 21:57:48 +03:00
- Add a facility for translations. - Add a type="warning" for <note>. - Clean up some variable definitions. Submitted by: Patrik Grip-Jansson <patrikj@gnulix.org> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93685 13f79535-47bb-0310-9956-ffa450edef68
29 lines
1.0 KiB
XML
29 lines
1.0 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
|
|
<xsl:stylesheet version="1.0"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns="http://www.w3.org/TR/xhtml1/strict">
|
|
|
|
<!-- Constants used for case translation -->
|
|
<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
|
|
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
|
|
|
|
<!-- Defined parameters (overrideable) -->
|
|
<xsl:param name="relative-path" select="'.'"/>
|
|
|
|
<!-- Macros, variables, and stuff for the localization -->
|
|
|
|
<!-- English is the default language -->
|
|
<xsl:variable name="language">
|
|
<xsl:if test="modulesynopsis/language">
|
|
<xsl:value-of select="modulesynopsis/language"/>
|
|
</xsl:if>
|
|
<xsl:if test="not(modulesynopsis/language)">en</xsl:if>
|
|
</xsl:variable>
|
|
|
|
<!-- Read the localized messages from the specified language file -->
|
|
<xsl:variable name="messages" select="document(concat($language, '.xml'))/messages"/>
|
|
|
|
</xsl:stylesheet>
|
|
|