diff dtd/news.dtd @ 75:2bf4cd2787c5

Added DTDs to make xmllint happy. Note that these DTDs don't try to be actually correct: possible element contents require cleanup. This is enough to pass all documents through xmllint though.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 10 Oct 2011 14:47:09 +0000
parents 61e04fc01027
children 7db449e89e92
line wrap: on
line diff
--- a/dtd/news.dtd
+++ b/dtd/news.dtd
@@ -1,7 +1,14 @@
-<!ELEMENT  digest       (title, news+) >
+<!ELEMENT  news         (event+) >
+<!ATTLIST  news
+           title        CDATA #REQUIRED
+           link         CDATA #REQUIRED
+           lang         CDATA #REQUIRED
+>
 
-<!ELEMENT  news         (para+) >
-<!ATTLIST  news         date CDATA #REQUIRED >
+<!ELEMENT  event        (para+) >
+<!ATTLIST  event
+           date         CDATA #REQUIRED
+>
 
 <!ENTITY % content      SYSTEM  "content.dtd" >
           %content;