Re: [docbook-apps] DocBook xslTNG prerelease 2.0.7

From
Norm Tovey-Walsh <>
Date
2023-02-07T08:53:14+00:00
ID
Thread
Re: [docbook-apps] DocBook xslTNG prerelease 2.0.7
Tony Graham <> writes:
> On 06/02/2023 18:58, Dave Pawson wrote:
>> On Mon, 6 Feb 2023 at 18:48, Tony Graham <> wrote:
> ...
>> 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.

Thereâs a hierarchy:

1. If you specify $gentext-language, thatâs used. End of story. You want
   all the generated text to be in Thai even though the book claims to
   be in German, you got it. Why, I donât know.
2. Otherwise, if you specify a language, thatâs used.
3. Otherwise, the $default-language is used.

If thereâs a use case for xml:lang="", I donât know what it is.

                                        Be seeing you,
                                          norm

--
Norman Tovey-Walsh <>
https://nwalsh.com/

> There is only one difference between a madman and me. I am not
> mad.--Salvador Dali