/usr/share/gretl/data/gretldata.dtd is in gretl-data 2016d-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!--
Document Type Definition (DTD) for gretl data files
-->
<!ELEMENT gretldata (description?, variables, observations, string-tables?, panel-info?)>
<!ATTLIST gretldata
version NMTOKEN #IMPLIED
name NMTOKEN #IMPLIED
frequency CDATA #IMPLIED
startobs CDATA #IMPLIED
endobs CDATA #IMPLIED
type CDATA #REQUIRED
binary CDATA #IMPLIED
rseed CDATA #IMPLIED
>
<!ELEMENT description ( #PCDATA )>
<!ATTLIST description
source CDATA #IMPLIED
>
<!ELEMENT variables ( variable )*>
<!ATTLIST variables
count CDATA #REQUIRED
>
<!ELEMENT variable ( #PCDATA )>
<!ATTLIST variable
name NMTOKEN #IMPLIED
label CDATA #IMPLIED
displayname CDATA #IMPLIED
parent CDATA #IMPLIED
transform CDATA #IMPLIED
lag CDATA #IMPLIED
compact-method CDATA #IMPLIED
discrete CDATA #IMPLIED
role CDATA #IMPLIED
value CDATA #IMPLIED
>
<!ELEMENT observations ( obs )+>
<!ATTLIST observations
count CDATA #REQUIRED
missval CDATA #IMPLIED
labels CDATA #REQUIRED
panel-info CDATA #IMPLIED
>
<!ELEMENT obs ( #PCDATA )>
<!ATTLIST obs
label CDATA #IMPLIED
unit NMTOKEN #IMPLIED
period NMTOKEN #IMPLIED
id NMTOKEN #IMPLIED
>
<!ELEMENT string-tables ( valstrings )+>
<!ATTLIST string-tables
count CDATA #REQUIRED
>
<!ELEMENT valstrings ( #PCDATA )>
<!ATTLIST valstrings
owner CDATA #REQUIRED
count CDATA #REQUIRED
>
<!ELEMENT panel-info EMPTY>
<!ATTLIST panel-info
group-names CDATA #IMPLIED
time-frequency CDATA #IMPLIED
time-start CDATA #IMPLIED
skip-padding CDATA #IMPLIED
>
|