<?xml version='1.0' encoding='UTF-8' ?>

<!--Annex IV of WIPO Authority File Standard ST.37, XML Data Type Definition (DTD) for Authority Files

This entity may be identified by the PUBLIC identifier:
********************************************************************************************
PUBLIC "-//WIPO//XSD AUTHORITY FILE 1.0//EN" "AuthorityFile_V1_0.dtd"
********************************************************************************************

********************************************************************************
* Based upon WIPO Standard ST.37, adopted on June 2, 2017, by the Committee on WIPO Standards (CWS) at its fifth session on June 2, 2017
***************************************************************

* PUBLIC DTD URL

* http://www.wipo.int/standards/DTD/AuthorityFile_V1_0.dtd
********************************************************************************


********************************************************************************
* CONTACTS
********************************************************************************
xml.standards@wipo.int


Date draft created: 2018-09-19

-->
<!ELEMENT authority-file (authority-file-definition? , authority-file-entry+)>

<!ATTLIST authority-file  country       CDATA  #REQUIRED
                            date-produced CDATA  #REQUIRED >
<!ELEMENT authority-file-definition (exception-code-list | document-kind-code-list | most-recent-document | data-coverage | additional-comment | document-location-uri)+>

<!ATTLIST authority-file-definition  content-category  (complete | grouped )  #REQUIRED
                                       group-category    (date | 
                                                          publication-level | 
                                                          document-kind )  #IMPLIED
                                       backup-category   (full | 
                                                          incremental | 
                                                          differential )  #REQUIRED >
<!ELEMENT document-location-uri (#PCDATA)>

<!ELEMENT exception-code-list (exception-code-definition)+>

<!ELEMENT exception-code-definition (exception-code, exception-code-description)>

<!ELEMENT exception-code-description (#PCDATA)>

<!ELEMENT exception-code (#PCDATA)>
<!--
<!ATTLIST exception-code  (C | 
                                               D | 
                                               E | 
                                               M | 
                                               N | 
                                               P | 
                                               R | 
                                               U | 
                                               W | 
                                               X )  #IMPLIED >
-->
<!ELEMENT document-kind-code-list (document-kind-code-definition)+>

<!ELEMENT document-kind-code-definition (kind, document-kind-code-description)+>

<!ELEMENT document-kind-code-description (#PCDATA)>

<!ELEMENT most-recent-document EMPTY>

<!ATTLIST most-recent-document  publication-number CDATA  #REQUIRED
                                  publication-date   CDATA  #REQUIRED >
<!ELEMENT data-coverage (publication-date-range? , publication-number-range? , kind-code-coverage? , exception-code-coverage? , data-coverage-uri?)>

<!ELEMENT publication-date-range EMPTY>

<!ATTLIST publication-date-range  start-date CDATA  #REQUIRED
                                    end-date   CDATA  #REQUIRED >
<!ELEMENT publication-number-range EMPTY>

<!ATTLIST publication-number-range  begin-range-number  CDATA  #REQUIRED
                                     end-range-number CDATA  #REQUIRED >
<!ELEMENT kind-code-coverage (kind, document-total-quantity)*>

<!ELEMENT document-total-quantity (#PCDATA)>

<!ELEMENT exception-code-coverage (exception-code, document-total-quantity)*>

<!ELEMENT data-coverage-uri (#PCDATA)>

<!ELEMENT authority-file-entry (publication-reference , exception-code? , application-reference? , priority-claims?)>

<!ELEMENT publication-reference (document-id)>

<!-- document-id tag as defined in ST.36 -->
<!ELEMENT document-id (country , doc-number , kind? , date?)>

<!--Two-letter alphabetic codes which represent the names of states, other entities 
and intergovernmental organizations the legislation of which provides for the protection of 
IP rights or which organizations are acting in the framework of a treaty in the field of IP. e.g. "XX".
Always in upper case.-->
<!ELEMENT country (#PCDATA)>

<!--Doc-number: The number of the referenced patent (or application) document-->
<!ELEMENT doc-number (#PCDATA)>

<!--Document kind code; e.g., A1 (WIPO ST.16)-->
<!ELEMENT kind (#PCDATA)>

<!--Date: components of a date. Format: YYYYMMDD (WIPO ST.2)-->
<!ELEMENT date (#PCDATA)>

<!--Publication exception code; single-alphabetic letter code to indicate the reason why the complete published document, for which the corresponding number is assigned, is not available: 
    C=Defective documents;
    D= Documents deleted after the publication;
    E=Publication number allocated by the IPO representing a PCT national/regional phase entry (for example Euro-PCT). No corresponding document published.  A Euro-PCT application is an international (PCT) patent application that entered the European regional phase;
    M=Missing published documents;
    N=Not used publication number: e.g. publication numbers have been issued, but finally have not been allocated to any publication;
    P=Document available on paper only;
    R=Reissued publications;
    U=Unknown publication numbers: e.g. when during compilation of the authority file certain publication number(s) has been found in the database, but the corresponding document(s) is(are) missing without known cause. Typically this code can indicate a database error that requires further analysis;
    W=Applications (or patents) which were withdrawn before the publication; 
         this can include lapsed or ceased patents and might depend on national patent law regulations; 
    X=Code available for individual or provisional use by an IPO;
-->

<!--Application reference information: application number, country.
In case of a filing reference, the kind code is empty and the date refers to the filing date.
-->
<!ELEMENT application-reference (country , doc-number , filing-date?)>

<!--Filing Date: components of a date. Format: YYYYMMDD (WIPO ST.2)-->
<!ELEMENT filing-date (#PCDATA)>

<!--Priority application identification (priority-claim)-->
<!ELEMENT priority-claims (priority-claim+)>

<!ELEMENT priority-claim (country , doc-number , kind , date)>

<!ATTLIST priority-claim  sequence            CDATA  #REQUIRED
                            priority-claim-kind  (national | regional | international )  #REQUIRED >
<!ELEMENT additional-comment (#PCDATA)>

