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

bugzilla at redhat.com bugzilla at redhat.com
Thu Apr 14 03:26:33 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 #3 from Jeff Fearn <jfearn at redhat.com> 2011-04-13 23:26:32 EDT ---
(In reply to comment #2)
> > 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.
> 
> Yeah, "lang" is definitely gone, and the advice from docbook.org is to use
> xml:lang in its place:
> 
> "DocBook V5.0 is built on top of existing XML standards as much as possible,
> for example the lang attribute is superseded by the standard xml:lang
> attribute." -- http://www.docbook.org/docs/howto/
> 
> (Note also the two examples on that page, immediately before this in the text
> -- Example 1. DocBook V4.5 document vs Example 2. DocBook V5.0 document) 

The two examples are not equivalent in profile mode, and we use profile mode.
Although we do use our own profiling code, it does comply with the DocBook 4
profile use of lang.

> DocBook 4 common attributes:
> http://www.docbook.org/tdg/en/html/ref-elements.html#common.attributes
> 
> DocBook 5 common attributes:
> http://www.docbook.org/tdg5/en/html/ref-elements.html#common.attributes
> 
> Probably not good news :/

I don't think it will affect  many books, but it's probably going to be very
painful on the two or three books this will affect.

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