Re: DocBook xslTNG prerelease 2.0.7
Norm Tovey-Walsh <[email protected]> Tue, 07 Feb 2023 08:49:40 +0000
| Newsgroups | gmane.text.docbook.apps |
|---|---|
| Message-ID | <[email protected]> |
--=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tony Graham <[email protected]> writes: > On 06/02/2023 18:58, Dave Pawson wrote: >> On Mon, 6 Feb 2023 at 18:48, Tony Graham <[email protected]> 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=E2=80=99s a hierarchy: 1. If you specify $gentext-language, that=E2=80=99s 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=E2=80=99t know. 2. Otherwise, if you specify a language, that=E2=80=99s used. 3. Otherwise, the $default-language is used. If there=E2=80=99s a use case for xml:lang=3D"", I don=E2=80=99t know what = it is. Be seeing you, norm =2D- Norman Tovey-Walsh <[email protected]> https://nwalsh.com/ > There is only one difference between a madman and me. I am not > mad.--Salvador Dali --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSEJUqRvjpp8yLt8uKDEiZHbwv9OwUCY+IRdQAKCRCDEiZHbwv9 O+OQAP4psh5rsO+vgW4Bxc2FMYt29BtOxZYNYDQH8cX3KtTpLwD+MmR0JpHr1RzO h93I/CihXHiTb/zpcH61yNLsAeqD0AI= =ijD+ -----END PGP SIGNATURE----- --=-=-=--