Preface to the DocBook V5.2 Edition
This is version 5.2.19 of DocBook 5: The Definitive Guide. It describes the DocBook V5.2 schema, currently version 5.2.
You can get the latest version of the DocBook reference books and the DocBook sources for them from https://github.com/docbook/defguide/.
The current O'Reilly edition covers DocBook V5.0, the OASIS Standard.
Summary of Changes in DocBook V5.2
Many new synopsis elements for programming languages.
New
danger
admonition element.New
formalgroup
element to support subfigures, etc.New transclusion fixup attributes.
New
class
attribute on sectioning elements support legal sections.New
meta
element added toinfo
.Added XInclude-enabled schema versions of Assembly and BITS schemas.
Changes from DocBook 5.2 CR1 to DocBook 5.2 CR2
Updated content models so that modifier
can appear
after
classname
in ooclass
,
interfacename
in oointerface
,
exceptionname
in ooexception
,
varname
in fieldsynopsis
,
methodname
in constructorsynopsis
,
methodname
in destructorsynopsis
,
and
enumname
in enumsynopsis
.
(It was already allowed
parameter
in methodparam
,
templatename
in template
,
package
in packagesynopsis
,
macroname
in macrosynopsis
,
macrodef
in macroprototype
,
unionname
in unionsynopsis
,
and typedefname
in typedefsynopsis
.
Changes from DocBook 5.1 to DocBook 5.2 CR1
The following lists describe all the changes in 5.2CR1.
Added new element
buildtarget
.Added new element
danger
.Added new element
enumidentifier
.Added new element
enumitem
.Added new element
enumitemdescription
.Added new element
enunname
.Added new element
enumsynopsis
.Added new element
enumvalue
.Added new element
formalgroup
to contain multiplefigure
,table
,example
, orequation
elements. (But not mixtures of them).Added new element
macrodef
.Added new element
macroname
.Added new element
macroprototype
.Added new element
macrosynopsis
.Added new element
meta
.Added new element
packagesynopsis
.Added new element
specializedtemplate
.Added new element
synopsisinfo
with a verbatim content model.Added new element
template
.Added new element
templatename
.Added new element
typedefname
.Added new element
typedefsynopsis
.Added new element
union
.Added new element
unionname
.Added new element
unionsynopsis
.
Added
db.trans.idfixup.attribute = "none|suffix|auto"
.Added
db.trans.suffix.attribute
as “text
” with a Schematron rule to force idfixup attribute if suffix used.Added
db.trans.linkscope.attribute = "user|local|near|global"
.Added
trans:idfixup
,trans:suffix
, andtrans:linkscope
to common attributes.Added
pubwork
attribute with the possible values:article
,bbs
,book
,cdrom
,chapter
,dvd
,emailmessage
,gopher
,journal
,manuscript
,newsposting
,other
,part
,refentry
,section
,series
,set
,webpage
, andwiki
tobiblioentry
andbibliomixed
.Added
otherpubwork
attribute for whenpubwork
has the valeu “other
” specified, but no Schematron to enforce it.Added optional
type
attribute (text) to procedure element.Added optional
type
attribute toexample
,informalexample
,figure
, andinformalfigure
elements.Added
fgstyle
attribute, used informalgroup
only.Added enumerated
class
attribute to the section elements (section
andsect1
throughsect5
) with the valueslegal
orother
.Added
otherclass
attribute to section elements to support other values.Added
other
to the existingarticle
class
attribute enumeration.Added
otherclass
attribute toarticle
.Added a
type
attribute totable
andinformaltable
elements (CALS and HTML table syntax).Added a
type
attribute toequation
andinformalequation
.Added
class
attribute with enumerated valuesunion
andintersection
to thetype
element.Added Schematron rule to exclude
danger
element as descendant of admonitions.Added
packageref
attribute tocmdsynopsis
,funcsynopsis
,classsynopsis
,fieldsynopsis
,constructorsynopsis
,destructorsynopsis
,methodsynopsis
,macrosynopsis
,unionsynopsis
,enumsynopsis
,typedefsynopsis
, andpackagesynopsis
.
Added
db.programmingsynopsis
elements todb.synopsis.blocks
.Changed
db._any
to remove HTML namespace reference.Added
db.revnumber
todb.publishing.inlines
.Added
db.wrapper.blocks
todb.nopara.blocks
.Added
meta
element toinfo
set. Can be empty or have block and inline content.Changed
abstract
content fromdb.para.blocks+
todb.all.blocks+
to expand its content model.Added Schematron rule to
footnote
to excludedanger
element (similar to other admonitions).Added Schematron rule to
caption
to excludedanger
element (similar to other admonitions).Added Schematron rule to exclude
danger
element as descendant of admonitions.Added
multimediaparam
children toimagedata
element (already allowed onaudiodata
andvideodata
).Allowed
refentry
insect1
throughsect5
(already allowed in section).Added elements
buildtarget
,templatename
,macroname
,unionname
,enumname
,enumvalue
,enumidentifier
, andtypedefname
to the list of programming inlines.Added elements
enumsynopsis
,typedefsynopsis
,packagesynopsis
,macrosynopsis
,unionsynopsis
,enumsynopsis
, andtypedefsynopsis
to the list indb.synopsis.blocks
.Added elements
packagesynopsis
,macrosynopsis
,typedefsynopsis
, andenumsynopsis
to thedb.programmingsynopsis
set.Added elements
templatename
andvoid
to thefuncdef
content model.Added elements
templatename
andmodifier
to theparamdef
content model.Added elements
info
,templatename
,template
, andooexception
to theclasssynopsis
content model.Added elements
info
andsynopsisinfo
to theconstructorsynopsis
content model.Added elements
info
andsynopsisinfo
to thedestructorsynopsis
content model.Added elements
info
,synopsisinfo
, andtemplatename
to thefieldsynopsis
content model.Added elements
info
,synopsisinfo
, andtemplatename
to themethodsynopsis
content model.Added element
templatename
to themethodparam
content model.Added programming inlines to the
type
element.
Added
trans
namespace declarations for transclusion.Added 10
s:
schematron namespace declarations.Added
db.wrapper.blocks
to “start” set.Defined
db.wrapper.blocks
asdb.formalgroup
.Deleted
db.programmingsynopsis
named pattern (only used in start, now handled bydb.synopsis.blocks
).Removed unnecessary
\x{a}
whitespace from Schematron rules.Added a Schematron rule to
callout
element soarearefs
must point toareaset
,area
, orco
.Added a Schematron rule to EBNF
constraint
element so itslinkend
must point to aconstraintdef
.Added a Schematron rule to EBNF
productionrecap
element so itslinkend
must point to aproduction
.
Backwards incompatible changes planned for DocBook V6.0
The following backwards incompatible changes are planned for DocBook V6.0:
The linking elements will be removed from the content model of
biblioid
.The common linking attributes will be removed from
indexterm
.The
xml:id
attribute will be made required onstartofrange
indexterm
s.A Schematron constraint will be added to assert that for every
startofrange
indexterm
there is exactly oneendofrange
indexterm
that points to it.The
language
attribute will be removed fromaddress
; usexml:lang
instead.The
arc
andlocator
elements will be dropped; insteadlink
will be allowed inextendedlink
.The
indexterm
elements will be removed fromprimary
,secondary
, andtertiary
. Nested index terms are not supported.