forked from c-amie/analog-ce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
analog-data.dtd
125 lines (93 loc) · 3.06 KB
/
analog-data.dtd
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
<!--
Analog Data DTD - version 1.0.2
For further information, see: http://timian.jessen.ch
This DTD module is identified by the PUBLIC and SYSTEM identifiers:
PUBLIC "::timian/analog-data::"
SYSTEM "http://timian.jessen.ch/dtd/analog-data.dtd"
Copyright (c) 2003 Per Jessen, [email protected]
Distribution, usage and modification of this software is
subject to the conditions of the Licence which you should
have received with it.
- - - - - - - - - -
This DTD describes the syntax of an XML-document produced by
analog (http://analog.sourceforge.net) when using OUTPUT XML.
Please refer to http://timian.jessen.ch for further information.
Changelog:
2003/01/21 0.1 per First version.
2003/02/15 0.2 per At best this may be considered early alpha stage.
2003/04/01 0.3 per Updated for analog 5.90beta2.
2003/04/04 0.4 per now subject to analog license.
2003/04/25 1.0 per updated this header.
2009/04/04 1.0.1 per bug fixes in DTD to allow MSXML 4.0 to parse it
2011/07/27 1.0.2 per bug fixes in DTD to allow MSXML 6.0 to parse it
-->
<!ENTITY % number "NMTOKEN">
<!ENTITY % generalsummary "(row+)">
<!ENTITY % timereport "(rowlimit,sort,row+,busiest)">
<!ENTITY % timesummary "(sort,row+)">
<!ENTITY % genericreport "((sort+,floor+)?,row+)">
<!-- report+ Report must occur one or more times -->
<!ELEMENT analog-data (analog,report+;)>
<!-- using XML data from newer/updated analog versions might require an update of the DTD -->
<!ATTLIST analog-data
version CDATA #IMPLIED
timestamp CDATA #REQUIRED
>
<!-- property* Property can occur 0 or more times beneath analog -->
<!ELEMENT analog (property*, timespan)>
<!ELEMENT property EMPTY>
<!ATTLIST property
name NMTOKEN #REQUIRED
content CDATA #REQUIRED
>
<!ELEMENT report ( %timereport; | %timesummary; | %generalsummary; | %genericreport; ) >
<!ATTLIST report name CDATA #REQUIRED>
<!ELEMENT rowlimit EMPTY>
<!ATTLIST rowlimit
count %number; #REQUIRED
>
<!ELEMENT row (col+)>
<!ELEMENT col (#PCDATA|i18n|timespan)*>
<!ATTLIST row
level %number; #IMPLIED
>
<!ATTLIST col
name CDATA #REQUIRED
>
<!ELEMENT timespan EMPTY>
<!ATTLIST timespan
from CDATA #REQUIRED
to CDATA #IMPLIED
days %number; #IMPLIED
dayofweek %number; #IMPLIED
month %number; #IMPLIED
hour %number; #IMPLIED
minute %number; #IMPLIED
>
<!ELEMENT timestamp EMPTY>
<!ATTLIST timestamp
iso8601 CDATA #REQUIRED
>
<!ELEMENT i18n (#PCDATA)>
<!ATTLIST i18n
key CDATA #IMPLIED
var CDATA #IMPLIED
>
<!ELEMENT busiest EMPTY>
<!ATTLIST busiest
time CDATA #REQUIRED
reqs %number; #IMPLIED
pages %number; #IMPLIED
bytes %number; #IMPLIED
>
<!ELEMENT sort EMPTY>
<!ATTLIST sort
dir (ascending|descending) #REQUIRED
by CDATA #IMPLIED
>
<!ELEMENT floor EMPTY>
<!ATTLIST floor
level %number; #REQUIRED
qual CDATA #IMPLIED
by CDATA #REQUIRED
>