[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] DocBook xslTNG prerelease 2.0.7
On 06/02/2023 18:58, Dave Pawson wrote:
On Mon, 6 Feb 2023 at 18:48, Tony Graham <tgraham@antenna.co.jp> wrote:On 06/02/2023 15:23, Thomas Schraitle wrote: ...No localization exists for "" or "". Using default "en". Error at xsl:text on line 169 column 19 of functions.xsl: XTMM9000 Processing terminated by xsl:message at line 169 in functions.xslDo you have any 'xml:lang=""' in your document(s)? It looks like the function [1] can really only generate 'No localization exists for "" or "".' if '$gentext-language' is not set (not that I know how to set it) and there's an 'xml:lang=""' somewhere in your document.
...
Which begs the question, where to set the default language, and should it be reported as a bug if not set? [Guess, $gentext-language will default to 'default language' - does that make sense?]
If you look at line 145, $default-language is used if there's no $gentext-language and no @xml:lang. An empty @xml:lang would be used ahead of $default-language and would result in those empty values in the error message. Regards, Tony Graham. -- Senior Architect XML Division Antenna House, Inc. ---- Skerries, Ireland tgraham@antenna.co.jp[1] https://github.com/docbook/xslTNG/blob/main/src/main/xslt/modules/functions.xsl#L139
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]