]> Git trees. - libqmvoc.git/commitdiff
valid dtd that can be validated against, also currently at http://edu.kde.org/kanagra...
authorJeremy Paul Whiting <jpwhiting@kde.org>
Fri, 27 Jul 2007 23:10:42 +0000 (23:10 +0000)
committerJeremy Paul Whiting <jpwhiting@kde.org>
Fri, 27 Jul 2007 23:10:42 +0000 (23:10 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=693432

kdeeducore/kvtml2.dtd
kdeeducore/kvtml2todo

index c3393774754964d97f7ba6e04e546f89c7de7fe7..0d8b9f5e9b8f1339d7bc6d53365fc4384d8b6fac 100644 (file)
@@ -1,8 +1,7 @@
-<!ELEMENT kvtml         (information, identifiers, types, tenses?, usages?, lessons?)     >
+<!ELEMENT kvtml         (information, identifiers, types?, entries, tenses?, usages?, lessons?)     >
 <!ATTLIST kvtml version    CDATA  #REQUIRED>
 
-<!ELEMENT information    (generator?, title, author, license, comment?) >
-<!-- generator and comment are optional, all others are required exactly once -->
+<!ELEMENT information    (generator?, title, author?, license?, comment?) >
 
 <!ELEMENT generator      (#PCDATA) >
 <!ELEMENT title          (#PCDATA) >
 <!ELEMENT comment        (#PCDATA) >
 
 <!ELEMENT identifiers    (identifier*) >
-<!ELEMENT identifier     (type, locale, name, comment, sizehint?, article?, personalpronouns?) >
-<!ELEMENT type           (user|language|CDATA) >
+<!ELEMENT identifier     (type, locale, name?, comment?, sizehint?, article?, personalpronouns?) >
+<!ATTLIST identifier id  CDATA  #REQUIRED>
+<!ELEMENT type           (#PCDATA) >
 <!ELEMENT locale         (#PCDATA) >
 <!ELEMENT name           (#PCDATA) >
-<!ELEMENT comment        (#PCDATA) >
 <!ELEMENT sizehint       (#PCDATA) >
 <!ELEMENT article        (definite?, indefinite?) >
 <!ELEMENT definite       (male?, female?, neutral?) >
@@ -31,7 +30,6 @@
 <!ELEMENT thirdperson    (common|(male, female, neutral)) >
 
 <!ELEMENT types          (type*) >
-<!ELEMENT type           (#PCDATA) >
 
 <!ELEMENT tenses         (tense*) >
 <!ELEMENT tense          (#PCDATA) >
 <!ELEMENT usages         (usage*) >
 <!ELEMENT usage          (#PCDATA) >
 
-<!ELEMENT lessons        (lesson*, entry*) >
-<!ELEMENT lesson         (name, query?, current?) >
+<!ELEMENT lessons        (lesson*) >
+<!ELEMENT lesson         (name, query?, current?, entryid*) >
 <!ELEMENT query          (#PCDATA) >
-<!ELEMENT current        EMPTY >
+<!ELEMENT current        (#PCDATA) >
+<!ELEMENT entryid        (#PCDATA) >
 
+<!ELEMENT entries        (entry*) >
 <!ELEMENT entry          (inactive?, inquery?, sizehint?, translation*) >
+<!ATTLIST entry id       CDATA  #REQUIRED>
 <!ELEMENT inactive       EMPTY >
 <!ELEMENT inquery        EMPTY >
-<!ELEMENT sizehint       (#PCDATA) >
 
-<!ELEMENT translation    (text, type, inquery?, comment?, pronunciation, falsfriendfrom, falsefriendto, falsefriend, antonym*, synonym*, example, usage, paraphrase, comparison, conjugation?) >
+<!ELEMENT translation    (text, type?, inquery?, comment?, pronunciation?, falsfriend?, antonym?, synonym?, example?, usage?, paraphrase?, comparison?, conjugation*) >
 <!ELEMENT text           (#PCDATA) >
 <!ELEMENT pronunciation  (#PCDATA) >
-<!ELEMENT falsefriendfrom  (#PCDATA) >
-<!ELEMENT falsefriendto  (#PCDATA) >
 <!ELEMENT falsefriend    (#PCDATA) >
 <!ELEMENT antonym        (#PCDATA) >
 <!ELEMENT synonym        (#PCDATA) >
 <!ELEMENT example        (#PCDATA) >
-<!ELEMENT usage          (#PCDATA) >
 <!ELEMENT paraphrase     (#PCDATA) >
-<!ELEMENT conjugation    (singular?, plural?) >
+<!ELEMENT conjugation    (tense?, type?, singular?, plural?) >
 
 <!ELEMENT comparison     (absolute, comparative, superlative) >
 <!ELEMENT absolute       (#PCDATA) >
index 45c2dbf33431f063c1510b9359fea965431683d1..c3b1d3220c19810ebdfb337ebbc166d0e89d818c 100644 (file)
@@ -1,10 +1,9 @@
 Temporary todo for kvtml2
 
 reader:
-  read falsefriend tags
   store identifier name, sizehint and type? (need a place to store it first)
 
 writer:
-  write translation sub-parts: grades
+  write translation sub-parts: falsefriend grades
   write lesson entryids