From: <ko...@us...> - 2010-07-18 20:19:58
|
Revision: 8748 http://docbook.svn.sourceforge.net/docbook/?rev=8748&view=rev Author: kosek Date: 2010-07-18 20:19:52 +0000 (Sun, 18 Jul 2010) Log Message: ----------- Workaround bug in Xalan-J. Path to locale files is written in a way it produces same absolute URI whether base URI is in .../common or .../html or .../fo directory. Modified Paths: -------------- trunk/xsl/common/autoidx-kosek.xsl trunk/xsl/common/l10n.xsl Modified: trunk/xsl/common/autoidx-kosek.xsl =================================================================== --- trunk/xsl/common/autoidx-kosek.xsl 2010-07-18 18:39:28 UTC (rev 8747) +++ trunk/xsl/common/autoidx-kosek.xsl 2010-07-18 20:19:52 UTC (rev 8748) @@ -49,7 +49,7 @@ select="($local.l10n.xml//l:i18n/l:l10n[@language=$lang]/l:letters)[1]"/> <xsl:variable name="l10n.letters" - select="document(concat($lang, '.xml'))/l:l10n/l:letters[1]"/> + select="document(concat('../common/', $lang, '.xml'))/l:l10n/l:letters[1]"/> <xsl:choose> <xsl:when test="count($local.l10n.letters) > 0"> @@ -73,7 +73,7 @@ </xsl:choose> </xsl:message> - <xsl:copy-of select="document('en.xml')/l:l10n/l:letters[1]"/> + <xsl:copy-of select="document('../common/en.xml')/l:l10n/l:letters[1]"/> </xsl:otherwise> </xsl:choose> </xsl:variable> @@ -109,7 +109,7 @@ select="($local.l10n.xml//l:i18n/l:l10n[@language=$lang]/l:letters)[1]"/> <xsl:variable name="l10n.letters" - select="document(concat($lang, '.xml'))/l:l10n/l:letters[1]"/> + select="document(concat('../common/', $lang, '.xml'))/l:l10n/l:letters[1]"/> <xsl:choose> <xsl:when test="count($local.l10n.letters) > 0"> @@ -133,7 +133,7 @@ </xsl:choose> </xsl:message> - <xsl:copy-of select="document('en.xml')/l:l10n/l:letters[1]"/> + <xsl:copy-of select="document('../common/en.xml')/l:l10n/l:letters[1]"/> </xsl:otherwise> </xsl:choose> </xsl:variable> Modified: trunk/xsl/common/l10n.xsl =================================================================== --- trunk/xsl/common/l10n.xsl 2010-07-18 18:39:28 UTC (rev 8747) +++ trunk/xsl/common/l10n.xsl 2010-07-18 20:19:52 UTC (rev 8748) @@ -119,7 +119,7 @@ </xsl:param> <xsl:value-of - select="document($l10n.xml/l:i18n/l:l10n[@language=$lang]/@href)/l:l10n/@english-language-name"/> + select="document(concat('../common/', $lang, '.xml'))/l:l10n/@english-language-name"/> </xsl:template> <xsl:template name="language.attribute"> @@ -222,7 +222,7 @@ <xsl:call-template name="l10n.language"/> </xsl:param> - <xsl:for-each select="document(concat($lang, '.xml'))"> <!-- We need to switch context in order to make key() work --> + <xsl:for-each select="document(concat('../common/', $lang, '.xml'))"> <!-- We need to switch context in order to make key() work --> <xsl:variable name="local.l10n.gentext" select="($local.l10n.xml//l:i18n/l:l10n[@language=$lang]/l:gentext[@key=$key])[1]"/> @@ -253,7 +253,7 @@ </xsl:choose> </xsl:message> - <xsl:for-each select="document('en.xml')"> <!-- We need to switch context in order to make key() work --> + <xsl:for-each select="document('../common/en.xml')"> <!-- We need to switch context in order to make key() work --> <xsl:value-of select="key('l10n-gentext', $key)[1]/@text"/> </xsl:for-each> </xsl:otherwise> @@ -295,7 +295,7 @@ <xsl:call-template name="l10n.language"/> </xsl:param> - <xsl:for-each select="document(concat($lang, '.xml'))"> <!-- We need to switch context in order to make key() work --> + <xsl:for-each select="document(concat('../common/', $lang, '.xml'))"> <!-- We need to switch context in order to make key() work --> <xsl:variable name="local.l10n.dingbat" select="($local.l10n.xml//l:i18n/l:l10n[@language=$lang]/l:dingbat[@key=$dingbat])[1]"/> @@ -318,7 +318,7 @@ <xsl:text> exists; using "en".</xsl:text> </xsl:message> - <xsl:for-each select="document('en.xml')"> <!-- We need to switch context in order to make key() work --> + <xsl:for-each select="document('../common/en.xml')"> <!-- We need to switch context in order to make key() work --> <xsl:value-of select="key('l10n-dingbat', $dingbat)[1]/@text"/> </xsl:for-each> </xsl:otherwise> @@ -388,7 +388,7 @@ </xsl:param> <xsl:param name="verbose" select="1"/> - <xsl:for-each select="document(concat($lang, '.xml'))"> <!-- We need to switch context in order to make key() work --> + <xsl:for-each select="document(concat('../common/', $lang, '.xml'))"> <!-- We need to switch context in order to make key() work --> <xsl:variable name="local.localization.node" select="($local.l10n.xml//l:i18n/l:l10n[@language=$lang])[1]"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |