Previous Up Next

B   (informative) DTD

The following DTD is only be an approximation of the RELAX NG schema.

Note: The current DTD is outdated w.r.t. the RELAX NG schema.

<?xml encoding="UTF-8"?> <!-- $Id: maf.rnc,v 1.1 2005/09/06 08:38:02 clerger Exp $ --> <!-- Preliminary Relax NG schema for MAF -- Morpho-syntactic Annotation Framework Eric de la Clergerie <Eric.De_La_Clergerie@inria.fr> --> <!ELEMENT maf (tagset?,(fsm|token|wordForm|wfAlt)+)> <!ATTLIST maf xmlns CDATA #FIXED ''> <!ATTLIST maf document CDATA #IMPLIED addressing NMTOKEN #IMPLIED> <!ENTITY % DocumentLocation "NMTOKEN"> <!ELEMENT token (#PCDATA)> <!ATTLIST token xmlns CDATA #FIXED '' id ID #IMPLIED form NMTOKEN #IMPLIED transcription NMTOKEN #IMPLIED transliteration NMTOKEN #IMPLIED from %DocumentLocation; #REQUIRED to %DocumentLocation; #REQUIRED join (no|left|right|both|overlap) 'no'> <!ELEMENT wordForm (fs,token*,wordForm*)> <!ATTLIST wordForm xmlns CDATA #FIXED '' entry CDATA #IMPLIED lemma CDATA #IMPLIED form CDATA #IMPLIED tag CDATA #REQUIRED tokens IDREFS #REQUIRED> <!ELEMENT fsm (transition)+> <!ATTLIST fsm xmlns CDATA #FIXED '' init IDREF #IMPLIED final IDREF #IMPLIED tinit IDREF #IMPLIED tfinal IDREF #IMPLIED> <!ELEMENT transition (wordForm|wfAlt|token)> <!ATTLIST transition xmlns CDATA #FIXED '' source IDREF #REQUIRED target IDREF #REQUIRED> <!ELEMENT wfAlt (wordForm)+> <!ATTLIST wfAlt xmlns CDATA #FIXED ''> <!ELEMENT tagset (dcs|fsd|fvLib|fLib)*> <!ATTLIST tagset xmlns CDATA #FIXED '' ref CDATA #REQUIRED> <!ELEMENT dcs (description)*> <!ATTLIST dcs xmlns CDATA #FIXED '' local NMTOKEN #REQUIRED registered CDATA #IMPLIED rel (eq|subs|gen) #IMPLIED> <!ELEMENT description (#PCDATA)> <!ATTLIST description xmlns CDATA #FIXED ''> <!-- should be completed by DTD's for Feature Structures --> <!ELEMENT fsd EMPTY> <!ATTLIST fsd xmlns CDATA #FIXED ''>



Previous Up Next