[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Serbian Latin localization not found on rendering (xsl stylesheets 1.66.1)
This is a bug in the sr_Latn.xml file. The value of the language attribute in that file should be "sr_latn" so that the lowercase matching can work. I just checked in the change to CVS. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Brane Jovanović" <fangorn@EUnet.yu> To: "DocBook Apps List" <docbook-apps@lists.oasis-open.org> Sent: Sunday, November 07, 2004 12:54 AM Subject: [docbook-apps] Serbian Latin localization not found on rendering (xsl stylesheets 1.66.1) Hi group. When trying to render DocBook documents (say, article) that has lang attribute set to "sr_Latn", I get output as if that attribute is set to "sr", that is, style sheets do not find that localization and use a fallback (sr). After doing some tracing, i think that problem might be in the following segment of common/i10n.xsl (lines 68-70 in docbook-xsl-1.66.1 package) ----- start of inserted text ------ <xsl:variable name="language" select="translate($mc-language, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')"/> ------ end of inserted text ------ which (if I understand correctly), lowercases language name to find its common elements localization in $LANG.xml file. In sr_Latn.xml, language is identified as language="sr_Latn"; however, if I change it to language="sr_latn", it gets found, and common elements output is correct. I also tried some older xsl style sheets packages (which have sr as "Serbian in Cyrillic Script" and sr_Latn as "Serbian in Latin Script") and found the same problem in all of them. Is this fix (lowercasing language name in LANG.xml) valid (not breaking IANA standard etc)? TIA, Branislav Jovanovic.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]