Plasma GitLab Archive
Projects Blog Knowledge

<?xml version="1.0" encoding="ISO-8859-1"?>

<!--
  - <COPYRIGHT>
  - Copyright 2003 Gerd Stolpmann
  -
  - <GPL>
  - This file is part of WTimer.
  - 
  - WTimer is free software; you can redistribute it and/or modify
  - it under the terms of the GNU General Public License as published by
  - the Free Software Foundation; either version 2 of the License, or
  - (at your option) any later version.
  -
  - WTimer is distributed in the hope that it will be useful,
  - but WITHOUT ANY WARRANTY; without even the implied warranty of
  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  - GNU General Public License for more details.
  -
  - You should have received a copy of the GNU General Public License
  - along with WDialog; if not, write to the Free Software
  - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  - </>
  -->

<!-- $Id: wef.dtd,v 1.2 2003/03/23 11:59:14 gerd Exp $ -->

<!-- This is WEF, the WTimer Export Format. It is the external representation
   - of the contents of a WTimer database as XML file.
   -
   - Root elements may be:
   - * wef:users to represent a set of users
   - * wef:instances to represent a set of instances, or
   - * wef:dataset to represent both
   -
   - The namespace prefix "wef" stands for the WEF namespace
   - "http://www.ocaml-programming.de/formal/wef-namespace".
   -
   - You can refer to this DTD either as 
   - PUBLIC "-//ocaml-programming.de//DTD WEF 1//EN", or as
   - SYSTEM "http://www.ocaml-programming.de/formal/wef-dtd-1"
  -->

<!ELEMENT wef:dataset (wef:users?, wef:instances?)>

<!ELEMENT wef:users (wef:user*) >

<!ELEMENT wef:user EMPTY>

<!ATTLIST wef:user name        CDATA    #REQUIRED
                   description CDATA    ""
                   password    CDATA    #IMPLIED
                   login       (yes|no) "yes"
                   admin       (yes|no) "no">

<!ELEMENT wef:instances (wef:instance*) >

<!ELEMENT wef:instance ( wef:permission?, wef:day*)>

<!ATTLIST wef:instance name        CDATA #REQUIRED
                       description CDATA "">

<!ELEMENT wef:permission ( wef:allow+ )>

<!ELEMENT wef:allow EMPTY>

<!ATTLIST wef:allow user  CDATA #REQUIRED
                    right (write|read|owner) #REQUIRED>

<!ELEMENT wef:day (wef:entry+)>

<!ATTLIST wef:day date CDATA #REQUIRED>   <!-- ISO format YYYY-MM-DD -->

<!ELEMENT wef:entry EMPTY>

<!ATTLIST wef:entry start-time  CDATA #IMPLIED
                    end-time    CDATA #IMPLIED
                    duration    CDATA #IMPLIED
                    project     CDATA ""
                    description CDATA "">

This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml