Appendix C. Interchanging DocBook Documents
One of the early factors that motivated the development of DocBook was the desire for companies to interchange documents. In particular, UNIX vendors wanted to be able to interchange common UNIX documentation.
A great deal of effort went into making sure that DocBook could handle most (probably all) of the documents that were likely to be exchanged. This avoids the guaranteed problem of interchanging documents created with extended schemas.
However, simply using DocBook or a subset of it is not enough to ensure successful interchange. If you send someone your DocBook files, you must also tell the recipient about the markup your documents use, any additional markup conventions, and any processing expectations that impose constraints.
This appendix provides a sample interchange questionnaire to help draw your attention to those areas that might cause problems.
For maximum portability, delivered DocBook documents should be accompanied by a filled-out interchange questionnaire. Because each situation is unique, you may need to supply additional information (such as layout specifications) in order to deliver a complete package.
DocBook and XML Usage
What version of the schema are you using?
Did you use any markup features of the schema that have been flagged as obsolete (to be removed at the next major version of DocBook)? If so, which ones?
Did you extend DocBook in any way, inside or outside the provided customization mechanisms? How? All extensions must be negotiated with the recipient.
Did you remove markup from DocBook to create a subset? If you used a subset of DocBook, supply the subset you used.
Did you use the supplied catalog or another one, or none at all? If you used a catalog other than the one supplied, provide it.
Did you use SVG, MathML, XInclude, XLink, or any other XML schema?
Did you use character sets other than UTF-8? If so, which ones? How did you use them?
Processing Requirements and Markup Interpretation
What formatting that you applied do you require your interchange partner to apply? For example, where and how must text be generated in order for the documents to make sense?
Did you supply your stylesheet and information regarding its format and version?
How did you create tables of contents, lists of titles, and indexes? Are they stored in DocBook form? If so, did you generate them (and according to what rules) or create them by hand?
If you used the
xml:lang
common attribute, why, and to what effect?If you used the
remap
common attribute, why, and to what effect?If you used the
role
common attribute, why, and to what effect?If you used the effectivity attributes, which did you use, why, and to what effect?
What values did you give to the
label
attribute and how are they to be interpreted for rendering?What values did you give to the
mark
andoverride
attributes for lists and how are they to be interpreted for rendering?Did you supply all keyword values you used for attributes whose declared values are not enumerated tokens, along with the expected processing for the occurrence of each keyword?
Did you use markup to control width, size, and/or positioning settings (such as
fold-out
orcentered
) for graphics, line specific regions, and tables? If so, how?For rendering of
sidebar
s, must these appear in the flow of the text where they appear in your files, or may they float?Did you use
itemizedlist
s? If so, what are the processing expectations for the marks on list items and nested lists?For
mediaobject
andinlinemediaobject
, what method(s) did you use for providing graphic data: element content,fileref
attribute, orentityref
attribute?For
mediaobject
andinlinemediaobject
, what method(s) did you use for selecting between alternative presentations?How did you specify column widths in tables? Did you use vertical spans? Did you use horizontal spans?
Did you use
entrytbl
s?If you used the
type
attribute on the link elements, why, and to what effect?If you used the
xref
, do your interchange partners need additional information about the semantics of the link? Have you provided it, perhaps withrole
?If you used
link
and provided URLs that are queries, what back-end processing is required to resolve those queries?Is there a
fileref
orentityref
attribute on everyaudiodata
,imagedata
, andvideodata
element. If one is not present, what is the expectation?If your
bibliography
s have special processing expectations, such as the ability to display only those entries that are cited, have you described them?Did you use any processing instructions? Why and what for? Are they in entities?
What copy fitting have you already done, and for what outputs?
Are the
revision
s in yourrevhistory
s sorted in any particular way?If you use any of the *synopsis elements, describe how you define and markup
arguments,
options,
parameters,
etc.
Miscellaneous
Have you checked your files for viruses?