Projects/Edu/kvtml2

< Projects‎ | Edu
Jump to: navigation, search

Many KDE Education applications exchange content data using the kvtml(2) format. Here is the DTD:

<!ELEMENT tenses         (tense*) >
<!ELEMENT tense          (#PCDATA) >

<!ELEMENT lessons        (container*) >
<!ELEMENT wordtypes      (container*) >
<!ELEMENT leitnerboxes   (container*) >

<!ELEMENT container      (name, specialwordtype?, inpractice?, image?, container*, containerentry*) >
<!ELEMENT specialwordtype  (#PCDATA) >
<!--ELEMENT specialwordtype  (noun|noun/male|noun/female|noun/neutral|verb|adjective|adverb) -->
<!ELEMENT inpractice                (#PCDATA) >
<!ELEMENT containerentry            (containertranslation*) >
<!ATTLIST containerentry id         CDATA  #REQUIRED>
<!ELEMENT containertranslation      EMPTY>
<!ATTLIST containertranslation id   CDATA  #REQUIRED>

<!ELEMENT entries        (entry*) >
<!ELEMENT entry          (deactivated?, sizehint?, translation*) >
<!ATTLIST entry id       CDATA  #REQUIRED>
<!ELEMENT deactivated    (#PCDATA) >

<!ELEMENT translation    (text?, comment?, pronunciation?, falsefriend?, antonym?, synonym?, example?, paraphrase?, comparison?, conjugation*, grade?, image?, multiplechoice?, sound?) >
<!ATTLIST translation id  CDATA #REQUIRED >
<!ELEMENT text           (#PCDATA) >
<!ELEMENT pronunciation  (#PCDATA) >
<!ELEMENT falsefriend    (#PCDATA) >
<!ATTLIST falsefriend fromid    CDATA  #REQUIRED>
<!ELEMENT antonym        (#PCDATA) >
<!ELEMENT synonym        (#PCDATA) >
<!ELEMENT example        (#PCDATA) >
<!ELEMENT paraphrase     (#PCDATA) >

<!ELEMENT conjugation    (tense, singular?, dual?, plural?) >

<!ELEMENT comparison     (absolute, comparative, superlative) >
<!ELEMENT absolute       (#PCDATA) >
<!ELEMENT comparative    (#PCDATA) >
<!ELEMENT superlative    (#PCDATA) >

<!ELEMENT multiplechoice  (choice+) >
<!ELEMENT choice          (#PCDATA) >

<!ELEMENT image          (#PCDATA) >
<!ELEMENT sound          (#PCDATA) >

<!ELEMENT grade          (currentgrade, count, errorcount, date) >
<!ATTLIST grade fromid   CDATA #REQUIRED >
<!ELEMENT currentgrade  (#PCDATA) >
<!ELEMENT count          (#PCDATA) >
<!ELEMENT errorcount     (#PCDATA) >
<!ELEMENT date           (#PCDATA) >

This page was last modified on 30 June 2010, at 19:53. This page has been accessed 2,303 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal