<!-- DTD data types: entity syntax/reference example ====== ================ ======= uniform resource identifier URI cf., RFC 2396 http://anana.org/ URI or the empty string ACTOR cf., RFC 2396 '' localization language LANG cf., RFC 1766 en, en-US, etc. XPath expression XPATH cf., W3C REC XPath //key[@id='anana'] --> <!ENTITY % URI "CDATA"> <!ENTITY % ACTOR "CDATA"> <!ENTITY % LANG "CDATA"> <!ENTITY % XPATH "CDATA"> <!ENTITY % rfc2629.dtd PUBLIC '' 'http://xml.resource.org/public/rfc/xml/rfc2629.dtd'> %rfc2629.dtd; <!-- The top-level --> <!ELEMENT registry (fore,namespace*,aft)> <!ATTLIST registry name %URI; #REQUIRED title CDATA #REQUIRED> <!-- The front --> <!ELEMENT fore (registrar+,comment?,date)> <!ELEMENT registrar EMPTY> <!ATTLIST registrar uri %URI; #REQUIRED> <!-- cf., RFC 2629 for the "date", "t", and "figure" elements --> <!ELEMENT comment (t|figure)+> <!-- The middle --> <!ELEMENT namespace (comment?,template,block*)> <!ATTLIST namespace id ID #IMPLIED title CDATA #REQUIRED> <!ELEMENT template EMPTY> <!ATTLIST template idPattern CDATA "%" keyText CDATA #REQUIRED commentText CDATA #IMPLIED type (numeric|character) "character" xml:lang %LANG; #IMPLIED> <!ELEMENT block (comment?,entry*)> <!-- the first key element is considered the primary key for the entry --> <!ELEMENT entry (key+,citation*,comment?,date)> <!ELEMENT key (#PCDATA)> <!ATTLIST key id ID #REQUIRED> <!ELEMENT citation (#PCDATA)> <!ATTLIST citation uri %URI; #REQUIRED contentType %URI; #IMPLIED> <!-- The back --> <!ELEMENT aft (acl,conformance,reporting)> <!ELEMENT acl (ac*)> <!ELEMENT ac EMPTY> <!ATTLIST ac subject %XPATH; #REQUIRED actor %ACTOR; "" permitted NMTOKENS "none"> <!ELEMENT conformance (conform*)> <!ELEMENT conform (trigger)> <!ATTLIST conform subject %XPATH; #REQUIRED sufficient (true|false) "false"> <!ELEMENT reporting (report*)> <!ELEMENT report (trigger)> <!ATTLIST report subject %XPATH; #REQUIRED actor %ACTOR; ""> <!ELEMENT trigger (param*)> <!ATTLIST trigger resource %URI; #REQUIRED> <!ELEMENT param (#PCDATA)> <!ATTLIST param name CDATA #REQUIRED>