Re: DocBook xslTNG prerelease 2.0.7
Tony Graham <[email protected]> Mon, 6 Feb 2023 19:07:10 +0000
| Newsgroups | gmane.text.docbook.apps |
|---|---|
| Message-ID | <[email protected]> |
On 06/02/2023 18:58, Dave Pawson wrote: > On Mon, 6 Feb 2023 at 18:48, Tony Graham <[email protected]> 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.xsl >> >> Do 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 [email protected] [1] https://github.com/docbook/xslTNG/blob/main/src/main/xslt/modules/functions.xsl#L139