[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Demexp-dev] designing XML format for demexp bases
From: |
David MENTRE |
Subject: |
Re: [Demexp-dev] designing XML format for demexp bases |
Date: |
Tue, 02 Mar 2004 19:11:08 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
address@hidden writes:
> It's a matter of taste. I prefer <tag attribute=2> </tag>
In fact, I wrote yesterday the DTD and I followed this behavior more
frequently. Here is the new example following the DTD:
<?xml version="1.0" ?>
<demexp_base version="1.0">
<participant_base>
<participant kind="individual"> <!-- or "delegate" -->
<login>root</login>
<password>md5pass</password>
<group>admin</group>
<group>demexp</group>
</participant>
</participant_base>
<classification_base>
<next_identification_number>13</next_identification_number>
<classification_entry id="12">
<path>/</path>
<keyword>free software</keyword>
<subkeyword>demexp </subkeyword>
<subkeyword>emacs</subkeyword>
<cl_entry_question>Is demexp free software?</cl_entry_question>
<cl_entry_question>Is free software compatible with
business?</cl_entry_question>
</classification_entry>
</classification_base>
<delegation_base>
<delegation>
<delegator kind="individual">david</delegator>
<delegate>delegate_fred</delegate>
<classification domain="0110001"/>
<!-- domain is a binary vector of keywords ids -->
</delegation>
</delegation_base>
<position_base>
<question>
<description>Is demexp free software?</description>
<author>david</author>
<limit_date>none</limit_date>
<group>demexp</group>
<response id="0">
<description>Yes</description>
<author>fred</author>
<link>http://savannah.nongnu.org/projects/demexp</link>
</response>
<vote>
<individual>identifier</individual>
<choice is="1"/> <!-- elements are ordered so having elements instead
of
attributes is crucial here -->
<choice is="3"/>
</vote>
<vote>
<delegate domain="0001001">name</delegate>
<choice is="0"/>
</vote>
<elected_response>0</elected_response>
<elected_response>1</elected_response> <!-- in case of several winners -->
</question>
</position_base>
</demexp_base>
The naming of the "is" attribute in <choice is="1"/> tag does not
satisfy me completely but I haven't found sommething better.
Yours,
d.
--
David Mentré <address@hidden>