source: trunk/lib/docbook/website/schema/relaxng/extensions.rng @ 3162

Last change on this file since 3162 was 3153, checked in by Nicklas Nordborg, 16 years ago

Added docbook DTD:s and stylesheets

File size: 4.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<grammar xmlns="http://relaxng.org/ns/structure/1.0"
3         xmlns:rng="http://relaxng.org/ns/structure/1.0"
4         xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
5         xmlns:doc="http://nwalsh.com/xmlns/documentation"
6         xmlns:db="http://nwalsh.com/xmlns/docbook-grammar-structure"
7         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
8
9<rng:div doc:docbook="yes" xmlns="">
10<partinfo>
11<releaseinfo
12   role="cvs">$Id: extensions.rng,v 1.1 2004/03/03 22:31:10 dweiss Exp $</releaseinfo>
13<title>Website Extensions</title>
14<productname>Website</productname>
15<productnumber>2.4.1</productnumber>
16<releaseinfo role="filename">extensions</releaseinfo>
17<copyright>
18<year>2002</year>
19<year>2003</year>
20<holder>Norman Walsh</holder>
21</copyright>
22</partinfo>
23
24<partintro>
25<para>This is the extensions module for Website.</para>
26
27<para>Please direct all questions and comments about this schema to
28Norman Walsh, <email>ndw@nwalsh.com</email>.</para>
29</partintro>
30</rng:div>
31
32<define name="local.para.class" combine="choice">
33  <choice>
34    <ref name="webtoc"/>
35    <ref name="rss"/>
36  </choice>
37</define>
38
39<define name="head">
40  <element name="head">
41    <ref name="title"/>
42    <optional>
43      <ref name="titleabbrev"/>
44    </optional>
45    <optional>
46      <ref name="subtitle"/>
47    </optional>
48    <optional>
49      <ref name="summary"/>
50    </optional>
51    <optional>
52      <ref name="base"/>
53    </optional>
54    <optional>
55      <ref name="keywords"/>
56    </optional>
57    <zeroOrMore>
58      <choice>
59        <ref name="copyright"/>
60        <ref name="author"/>
61        <ref name="edition"/>
62        <ref name="meta"/>
63        <ref name="headlink"/>
64        <ref name="script"/>
65        <ref name="style"/>
66        <ref name="abstract"/>
67        <ref name="revhistory"/>
68        <ref name="rddl-resource"/>
69      </choice>
70    </zeroOrMore>
71  </element>
72</define>
73
74<define name="meta">
75  <element name="meta">
76    <optional>
77      <attribute name="http-equiv"/>
78    </optional>
79    <optional>
80      <attribute name="name"/>
81    </optional>
82    <attribute name="content"/>
83    <empty/>
84  </element>
85</define>
86
87<define name="headlink">
88  <element name="headlink">
89    <optional>
90      <attribute name="href"/>
91    </optional>
92    <optional>
93      <attribute name="media"/>
94    </optional>
95    <optional>
96      <attribute name="name"/>
97    </optional>
98    <optional>
99      <attribute name="rel"/>
100    </optional>
101    <optional>
102      <attribute name="rev"/>
103    </optional>
104    <optional>
105      <attribute name="src"/>
106    </optional>
107    <optional>
108      <attribute name="title"/>
109    </optional>
110    <optional>
111      <attribute name="type"/>
112    </optional>
113    <empty/>
114  </element>
115</define>
116
117<define name="script">
118  <element name="script">
119    <optional>
120      <attribute name="src"/>
121    </optional>
122    <optional>
123      <attribute name="language"/>
124    </optional>
125    <optional>
126      <attribute name="type"/>
127    </optional>
128    <text/>
129  </element>
130</define>
131
132<define name="style">
133  <element name="style">
134    <optional>
135      <attribute name="src"/>
136    </optional>
137    <optional>
138      <attribute name="type"/>
139    </optional>
140    <text/>
141  </element>
142</define>
143
144<define name="config">
145  <element name="config">
146    <ref name="common.attrib"/>
147    <attribute name="param"/>
148    <attribute name="value"/>
149    <optional>
150      <attribute name="altval"/>
151    </optional>
152    <empty/>
153  </element>
154</define>
155
156<define name="summary">
157  <element name="summary">
158    <ref name="common.attrib"/>
159    <ref name="word.char.mix"/>
160  </element>
161</define>
162
163<define name="base">
164  <element name="base">
165    <attribute name="href"/>
166    <optional>
167      <attribute name="target"/>
168    </optional>
169    <empty/>
170  </element>
171</define>
172
173<define name="keywords">
174  <element name="keywords">
175    <ref name="common.attrib"/>
176    <text/>
177  </element>
178</define>
179
180<define name="webpage">
181  <element name="webpage">
182    <ref name="common.attrib"/>
183    <optional>
184      <attribute name="navto" a:defaultValue="yes">
185        <choice>
186          <value>yes</value>
187          <value>no</value>
188        </choice>
189      </attribute>
190    </optional>
191    <ref name="webpage.mix"/>
192  </element>
193</define>
194
195<define name="webtoc">
196  <element name="webtoc">
197    <ref name="common.attrib"/>
198    <empty/>
199  </element>
200</define>
201
202<define name="rss">
203  <element name="rss">
204    <ref name="common.attrib"/>
205    <attribute name="feed"/>
206    <empty/>
207  </element>
208</define>
209
210<include href="rddl.rng"/>
211
212<include href="forms.rng"/>
213
214<define name="local.notation.class" combine="choice">
215  <choice>
216    <value>XML</value>
217  </choice>
218</define>
219
220</grammar>
Note: See TracBrowser for help on using the repository browser.