Skip to content

Commit d2a3601

Browse files
committed
add original schema for 2003 year or v1
1 parent f35fed0 commit d2a3601

9 files changed

Lines changed: 1376 additions & 0 deletions

File tree

2003/catalog.dtd

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<!-- DTD description of colorer-take5 CATALOG format -->
2+
3+
<!ELEMENT catalog (hrc-sets, hrd-sets)>
4+
5+
<!ELEMENT hrc-sets (location+)>
6+
<!ATTLIST hrc-sets
7+
log-location CDATA #IMPLIED>
8+
9+
<!ELEMENT hrd-sets (hrd*)>
10+
11+
<!ELEMENT hrd (location+)>
12+
<!ATTLIST hrd
13+
name NMTOKEN #REQUIRED
14+
class NMTOKEN #REQUIRED
15+
description CDATA #IMPLIED>
16+
17+
<!ELEMENT location EMPTY>
18+
<!ATTLIST location
19+
link CDATA #REQUIRED>
20+
<!-- ***** BEGIN LICENSE BLOCK *****
21+
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
22+
-
23+
- The contents of this file are subject to the Mozilla Public License Version
24+
- 1.1 (the "License"); you may not use this file except in compliance with
25+
- the License. You may obtain a copy of the License at
26+
- http://www.mozilla.org/MPL/
27+
-
28+
- Software distributed under the License is distributed on an "AS IS" basis,
29+
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
30+
- for the specific language governing rights and limitations under the
31+
- License.
32+
-
33+
- The Original Code is the Colorer Library.
34+
-
35+
- The Initial Developer of the Original Code is
36+
- Cail Lomecb <cail@nm.ru>.
37+
- Portions created by the Initial Developer are Copyright (C) 1999-2005
38+
- the Initial Developer. All Rights Reserved.
39+
-
40+
- Contributor(s):
41+
-
42+
- Alternatively, the contents of this file may be used under the terms of
43+
- either the GNU General Public License Version 2 or later (the "GPL"), or
44+
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
45+
- in which case the provisions of the GPL or the LGPL are applicable instead
46+
- of those above. If you wish to allow use of your version of this file only
47+
- under the terms of either the GPL or the LGPL, and not to allow others to
48+
- use your version of this file under the terms of the MPL, indicate your
49+
- decision by deleting the provisions above and replace them with the notice
50+
- and other provisions required by the LGPL or the GPL. If you do not delete
51+
- the provisions above, a recipient may use your version of this file under
52+
- the terms of any one of the MPL, the GPL or the LGPL.
53+
-
54+
- ***** END LICENSE BLOCK ***** -->

2003/catalog.xsd

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema
3+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
4+
xmlns="http://colorer.sf.net/2003/catalog"
5+
targetNamespace="http://colorer.sf.net/2003/catalog"
6+
elementFormDefault="qualified">
7+
8+
<xs:element name="catalog" type="catalog"/>
9+
10+
<xs:complexType name="catalog">
11+
<xs:annotation><xs:documentation>
12+
Describes all available Colorer Library resources.
13+
</xs:documentation></xs:annotation>
14+
<xs:sequence>
15+
<xs:element name="hrc-sets" type="hrc-sets"/>
16+
<xs:element name="hrd-sets" type="hrd-sets"/>
17+
</xs:sequence>
18+
</xs:complexType>
19+
20+
<xs:complexType name="hrc-sets">
21+
<xs:annotation><xs:documentation>
22+
Lists all installed root locations of HRC codes.
23+
These locations are loaded when HRC bases are created.
24+
</xs:documentation></xs:annotation>
25+
<xs:sequence>
26+
<xs:element name="location" type="location" maxOccurs="unbounded"/>
27+
</xs:sequence>
28+
<xs:attribute name="log-location" type="xs:string">
29+
<xs:annotation><xs:documentation>
30+
Path to the default library log file.
31+
If missed, there is no logging.
32+
</xs:documentation></xs:annotation>
33+
</xs:attribute>
34+
</xs:complexType>
35+
36+
<xs:complexType name="hrd-sets">
37+
<xs:annotation><xs:documentation>
38+
Lists all available HRD sets.
39+
Each HRD Entry describes single color scheme,
40+
used to represent colored text.
41+
Note, that one Entry
42+
</xs:documentation></xs:annotation>
43+
<xs:sequence>
44+
<xs:element name="hrd" type="hrd-entry" minOccurs="0" maxOccurs="unbounded"/>
45+
</xs:sequence>
46+
</xs:complexType>
47+
48+
<xs:complexType name="hrd-entry">
49+
<xs:annotation><xs:documentation>
50+
Describes one HRD properties set.
51+
</xs:documentation></xs:annotation>
52+
<xs:sequence>
53+
<xs:element name="location" type="location" maxOccurs="unbounded"/>
54+
</xs:sequence>
55+
<xs:attribute name="class" type="xs:NMTOKEN" use="required">
56+
<xs:annotation><xs:documentation>
57+
HRD class. Currently available 'console', 'rgb' and 'text' classes.
58+
</xs:documentation></xs:annotation>
59+
</xs:attribute>
60+
<xs:attribute name="name" type="xs:NMTOKEN" use="required">
61+
<xs:annotation><xs:documentation>
62+
Internal name of this set, used to referring from executable codes.
63+
</xs:documentation></xs:annotation>
64+
</xs:attribute>
65+
<xs:attribute name="description" type="xs:string">
66+
<xs:annotation><xs:documentation>
67+
User-friendly description of this HRD set.
68+
</xs:documentation></xs:annotation>
69+
</xs:attribute>
70+
</xs:complexType>
71+
72+
<xs:complexType name="location">
73+
<xs:annotation><xs:documentation>
74+
Single resource location. Path can be relative to the catalog location,
75+
or absolute URI with or without URI schema specification.
76+
</xs:documentation></xs:annotation>
77+
<xs:attribute name="link" type="xs:string" use="required"/>
78+
</xs:complexType>
79+
80+
</xs:schema>
81+
<!-- ***** BEGIN LICENSE BLOCK *****
82+
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
83+
-
84+
- The contents of this file are subject to the Mozilla Public License Version
85+
- 1.1 (the "License"); you may not use this file except in compliance with
86+
- the License. You may obtain a copy of the License at
87+
- http://www.mozilla.org/MPL/
88+
-
89+
- Software distributed under the License is distributed on an "AS IS" basis,
90+
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
91+
- for the specific language governing rights and limitations under the
92+
- License.
93+
-
94+
- The Original Code is the Colorer Library.
95+
-
96+
- The Initial Developer of the Original Code is
97+
- Cail Lomecb <cail@nm.ru>.
98+
- Portions created by the Initial Developer are Copyright (C) 1999-2005
99+
- the Initial Developer. All Rights Reserved.
100+
-
101+
- Contributor(s):
102+
-
103+
- Alternatively, the contents of this file may be used under the terms of
104+
- either the GNU General Public License Version 2 or later (the "GPL"), or
105+
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
106+
- in which case the provisions of the GPL or the LGPL are applicable instead
107+
- of those above. If you wish to allow use of your version of this file only
108+
- under the terms of either the GPL or the LGPL, and not to allow others to
109+
- use your version of this file under the terms of the MPL, indicate your
110+
- decision by deleting the provisions above and replace them with the notice
111+
- and other provisions required by the LGPL or the GPL. If you do not delete
112+
- the provisions above, a recipient may use your version of this file under
113+
- the terms of any one of the MPL, the GPL or the LGPL.
114+
-
115+
- ***** END LICENSE BLOCK ***** -->

2003/doclinks.dtd

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!-- DTD description of colorer-take5 DOCLINKS format -->
2+
3+
<!ELEMENT doclinks (links*)>
4+
5+
<!ELEMENT links (link*)>
6+
<!ATTLIST links
7+
scheme CDATA #IMPLIED
8+
url CDATA #IMPLIED>
9+
10+
<!ATTLIST link
11+
token CDATA #REQUIRED
12+
scheme CDATA #IMPLIED
13+
url CDATA #IMPLIED>
14+
15+
<!-- ***** BEGIN LICENSE BLOCK *****
16+
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
17+
-
18+
- The contents of this file are subject to the Mozilla Public License Version
19+
- 1.1 (the "License"); you may not use this file except in compliance with
20+
- the License. You may obtain a copy of the License at
21+
- http://www.mozilla.org/MPL/
22+
-
23+
- Software distributed under the License is distributed on an "AS IS" basis,
24+
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
25+
- for the specific language governing rights and limitations under the
26+
- License.
27+
-
28+
- The Original Code is the Colorer Library.
29+
-
30+
- The Initial Developer of the Original Code is
31+
- Cail Lomecb <cail@nm.ru>.
32+
- Portions created by the Initial Developer are Copyright (C) 1999-2005
33+
- the Initial Developer. All Rights Reserved.
34+
-
35+
- Contributor(s):
36+
-
37+
- Alternatively, the contents of this file may be used under the terms of
38+
- either the GNU General Public License Version 2 or later (the "GPL"), or
39+
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
40+
- in which case the provisions of the GPL or the LGPL are applicable instead
41+
- of those above. If you wish to allow use of your version of this file only
42+
- under the terms of either the GPL or the LGPL, and not to allow others to
43+
- use your version of this file under the terms of the MPL, indicate your
44+
- decision by deleting the provisions above and replace them with the notice
45+
- and other provisions required by the LGPL or the GPL. If you do not delete
46+
- the provisions above, a recipient may use your version of this file under
47+
- the terms of any one of the MPL, the GPL or the LGPL.
48+
-
49+
- ***** END LICENSE BLOCK ***** -->

2003/doclinks.xsd

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema
3+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
4+
xmlns="http://colorer.sf.net/2003/doclinks"
5+
targetNamespace="http://colorer.sf.net/2003/doclinks"
6+
elementFormDefault="qualified">
7+
8+
<xs:element name="doclinks" type="doclinks"/>
9+
10+
<xs:complexType name="doclinks">
11+
<xs:annotation><xs:documentation>
12+
Each doclinks file contains information about
13+
linking of different tokens into URL addresses with
14+
some information about this token.
15+
This can be cross reference to help files on classes,
16+
methods, objects of file.
17+
</xs:documentation></xs:annotation>
18+
<xs:sequence>
19+
<xs:element name="links" type="links"/>
20+
</xs:sequence>
21+
</xs:complexType>
22+
23+
<xs:attributeGroup name="linkProps">
24+
<xs:attribute name="scheme" type="xs:string">
25+
<xs:annotation><xs:documentation>
26+
xx
27+
</xs:documentation></xs:annotation>
28+
</xs:attribute>
29+
<xs:attribute name="url" type="xs:anyURI">
30+
<xs:annotation><xs:documentation>
31+
xx
32+
</xs:documentation></xs:annotation>
33+
</xs:attribute>
34+
</xs:attributeGroup>
35+
36+
37+
<xs:complexType name="links">
38+
<xs:annotation><xs:documentation>
39+
List of links. Used to define global values for scheme and url attributes.
40+
Each link can redefine them.
41+
</xs:documentation></xs:annotation>
42+
<xs:sequence>
43+
<xs:element name="link" type="link" minOccurs='0' maxOccurs="unbounded"/>
44+
</xs:sequence>
45+
<xs:attributeGroup ref='linkProps'/>
46+
</xs:complexType>
47+
48+
49+
<xs:complexType name="link">
50+
<xs:annotation><xs:documentation>
51+
Defines mapping of some token into URL, including information
52+
about it's scheme.
53+
</xs:documentation></xs:annotation>
54+
<xs:attributeGroup ref='linkProps'/>
55+
<xs:attribute name="token" type="xs:string" use="required">
56+
<xs:annotation><xs:documentation>Token chars to search in text</xs:documentation></xs:annotation>
57+
</xs:attribute>
58+
</xs:complexType>
59+
60+
</xs:schema>
61+
<!-- ***** BEGIN LICENSE BLOCK *****
62+
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
63+
-
64+
- The contents of this file are subject to the Mozilla Public License Version
65+
- 1.1 (the "License"); you may not use this file except in compliance with
66+
- the License. You may obtain a copy of the License at
67+
- http://www.mozilla.org/MPL/
68+
-
69+
- Software distributed under the License is distributed on an "AS IS" basis,
70+
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
71+
- for the specific language governing rights and limitations under the
72+
- License.
73+
-
74+
- The Original Code is the Colorer Library.
75+
-
76+
- The Initial Developer of the Original Code is
77+
- Cail Lomecb <cail@nm.ru>.
78+
- Portions created by the Initial Developer are Copyright (C) 1999-2005
79+
- the Initial Developer. All Rights Reserved.
80+
-
81+
- Contributor(s):
82+
-
83+
- Alternatively, the contents of this file may be used under the terms of
84+
- either the GNU General Public License Version 2 or later (the "GPL"), or
85+
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
86+
- in which case the provisions of the GPL or the LGPL are applicable instead
87+
- of those above. If you wish to allow use of your version of this file only
88+
- under the terms of either the GPL or the LGPL, and not to allow others to
89+
- use your version of this file under the terms of the MPL, indicate your
90+
- decision by deleting the provisions above and replace them with the notice
91+
- and other provisions required by the LGPL or the GPL. If you do not delete
92+
- the provisions above, a recipient may use your version of this file under
93+
- the terms of any one of the MPL, the GPL or the LGPL.
94+
-
95+
- ***** END LICENSE BLOCK ***** -->

0 commit comments

Comments
 (0)