<!-- The RIS XML DTD - a XML implementation of the RIS reference format -->
<!-- (C) 2003-03-22 Markus Hoenicka <markus@mhoenicka.de> -->
<!-- $Id: risx.dtd,v 1.12 2003/11/04 23:20:16 mhoenicka Exp $ -->

<!-- Invoke with the following declaration -->
<!-- <!DOCTYPE ris PUBLIC "-//Markus Hoenicka//DTD Ris V1.0.2//EN" "http://refdb.sourceforge.net/dtd/risx-1.0.2/risx.dtd"> -->

<!-- the top-level element -->
<!ELEMENT ris (entry)+>


<!-- each RIS dataset is encoded by the following structure: -->
<!-- part, publication, and set denote the analytical, monographic, and -->
<!-- serial level of bibliographic information. -->
<!-- libinfo contains all information relevant for local housekeeping -->
<!-- contents describes the contents of the reference described by the -->
<!-- dataset -->
<!-- the type attribute is equivalent to the TY RIS field -->
<!-- the identifier attributes: ID is a numeric one, while citekey is an -->
<!-- alphanumeric key. Both are supposed to be unique in a database -->
<!ELEMENT entry (part?,publication,set?,libinfo*,contents?)+>

<!ATTLIST entry type (ABST|ADVS|ART|BILL|BOOK|CASE|CHAP|COMP|CONF|CTLG|DATA|ELEC|GEN|HEAR|ICOMM|INPR|JFULL|JOUR|MAP|MGZN|MPCT|MUSIC|NEWS|PAMP|PAT|PCOMM|RPRT|SER|SLIDE|SOUND|STAT|THES|UNBILL|UNPB|VIDEO) "GEN"
        id NMTOKEN #IMPLIED
        citekey NMTOKEN #IMPLIED>

<!-- the three levels of bibliographic information -->
<!ELEMENT part (title, author*)>

<!ELEMENT publication (title*, author*, pubinfo?)>

<!ELEMENT set (title*, author*)>

<!-- the apparatus used in the bibliographic information -->
<!ELEMENT title (#PCDATA)>

<!ATTLIST title type (full|abbrev|user1|user2|gen) "gen">

<!-- the url element is allowed multiple times for future compatibility -->
<!-- with RefMan 10. RefDB as of version 0.9.3 imports only the last -->
<!-- occurrence of this element -->
<!ELEMENT pubinfo (pubdate*,volume?,issue?,startpage?,endpage?,city?,publisher?,serial?,address?,url*,userdef*,misc*,link*)>

<!ELEMENT pubdate (date,otherinfo?)>

<!ATTLIST pubdate type (primary|secondary) "primary">

<!ELEMENT date (year?,month?,day?)>

<!ELEMENT year (#PCDATA)>

<!ELEMENT month (#PCDATA)>

<!ELEMENT day (#PCDATA)>

<!ELEMENT otherinfo (#PCDATA)>

<!ELEMENT volume (#PCDATA)>

<!ELEMENT issue (#PCDATA)>

<!ELEMENT startpage (#PCDATA)>

<!ELEMENT endpage (#PCDATA)>

<!ELEMENT city (#PCDATA)>

<!ELEMENT publisher (#PCDATA)>

<!ELEMENT serial (#PCDATA)>

<!ELEMENT address (#PCDATA)>

<!ELEMENT url (#PCDATA)>

<!ELEMENT userdef (#PCDATA)>

<!ATTLIST userdef type (1|2|3|4|5) "1">

<!ELEMENT misc (#PCDATA)>

<!ATTLIST misc type (1|2|3) "1">

<!ELEMENT link (#PCDATA)>

<!ATTLIST link type (pdf|fulltext|related|image) "pdf">

<!-- the libinfo element contains the local housekeeping information -->
<!-- specific to a single user -->
<!ELEMENT libinfo (notes?,reprint,availability?)>

<!ATTLIST libinfo user NMTOKEN #REQUIRED>

<!ELEMENT notes (#PCDATA)>

<!ELEMENT reprint (date?)>

<!ATTLIST reprint status (NOTINFILE|ONREQUEST|INFILE) "NOTINFILE">

<!ELEMENT availability (#PCDATA)>

<!ATTLIST availability type (full|useroot) "full">

<!-- the contents element contains information about the contents of -->
<!-- the reference -->
<!ELEMENT contents (abstract?,keyword*)>

<!ELEMENT abstract (#PCDATA)>

<!ELEMENT keyword (#PCDATA)>

<!-- the author element -->
<!ELEMENT author (name|(lastname?,firstname?,middlename*,suffix?))>

<!ATTLIST author role NMTOKEN #IMPLIED>

<!ELEMENT name (#PCDATA)>

<!ELEMENT lastname (#PCDATA)>

<!ELEMENT firstname (#PCDATA)>

<!ELEMENT middlename (#PCDATA)>

<!ELEMENT suffix (#PCDATA)>

