TIVI-153: Add docbook-style-dssl as dep for iputils
[profile/ivi/docbook-style-dsssl.git] / dtds / dbdsssl / dbdsssl.dtd
1 <!-- ================================================================= -->
2 <!-- A DTD for DSSSL Programming with DocBook.  
3
4      Copyright (C) 1998 Norman Walsh
5      This DTD may be distributed under the same terms as the
6      Modular DocBook Stylesheets (http://nwalsh.com/docbook/dsssl/)
7
8      This DTD is an extension to DocBook that conforms to the DSSSL
9      architecture.  This means that instances of this DTD can be
10      legal DSSSL stylesheets and (almost) legal DocBook documents
11      simultaneously.
12
13      This DTD as DSSSL:
14
15      Instances of this DTD conform to the DSSSL architecture if and
16      only if they contain a BOOK and that BOOK contains one or more
17      PROGRAMLISTINGS.  An EXTERNAL-SPECIFICATION, if required, must
18      be provided in the SETINFO element.
19
20      This DTD as DocBook:
21
22      Instances of this DTD are extensions of DocBook in the following
23      small ways:
24  
25      - SETs may consist of only a single BOOK.
26      - SETINFO may include EXTERNAL-SPECIFICATION.
27      - EXTERNAL-SPECIFICATION is new.
28      - BOOK has two additional attributes, DSSSL (#FIXED) and USE to
29        point to EXTERNAL-SPECIFICATIONs.
30      - PROGRAMLISTING has an additional attribute, DSSSL (#FIXED).
31
32      A typical invocation:
33      <!DOCTYPE book PUBLIC 
34        "+//IDN nwalsh.com//DTD DocBook DSSSL Architecture V1.0//EN">
35 -->
36 <!-- ================================================================= -->
37
38 <!-- =================== Declare the DSSSL Architecture ============== -->
39
40 <?IS10744 ArcBase DSSSL>
41 <!NOTATION DSSSL   PUBLIC "ISO/IEC 10179:1996//NOTATION
42                    DSSSL Architecture Definition Document//EN"
43                 -- A document architecture conforming to the
44                    Architectural Form Definition Requirements of
45                    ISO/IEC 10744.     --
46 >
47
48 <!ATTLIST #NOTATION DSSSL
49                             -- Support attributes for all architectures --
50   ArcQuant CDATA #FIXED "NAMELEN 64"
51   ArcDTD CDATA #FIXED "%DSSSLDTD"
52   ArcDocF NAME #FIXED dsssl-specification
53   ArcDataF NAME #FIXED dsssl-specification
54 >
55
56 <!ENTITY % DSSSLDTD PUBLIC
57  "ISO/IEC 10179:1996//DTD DSSSL Architecture//EN"
58 >
59
60 <!-- ============================ Load DocBook ======================= -->
61
62 <!ENTITY % set.module "IGNORE">
63 <!ENTITY % setinfo.module "IGNORE">
64 <!ENTITY % book.module "IGNORE">
65 <!ENTITY % programlisting.module "IGNORE">
66
67 <!ENTITY % docbook PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
68 %docbook;
69                   
70 <!-- ============ Adjust DocBook to fit the DSSSL Architecture ======== -->
71
72 <!ENTITY % local.set.attrib "">
73 <!ENTITY % set.role.attrib "%role.attrib;">
74 <!ELEMENT Set - O ((%div.title.content;)?, SetInfo?, ToC?,
75                 (%book.class;)+, SetIndex?)
76                 +(%ubiq.mix;)>
77 <!ATTLIST Set
78                 --
79                 FPI: SGML formal public identifier
80                 --
81                 FPI             CDATA           #IMPLIED
82                 %status.attrib;
83                 %common.attrib;
84                 %set.role.attrib;
85                 %local.set.attrib;
86 >
87
88 <!ENTITY % local.setinfo.attrib "">
89 <!ENTITY % setinfo.role.attrib "%role.attrib;">
90 <!ELEMENT SetInfo - - ((Graphic | LegalNotice | ModeSpec | SubjectSet 
91         | KeywordSet | ITermSet | %bibliocomponent.mix; 
92         | external-specification)+)
93         -(BeginPage)>
94 <!ATTLIST SetInfo
95                 --
96                 Contents: IDs of the ToC, Books, and SetIndex that comprise 
97                 the set, in the order of their appearance
98                 --
99                 Contents        IDREFS          #IMPLIED
100                 %common.attrib;
101                 %setinfo.role.attrib;
102                 %local.setinfo.attrib;
103 >
104
105 <!ENTITY % local.book.attrib "">
106 <!ENTITY % book.role.attrib "%role.attrib;">
107 <!ELEMENT Book - O ((%div.title.content;)?, BookInfo?, Dedication?, ToC?, LoT*, 
108                 (Glossary|Bibliography|Preface)*,
109                 (((%chapter.class;)+, Reference*) | Part+ 
110                 | Reference+ | (%article.class;)+), 
111                 (%appendix.class;)*, (Glossary|Bibliography)*, 
112                 (%index.class;)*, LoT*, ToC?)
113                 +(%ubiq.mix;)>
114 <!ATTLIST Book  
115                 --
116                 FPI: SGML formal public identifier
117                 --
118                 FPI             CDATA           #IMPLIED
119                 %label.attrib;
120                 %status.attrib;
121                 %common.attrib;
122                 %book.role.attrib;
123                 %local.book.attrib;
124                 DSSSL NAME #FIXED style-specification
125                 USE IDREFS #IMPLIED
126 >
127
128 <!ENTITY % local.programlisting.attrib "">
129 <!ENTITY % programlisting.role.attrib "%role.attrib;">
130 <!ELEMENT ProgramListing - - ((%programlisting.content;)+)>
131 <!ATTLIST ProgramListing
132                 %width.attrib;
133                 %linespecific.attrib;
134                 %common.attrib;
135                 %programlisting.role.attrib;
136                 %local.programlisting.attrib;
137                 DSSSL NAME #FIXED style-specification-body
138 >
139
140 <!ELEMENT external-specification - o empty>
141 <!ATTLIST external-specification
142                 ID              ID      #REQUIRED
143                 Document        ENTITY  #REQUIRED
144                 SpecId          NAME    #IMPLIED
145 >
146
147 <!-- ================================================================= -->