Update of
/var/cvs/contributions/didactor2/src/education/config/builders/didactor_education
In directory james.mmbase.org:/tmp/cvs-serv22023
Modified Files:
mcanswers.xml
Log Message:
modernized yet another builder
See also:
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/config/builders/didactor_education
Index: mcanswers.xml
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/education/config/builders/didactor_education/mcanswers.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- mcanswers.xml 24 Jan 2008 09:24:30 -0000 1.1
+++ mcanswers.xml 26 Jun 2008 12:18:43 -0000 1.2
@@ -1,94 +1,54 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE builder PUBLIC "-//MMBase/DTD builder config 1.1//EN"
"http://www.mmbase.org/dtd/builder_1_1.dtd">
-<builder name="mcanswers" maintainer="didactor.nl" version="2"
extends="answers">
- <status>active</status>
- <classfile>Dummy</classfile>
+<?xml version="1.0"?>
+<builder
+ xmlns="http://www.mmbase.org/xmlns/builder"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.mmbase.org/xmlns/builder
http://www.mmbase.org/xmlns/builder.xsd"
+ name="mcanswers" maintainer="didactor.nl" version="2" extends="answers">
+
<searchage>31</searchage>
<names>
- <!-- singles per language as defined by ISO 639 -->
- <singular xml:lang="nl">Multiplechoice Antwoord</singular>
+ <singular xml:lang="nl">Multiplechoiceantwoord</singular>
<singular xml:lang="en">Multiplechoice Answer</singular>
- <!-- multiple per language as defined by ISO 639 -->
- <plural xml:lang="nl">Multiplechoice Antwoorden</plural>
+ <plural xml:lang="nl">Multiplechoiceantwoorden</plural>
<plural xml:lang="nl">Multiplechoice Answers</plural>
</names>
- <!-- <descriptions>
- small description of the builder for human reading
- -->
<descriptions>
- <!-- descriptions per language as defined by ISO 639 -->
<description xml:lang="nl">Het antwoord op een multiple choice
vraag</description>
<description xml:lang="en">The answer to a multiple choice
question</description>
</descriptions>
- <properties>
- <property name="max-nodes-from-query">99999</property>
- </properties>
-
<fieldlist>
- <field>
+ <field name="text">
<descriptions>
- <!-- descriptions per language as defined by ISO 639 -->
<description xml:lang="nl">Tekst van het antwoord</description>
<description xml:lang="en">Text of the answer</description>
</descriptions>
- <!-- gui related -->
<gui>
<guiname xml:lang="nl">Tekst</guiname>
<guiname xml:lang="en">Text</guiname>
- <guitype>string</guitype>
</gui>
- <!-- editor related -->
- <editor>
- <positions>
- <!-- position in the input area of the editor -->
- <input>2</input>
- <!-- position in list area of the editor -->
- <list>2</list>
- <!-- position in search area of the editor -->
- <search>2</search>
- </positions>
- </editor>
- <!-- database related -->
- <db>
- <!-- name of the field in the database -->
- <name>text</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" size="65535" key="false"
notnull="true">STRING</type>
- </db>
+ <editor><positions><list>2</list></positions></editor>
+ <datatype base="field" xmlns="http://www.mmbase.org/xmlns/datatypes" >
+ <required value="true" />
+ <maxLength value="65535" />
+ </datatype>
</field>
- <field>
+ <field name="correct">
<descriptions>
- <!-- descriptions per language as defined by ISO 639 -->
<description xml:lang="nl">Geeft aan of dit een goed antwoord
is</description>
<description xml:lang="en">Is this answer correct or not</description>
</descriptions>
- <!-- gui related -->
<gui>
<guiname xml:lang="nl">Correct</guiname>
<guiname xml:lang="en">Correct</guiname>
- <guitype>integer</guitype>
</gui>
- <!-- editor related -->
- <editor>
- <positions>
- <!-- position in the input area of the editor -->
- <input>3</input>
- <!-- position in list area of the editor -->
- <list>3</list>
- <!-- position in search area of the editor -->
- <search>3</search>
- </positions>
- </editor>
- <!-- database related -->
- <db>
- <!-- name of the field in the database -->
- <name>correct</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" notnull="true">INTEGER</type>
- </db>
+ <editor><positions><list>3</list></positions></editor>
+ <datatype base="yesno" xmlns="http://www.mmbase.org/xmlns/datatypes" >
+ <default value="false" />
+ <required value="true" />
+ </datatype>
</field>
</fieldlist>
</builder>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs