OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] DocBook xslTNG prerelease 2.0.7


Tony Graham <tgraham@antenna.co.jp> writes:
> On 06/02/2023 18:58, Dave Pawson wrote:
>> On Mon, 6 Feb 2023 at 18:48, Tony Graham <tgraham@antenna.co.jp> 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 <ndw@nwalsh.com>
https://nwalsh.com/

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

Attachment: signature.asc
Description: PGP signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]