DocBook 5.2 CR5 Release Notes
1 Background
DocBook is general purpose XML schema particularly well suited to books and papers about computer hardware and software (though it is by no means limited to these applications).
The DocBook Technical Committee at OASIS Open maintains the DocBook schema. Starting with V5.0, DocBook is normatively available as a RELAX NG Schema (with some additional Schematron assertions). DocBook builds on existing XML technologies: it uses XLink for linking, W3C XML Datatypes for atomic data types, and supports the use of XInclude for transclusion.
DocBook has been under active maintenance for more than 20 years, it began life as an SGML document type definition.
The current DocBook released standard is version 5.1. The version described here is DocBook version 5.2 Candidate Release 2. Before submission to the OASIS standards process, the DocBook Technical Committee is making it available to the DocBook user community for review and testing.
The DocBook Technical Committee welcomes bug reports from the user community. Please send comments and requests for enhancement to the DocBook comments list, docbook-comment@lists.oasis-open.org mailing list. Outstanding requests can be seen in the archives as well as in the issues tracker on Github.
2 Significant differences in 5.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 International Tag Set (ITS) schemas.
Added missing
fragid
andset-xml-id
to the XInclude-enabled schema.Allow
info
as top-level element.Allow foreign namespace-qualified attributes on DocBook elements.
3 Changes from DocBook 5.2 CR4 to DocBook 5.2 CR5
Fixed the bug where the cols
attribute
on CALS entrytbl
was optional. It is required by the CALS
specification.
4 Changes from DocBook 5.2 CR3 to DocBook 5.2 CR4
Fix OASIS identifiers in the XML catalog.
Allow
info
as a top-level element.Fixed inconsistencies in XInclude declarations.
Small documentation improvements.
5 Changes from DocBook 5.2 CR2 to DocBook 5.2 CR3
Allow attributes in foreign namespaces (and not in the DocBook, XML, XLink, or transclusion namespaces) to appear on any DocBook element.
6 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
.
7 Changes from DocBook 5.1 to DocBook 5.2 CR1
The following lists describe all the changes in 5.2. For details about elements, attributes, and content models, please refer to the online documentation for the DocBook 5.2 schema in DocBook 5.2: The Definitive Guide which has been updated to include all these changes.
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 optional
info
child tolistitem
element.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.Allow
optional
element to nest in anoptional
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
.