File: daps_user_modularize.xml

package info (click to toggle)
daps 3.3.2%2Bcleaned1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,536 kB
  • sloc: xml: 9,773; sh: 3,059; python: 1,322; lisp: 380; makefile: 239
file content (1322 lines) | stat: -rw-r--r-- 47,391 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet
 href="urn:x-daps:xslt:profiling:docbook45-profile.xsl"
 type="text/xml"
 title="Profiling step"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.docbook.org/xml/4.5/docbookx.dtd"
[<!ENTITY % entities SYSTEM "entity-decl.ent">
%entities;
]>
<chapter id="cha.daps.user.modular">
 <title>Modularizing Documentation Projects</title>
 <para>
  This chapter covers the following topics:
  <itemizedlist>
   <listitem>
    <para>
     Modularizing documents by splitting them into XIncludes
    </para>
   </listitem>
   <listitem>
    <para>
     Using a consistent set of entities throughout a documentation
     project
    </para>
   </listitem>
   <listitem>
    <para>
      Creating document variants <remark>dpopov 2016-10-12: editions instead variants?</remark>
      by using profiling
    </para>
   </listitem>
   <listitem>
    <para>
     Combining profiling and entities
    </para>
   </listitem>
  </itemizedlist>
 </para>
 <sect1 id="sec.daps.user.modular.xi">
  <title>Splitting up Documents into XIncludes</title>

  <para>
   Instead of putting the contents of a complete article or book into the
   &main; file, DocBook allows you to divide <remark>dpopov 2016-10-12:
   s/divide/split ?</remark> the text into separate document files. They are
   then assembled in the &main; file using <literal>XIncludes</literal> as
   shown in <xref linkend="ex.daps.main.set"/>. XIncludes can be used for
   splitting up sets, books, articles or chapters into separate files. For
   more information, refer to
   <ulink url="http://www.docbook.org/tdg51/en/html/ch02.html">
   <citetitle>Physical Divisions: Breaking a Document into Separate
   Files</citetitle> </ulink>.
  </para>

  <para>
   XIncludes are fully supported and do not cause any problems with
   &dapsacr;. For example, <command>daps</command> commands like
   <command>linkcheck</command> or <command>spellcheck</command> also follow XIncludes.
  </para>
 </sect1>
 <sect1 id="sec.daps.user.modular.ent.separate">
  <title>Declaring Entities in a Separate File</title>

  <para>
   When maintaining a large number of documents for a product, it can be
   difficult to keep a consistent set of entities if these entities are
   declared in the document type declarations of
   <emphasis>individual</emphasis> XML files. For large documentation
   projects, it is therefore useful to put all entity declarations into a
   separate file and reference that file in the individual XML files.
  </para>

  <example id="ex.daps.ent.decl.separate">
   <title>Separate Entity File <filename>entity-decl.ent</filename></title>
<screen>&lt;?xml version="1.0" encoding="iso-8859-1" ?&gt;
&lt;!ENTITY exampleuser "tux"&gt;
&lt;!ENTITY exampleuserII "wilber"&gt;
&lt;!ENTITY examplegroup "users"&gt;
[...]</screen>
  </example>

  <example id="ex.daps.ent.decl.reference">
   <title>Referencing A Separate Entity File</title>
<screen>&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE chapter PUBLIC [...]
[
  &lt;!ENTITY % entities SYSTEM "entity-decl.ent"> <co id="co.daps.main.reference.ent"/>
  %entities; <co id="co.daps.main.reference.load"/>
]&gt;
&lt;chapter&gt;
&lt;title&gt;Managing User Accounts&lt;/title&gt;
[...]</screen>
   <calloutlist>
    <callout arearefs="co.daps.main.reference.ent">
     <para>
      Reference to the separate entity declaration file (with the
       <sgmltag class="starttag">!ENTITY</sgmltag> keyword).
     </para>
    </callout>
    <callout arearefs="co.daps.main.reference.load">
      <para>Loads the external entity file declared in the previous line.</para>
     </callout>
   </calloutlist>
  </example>

  <para>
   For more information, refer to
   <ulink url="http://www.sagehill.net/docbookxsl/ModularDoc.html">
   <citetitle>Modular DocBook Files: Shared text entities</citetitle></ulink>.
  </para>

  <para>
   Separate entity files do not cause any problems with &dapsacr;&mdash;
   during generation of output, the entities will be treated equally to
   entities declared in individual XML files.
  </para>
  <para>It is also possible to use multiple entity files by including them into
  the separate entity file that is referenced in the XML file.</para>
  <example id="ex.daps.ent.decl.separate.multi">
   <title>Referencing Entity Files Within an Entity File</title>
  <screen>&lt;?xml version="1.0" encoding="iso-8859-1" ?&gt;
&lt;!ENTITY exampleuser "tux"&gt;
&lt;!ENTITY exampleuserII "wilber"&gt;
&lt;!ENTITY examplegroup "users"&gt;
[...]
&lt;!ENTITY % network-entities SYSTEM "network-decl.ent"> <xref linkend="co.daps.main.reference.ent" xrefstyle="select:label nopage"/>
%network-entities; <xref linkend="co.daps.main.reference.load" xrefstyle="select:label nopage"/>
&lt;!ENTITY % more-entities SYSTEM "another-decl.ent"> <xref linkend="co.daps.main.reference.ent" xrefstyle="select:label nopage"/>
%more-entities; <xref linkend="co.daps.main.reference.load" xrefstyle="select:label nopage"/>
</screen>
<calloutlist>
    <callout arearefs="co.daps.main.reference.ent">
     <para>
      Reference to the separate entity declaration file (with the
       <sgmltag class="starttag">!ENTITY</sgmltag> keyword).
     </para>
    </callout>
    <callout arearefs="co.daps.main.reference.load">
      <para>Loads the external entity file declared in the previous line.</para>
     </callout>
   </calloutlist>
  </example>
 </sect1>
 <sect1 id="sec.daps.user.modular.profile">
  <title>Profiling&mdash;Support for Document Variants</title>
  &db-profiling-intro;
  &db-profiling;

 <sect2 id="sec.daps.user.modular.profile.basics">
   <title>Introduction to DocBook Profiling</title>
   <para>
    DocBook offers profiling attributes for various purposes as illustrated
    in <ulink url="http://www.sagehill.net/docbookxsl/Profiling.html">
    <citetitle>Table 26.1. Profiling attributes</citetitle> </ulink>.
    All of them are supported by &dapsacr;.
    <!--Currently, not all of them are supported by &dapsacr;. For details,
    refer to <xref linkend="sec.daps.user.modular.profile.daps"/>.-->
   </para>
   <para>
    Generally, profiling attributes can be used on many
    elements&mdash;from high-level elements like <sgmltag>book</sgmltag> or
    <sgmltag>chapter</sgmltag> down to low-level elements like
    <sgmltag>para</sgmltag>. With the <sgmltag>phrase</sgmltag> element, you
    can even profile inline elements, like one sentence within a paragraph.
<!--, see <xref linkend="ex.daps.profiling.inline"/>.-->
   </para>
   <para>
    Based on the conditions that you want to apply <remark>dpopov 2016-10-12:
    define conditions?</remark> , select one or more profiling attributes and
    add them to the text snippets that are conditional. The tagged snippets
    will only be included in the output if the required condition is
    fulfilled. Any content that is valid for <emphasis>all</emphasis>
    conditions does <emphasis>not</emphasis> need any profiling
    attributes. The respective content will always be included in the output
    formats generated from the XML sources. You are free in defining the
    attribute values (<literal>condition="foo"</literal>), but they must be
    used consistently in all files belonging to a documentation project.
   </para>
   <para>
    <xref linkend="ex.daps.profile.one"/> shows how to profile
    product-specific information in a software description. Let us assume we
    need to write documentation for the fictional software <literal>Frog
    Sound Recordings</literal>. The software is available in two editions: a
    basic edition for home users and a professional edition for enterprise
    customers. Both editions share common features, but some features are
    only available in the basic or the professional edition, respectively.
   </para>
   <example id="ex.daps.profile.one">
    <title>Product-specific Profiling (One Attribute)</title>
<screen>&lt;simplelist&gt;
  &lt;member&gt;Common Feature 1&lt;/member&gt;
  &lt;member&gt;Common Feature 2&lt;/member&gt;
  &lt;member&gt;Common Feature 3&lt;/member&gt;
  <emphasis role="strong">&lt;member condition="basic"&gt;Basic Feature 1&lt;/member&gt;
  &lt;member condition="prof"&gt;Professional Feature 1&lt;/member&gt;
  &lt;member condition="prof"&gt;Professional Feature 2&lt;/member&gt;</emphasis>
&lt;/simplelist&gt;</screen>
   </example>
   <para>
    When generated for the basic edition or for the professional edition,
    respectively, the example source code would result in the following
    output:
   </para>
   <table id="tab.daps.profile.output.one" rowsep="1">
    <title>Output of <xref linkend="ex.daps.profile.one" xrefstyle="select:
     label"/></title>
    <tgroup cols="2">
     <colspec colnum="1" colname="1" colwidth="50*"/>
     <colspec colnum="2" colname="2" colwidth="50*"/>
     <thead>
      <row>
       <entry colname="1">
        <para>
         Basic Edition
        </para>
       </entry>
       <entry colname="2">
        <para>
         Professional Edition
        </para>
       </entry>
      </row>
     </thead>
     <tbody>
      <row>
       <entry colname="1">
        <para>
         Common Feature 1
        </para>
        <para>
         Common Feature 2
        </para>
        <para>
         Common Feature 3
        </para>
        <para>
         Basic Feature 1
        </para>
       </entry>
       <entry colname="2">
        <para>
         Common Feature 1
        </para>
        <para>
         Common Feature 2
        </para>
        <para>
         Common Feature 3
        </para>
        <para>
         Professional Feature 1
        </para>
        <para>
         Professional Feature 2
        </para>
       </entry>
      </row>
     </tbody>
    </tgroup>
   </table>
   <para>
    If the profiling attributes are <emphasis>not</emphasis> processed
    during output, the source code in <xref linkend="ex.daps.profile.one"/>
    would result in the following (identical) output for both editions:
   </para>
   <table id="tab.daps.profile.output.one.without" rowsep="1">
    <title>Output of <xref linkend="ex.daps.profile.one" xrefstyle="select:
     label"/> (Without Profiling)</title>
    <tgroup cols="2">
     <colspec colnum="1" colname="1" colwidth="50*"/>
     <colspec colnum="2" colname="2" colwidth="50*"/>
     <thead>
      <row>
       <entry colname="1">
        <para>
         Basic Edition
        </para>
       </entry>
       <entry colname="2">
        <para>
         Professional Edition
        </para>
       </entry>
      </row>
     </thead>
     <tbody>
      <row>
       <entry colname="1">
        <para>
         Common Feature 1
        </para>
        <para>
         Common Feature 2
        </para>
        <para>
         Common Feature 3
        </para>
        <para>
         Basic Feature 1
        </para>
        <para>
         Professional Feature 1
        </para>
        <para>
         Professional Feature 2
        </para>
       </entry>
       <entry colname="2">
        <para>
         Common Feature 1
        </para>
        <para>
         Common Feature 2
        </para>
        <para>
         Common Feature 3
        </para>
        <para>
         Basic Feature 1
        </para>
        <para>
         Professional Feature 1
        </para>
        <para>
         Professional Feature 2
        </para>
       </entry>
      </row>
     </tbody>
    </tgroup>
   </table>
   <para>
    Let us suppose the professional edition of the software is also available
    as OEM (original equipment manufacturer) version by the vendor
    <literal>OEM Company</literal>. It contains additional features that are
    only available in the OEM version:
   </para>
   <example id="ex.daps.profile.two">
    <title>Product-specific Profiling (Multiple Attributes)</title>
<screen>&lt;simplelist&gt;
  &lt;member&gt;Common Feature 1&lt;/member&gt;
  &lt;member&gt;Common Feature 2&lt;/member&gt;
  &lt;member&gt;Common Feature 3&lt;/member&gt;
  &lt;member condition="basic"&gt;Basic Feature 1&lt;/member&gt;
  &lt;member condition="prof"&gt;Professional Feature 1&lt;/member&gt;
  &lt;member condition="prof"&gt;Professional Feature 2&lt;/member&gt;
 <emphasis role="strong"> &lt;member condition="prof" vendor="oemcompany"&gt;OEM Feature 1&lt;/member&gt;</emphasis>
&lt;/simplelist&gt;</screen>
   </example>
   <para>
    When generated for the professional edition or for the professional
    edition in the OEM version, respectively, the example source code would
    result in the following output:
   </para>
   <table id="tab.daps.profile.output.two" rowsep="1">
    <title>Output of <xref linkend="ex.daps.profile.two" xrefstyle="select:
     label"/></title>
    <tgroup cols="2">
     <colspec colnum="1" colname="1" colwidth="50*"/>
     <colspec colnum="2" colname="2" colwidth="50*"/>
     <thead>
      <row>
       <entry colname="1">
        <para>
         Professional Edition
        </para>
       </entry>
       <entry colname="2">
        <para>
         Professional Edition (OEM Version)
        </para>
       </entry>
      </row>
     </thead>
     <tbody>
      <row>
       <entry colname="1">
        <para>
         Common Feature 1
        </para>
        <para>
         Common Feature 2
        </para>
        <para>
         Common Feature 3
        </para>
        <para>
         Professional Feature 1
        </para>
        <para>
         Professional Feature 2
        </para>
       </entry>
       <entry colname="2">
        <para>
         Common Feature 1
        </para>
        <para>
         Common Feature 2
        </para>
        <para>
         Common Feature 3
        </para>
        <para>
         Professional Feature 1
        </para>
        <para>
         Professional Feature 2
        </para>
        <para>
         OEM Feature 1
        </para>
       </entry>
      </row>
     </tbody>
    </tgroup>
   </table>
   <remark>toms 2012-09-25: Maybe describe the use of two or more profiling
    values in _one_ attribute? Could be useful.
    - taroth 2014-10-24: https://trello.com/c/pvdqvCwZ</remark>
  </sect2>

  <sect2 id="sec.daps.user.modular.profile.daps">
   <title>Using Profiling with &dapsacr;</title>
   <para>
    To create multiple documentation variants of the same pool of DocBook
    files with &dapsacr;, the following requirements need to be fulfilled:
   </para>
   <orderedlist>
    <listitem>
<!--XML Files: Profiling Attributes-->
     <para>
      <xref linkend="sec.daps.user.modular.profile.daps.pa" xrefstyle="select:title"/>
     </para>
    </listitem>
    <listitem>
<!--&main; file: Processing Instruction-->
     <para>
      <xref linkend="sec.daps.user.modular.profile.daps.pi" xrefstyle="select: title"/>
     </para>
    </listitem>
    <listitem>
<!--&dc; File: Profiling Parameters-->
     <para>
      <xref linkend="sec.daps.user.modular.profile.daps.pp" xrefstyle="select: title"/>
     </para>
    </listitem>
   </orderedlist>
   <para>
    For a comprehensive example showing all requirements in detail, refer to
    <xref linkend="sec.daps.user.modular.profile.daps.ex"/>.
   </para>
   <sect3 id="sec.daps.user.modular.profile.daps.pa">
    <title>XML Files: Profiling Attributes</title>
    <para>
     In &dapsacr;, each profiling attribute has a corresponding profiling parameter to be used in the
     &dc; file, see <xref linkend="sec.daps.user.modular.profile.daps.pp"/>.
     The profiling parameters define which profiling attributes
     and values to interpret during generation of output.
    </para>
    <para>The names of the profiling parameters are derived from the profiling
     attributes, but written in uppercase letters and preceded by the prefix
     <literal>PROF</literal>.
    </para>
     <table id="tab.daps.profiling" rowsep="1">
     <title>Profiling Attributes (DocBook) and Profiling Parameters (&dapsacr;)</title>
     <tgroup cols="3">
      <colspec colnum="1" colname="1" colwidth="20*"/>
      <colspec colnum="2" colname="2" colwidth="50*"/>
      <colspec colnum="3" colname="3" colwidth="30*"/>
      <thead>
       <row>
        <entry colname="1">
         <para>
          Attribute Name
         </para>
        </entry>
        <entry colname="2">
         <para>
          Use
         </para>
        </entry>
        <entry colname="3">
         <para>
          Profiling Parameter
         </para>
        </entry>
       </row>
      </thead>
      <tbody>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">arch</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          Computer or chip architecture, such as <literal>i386</literal>.
         </para>
        </entry>
        <entry colname="3"><parameter>PROFARCH</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">audience</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          Intended audience of the content, such as <literal>instructor</literal>. Added in DocBook version 5.0.
         </para>
        </entry>
        <entry colname="3"><parameter>PROFAUDIENCE</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">condition</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          No preassigned semantics, general purpose attribute.
         </para>
        </entry>
        <entry colname="3"><parameter>PROFCONDITION</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">conformance</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          Conformance to standards, as for example <literal>lsb</literal> (Linux Standards Base).
         </para>
        </entry>
        <entry colname="3"><parameter>PROFCONFORMANCE</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">lang</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          Language code, such as <literal>de_DE</literal>.
         </para>
        </entry>
        <entry colname="3"><parameter>PROFLANG</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">os</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          Operating system.
         </para>
        </entry>
        <entry colname="3"><parameter>PROFOS</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">outputformat</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          Output format to which the element applies (for example, print or
          &epub;). Only available for DocBook 5.1 or later.
         </para>
        </entry>
        <entry colname="3"><parameter>PROFOUTPUTFORMAT</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">revision</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          Editorial revision, such as <literal>v2.1</literal>.
         </para>
        </entry>
        <entry colname="3"><parameter>PROFREVISION</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">revisionflag</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          Revision status of the element, such as <literal>changed</literal>. This attribute has a fixed set of values to choose from.
         </para>
        </entry>
        <entry colname="3"><parameter>PROFREVISIONFLAG</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">role </sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para> General purpose attribute, with no preassigned semantics. As the
          role attribute is not solely <quote>reserved</quote> for profiling but
          can be used for other purposes in a document, we would recommend
          to not use this for profiling. For further details, see <ulink
           url="http://sagehill.net/docbookxsl/ProfilingWithRole.html"/>.</para>
        </entry>
        <entry colname="3"><parameter>PROFROLE</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">security</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          Security level, such as <literal>high</literal>.
         </para>
        </entry>
        <entry colname="3"><parameter>PROFSECURITY</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">status</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          Editorial or publication status, such as <literal>InDevelopment</literal> or <literal>draft</literal>.
         </para>
        </entry>
        <entry colname="3"><parameter>PROFSTATUS</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">userlevel</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          Level of user experience, such as <literal>beginner</literal>.
         </para>
        </entry>
        <entry colname="3"><parameter>PROFUSERLEVEL</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">vendor</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          Product vendor.
         </para>
        </entry>
        <entry colname="3"><parameter>PROFVENDOR</parameter>
        </entry>
       </row>
       <row>
        <entry colname="1">
         <para>
          <sgmltag class="attribute">wordsize</sgmltag>
         </para>
        </entry>
        <entry colname="2">
         <para>
          Word size (width in bits) of the computer architecture, such as <literal>64bit</literal>. Added in DocBook version 4.4.
         </para>
        </entry>
        <entry colname="3"><parameter>PROFWORDSIZE</parameter>
        </entry>
       </row>
      </tbody>
     </tgroup>
    </table>
   </sect3>
   <sect3 id="sec.daps.user.modular.profile.daps.pi">
    <title>&main; File: Processing Instruction</title>
    <para>
     To activate generation of profiled output in &dapsacr;, the following
     processing instruction (PI) must be included in the header of the &main;
     file, before the root element.
    </para>
    <note>
     <title>Adjusting the DocBook Version in the PI</title>
     <para>As the profiling PI includes the DocBook version number, it needs to
      be adjusted according to the DocBook version you use. See <xref
       linkend="ex.daps.user.modular.pi.db4"/> and <xref
       linkend="ex.daps.user.modular.pi.db5"/>.</para>
   </note>
    <example id="ex.daps.user.modular.pi.db4">
     <title>Profiling PI in a DocBook 4.5 File</title>
        <screen>&lt;?xml-stylesheet
  href="urn:x-daps:xslt:profiling:docbook45-profile.xsl"
  type="text/xml" ?></screen>
    </example>

    <example id="ex.daps.user.modular.pi.db5">
     <title>Profiling PI in a DocBook 5.0 File</title>
     <screen>&lt;?xml-stylesheet
  href="urn:x-daps:xslt:profiling:docbook50-profile.xsl"
  type="text/xml" ?></screen>
    </example>
   <para>
     The &main; file of a documentation project is referenced
     by the <parameter>MAIN</parameter> parameter in the &dc; file. If the
     processing instruction is missing in the &main; file, any profiling
     parameters in the &dc; file will be ignored during generation of the
     output.
    </para>
    <tip>
     <title>Include PI in All XML Files</title>
     <para>
      Although &dapsacr; only checks for the profiling PI in the &main; file, it
      is a good idea to  include the PI in all XML files for any projects that
      need profiling. Otherwise you might forget to move
      the PI to the respective &main; file in case of restructuring the XML
      sources. Having the PI in all
      XML files does not hurt: Generation of profiled output is only
      triggered if your &dc; files contain profiling parameters.
     </para>
    </tip>
   </sect3>
   <sect3 id="sec.daps.user.modular.profile.daps.pp">
    <title>&dc; Files: Profiling Parameters</title>
    <para>
     Depending on the profiling attributes used in your XML files, a &dc;
     file may contain multiple profiling parameters, see
     <xref linkend="tab.daps.profiling"/>. Profiling parameters define which
     of the profiling attributes should be interpreted by &dapsacr; when
     generating output. For each profiling parameter, set the respective
     attribute values for which you want to filter during the profiling
     process. The spelling of the values must be the same that is used in
     the XML files.
    </para>
   </sect3>
   <sect3 id="sec.daps.user.modular.profile.daps.ex">
    <title>Profiling Example</title>
    <para>
     In the following, find a comprehensive example that shows the basic
     &dapsacr; profiling requirements in more detail. It is based on the
     examples in <xref linkend="sec.daps.user.modular.profile.basics"/>
     about the fictional software <literal>Frog Sound Recordings</literal>. The
     software is available in a basic edition, a professional edition and a
     professional OEM edition, shipped by an OEM vendor. The following
     example shows <emphasis>all</emphasis> files that you need to consider
     (XML files, &main; file, and &dc; file).
    </para>
    <example id="ex.daps.xml.pa">
     <title>XML File With Profiling Attributes (DocBook 4.x)</title>
<screen><?dbsuse-fo font-size="0.70em"?>&lt;?xml version="1.0" encoding="utf-8"?&gt;
[...]

&lt;chapter id="frog.features"&gt;
 [...]
 &lt;simplelist&gt;
   &lt;member&gt;Common Feature 1&lt;/member&gt; <co id="co.daps.xml.no.prof.attr"/>
   &lt;member&gt;Common Feature 2&lt;/member&gt; <xref linkend="co.daps.xml.no.prof.attr" xrefstyle="select:label nopage"/>
   &lt;member&gt;Common Feature 3&lt;/member&gt; <xref linkend="co.daps.xml.no.prof.attr" xrefstyle="select:label nopage"/>
   &lt;member condition="basic"&gt;Basic Feature 1&lt;/member&gt; <co id="co.daps.xml.profcond.value1"/>
   &lt;member condition="prof"&gt;Professional Feature 1&lt;/member&gt; <co id="co.daps.xml.profcond.value2"/>
   &lt;member condition="prof"&gt;Professional Feature 2&lt;/member&gt; <xref linkend="co.daps.xml.profcond.value2" xrefstyle="select:label nopage"/>
   &lt;member condition="prof" vendor="oemcompany"&gt;OEM Feature 1&lt;/member&gt; <co id="co.daps.xml.profcond.profvendor"/>
 &lt;/simplelist&gt;
 [...]
&lt;/chapter&gt;</screen>
     <calloutlist>
      <callout arearefs="co.daps.xml.no.prof.attr">
       <para>
        Unprofiled list items. The common features 1-3 are available in all
        software editions or versions.
       </para>
      </callout>
      <callout arearefs="co.daps.xml.profcond.value1">
       <para>
        List item profiled with attribute
        <sgmltag class="attribute">condition</sgmltag> and attribute value
        <sgmltag class="attvalue">basic</sgmltag>.
        <literal>Basic&nbsp;Feature&nbsp;1</literal> is only available in
        the basic software edition for home users.
       </para>
      </callout>
      <callout arearefs="co.daps.xml.profcond.value2">
       <para>
        List item profiled with attribute
        <sgmltag class="attribute">condition</sgmltag> and attribute value
        <sgmltag class="attvalue">prof</sgmltag>.
        <literal>Professional&nbsp;Feature&nbsp;1</literal> and
        <literal>Professional&nbsp;Feature&nbsp;2</literal> are only
        available in the professional software edition for enterprise
        customers.
       </para>
      </callout>
      <callout arearefs="co.daps.xml.profcond.profvendor">
       <para>
        List item profiled with two attributes: Attribute
        <sgmltag class="attribute">condition</sgmltag> with attribute value
        <sgmltag class="attvalue">prof</sgmltag> and attribute
        <sgmltag class="attribute">vendor</sgmltag> with attribute value
        <sgmltag class="attvalue">oemcompany</sgmltag>.
        <literal>OEM&nbsp;Feature&nbsp;1</literal> is only available in the
        professional OEM software edition for enterprise customers.
       </para>
      </callout>
     </calloutlist>
    </example>

    <example id="ex.daps.main.pi.db4">
     <title>&main; file With PI for Profiling (DocBook 4.5)</title>
<screen>&lt;?xml version="1.0" encoding="utf-8"?&gt;
<emphasis role="strong">&lt;?xml-stylesheet
 href="urn:x-daps:xslt:profiling:docbook45-profile.xsl"
 type="text/xml"
 title="Profiling step"?&gt;</emphasis>
&lt;!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
                         "http://www.docbook.org/xml/4.5/docbookx.dtd"
[&lt;!ENTITY % entities SYSTEM "entity-decl.ent">
%entities;
]&gt;

&lt;!--the following article is contained in the file art_frog.xml--&gt;

&lt;article lang="en" id="art.frog"&gt;
 &lt;title&gt;Frog Sound Recordings&lt;/title&gt;
 &lt;subtitle&gt;Product Description&lt;/subtitle&gt;
 [...]
&lt;/article&gt;</screen>
        <para>
         If the processing instruction (PI)  is
        missing, any profiling parameters in the &dc; file will be ignored.
       </para>
     </example>

<example id="ex.daps.main.pi.db5">
     <title>&main; file With PI for Profiling (DocBook 5.0)</title>
<screen>&lt;?xml version="1.0" encoding="utf-8"?&gt;
<emphasis role="strong">&lt;?xml-stylesheet
 href="urn:x-daps:xslt:profiling:docbook50-profile.xsl"
 type="text/xml"
 title="Profiling step"?&gt;</emphasis>
&lt;!DOCTYPE article
[&lt;!ENTITY % entities SYSTEM "entity-decl.ent">
%entities;
]&gt;

&lt;!--the following article is contained in the file art_frog.xml--&gt;

&lt;article xml:lang="en" xml:id="art.frog"
   xmlns="http://docbook.org/ns/docbook"&gt;
 &lt;title&gt;Frog Sound Recordings&lt;/title&gt;
 &lt;subtitle&gt;Product Description&lt;/subtitle&gt;
 [...]
&lt;/article&gt;</screen>
        <para>
         If the processing instruction (PI)  is
        missing, any profiling parameters in the &dc; file will be ignored.
       </para>
       <para>
        Use the PI <sgmltag class="pi">xml-stylesheet
 href="urn:x-daps:xslt:profiling:docbook51-profile.xsl"
 type="text/xml" title="Profiling step"</sgmltag> for DocBook version 5.1.
       </para>
     </example>

    <example id="ex.daps.dc.pa.home">
     <title>&dc; File with Profiling for Home Edition</title>
<screen>## Doc Config File for Frog Sound Recordings
## (Home Edition)

## Mandatory Parameters
MAIN="art_frog.xml" <co id="co.dc.pa.main1"/>

## Profiling
PROFCONDITION="basic" <co id="co.dc.pa.profcond.basic"/>
[...]</screen>
     <calloutlist>
      <callout arearefs="co.dc.pa.main1">
       <para>
        <parameter>MAIN</parameter> parameter referencing the &main; file. See
        <xref linkend="ex.daps.main.pi.db4" xrefstyle="select:label"/>
        (DocBook&nbsp;4) or <xref
         linkend="ex.daps.main.pi.db5" xrefstyle="select:label"/> (DocBook&nbsp;5).
       </para>
      </callout>
      <callout arearefs="co.dc.pa.profcond.basic">
       <para>
        &dapsacr; profiling parameter for the
        <sgmltag class="attribute">condition</sgmltag> profiling attribute.
        It defines that XML elements tagged with
        <sgmltag class="attribute">condition="basic"</sgmltag> are included
        in the output.
       </para>
      </callout>
     </calloutlist>
    </example>
    <example id="ex.daps.dc.pa.prof">
     <title>&dc; File with Profiling for Professional Edition</title>
<screen>## Doc Config File for Frog Sound Recordings
## (Professional Edition)

## Mandatory Parameters
MAIN="art_frog.xml" <co id="co.dc.pa.main2"/>

## Profiling
PROFCONDITION="prof" <co id="co.dc.pa.profcond.prof1"/>
[...]</screen>
     <calloutlist>
      <callout arearefs="co.dc.pa.main2">
       <para>
        <parameter>MAIN</parameter> parameter referencing the &main; file. See
        <xref linkend="ex.daps.main.pi.db4" xrefstyle="select:label"/>
        (DocBook&nbsp;4) or <xref
         linkend="ex.daps.main.pi.db5" xrefstyle="select:label"/> (DocBook&nbsp;5).
       </para>
      </callout>
      <callout arearefs="co.dc.pa.profcond.prof1">
       <para>
        &dapsacr; profiling parameter for the
        <sgmltag class="attribute">condition</sgmltag> profiling attribute.
        It defines that XML elements tagged with
        <sgmltag class="attribute">condition="prof"</sgmltag> are included
        in the output.
       </para>
      </callout>
     </calloutlist>
    </example>
    <example id="ex.daps.dc.pa.prof.oem">
     <title>&dc; File with Profiling for Professional Edition (OEM Version)</title>
<screen>## Doc Config File for Frog Sound Recordings
## (Professional Edition, OEM Version)

## Mandatory Parameters
MAIN="art_frog.xml" <co id="co.dc.pa.main3"/>

## Profiling
PROFCONDITION="prof" <co id="co.dc.pa.profcond.prof2"/>
PROFVENDOR="oemcompany" <co id="co.dc.pa.profvendor.oem"/>
[...]</screen>
     <calloutlist>
      <callout arearefs="co.dc.pa.main3">
       <para>
        <parameter>MAIN</parameter> parameter referencing the &main; file. See
        <xref linkend="ex.daps.main.pi.db4"/> or <xref
         linkend="ex.daps.main.pi.db5"/> .
       </para>
      </callout>
      <callout arearefs="co.dc.pa.profcond.prof2">
       <para>
        &dapsacr; profiling parameter for the
        <sgmltag class="attribute">condition</sgmltag> profiling attribute.
        It defines that XML elements tagged with
        <sgmltag class="attribute">condition="prof"</sgmltag> are included
        in the output.
       </para>
      </callout>
      <callout arearefs="co.dc.pa.profvendor.oem">
       <para>
        &dapsacr; profiling parameter for the
        <sgmltag class="attribute">vendor</sgmltag> profiling attribute. It
        defines that XML elements tagged with
        <sgmltag class="attribute">vendor="oemcompany"</sgmltag> are
        included in the output.
       </para>
      </callout>
     </calloutlist>
    </example>
   </sect3>
  </sect2>
 </sect1>
 <sect1 id="sec.daps.user.modular.productentities">
  <title>Combining Entities and Profiling</title>

  <para>
   For maximum flexibility in generating documentation variants from the
   same source, &dapsacr; also supports the combination of entities and
   profiling. As you already learned in
   <xref linkend="sec.daps.user.modular.ent.separate"/>, it is useful for
   modularization purposes to declare entities in a separate file and to
   re-use it in multiple documentation projects. </para>
  <para>For multiple use of entities like <literal>&amp;productname;</literal> or
   <literal>&amp;productnumber;</literal>, declare them in a separate file
   and add profiling within the entities as shown in
   <xref linkend="ex.daps.ent.decl.profiling" xrefstyle="select:label"/>. During generation of
   output, &dapsacr; then automatically replaces the entities with different
   values during output, depending on the context.
  </para>

  <example id="ex.daps.ent.decl.profiling">
   <title>Separate Entity File with Profiling Attributes (DocBook 5.0)</title>
<screen><?dbsuse-fo font-size="0.60em"?>&lt;!--the following declarations are contained in the file entity-decl.ent --&gt;

&lt;!ENTITY productname
 <emphasis role="strong">'&lt;phrase cond="basic"&gt;Frog Sound Recordings (Basic)&lt;/phrase&gt;
  &lt;phrase cond="prof"&gt;Frog Sound Recordings (Professional)&lt;/phrase&gt;
  &lt;phrase cond="prof" vendor="oemcompany"&gt;Gecko Sound Recordings (Professional)&lt;/phrase&gt;'&gt;</emphasis>

&lt;!ENTITY productnumber
 <emphasis role="strong">'&lt;phrase cond="basic"&gt;1.0&lt;/phrase&gt;
  &lt;phrase cond="prof"&gt;4.2&lt;/phrase&gt;
  &lt;phrase cond="prof" vendor="oemcompany"&gt;4.21&lt;/phrase&gt;'&gt;</emphasis></screen>
  </example>

  <remark>taroth 2012-12-06: open issue - check with fs and toms why/if we
    need productname/productnumber in setinfo/bookinfo/articleinfo - toms' answer:
    https://github.com/openSUSE/daps/issues/48</remark>


   <procedure id="pro.daps.modular.productentities">
   <title>Using Product Entities with Profiling in XML Files</title>
   <para> After declaring the entities as shown in <xref
     linkend="ex.daps.ent.decl.profiling" xrefstyle="select:label"/> you can use
    them throughout your documents. For &dapsacr; to process them correctly,
    you only need to <quote>introduce</quote> the entities once within the
     <sgmltag>*info</sgmltag> element of each document as described below. For
    examples showing the result, see <xref linkend="ex.daps.main.pi.db4"
     xrefstyle="select:label"/> (DocBook&nbsp;4) or <xref
     linkend="ex.daps.main.pi.db5" xrefstyle="select:label"/>
    (DocBook&nbsp;5).</para>

   <step>
    <para>Open the XML file that contains the root element for your respective
     document (<sgmltag>set</sgmltag>, <sgmltag>book</sgmltag>, or
     <sgmltag>article</sgmltag>).
     <remark>taroth 2012-12-07: toms, fs: if I have a set, do the product*
    entities need to be in all *info elements (setinfo, bookinfo, articleinfo)?
    - taroth 2015-04-29: according to toms: yes</remark>
    </para>
   </step>
   <step>
    <para>If you use DocBook 4, insert a <sgmltag>setinfo</sgmltag>,
      <sgmltag>bookinfo</sgmltag>, or <sgmltag>articleinfo</sgmltag> element,
     (respectively) within the root element.</para>
    <para>If you use DocBook 5, insert the generic <sgmltag>info</sgmltag>
     element within the root element of your documentation. (DocBook 5 does no
     longer distinguish between <sgmltag>setinfo</sgmltag>,
      <sgmltag>bookinfo</sgmltag>, or <sgmltag>articleinfo</sgmltag>).</para>
   </step>
   <step>
    <para>
     Within <emphasis>all</emphasis> of the <sgmltag>*info</sgmltag> elements in your documentation,
     add the following elements: <sgmltag>productname</sgmltag> and
     <sgmltag>productnumber</sgmltag>.
    </para>
   </step>
   <step>
    <para>
     Within the <sgmltag>productname</sgmltag> elements, add the
     <literal>&amp;productname;</literal> entity.
    </para>
   </step>
    <step>
    <para>Within the <sgmltag>productnumber</sgmltag> elements, add the
      <literal>&amp;productnumber;</literal> entity. </para>
    </step>
  </procedure>

  <para>Now that you have <quote>introduced</quote> the entities for each
   document, use the entities in the text wherever you need them. </para>

  <example id="ex.daps.art.prof.ent.db4">
   <title>XML File with <literal>&amp;productname;</literal> and
    <literal>&amp;productnumber;</literal> Entities (DocBook 4.5)</title>
<screen><?dbsuse-fo font-size="0.65em"?>
&lt;?xml version="1.0" encoding="utf-8"?&gt;

<emphasis role="strong">&lt;?xml-stylesheet
 href="urn:x-daps:xslt:profiling:docbook45-profile.xsl"
 type="text/xml"
 title="Profiling step"?&gt;</emphasis> <co id="co.daps.main.pi.profiling2"/>

<emphasis role="strong">&lt;!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
                         "http://www.docbook.org/xml/4.5/docbookx.dtd"
[&lt;!ENTITY % entities SYSTEM "entity-decl.ent">
%entities;
 ]&gt;</emphasis> <co id="co.daps.main.reference.ent2"/>

&lt;!--the following article is contained in the file art_frog.xml--&gt;

&lt;article lang="en" id="art.frog"&gt;
 &lt;title&gt;Frog Sound Recordings&lt;/title&gt;
 &lt;subtitle&gt;Product Description&lt;/subtitle&gt;
  &lt;articleinfo&gt; <co id="co.daps.articleinfo"/>
   &lt;productname&gt;&amp;productname;&lt;/productname&gt; <co id="co.daps.articleinfo.productname"/>
   &lt;productnumber&gt;&amp;productnumber;&lt;/productnumber&gt; <co id="co.daps.articleinfo.productnumber"/>
 &lt;/articleinfo&gt;
  &lt;abstract&gt;
   &lt;para&gt;
    &amp;productname; &amp;productnumber; is a software for recording, editing, <co id="co.daps.main.product.entities"/>
    and mixing audio data.
   &lt;/para&gt;
  &lt;/abstract&gt;
 [...]
&lt;/article&gt;</screen>
   <calloutlist>
    <callout arearefs="co.daps.main.pi.profiling2">
     <para>
      Processing instruction (PI) in the header of the &main; file. If it is
      missing, any profiling parameters in the &dc; file will be ignored.
     </para>
    </callout>
    <callout arearefs="co.daps.main.reference.ent2">
     <para>
      Reference to the separate entity declaration file (with a parameter
      entity).
     </para>
    </callout>
    <callout arearefs="co.daps.articleinfo">
     <para>
      Element <sgmltag>articleinfo</sgmltag>.
     </para>
    </callout>
    <callout arearefs="co.daps.articleinfo.productname">
     <para>
      Element <sgmltag>productname</sgmltag> and entity
      <literal>&amp;productname;</literal>.
     </para>
    </callout>
    <callout arearefs="co.daps.articleinfo.productnumber">
     <para>
      Element <sgmltag>productnumber</sgmltag> and entity
      <literal>&amp;productnumber;</literal>.
     </para>
    </callout>
    <callout arearefs="co.daps.main.product.entities">
     <para>
      Paragraph containing the entities <literal>&amp;productname;</literal>
      and <literal>&amp;productnumber;</literal>.
     </para>
    </callout>
   </calloutlist>
  </example>

 <example id="ex.daps.art.prof.ent.db5">
   <title>XML File with <literal>&amp;productname;</literal> and
    <literal>&amp;productnumber;</literal> Entities (DocBook 5.0)</title>
<screen><?dbsuse-fo font-size="0.65em"?>
&lt;?xml version="1.0" encoding="utf-8"?&gt;

<emphasis role="strong">&lt;?xml-stylesheet
 href="urn:x-daps:xslt:profiling:docbook50-profile.xsl"
 type="text/xml"
 title="Profiling step"?&gt;</emphasis> <co id="co.daps.main.pi.profiling3"/>

<emphasis role="strong">&lt;!DOCTYPE article
[&lt;!ENTITY % entities SYSTEM "entity-decl.ent">
%entities;
]&gt;</emphasis> <co id="co.daps.main.reference.ent3"/>

&lt;!--the following article is contained in the file art_frog.xml--&gt;

&lt;article xml:lang="en" xml:id="art.frog"
   xmlns="http://docbook.org/ns/docbook"&gt;
 &lt;title&gt;Frog Sound Recordings&lt;/title&gt;
 &lt;subtitle&gt;Product Description&lt;/subtitle&gt;
  &lt;info&gt; <co id="co.daps.info"/>
   &lt;productname&gt;&amp;productname;&lt;/productname&gt; <xref
    linkend="co.daps.articleinfo.productname" xrefstyle="select:nopage"/>
   &lt;productnumber&gt;&amp;productnumber;&lt;/productnumber&gt; <xref
    linkend="co.daps.articleinfo.productnumber" xrefstyle="select:nopage"/>
 &lt;/info&gt;
  &lt;abstract&gt;
   &lt;para&gt;
    &amp;productname; &amp;productnumber; is a software for recording, editing, <xref linkend="co.daps.main.product.entities"
     xrefstyle="select:nopage"/>
    and mixing audio data.
   &lt;/para&gt;
  &lt;/abstract&gt;
 [...]
&lt;/article&gt;</screen>
 <calloutlist>
    <callout arearefs="co.daps.main.pi.profiling3">
     <para>
      Processing instruction (PI) in the header of the &main; file. If it is
      missing, any profiling parameters in the &dc; file will be ignored.
     </para>
    </callout>
    <callout arearefs="co.daps.main.reference.ent3">
     <para>
      Reference to the separate entity declaration file (with a parameter
      entity).
     </para>
    </callout>
    <callout arearefs="co.daps.articleinfo">
     <para>
      Element <sgmltag>info</sgmltag>.
     </para>
    </callout>
    <callout arearefs="co.daps.articleinfo.productname">
     <para>
      Element <sgmltag>productname</sgmltag> and entity
      <literal>&amp;productname;</literal>.
     </para>
    </callout>
    <callout arearefs="co.daps.articleinfo.productnumber">
     <para>
      Element <sgmltag>productnumber</sgmltag> and entity
      <literal>&amp;productnumber;</literal>.
     </para>
    </callout>
    <callout arearefs="co.daps.main.product.entities">
     <para>
      Paragraph containing the entities <literal>&amp;productname;</literal>
      and <literal>&amp;productnumber;</literal>.
     </para>
    </callout>
   </calloutlist>
  </example>
  <para>
   In any output format, the entities
   (<xref linkend="co.daps.articleinfo.productname" xrefstyle="select:label nopage"/>,
   <xref linkend="co.daps.articleinfo.productnumber" xrefstyle="select:label nopage"/>,
   <xref linkend="co.daps.main.product.entities" xrefstyle="select:label nopage"/>)
   will automatically be replaced with different values. The actual values
   depend on the profiling parameters contained in the &dc; file that you use for
   generating the output. For an example, refer to
   <xref linkend="tab.daps.profile.output.four" xrefstyle="select:label"/>.
   It shows output variants that can be generated from the XML code in
   <xref linkend="ex.daps.art.prof.ent.db4" xrefstyle="select:label"/> or <xref
    linkend="ex.daps.art.prof.ent.db5" xrefstyle="select:label"/> plus the
   entity declaration in
   <xref linkend="ex.daps.ent.decl.profiling" xrefstyle="select:label"/> by
   using different &dc; files.
  </para>

  <table id="tab.daps.profile.output.four" rowsep="1">
   <title>Output Variants of <xref linkend="ex.daps.art.prof.ent.db4"
    xrefstyle="select:label"/> / <xref linkend="ex.daps.art.prof.ent.db5"
    xrefstyle="select:label"/> Combined With <xref
     linkend="ex.daps.ent.decl.profiling" xrefstyle="select:label"/></title>
   <tgroup cols="2">
    <colspec colnum="1" colname="1" colwidth="50*"/>
    <colspec colnum="2" colname="2" colwidth="50*"/>
    <thead>
     <row>
      <entry colname="1">
       <para>
        &dc; File
       </para>
      </entry>
      <entry colname="2">
       <para>
        Output
       </para>
      </entry>
     </row>
    </thead>
    <tbody>
     <row>
      <entry>
       <para>
        <xref linkend="ex.daps.dc.pa.home" xrefstyle="select:title"/>
       </para>
      </entry>
      <entry>
       <para>
        Frog Sound Recordings (Basic)&nbsp;1.0 is a software for recording,
        editing, and mixing audio data.
       </para>
      </entry>
     </row>
     <row>
      <entry>
       <para>
        <xref linkend="ex.daps.dc.pa.prof" xrefstyle="select:title"/>
       </para>
      </entry>
      <entry>
       <para>
        Frog Sound Recordings (Professional)&nbsp;4.2 is a software for
        recording, editing, and mixing audio data.
       </para>
      </entry>
     </row>
     <row>
      <entry>
       <para>
        <xref linkend="ex.daps.dc.pa.prof.oem" xrefstyle="select:title"/>
       </para>
      </entry>
      <entry>
       <para>
        Gecko Sound Recordings (Professional)&nbsp;4.21 is a software for
        recording, editing, and mixing audio data.
       </para>
      </entry>
     </row>
    </tbody>
   </tgroup>
  </table>
 </sect1>
</chapter>