summaryrefslogtreecommitdiff
path: root/slides/doc/slides.xml
blob: 5e357f468b2c955c53af7ac4974b4a713b847b5f (plain)
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
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
<?xml version='1.0'?>

<dbs:slides	xmlns="http://docbook.org/ns/docbook"
		xmlns:dbs="http://docbook.org/ns/docbook-slides"
		xmlns:xlink="http://www.w3.org/1999/xlink">
  <info>
    <title>The DocBook Slides Extension</title>
    <titleabbrev>DocBook Slides</titleabbrev>
    <author>
      <personname>
	<firstname>Gábor</firstname>
	<surname>Kövesdán</surname>
      </personname>
      <affiliation>
        <orgname>The DocBook Project</orgname>
      </affiliation>
      <email>gabor@kovesdan.org</email>
    </author>
    <pubdate>3 Aug 2012</pubdate>
    <releaseinfo role="version">5.0</releaseinfo>
    <copyright>
      <year>2012</year>
      <holder>Gábor Kövesdán</holder>
    </copyright>
  </info>

  <dbs:foil dbs:style="introduction">
    <info>
      <title>Introduction</title>
    </info>

    <para>DocBook Slides ...</para>

    <itemizedlist>
      <listitem>
        <para>is a multi-namespace schema extension
	  to the original <link xlink:href="http://www.docbook.org/">DocBook</link>
	  <xref linkend="docbook5"/> schema.</para>
      </listitem>
      
      <listitem>
	<para>was originally created by
	  <personname><firstname>Norman</firstname><surname>Walsh</surname></personname>.</para>
      </listitem>
      
      <listitem>
	<para>and was later redesigned for DocBook 5.0 by
	  <personname><firstname>Gábor</firstname><surname>Kövesdán</surname></personname>.</para>
       </listitem>
     </itemizedlist>
     
     <para>This document serves for two purposes:</para>
     
    <itemizedlist>
      <listitem>
        <para>To explain DocBook Slides.</para>
      </listitem>
      
      <listitem>
	<para>To serve itself as a test document to demonstrate how
	  slides are marked up and how different output formats are
	  rendered.</para>
      </listitem>
     </itemizedlist>
  </dbs:foil>
  
  <dbs:foil>
    <info>
      <title>Basic Concepts</title>
    </info>
    
    <itemizedlist>
      <listitem>
        <para>DocBook is an XML <xref linkend="w3c-xml"/> grammar to mark up
	  papers and books and then process them with XML-related standards.
	  It concentrates on structure and semantics, not layout.</para>
      </listitem>
	
      <listitem>
        <para>DocBook Slides is an extension for DocBook to create
	  presentation slides.</para>
      </listitem>
      
      <listitem>
        <para>By nature, layout is part of a presentation but DocBook Slides
	  still focuses on structure and semantics.</para>
      </listitem>
      
      <listitem>
        <para>DocBook Slides uses almost the entire DocBook grammar and
	  provides only a minimal set of layout-controlling elements.
	  This keeps is simple and easy to use.</para>
      </listitem>
      
      <listitem>
        <para>And still, you can copy-paste, use XInclude, etc.</para>
      </listitem>
    </itemizedlist>
  </dbs:foil>

  <dbs:foilgroup>
    <info>
      <title>Features of DocBook Slides</title>
    </info>

    <para>Let's see some features of DocBook
      Slides.</para>

    <dbs:foil>
      <info>
	<title>Using Namespaces</title>
      </info>

      <para>DocBook Slides uses a separate namespace for its elements.
        This has various advantages:</para>
	
      <itemizedlist>
	<listitem>
	  <para>It isolates the extension elements and the original
	    DocBook schema does not have to know anything about them.</para>
	</listitem>
	
	<listitem>
	  <para>It also avoids name clashes and XML processors can easily
	    distinguish between the two set of elements.</para>
	</listitem>
	
	<listitem>
	  <para>This modular concept makes it easy to extend the official
	    stylesheets with specific processing.</para></listitem>
      </itemizedlist>
    </dbs:foil>

    <dbs:foil>
      <info>
        <title>Easy to Learn</title>
      </info>

      <para>If you already know and use DocBook, DocBook Slides is for you:</para>
      
      <itemizedlist>
        <listitem>
	  <para>You can use the usual inline and block elements when marking up
	    your text, you only have to learn a few new markup elements.</para>
	</listitem>
	
	<listitem>
	  <para>Also, you may include DocBook fragments with XInclude.
	    Imagine an important table that is part of your scientific
	    paper and you also want to show it on a conference.
	    You do not have to copy-paste it but you can just have it in
	    one single file that you later include in both documents.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>

    <dbs:foil>
      <info>
        <title>Development Status</title>
      </info>

      <itemizedlist>
        <listitem>
	  <para>DocBook Slides - just like DocBook - is an open source product
	    and it is under constant development and improvement.</para>
	</listitem>
	
	<listitem>
	  <para>The curently supported output formats are
	    plain XHTML, S5 XHTML <xref linkend="s5"/>,
	    W3C HTML Slidy <xref linkend="slidy"/> and XSL FO <xref linkend="w3c-xslfo"/>.
	    In the future, support for other important
	    output formats (e.g. HTML5, EPUB) may be added.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
  </dbs:foilgroup>

  <dbs:foilgroup xml:id="introductionary-examples">
    <info>
      <title>Tutorial Examples</title>
    </info>

    <para>Let's see some basic examples.</para>

    <dbs:foil>
      <info>
        <title>A Minimal Markup 1</title>
      </info>

      <informalexample>
<programlisting>&lt;?xml version='1.0'?&gt;
&lt;dbs:slides xmlns="http://docbook.org/ns/docbook"
  xmlns:dbs="http://docbook.org/ns/docbook-slides"&gt; <co xml:id="co.slides"/>
  &lt;title&gt;Presentation Title&lt;/title&gt; <co xml:id="co.slides.title"/>
</programlisting>

	<calloutlist>
	  <callout arearefs="co.slides">
	    <para>The root element with proper namespace declarations.</para>
	  </callout>
	  
	  <callout arearefs="co.slides.title">
	    <para>It contains the title but can have more.</para>
	  </callout>
	</calloutlist>
      </informalexample>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>A Minimal Markup 2</title>
      </info>

      <informalexample>
<programlisting>
  &lt;dbs:foil&gt; <co xml:id="co.foil"/>
    &lt;title&gt;Foil Title&lt;/title&gt;
    &lt;para&gt;Foil content&lt;/para&gt; <co xml:id="co.foil.para"/>
  &lt;/dbs:foil&gt;
&lt;/dbs:slides&gt;</programlisting>
	<calloutlist>
	  <callout arearefs="co.foil">
	    <para>At least one foil obligatory.</para>
	  </callout>
	  
	  <callout arearefs="co.foil.para">
	    <para>A foil can contain any block element from DocBook.</para>
	  </callout>
	</calloutlist>
      </informalexample>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>The Whole Example</title>
      </info>

      <para>Let's see the whole markup together:</para>

      <informalexample>
<programlisting>&lt;?xml version='1.0'?&gt;
&lt;dbs:slides xmlns="http://docbook.org/ns/docbook"
  xmlns:dbs="http://docbook.org/ns/docbook-slides"&gt;
  &lt;title&gt;Presentation Title&lt;/title&gt;
  &lt;dbs:foil&gt;
    &lt;title&gt;Foil Title&lt;/title&gt;
    &lt;para&gt;Foil content&lt;/para&gt;
  &lt;/dbs:foil&gt;
&lt;/dbs:slides&gt;</programlisting>
      </informalexample>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>Grouping Foils</title>
      </info>
	
	<para>We can form groups of logical sets of foils and also add some
	  introductionary text for them.  In the rendered forms, these groups
	  can have a table of contents of the included slides.  You can also
	  see such groups in this presentation.</para>
	  
	<informalexample>
<programlisting><![CDATA[<dbs:foilgroup>
  <title>Group 1</title>
  
  <para>This is an introduction.</para>
  
  <dbs:foil>
  ...
  </dbs:foil>
</dbs:foilgroup>]]></programlisting>
      </informalexample>
    </dbs:foil>
  </dbs:foilgroup>
    
  <dbs:foilgroup>
    <info>
      <title>Markup Examples</title>
    </info>
    
    <para>Let's see how to create the particular foils with
      DocBook Slides.</para>
    
    <dbs:foil>
      <info>
	<title>Info Content</title>
      </info>
      
      <para>You can wrap the title into the <tag>&lt;info&gt;</tag> element that
        comes from the DocBook schema.  It also means you can
	add the usual authoring information here:</para>
	
	<informalexample>
<programlisting><![CDATA[
  <info>
    <title>Group 1</title>
    
    <author>
      <personname>
        <firstname>John</firstname>
        <surname>Doe</surname>
      </personname>
      <affiliation>FooBar Inc.</affiliation>
    </author>
    
    <copyright><year>2012</year></copyright>
  </info>]]></programlisting>
      </informalexample>
    </dbs:foil>

    <dbs:foil>
      <info>
        <title>Block Content</title>
      </info>

      <itemizedlist>
        <listitem>
	  <para>You have access to all of the block content elements in DocBook,
            e.g. you can create a simple paragraph with
	    <code>&lt;para&gt;</code>, just like in DocBook.</para>
	</listitem>
	
	<listitem>
	  <para>Or you can use lists, like <code>&lt;itemizedlist&gt;</code>.</para>
	</listitem>
      </itemizedlist>
      
      <programlisting>Or &lt;programlisting&gt; with some code or markup inside.</programlisting>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>Inline Content</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para>Just like block elements, you can also use inline DocBook
	    elements to mark up your content on your foils.</para>
	</listitem>
	
	<listitem>
	  <para>For example, you can <emphasis>emphasize</emphasis>
	    something with <tag>&lt;emphasis&gt;</tag> or you
	    can mark <literal>literal</literal> text as such with
	    <tag>&lt;literal&gt;</tag>.</para>
	</listitem>
	
	<listitem>
	  <para>By the way, the inline markup citation above is marked up
	    with <tag>&lt;tag&gt;</tag>.</para>
	</listitem>
	
	<listitem>
	  <para>Apart from these, feel free to use the rest of
	    the markup elements.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>FAQ Listings</title>
      </info>
      
      <qandaset>
	<qandaentry>
	  <question>
	    <para>What else can I use to make my slides useful
	      and practical?</para>
	  </question>
	  
	  <answer>
	    <para>You can include some questions and answers with
	      <tag>&lt;qandaset&gt;</tag> and related elements to answer some
	      frequently asked questions.</para>
	  </answer>
	</qandaentry>
      </qandaset>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>References</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para>Sometimes you need to add some remarks and some
	    references to your slide content.</para>
	</listitem>
	
	<listitem>
	  <para>For small remarks, you can use the
	    <code>&lt;footnote&gt;</code> element to insert a footnote
	    that will appear on the same foil where it is inserted.</para>
	</listitem>
	
	<listitem>
	  <para>Or for references to external content
	    - books and websites - you can include one or more
	    bibliography foils in the end.</para>
	</listitem>
	
	<listitem>
	  <para>On these foils, instead of the usual bulleted points, use the
	    <code>&lt;bibliography&gt;</code> element and you
	    will get a nicely formatted reference list.</para>
	</listitem>

	<listitem>
	  <para>Use <code>&lt;xref&gt;</code> in the content
	    to generate a link to the reference entry.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
    <dbs:foil dbs:incremental="1">
      <info>
        <title>Incremental Slides</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para>If you set the <code>dbs:incremental</code> attribute ...</para>
	</listitem>
	
	<listitem>
	  <para>... to <literal>1</literal> on a foil, ...</para>
	</listitem>
	
	<listitem>
	  <para>... then you will get incremental lists, ...</para>
	</listitem>
	
	<listitem>
	  <para>... like this if they are supported in the output format. (XHTML-based)</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
    <dbs:foil dbs:collapsible="1">
      <info>
        <title>Collapsible Lists</title>
      </info>

      <para>You can see a collapsible list below (depending on the output
        format).  Click on the node to expand it.</para>

      <orderedlist>
        <listitem>
          <orderedlist>
          <listitem>
            <para>If you set the <code>dbs:collapsible</code> attribute ...</para>
        </listitem>

        <listitem>
          <para>... to <literal>1</literal> on a foil, ...</para>
        </listitem>

        <listitem>
          <para>... then you will get collapsible lists, ...</para>
        </listitem>

        <listitem>
          <para>... like this if they are supported in the output format. (Slidy)</para>
        </listitem>
      </orderedlist>
        </listitem>
      </orderedlist>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>Building Blocks</title>
      </info>

      <itemizedlist>
        <listitem>
	  <para>Slides are layout-oriented documents; formatting
	    is a crucial part of them.</para>
	</listitem>
	
	<listitem>
	  <para>DocBook aims to separate structure and layout but for
	    Slides sometimes it is not entirely possible, yet the
	    layout-related markup is tried to be kept minimal.</para>
	</listitem>
	
	<listitem>
	  <para>You can use the <tag>&lt;dbs:block&gt;</tag> element
	    that will be transformed to a container type in the
	    generated document (e.g. <tag>&lt;div&gt;</tag> in HTML).</para>
	</listitem>
	
	<listitem>
	  <para>You can also apply the <literal>dbs:style</literal> attribute
	    to blocks and you can even embed them into each other.</para>
	</listitem>
	
	<listitem>
	  <para>Use CSS or extend the XSLT stylesheets to control
	    renering of your custom blocks.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>Block Example</title>
      </info>

      <dbs:block dbs:style="left">
        <para>This is the left block.</para>
      </dbs:block>
      
      <dbs:block dbs:style="right" dbs:incremental="1">
        <para>This is the right block.  And it is marked incremental.</para>
      </dbs:block>  
    </dbs:foil>
  </dbs:foilgroup>
  
  <dbs:foilgroup>
    <title>Images and Formulas</title>
    
    <dbs:foil>
      <info>
        <title>Incremental Images</title>
      </info>
      
      <para>This is only supported in XHTML-based output.</para>

      <dbs:block dbs:incremental="1" dbs:style="face_container">
        <mediaobject>
          <imageobject>
	    <imagedata dbs:style="face_first" fileref="images/face1.gif"/>
	  </imageobject>
        </mediaobject>

        <mediaobject>
          <imageobject>
	    <imagedata dbs:style="face_other" fileref="images/face2.gif"/>
  	  </imageobject>
        </mediaobject>

        <mediaobject>	
          <imageobject>
	    <imagedata dbs:style="face_other" fileref="images/face3.gif"/>
	  </imageobject>
        </mediaobject>

        <mediaobject>
          <imageobject>
	    <imagedata dbs:style="face_other" fileref="images/face4.gif"/>
	  </imageobject>
        </mediaobject>
      </dbs:block>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>Embedded SVG</title>
      </info>
      
      <para>You can embed SVG
        <footnote><para>See <uri xlink:href="http://www.w3.org/TR/SVG11/">http://www.w3.org/TR/SVG11/</uri>.</para></footnote>
        code, like this:</para>
      
      <programlisting><![CDATA[<svg xml:id="circle" 
				    xmlns="http://www.w3.org/2000/svg"
				    version="1.1">
  <circle cx="100" cy="50" r="40" stroke="black"
    stroke-width="2" fill="yellow" />
</svg>]]></programlisting>

      <svg xml:id="circle" xmlns="http://www.w3.org/2000/svg" version="1.1">
        <circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="yellow" />
      </svg> 
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>Embedded MathML</title>
      </info>
      
      <para>You can embed MathML
        <footnote><para>See <uri xlink:href="http://www.w3.org/TR/MathML3/">http://www.w3.org/TR/MathML3/</uri>.</para></footnote>
	code, like this:</para>
      
      <programlisting><![CDATA[<math xml:id="identity-matrix-2dim"
				     xmlns="http://www.w3.org/1998/Math/MathML">
  <matrix>
    <matrixrow><cn>1</cn><cn>0</cn></matrixrow>
    <matrixrow><cn>0</cn><cn>1</cn></matrixrow>
  </matrix>
</math>]]></programlisting>

      <math xml:id="identity-matrix-2dim" xmlns="http://www.w3.org/1998/Math/MathML">
	<matrix>
	  <matrixrow><cn>1</cn><cn>0</cn></matrixrow>
	  <matrixrow><cn>0</cn><cn>1</cn></matrixrow>
	</matrix>
      </math>
    </dbs:foil>
  </dbs:foilgroup>

  <dbs:foilgroup>
    <info>
      <title>Presentation</title>
    </info>
    
    <dbs:foil>
      <info>
        <title>Available Formats</title>
      </info>
      
      <informaltable>
	<tgroup cols="2">
	  <thead>
	    <row><entry>Stylesheet</entry><entry>Description.</entry></row>
	  </thead>

          <tbody>
	    <row>
	      <entry>xhtml/plain.xsl</entry>
	      <entry>Single plain XHTML file.</entry>
	    </row>

	    <row>
	      <entry>xhtml/slidy.xsl</entry>
	      <entry>Single XHTL file in W3C HTML Slidy format.</entry>
	    </row>

	    <row>
	      <entry>xhtml/s5.xsl</entry>
	      <entry>Single XHTML file in S5 format.</entry>
	    </row>

	    <row>
	      <entry>fo/plain.xsl</entry>
	      <entry>XSL Formatting Objects for printed output.</entry>
	    </row>
	    
	  </tbody>
	</tgroup>
      </informaltable>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>Plain XHTML</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para>It is a simple plain <acronym>XHTML</acronym> output with
	    some classes given on the elements.  These let you create your
	    own CSS stylesheet for the rendering.</para>
	</listitem>
	
	<listitem>
	  <para>It is actually quite similar to the
	    <acronym>S<superscript>5</superscript></acronym> format with
	    <acronym>S<superscript>5</superscript></acronym>-specific
	    parts removed.  The objective with this format was simplicity
	    and <acronym>S<superscript>5</superscript></acronym>
	    already achieves that quite well but in case you do not want
	    to use that framework, you can create your own one.</para>
	</listitem>
	
	<listitem>
	  <para>The stylesheet to choose for this format is
	    <filename>xhtml/plain.xsl</filename>.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>W3C HTML Slidy</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para>W3C <uri xlink:href="http://www.w3.org/Talks/Tools/Slidy2/">HTML Slidy</uri>
	    is an XHTML framework for presentations.</para>
	</listitem>
	
	<listitem>
	  <para>It seems mature and well maintained.</para>
	</listitem>
	
	<listitem>
	  <para>HTML Slidy handles well long content.  Its formatting
	    allows more text on a single foil and even if your text
	    overflows, you can scroll inside the single foil.  It also
	    supports collapsible lists and a JavaScript clock so that you
	    do not run out of time.</para>
	</listitem>
	
	<listitem>
	  <para>For HTML Slidy, use
	    <filename>xhtml/slidy.xsl</filename>.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>S5 Format</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para><acronym xlink:href="http://meyerweb.com/eric/tools/s5/">S<superscript>5</superscript></acronym>
	    stands for <emphasis>Simple Standards-Based Slide Show System</emphasis>.</para>
	</listitem>
	
	<listitem>
	  <para>It is yet another XHTML-based framework for slideshows, like
	    HTML Slidy.</para>
	</listitem>
	
	<listitem>
	  <para>Its JavaScript code behaves somewhat differently and it is less
	    mature.</para>
	</listitem>
	
	<listitem>
	  <para>It supports incremental lists but in general, it is not so
	    feature-rich as HTML Slidy.</para>
	</listitem>
	
	<listitem>
	  <para>To create your <acronym>S<superscript>5</superscript></acronym>
	     presentation, pick the
	    <filename>xhtml/s5.xsl</filename> stylesheet.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>XSL FO Format</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para>XSL FO is an XML vocabulary to describe how formatted
	    output is presented.</para>
	</listitem>
	
	<listitem>
	  <para>It is used here as an intermediate format between DocBook Slides
	    and printable output.</para>
	</listitem>
	
	<listitem>
	  <para>First, generate the XSL FO document.</para>
	</listitem>
	
	<listitem>
	  <para>Then use your XSL FO processor to render your printable
	    document in PDF, PostScript, etc. depending on the capabilities of
	    the software you use.</para>
	</listitem>
	
	<listitem>
	  <para>If you need a free processor, take a look at
	    Apache FOP <xref linkend="fop"/>.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>XSLT Parameters</title>
      </info>

      <itemizedlist>
	<listitem>
	  <para>The provided stylesheets offer XSLT <xref linkend="w3c-xslt"/> parameters
	    to adjust some tunables of the output generation.</para>
	</listitem>
	
	<listitem>
	  <para>The parameters are documented in the documentation
	    that accompanies the DocBook XSL distribution.</para>
	</listitem>
	
	<listitem>
	  <para>All the DocBook Slides stylesheets are extensions of the
	    original DocBook stylesheets so adjusting their parameters may also
	    affect your rendered slides.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
     
    <dbs:foil>
      <info>
        <title>Customizations</title>
      </info>
      
      <para>Sometimes parameters are not enough and you need to modify
        the templates to achieve your goal.  Customizations are easy
	to create with XSLT.</para>

      <orderedlist>
	<listitem>
	  <para>Just pick up a stylesheet that you want to customize.</para>
	</listitem>
	
	<listitem>
	  <para>Create a new, empty stylesheet that imports the original
	    one.</para>
	</listitem>
	
	<listitem>
	  <para>Override the original templates that do not work
	    in the way you desire.</para>
	</listitem>
	
	<listitem>
	  <para>Of course, this requires some knowledge in XSLT and
	    you will need to read the code to see what to override.</para>
	</listitem>
      </orderedlist>
    </dbs:foil>
  </dbs:foilgroup>
  
  <dbs:foilgroup>
    <info>
      <title>Authoring with DocBook Slides 5.0</title>
    </info>
    
    <dbs:foil>
      <info>
        <title>Choosing a Validator</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para>Once you have some slides marked up in DocBook Slides,
	    you probably want to make sure your markup is valid. Otherwise,
	    it is not guaranteed that the output will be generated properly.
	    For this, you need a validator.</para>
	</listitem>
	
	<listitem>
	  <para>The DocBook Slides schema is described in the RELAX-NG grammar language.</para>
	</listitem>
	
	<listitem>
	  <para>The recommended RELAX-NG validator is
	    <application>jing</application> <xref linkend="jing"/>.</para>
	</listitem>
	
	<listitem>
	  <para>Alternatively, you can use <application>Emacs/nXML</application>
	    with the supplied <filename>locatingrules.xml</filename> file.</para>
	</listitem>
      </itemizedlist>
      
      <warning>
        <para>The RELAX-NG validation in the xmllint program from libxml2 is known to have
	  bugs and does not work correctly with DocBook Slides.</para>
      </warning>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>Validating Slides</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para>With <command>jing</command>, run:
	    <userinput>jing ~/docbook-slides/slides.rng foo.xml</userinput>.</para>
	</listitem>
	
	<listitem>
	  <para>For <application>Emacs/nXML</application>, you can put the following into
	    your <filename>emacs.conf</filename>:</para>
	    
	  <programlisting>
      (setq rng-schema-locating-files
        (append
          '("~/docbook-slides/locatingrules.xml")))</programlisting>
	  
	  <para>Or you can do <userinput>M-x customize-variable rng-schema-locating-files</userinput>
	    and then add the absolute path to the file.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>Transforming DocBook Slides Documents</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para>You need an XSLT processor to transform the documents.
	    For example, you can use either <command>xsltproc</command> from
	    <application>libxslt</application> <xref linkend="libxslt"/>, <application>Xalan</application>
	    or <application>Saxon</application>.</para>
	</listitem>
	
	<listitem>
	  <para>It is recommended to use <command>xsltproc</command>, since
	    it is significantly faster than the other two and the DocBook Slides
	    stylesheets were also tested with it.</para>
	</listitem>
	
	<listitem>
	  <para>Pick the proper stylesheet for your chosen output format.
	    For example, it is <filename>xhtml/slidy.xsl</filename> for
	    HTML Slidy.</para>
	</listitem>
	
	<listitem>
	  <para>Type: <userinput>xsltproc xsl/slides/xhtml/slidy.xsl foo.xml &gt; foo.html</userinput></para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
  
    <dbs:foil>
      <info>
        <title>Rendering Printable Output</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para>First create the XSL FO document with XSLT:
	    <userinput>xsltproc xsl/slides/fo/plain.xsl foo.xml &gt; foo.fo</userinput></para>
	</listitem>
	
	<listitem>
	  <para>Then use your XSL FO processor to render the final document.</para>
	</listitem>
	
	<listitem>
	  <para>For example, to render a PDF with Apache FOP, type:
	    <userinput>fop foo.fo foo.pdf</userinput></para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
  </dbs:foilgroup>
  
  <dbs:foilgroup>
    <info>
      <title>DocBook Slides Limitations</title>
    </info>
    
    <dbs:foil>
      <info>
        <title>Foil Content</title>
      </info>
      
      <para>Creating slides is quite different from creating
        papers and books.</para>
      
      <itemizedlist>
        <listitem>
	  <para>Presentational slide are layout-oriented by nature as opposed to DocBook, which is
	    structure-oriented. The content of the foil must fit but there
	    is no easy way to detect this so this should be checked
	    and controlled manually.</para>
	</listitem>
	
	<listitem>
	  <para>Formatting of slide content is not necessarily consistent but part
	    of the design of each foil and illustration used in
	    the presentation, while an important principle of
	    DocBook is separating content and styling.  To achieve
	    something very unique, you will probably need heavy
	    customization.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>Animations and Sound Effects</title>
      </info>
      
      <para>DocBook was invented for mostly printed or web
        content, while slides are rarely presented in a
	printed form.</para>
	
      <itemizedlist>
	<listitem>
	  <para>Slides are usually shown on computer screen or
	    projector and may heavily use animated or audio content
	    to support the presentations.</para>
	</listitem>
	
	<listitem>
	  <para>Most of the possible output formats are usually
	    used in printed form or on the web.  The first lacks
	    the possibility of animated and audio content and the
	    second one lacks good open standards for doing so.</para>
	</listitem>
	
	<listitem>
	  <para>Maybe a future HTML5 or OpenDocument support
	    can bring in some new features but for now, you cannot
	    really use animations and sound.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
  </dbs:foilgroup>
  
  <dbs:foilgroup>
    <info>
      <title>Frequently Asked Questions</title>
    </info>
    
    <dbs:foil>
      <info>
        <title>Compatibility</title>
      </info>
      
      <qandaset>
	<qandaentry>
	  <question>
	    <para>Is DocBook Slides 5.0 stylesheets compatible with
	      older versions of DocBook Slides or vice versa?</para>
	  </question>
	  
	  <answer>
	    <para>Not at all, since it is heavily redesigned.  But
	      you can find an XSLT transformation in the
	      <filename class="directory">tools/</filename>
	      directory, which can convert your slides to the new
	      schema.</para>
	  </answer>
	</qandaentry>
      </qandaset>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>Contribution</title>
      </info>

      <qandaset>
	<qandaentry>
	  <question>
	    <para>Can I contribute to the schema or to the stylesheets?</para>
	  </question>
	  
	  <answer>
	    <para>Of course, any contribution that can be useful for
	      other users and fits the concept of DocBook Slides
	      is more than welcome.</para>
	  </answer>
	</qandaentry>

	<qandaentry>
	  <question>
	    <para>What to do with my contribution?</para>
	  </question>
	  
	  <answer>
	    <para>Please first ask review on
	    the <link xlink:href="mailto:docbook-apps@lists.oasis-open.org">docbook-apps
	    mailing list</link> and users and other developers will tell you
	    what to improve and how to submit your work for inclusion.</para>
	  </answer>
	</qandaentry>
      </qandaset>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>Help</title>
      </info>

      <qandaset>
	<qandaentry>
	  <question>
	    <para>How can I get help in using the schema and the
	      accompanying stylesheets?</para>
	  </question>
	  
	  <answer>
	    <para>There is a
	    <link xlink:href="mailto:docbook-apps@lists.oasis-open.org">docbook-apps
	    mailing list</link> for general questions on DocBook and related
	    technologies.  There are numerous users and developers subscribed to
	    this list, so probably you can get help there.</para>
	  </answer>
	</qandaentry>
      </qandaset>
    </dbs:foil>
  </dbs:foilgroup>
  
  <dbs:foilgroup>
    <info>
      <title>Mini-Reference</title>
    </info>
    
    <para>Here you have the short and informal description of the DocBook
      Slides elements.  It is not meant to be a full and formalized
      referenced but rather a cheatsheet to look at.</para>
      
    <dbs:foil>
      <info>
        <title>dbs:slides</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para><emphasis>May contain:</emphasis> db:title, db:titleabbrev,
	    db:subtitle, db:info, dbs:foilgroup, dbs:foil</para>
	</listitem>
	
	<listitem>
	  <para><emphasis>Usage:</emphasis> It is the root element that encloses the authoring
	    info and the particular foils that may be grouped to foil
	    groups.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>dbs:foilgroup</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para><emphasis>May contain:</emphasis> db:title, db:titleabbev,
	    db:subtitle, db:info, [block content], dbs:foil, dbs:speakernotes,
	    dbs:handoutnotes</para>
	</listitem>
	
	<listitem>
	  <para><emphasis>Usage:</emphasis> It groups together various foils.  It can have its own info
	    section and an optional introductionary text.  Depending on your XSLT
	    parameters, it may generate a table of contents of enclosed foils.
	    Its usage is not obligatory but may be very useful for grouping together
	    logically related foils.  It may have some speaker notes and handout notes, as well.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>dbs:foil</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para><emphasis>May contain:</emphasis> db:title, db:titleabbev,
	    db:subtitle, db:info, [block content], dbs:speakernotes,
	    dbs:handoutnotes</para>
	</listitem>
	
	<listitem>
	  <para><emphasis>Usage:</emphasis> It marks up a single foil.  Use
	    DocBook block elements to mark up your content.  It may have some speaker
	    notes and handout notes, as well.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
    <dbs:foil>
      <info>
        <title>dbs:block</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para><emphasis>May contain:</emphasis> [block content]</para>
	</listitem>
	
	<listitem>
	  <para><emphasis>Usage:</emphasis> It divides the content into layout units
	    that can later processed in a specific way.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
     <dbs:foil>
      <info>
        <title>dbs:speakernotes</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para><emphasis>May contain:</emphasis> [block content]</para>
	</listitem>
	
	<listitem>
	  <para><emphasis>Usage:</emphasis> Notes that are not meant to be presented to
	    the audience but to the speaker.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>

     <dbs:foil>
      <info>
        <title>dbs:handoutnotes</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para><emphasis>May contain:</emphasis> [block content]</para>
	</listitem>
	
	<listitem>
	  <para><emphasis>Usage:</emphasis> Notes that are not to accompany
	    printed slides.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
     <dbs:foil>
      <info>
        <title>Attribute dbs:incremental</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para><emphasis>Usage:</emphasis> Makes the content incremental.
	    Allowed on any element and inherited to child elements
	    but not applicable everywhere and its effect depends on the output
	    format.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
     <dbs:foil>
      <info>
        <title>Attribute dbs:collapsible</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para><emphasis>Usage:</emphasis> Makes the content collapsible.
	    Allowed on any element and inherited to child elements
	    but not applicable everywhere and its effect depends on the output
	    format.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
    
     <dbs:foil>
      <info>
        <title>Attribute dbs:style</title>
      </info>
      
      <itemizedlist>
        <listitem>
	  <para><emphasis>Usage:</emphasis> Classifies the given element
	    to a specific formatting class.  Typically applicable to foils,
	    foilgroups and mediaobject.  Allowed anywhere but not processed
	    everywhere.  In HTML it naturally maps to the <literal>class</literal>
	    attribute.</para>
	</listitem>
      </itemizedlist>
    </dbs:foil>
  </dbs:foilgroup>
  
  <dbs:foil>
    <info>
      <title>Related Standards</title>
    </info>
    
    <bibliography>
      <title>Related Standards</title>

      <biblioentry xml:id="w3c-xml">
        <title>Extensible Markup Language (XML)</title>

        <org>
          <orgname>W3C</orgname>
        </org>

        <bibliosource class="uri" xlink:href="http://www.w3.org/TR/REC-xml/">http://www.w3.org/TR/REC-xml/</bibliosource>
      </biblioentry>

      <biblioentry xml:id="docbook5">
        <title>The DocBook Schema Version 5.0</title>

        <org>
          <orgname>OASIS</orgname>
        </org>

        <bibliosource class="uri" xlink:href="http://docs.oasis-open.org/docbook/specs/docbook-5.0-spec-os.html">http://docs.oasis-open.org/docbook/specs/docbook-5.0-spec-os.html</bibliosource>
      </biblioentry>
      
      <biblioentry xml:id="w3c-xslt">
        <title>XSL Transformations (XSLT) Version 1.0</title>

        <org>
          <orgname>W3C</orgname>
        </org>

        <bibliosource class="uri" xlink:href="http://www.w3.org/TR/xslt">http://www.w3.org/TR/xslt</bibliosource>
      </biblioentry>
      
      <biblioentry xml:id="w3c-xslfo">
        <title>Extensible Stylesheet Language (XSL) Version 1.1</title>

        <org>
          <orgname>W3C</orgname>
        </org>

        <bibliosource class="uri" xlink:href="http://www.w3.org/TR/xsl/">http://www.w3.org/TR/xsl/</bibliosource>
      </biblioentry>
    </bibliography>
  </dbs:foil>
  
  <dbs:foil>
    <info>
      <title>Supported HTML Presentation Frameworks</title>
    </info>
    
    <bibliography>
      <title>Supported HTML Presentation Frameworks</title>

      <biblioentry xml:id="s5">
        <title>S<superscript>5</superscript></title>
	<subtitle>A Simple Standards-Based Slide Show System</subtitle>

        <bibliosource class="uri" xlink:href="http://meyerweb.com/eric/tools/s5/">http://meyerweb.com/eric/tools/s5/</bibliosource>
      </biblioentry>

      <biblioentry xml:id="slidy">
        <title>HTML Slidy</title>
	<subtitle>Slide Shows in HTML and XHTML</subtitle>

        <bibliosource class="uri" xlink:href="www.w3.org/Talks/Tools/Slidy2/">www.w3.org/Talks/Tools/Slidy2/</bibliosource>
      </biblioentry>
    </bibliography>
  </dbs:foil>
  
  <dbs:foil>
    <info>
      <title>Recommended Tools</title>
    </info>
    
    <bibliography>
      <title>Recommended Tools</title>

      <biblioentry xml:id="jing">
        <title>Jing RELAX-NG validator</title>

        <bibliosource class="uri" xlink:href="http://www.thaiopensource.com/relaxng/jing.html">http://www.thaiopensource.com/relaxng/jing.html</bibliosource>
      </biblioentry>

      <biblioentry xml:id="libxslt">
        <title>libxslt</title>
	<subtitle>The XSLT C library for GNOME</subtitle>

        <bibliosource class="uri" xlink:href="http://xmlsoft.org/xslt/">http://xmlsoft.org/xslt/</bibliosource>
      </biblioentry>
      
      <biblioentry xml:id="fop">
        <title>Apache FOP</title>

        <bibliosource class="uri" xlink:href="http://xmlgraphics.apache.org/fop/">http://xmlgraphics.apache.org/fop/</bibliosource>
      </biblioentry>
    </bibliography>
  </dbs:foil>
</dbs:slides>