Fr?d?ric Boone wrote: > > I am new to xmleditor and I would like to use it for authoring XML > files conforming to a schema. > > By default xxe does not seem to constrain edition of restriction types. > > For example in my schema I have: > > <xs:simpleType name="ProgrammingLanguageType"> > <xs:restriction base="xs:string"> > <xs:enumeration value="C" /> > <xs:enumeration value="C++" /> > <xs:enumeration value="Fortran77" /> > <xs:enumeration value="Fortran90" /> > </xs:restriction> > </xs:simpleType> > > Ideally I would like to have a kind of menu with only these possible > values when I want to add a ProgrammingLanguageType to the document. > Instead xxe allows to write anything in the field.
If your schema is itself valid and has been properly ``declared'' to XXE, this cannot happen. You can type anything in the field but if you type something invalid you'll not be allowed to *leave* this field (e.g. by pressing Tab or by clicking elsewehere). You'll find a demo here: XXE_install_dir/demo/form-sampler.xml See also: XXE_install_dir/demo/form-sampler/form-sampler.xsd XXE_install_dir/demo/form-sampler/form-sampler.css > Is it possible to configure XXE to do this? Yes. It is even possible to embed a combobox in the styled view to allow choosing the programming language from it (e.g. instead of typing it). > Would you have an example of configuration that does this? See http://www.xmlmind.com/xmleditor/_distrib/doc/configure/configure.html

