[publican-list] [Bug 696397] use "xml:lang" instead of "lang" in DocBook 5

bugzilla at redhat.com bugzilla at redhat.com
Thu Apr 14 01:26:35 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=696397

--- Comment #1 from Jeff Fearn <jfearn at redhat.com> 2011-04-13 21:26:34 EDT ---
(In reply to comment #0)
> Publican adds a "lang" attribute to nodes, but this attribute has been renamed
> to "xml:lang" in DocBook 5. DocBook 5 documents therefore do not validate.

The real problem doesn't come in the intermediate files, it comes in the
source.

xml:lang is an XML attribute and has always existed, it's use case is to say
'this content is authored in this language'.

DocBook's lang attribute has a separate use case 'this content should only be
displayed in the following languages'.

So, xml:lang is a single language, in which the content was authored, and
DocBook lang is a list of languages used for profiling, or filtering, output.

If DocBook 5 has removed the lang attribute then we will lose the ability to
selectively use content on a per language basis. Or at least we will need to
try and use the condition tag for such use cases ... it will probably get ugly
if books using lang this way also have other conditional logic.

Cheers, Jeff.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the publican-list mailing list