Skip to content

Commit 90699d0

Browse files
committed
Add OASIS Catalog schemas
1 parent a453f27 commit 90699d0

File tree

5 files changed

+804
-0
lines changed

5 files changed

+804
-0
lines changed

src/data/manifest.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,4 +1294,30 @@
12941294
<entry uri="root/www.w3.org/2007/schema-for-xslt20.xsd">
12951295
<uri>https://www.w3.org/2007/schema-for-xslt20.xsd</uri>
12961296
</entry>
1297+
<entry uri="root/xmlcatalogs.org/schema/1.1/catalog.xsd">
1298+
<uri>https://xmlcatalogs.org/schema/1.1/catalog.xsd</uri>
1299+
<uri>http://www.oasis-open.org/committees/entity/release/1.1/catalog.xsd</uri>
1300+
<namespace>urn:oasis:names:tc:entity:xmlns:tr9401:catalog</namespace>
1301+
<purpose>http://www.rddl.org/purposes#validation</purpose>
1302+
<nature>http://www.w3.org/2001/XMLSchema</nature>
1303+
</entry>
1304+
<entry uri="root/xmlcatalogs.org/schema/1.1/catalog.rnc">
1305+
<uri>https://xmlcatalogs.org/schema/1.1/catalog.rnc</uri>
1306+
</entry>
1307+
<entry uri="root/xmlcatalogs.org/schema/1.1/catalog.rng">
1308+
<uri>https://xmlcatalogs.org/schema/1.1/catalog.rng</uri>
1309+
<uri>http://www.oasis-open.org/committees/entity/release/1.1/catalog.rng</uri>
1310+
<namespace>urn:oasis:names:tc:entity:xmlns:tr9401:catalog</namespace>
1311+
<purpose>http://www.rddl.org/purposes#validation</purpose>
1312+
<nature>http://relaxng.org/ns/structure/1.0</nature>
1313+
</entry>
1314+
<entry uri="root/xmlcatalogs.org/schema/1.1/catalog.dtd">
1315+
<public>-//OASIS//DTD XML Catalogs V1.1//EN</public>
1316+
<uri>https://xmlcatalogs.org/schema/1.1/catalog.dtd</uri>
1317+
<uri>http://www.oasis-open.org/committees/entity/release/1.1/catalog.dtd</uri>
1318+
<namespace>urn:oasis:names:tc:entity:xmlns:tr9401:catalog</namespace>
1319+
<purpose>http://www.rddl.org/purposes#validation</purpose>
1320+
<nature>http://www.isi.edu/in-notes/iana/assignments/media-types/application/xml-dtd</nature>
1321+
<nature>https://www.iana.org/assignments/media-types/application/xml-dtd</nature>
1322+
</entry>
12971323
</manifest>
Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
<!-- $Id: catalog.dtd,v 1.14 2005/04/13 20:47:06 ndw Exp $ -->
2+
3+
<!ENTITY % pubIdChars "CDATA">
4+
<!ENTITY % publicIdentifier "%pubIdChars;">
5+
<!ENTITY % partialPublicIdentifier "%pubIdChars;">
6+
<!ENTITY % uriReference "CDATA">
7+
<!ENTITY % string "CDATA">
8+
<!ENTITY % systemOrPublic "(system|public)">
9+
10+
<!ENTITY % p "">
11+
<!ENTITY % s "">
12+
<!ENTITY % nsdecl "xmlns%s;">
13+
14+
<!ENTITY % catalog "%p;catalog">
15+
<!ENTITY % public "%p;public">
16+
<!ENTITY % system "%p;system">
17+
<!ENTITY % uri "%p;uri">
18+
<!ENTITY % rewriteSystem "%p;rewriteSystem">
19+
<!ENTITY % rewriteURI "%p;rewriteURI">
20+
<!ENTITY % systemSuffix "%p;systemSuffix">
21+
<!ENTITY % uriSuffix "%p;uriSuffix">
22+
<!ENTITY % delegatePublic "%p;delegatePublic">
23+
<!ENTITY % delegateSystem "%p;delegateSystem">
24+
<!ENTITY % delegateURI "%p;delegateURI">
25+
<!ENTITY % nextCatalog "%p;nextCatalog">
26+
<!ENTITY % group "%p;group">
27+
28+
<!ENTITY % local.catalog.mix "">
29+
<!ENTITY % local.catalog.attribs "">
30+
31+
<!ELEMENT %catalog; (%public;|%system;|%uri;
32+
|%rewriteSystem;|%rewriteURI;
33+
|%systemSuffix;|%uriSuffix;
34+
|%delegatePublic;|%delegateSystem;|%delegateURI;
35+
|%nextCatalog;|%group; %local.catalog.mix;)+>
36+
<!ATTLIST %catalog;
37+
%nsdecl; %uriReference; #FIXED
38+
'urn:oasis:names:tc:entity:xmlns:xml:catalog'
39+
id ID #IMPLIED
40+
prefer %systemOrPublic; #IMPLIED
41+
xml:base %uriReference; #IMPLIED
42+
%local.catalog.attribs;
43+
>
44+
45+
<!ENTITY % local.public.attribs "">
46+
47+
<!ELEMENT %public; EMPTY>
48+
<!ATTLIST %public;
49+
id ID #IMPLIED
50+
publicId %publicIdentifier; #REQUIRED
51+
uri %uriReference; #REQUIRED
52+
xml:base %uriReference; #IMPLIED
53+
%local.public.attribs;
54+
>
55+
56+
<!ENTITY % local.system.attribs "">
57+
58+
<!ELEMENT %system; EMPTY>
59+
<!ATTLIST %system;
60+
id ID #IMPLIED
61+
systemId %string; #REQUIRED
62+
uri %uriReference; #REQUIRED
63+
xml:base %uriReference; #IMPLIED
64+
%local.system.attribs;
65+
>
66+
67+
<!ENTITY % local.uri.attribs "">
68+
69+
<!ELEMENT %uri; EMPTY>
70+
<!ATTLIST %uri;
71+
id ID #IMPLIED
72+
name %string; #REQUIRED
73+
uri %uriReference; #REQUIRED
74+
xml:base %uriReference; #IMPLIED
75+
%local.uri.attribs;
76+
>
77+
78+
<!ENTITY % local.rewriteSystem.attribs "">
79+
80+
<!ELEMENT %rewriteSystem; EMPTY>
81+
<!ATTLIST %rewriteSystem;
82+
id ID #IMPLIED
83+
systemIdStartString %string; #REQUIRED
84+
rewritePrefix %string; #REQUIRED
85+
%local.rewriteSystem.attribs;
86+
>
87+
88+
<!ENTITY % local.rewriteURI.attribs "">
89+
90+
<!ELEMENT %rewriteURI; EMPTY>
91+
<!ATTLIST %rewriteURI;
92+
id ID #IMPLIED
93+
uriStartString %string; #REQUIRED
94+
rewritePrefix %string; #REQUIRED
95+
%local.rewriteURI.attribs;
96+
>
97+
98+
<!ENTITY % local.systemSuffix.attribs "">
99+
100+
<!ELEMENT %systemSuffix; EMPTY>
101+
<!ATTLIST %systemSuffix;
102+
id ID #IMPLIED
103+
systemIdSuffix %string; #REQUIRED
104+
uri %string; #REQUIRED
105+
%local.systemSuffix.attribs;
106+
>
107+
108+
<!ENTITY % local.uriSuffix.attribs "">
109+
110+
<!ELEMENT %uriSuffix; EMPTY>
111+
<!ATTLIST %uriSuffix;
112+
id ID #IMPLIED
113+
uriSuffix %string; #REQUIRED
114+
uri %string; #REQUIRED
115+
%local.uriSuffix.attribs;
116+
>
117+
118+
<!ENTITY % local.delegatePublic.attribs "">
119+
120+
<!ELEMENT %delegatePublic; EMPTY>
121+
<!ATTLIST %delegatePublic;
122+
id ID #IMPLIED
123+
publicIdStartString %partialPublicIdentifier; #REQUIRED
124+
catalog %uriReference; #REQUIRED
125+
xml:base %uriReference; #IMPLIED
126+
%local.delegatePublic.attribs;
127+
>
128+
129+
<!ENTITY % local.delegateSystem.attribs "">
130+
131+
<!ELEMENT %delegateSystem; EMPTY>
132+
<!ATTLIST %delegateSystem;
133+
id ID #IMPLIED
134+
systemIdStartString %string; #REQUIRED
135+
catalog %uriReference; #REQUIRED
136+
xml:base %uriReference; #IMPLIED
137+
%local.delegateSystem.attribs;
138+
>
139+
140+
<!ENTITY % local.delegateURI.attribs "">
141+
142+
<!ELEMENT %delegateURI; EMPTY>
143+
<!ATTLIST %delegateURI;
144+
id ID #IMPLIED
145+
uriStartString %string; #REQUIRED
146+
catalog %uriReference; #REQUIRED
147+
xml:base %uriReference; #IMPLIED
148+
%local.delegateURI.attribs;
149+
>
150+
151+
<!ENTITY % local.nextCatalog.attribs "">
152+
153+
<!ELEMENT %nextCatalog; EMPTY>
154+
<!ATTLIST %nextCatalog;
155+
id ID #IMPLIED
156+
catalog %uriReference; #REQUIRED
157+
xml:base %uriReference; #IMPLIED
158+
%local.nextCatalog.attribs;
159+
>
160+
161+
<!ENTITY % local.group.mix "">
162+
<!ENTITY % local.group.attribs "">
163+
164+
<!ELEMENT %group; (%public;|%system;|%uri;
165+
|%rewriteSystem;|%rewriteURI;
166+
|%systemSuffix;|%uriSuffix;
167+
|%delegatePublic;|%delegateSystem;|%delegateURI;
168+
|%nextCatalog; %local.group.mix;)+>
169+
<!ATTLIST %group;
170+
id ID #IMPLIED
171+
prefer %systemOrPublic; #IMPLIED
172+
xml:base %uriReference; #IMPLIED
173+
%local.group.attribs;
174+
>
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
namespace local = ""
2+
default namespace ns1 = "urn:oasis:names:tc:entity:xmlns:xml:catalog"
3+
4+
# $Id: catalog.rng,v 1.4 2005/02/25 18:54:25 ndw Exp $
5+
start = Catalog
6+
pubIdChars =
7+
xsd:string { pattern = "[a-zA-Z0-9\-'\(\)+,./:=?;!*#@$_% ]*" }
8+
publicIdentifier = pubIdChars
9+
partialPublicIdentifier = pubIdChars
10+
systemOrPublic = "system" | "public"
11+
uriReference = xsd:anyURI
12+
OptionalAttributes =
13+
attribute id { xsd:ID }?,
14+
attribute * - (local:* | ns1:*) { text }*
15+
PreferAttribute = attribute prefer { systemOrPublic }
16+
Catalog =
17+
element catalog {
18+
OptionalAttributes,
19+
PreferAttribute?,
20+
(Group
21+
| Public
22+
| System
23+
| Uri
24+
| RewriteSystem
25+
| RewriteURI
26+
| SystemSuffix
27+
| UriSuffix
28+
| DelegatePublic
29+
| DelegateSystem
30+
| DelegateURI
31+
| NextCatalog
32+
| AnyOtherElement)+
33+
}
34+
Group =
35+
element group {
36+
OptionalAttributes,
37+
PreferAttribute?,
38+
(Public
39+
| System
40+
| Uri
41+
| RewriteSystem
42+
| RewriteURI
43+
| SystemSuffix
44+
| UriSuffix
45+
| DelegatePublic
46+
| DelegateSystem
47+
| DelegateURI
48+
| NextCatalog
49+
| AnyOtherElement)+
50+
}
51+
Public =
52+
element public {
53+
attribute publicId { publicIdentifier },
54+
attribute uri { uriReference },
55+
OptionalAttributes,
56+
empty
57+
}
58+
System =
59+
element system {
60+
attribute systemId { text },
61+
attribute uri { uriReference },
62+
OptionalAttributes,
63+
empty
64+
}
65+
Uri =
66+
element uri {
67+
attribute name { text },
68+
attribute uri { uriReference },
69+
OptionalAttributes,
70+
empty
71+
}
72+
RewriteSystem =
73+
element rewriteSystem {
74+
attribute systemIdStartString { text },
75+
attribute rewritePrefix { text },
76+
OptionalAttributes,
77+
empty
78+
}
79+
RewriteURI =
80+
element rewriteURI {
81+
attribute uriStartString { text },
82+
attribute rewritePrefix { text },
83+
OptionalAttributes,
84+
empty
85+
}
86+
SystemSuffix =
87+
element systemSuffix {
88+
attribute systemIdSuffix { text },
89+
attribute uri { uriReference },
90+
OptionalAttributes,
91+
empty
92+
}
93+
UriSuffix =
94+
element uriSuffix {
95+
attribute uriSuffix { text },
96+
attribute uri { uriReference },
97+
OptionalAttributes,
98+
empty
99+
}
100+
DelegatePublic =
101+
element delegatePublic {
102+
attribute publicIdStartString { text },
103+
attribute catalog { text },
104+
OptionalAttributes,
105+
empty
106+
}
107+
DelegateSystem =
108+
element delegateSystem {
109+
attribute systemIdStartString { text },
110+
attribute catalog { text },
111+
OptionalAttributes,
112+
empty
113+
}
114+
DelegateURI =
115+
element delegateURI {
116+
attribute uriStartString { text },
117+
attribute catalog { text },
118+
OptionalAttributes,
119+
empty
120+
}
121+
NextCatalog =
122+
element nextCatalog {
123+
attribute catalog { text },
124+
OptionalAttributes,
125+
empty
126+
}
127+
AnyOtherElement =
128+
element * - (local:* | ns1:*) {
129+
attribute * { text }*,
130+
(text | AnyOtherElement)
131+
}

0 commit comments

Comments
 (0)