| 1 |
<appendix id="app-interchange"> |
| 2 |
<?dbhtml filename="appf.html"?> |
| 3 |
<appendixinfo> |
| 4 |
<pubdate>$Date$</pubdate> |
| 5 |
<releaseinfo>$Revision$</releaseinfo> |
| 6 |
</appendixinfo> |
| 7 |
<title>Interchanging DocBook Documents</title> |
| 8 |
<indexterm id="DocBookinterchangeappf" class='startofrange'><primary>DocBook DTD</primary> |
| 9 |
<secondary>documents</secondary> |
| 10 |
<tertiary>interchanging</tertiary></indexterm> |
| 11 |
<indexterm id="questionappf" class="startofrange"><primary>questionnaire, DocBook document interchange issues</primary></indexterm> |
| 12 |
|
| 13 |
<para> |
| 14 |
One of the early factors that motivated the development of the DocBook |
| 15 |
&DTD; was the desire for companies to interchange documents. In particular, |
| 16 |
&UNIX; vendors wanted to be able to interchange common &UNIX; documentation. |
| 17 |
</para> |
| 18 |
|
| 19 |
<para> |
| 20 |
A great deal of effort went into making sure that DocBook could handle |
| 21 |
most (probably all) of the documents that were likely to be exchanged. |
| 22 |
This avoids the guaranteed interchange problem of &DTD; extension. |
| 23 |
</para> |
| 24 |
|
| 25 |
<para>However, simply using DocBook or a subset of it is not |
| 26 |
enough to ensure successful interchange. If you send someone |
| 27 |
your DocBook files, you must also tell the recipient about the |
| 28 |
markup your documents use and any of your additional markup |
| 29 |
conventions and processing expectations that impose constraints |
| 30 |
on processing. |
| 31 |
</para> |
| 32 |
|
| 33 |
<para> |
| 34 |
This appendix provides a sample interchange questionnaire to |
| 35 |
help draw your attention to those areas that might be problematic. |
| 36 |
</para> |
| 37 |
|
| 38 |
<para>For maximum portability, delivered DocBook documents |
| 39 |
should be accompanied by a filled-out interchange |
| 40 |
questionnaire. Because each situation is unique, you may need to |
| 41 |
supply additional information (such as layout specifications) in |
| 42 |
order to deliver a complete package.</para> |
| 43 |
|
| 44 |
<bridgehead>DocBook and &SGML; Usage</bridgehead> |
| 45 |
|
| 46 |
<orderedlist> |
| 47 |
<listitem><para>What version of the &DTD; are you using?</para> |
| 48 |
</listitem><listitem><para>Did you use any markup features of the &DTD; that |
| 49 |
have been flagged as obsolete (to be removed at the next major version |
| 50 |
of DocBook)? If so, which ones?</para> |
| 51 |
</listitem><listitem><para>Did you extend DocBook in any way, inside or outside |
| 52 |
the provided customization mechanisms? How? All extensions must be negotiated |
| 53 |
with the recipient.</para> |
| 54 |
</listitem><listitem><para>Did you remove markup from DocBook to create a |
| 55 |
subset? If you used a subset of DocBook, supply the subset you used. (Note |
| 56 |
that even the removal of references to <acronym>ISO</acronym> entity sets creates a subset.) |
| 57 |
</para> |
| 58 |
</listitem><listitem><para>Did you use the supplied &SGML; declaration or another |
| 59 |
one? If you used another one, provide it.</para> |
| 60 |
</listitem><listitem><para>Did you use the supplied catalog or another one, |
| 61 |
or none at all? If you used a catalog other than the one supplied, provide |
| 62 |
it.</para> |
| 63 |
</listitem><listitem><para>If your documents bear no document type declaration, |
| 64 |
and you parsed them with a document declaration (with or without an internal |
| 65 |
subset), supply it.</para> |
| 66 |
</listitem><listitem><para>Did you add <literal>NOTATION</literal> declarations? |
| 67 |
If so, what are they? List all data content notations used in your documents. |
| 68 |
</para> |
| 69 |
</listitem><listitem><para>Did you use the <literal>SUBDOC</literal> feature? |
| 70 |
If so, how did you manage the name spaces of their <acronym>ID</acronym>s, if you managed |
| 71 |
them at all?</para> |
| 72 |
</listitem><listitem><para>Did you use character sets other than <acronym>ISO</acronym> 8859-1 |
| 73 |
(Latin 1)? If so, which ones? How did you use them?</para> |
| 74 |
</listitem><listitem><para>Did you declare and use character entities and |
| 75 |
other general entities besides the <acronym>ISO</acronym> entity sets? If so, supply the entity |
| 76 |
declarations and the desired appearance of the additional character entities. |
| 77 |
</para> |
| 78 |
</listitem><listitem><para>Are your document files normalized to include all |
| 79 |
markup explicitly?</para> |
| 80 |
</listitem><listitem><para>Are you supplying a document fragment? If so, have |
| 81 |
you provided any necessary auxiliary information (such as meta-information) |
| 82 |
for the fragment? Are there any attribute values that haven't been specified |
| 83 |
that you expect to inherit from a parent that isn't present?</para> |
| 84 |
</listitem></orderedlist> |
| 85 |
|
| 86 |
<bridgehead>Processing Requirements and Markup Interpretation</bridgehead> |
| 87 |
|
| 88 |
<orderedlist continuation="continues"><listitem><para>What formatting that you applied do you |
| 89 |
require your interchange partner to apply? For example, |
| 90 |
where and how must text be generated in order for the documents to make sense? |
| 91 |
</para> |
| 92 |
</listitem><listitem><para>Did you supply your stylesheet and |
| 93 |
information regarding its format and version?</para> |
| 94 |
</listitem><listitem><para>How did you create tables of contents, |
| 95 |
lists of titles, and indexes? Are they stored in DocBook form? If so, |
| 96 |
did you generate them (and according to what rules) or create them by |
| 97 |
hand?</para> </listitem><listitem><para>If you used the <sgmltag |
| 98 |
class="attribute">Lang</sgmltag> common attribute, why, and to what |
| 99 |
effect?</para> </listitem><listitem><para>If you used the <sgmltag |
| 100 |
class="attribute">Remap</sgmltag> common attribute, why, and to what |
| 101 |
effect?</para> </listitem><listitem><para>If you used the <sgmltag |
| 102 |
class="attribute">Role</sgmltag> common attribute, why, and to what |
| 103 |
effect?</para> </listitem><listitem><para>If you used the effectivity |
| 104 |
attributes, which did you use, why, and to what effect?</para> |
| 105 |
</listitem><listitem><para>What values did you give to the <sgmltag |
| 106 |
class="attribute">Label</sgmltag> attribute and how are they to be |
| 107 |
interpreted for rendering?</para> </listitem><listitem><para>What |
| 108 |
values did you give to the <sgmltag class="attribute">Mark</sgmltag> |
| 109 |
and <sgmltag class="attribute">Override</sgmltag> attributes for lists |
| 110 |
and how are they to be interpreted for rendering?</para> |
| 111 |
</listitem><listitem><para>Did you use the <sgmltag |
| 112 |
class="attribute">Renderas</sgmltag> attribute on sections and/or |
| 113 |
<sgmltag>BridgeHead</sgmltag>s?</para> |
| 114 |
</listitem><listitem><para>Did you supply all keyword values you used for |
| 115 |
attributes whose declared values are not enumerated tokens, along with |
| 116 |
the expected processing for the occurrence of each keyword?</para> |
| 117 |
</listitem><listitem><para>Did you use markup to control width, size, |
| 118 |
and/or positioning settings (such as <quote>fold-out</quote> or |
| 119 |
<quote>centered</quote>) for graphics, line specific regions, and |
| 120 |
tables? If so, how?</para> </listitem><listitem><para>For rendering of |
| 121 |
<sgmltag>Sidebar</sgmltag>s, must these appear in the flow of the text |
| 122 |
where they appear in your files, or may they float?</para> |
| 123 |
</listitem> |
| 124 |
<listitem><para>Did you use <sgmltag>Callout</sgmltag>s? If so, what are the |
| 125 |
processing expectations for callout marks? |
| 126 |
</para> |
| 127 |
</listitem> |
| 128 |
<listitem><para>Did you use <sgmltag>ItemizedList</sgmltag>s? If so, what are the |
| 129 |
processing expectations for the marks on list items and nested lists? |
| 130 |
</para> |
| 131 |
</listitem> |
| 132 |
<listitem><para>For <sgmltag>Graphic</sgmltag> and <sgmltag>InlineGraphic</sgmltag>, what method(s) did |
| 133 |
you use for providing graphic data: element content, <sgmltag class="attribute">Fileref</sgmltag> attribute, or |
| 134 |
<sgmltag class="attribute">Entityref</sgmltag> attribute?</para> |
| 135 |
</listitem> |
| 136 |
<listitem><para>For <sgmltag>MediaObject</sgmltag> and <sgmltag>InlineMediaObject</sgmltag>, |
| 137 |
what method(s) did |
| 138 |
you use for selecting between alternative presentations?</para> |
| 139 |
</listitem><listitem><para>How did you specify column widths in tables? Did |
| 140 |
you use vertical spans? Did you use horizontal spans?</para> |
| 141 |
</listitem><listitem><para>Did you use <sgmltag>EntryTbl</sgmltag>s? |
| 142 |
</para> |
| 143 |
</listitem><listitem><para>If you used the <sgmltag class="attribute">Type</sgmltag> attribute on the link elements, |
| 144 |
why, and to what effect?</para> |
| 145 |
</listitem><listitem><para>If you used <sgmltag>XRef</sgmltag>, do your interchange |
| 146 |
partners need additional information about the semantic of the link? |
| 147 |
Have you provided it, perhaps with <sgmltag class="attribute">Role</sgmltag>?</para> |
| 148 |
</listitem><listitem><para>Did you use the <sgmltag class="attribute">Subject</sgmltag> attribute on <sgmltag>GlossDef</sgmltag>? |
| 149 |
If so, did you use a thesaurus of terms? If so, what is it?</para> |
| 150 |
</listitem><listitem><para>If you used the <sgmltag class="attribute">Class</sgmltag> attribute on <sgmltag>RefMiscInfo</sgmltag>, |
| 151 |
why and to what effect?</para> |
| 152 |
</listitem><listitem><para>If you used <sgmltag>ULink</sgmltag> and provided <acronym>URL</acronym>s that are queries, |
| 153 |
what back-end processing is required to resolve those queries?</para> |
| 154 |
</listitem> |
| 155 |
<listitem><para><sgmltag class="attribute">FileRef</sgmltag> or |
| 156 |
<sgmltag class="attribute">EntityRef</sgmltag> is supplied on every |
| 157 |
<sgmltag>Graphic</sgmltag>, |
| 158 |
<sgmltag>InlineGraphic</sgmltag>, |
| 159 |
<sgmltag>AudioData</sgmltag>, |
| 160 |
<sgmltag>ImageData</sgmltag>, and |
| 161 |
<sgmltag>VideoData</sgmltag> element. If one is not present, what is the expectation? |
| 162 |
</para> |
| 163 |
</listitem> |
| 164 |
<listitem><para>If your <sgmltag>Bibliography</sgmltag>s or |
| 165 |
<sgmltag>Glossary</sgmltag>s have special processing expectations, |
| 166 |
such as the ability to display only those entries that are cited, |
| 167 |
have you described them? |
| 168 |
</para> |
| 169 |
</listitem> |
| 170 |
|
| 171 |
<listitem><para>If your <sgmltag>Bibliography</sgmltag>s contain |
| 172 |
<sgmltag>BiblioEntry</sgmltag>s, what are the processing expectations? |
| 173 |
Which fields are selected for display? |
| 174 |
What punctuation is added, and where? |
| 175 |
</para> |
| 176 |
</listitem> |
| 177 |
|
| 178 |
<listitem><para>Do <sgmltag>GlossTerm</sgmltag>s or other elements have |
| 179 |
implicit linking relationships that must be obeyed or handled in |
| 180 |
presentation? |
| 181 |
</para> |
| 182 |
</listitem> |
| 183 |
<listitem><para>Did you use any processing instructions? Why and what for? |
| 184 |
Are they in entities? |
| 185 |
</para> |
| 186 |
</listitem> |
| 187 |
<listitem><para>What copyfitting have you already done, and for what outputs? |
| 188 |
</para> |
| 189 |
</listitem> |
| 190 |
<listitem><para>Are the <sgmltag>Revision</sgmltag>s in your |
| 191 |
<sgmltag>RevHistory</sgmltag>s sorted in any particular way? |
| 192 |
</para> |
| 193 |
</listitem> |
| 194 |
</orderedlist> |
| 195 |
<bridgehead>Miscellaneous</bridgehead> |
| 196 |
<orderedlist continuation="continues"><listitem><para>Have you checked your |
| 197 |
files for viruses?</para> |
| 198 |
</listitem><listitem><para>If you used <sgmltag>BridgeHead</sgmltag>, have you joined a recovery |
| 199 |
support group?</para> |
| 200 |
</listitem></orderedlist> |
| 201 |
<indexterm startref="questionappf" class='endofrange'/> |
| 202 |
<indexterm startref="DocBookinterchangeappf" class='endofrange'/> |
| 203 |
|
| 204 |
</appendix> |
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|