Thanks a lot for your reply. Indeed the form-sampler.xml looks really great! that's exactly what I'd like to have for my xml files.
I looked at the example files carefully and tried to do the same for my files but I find it not very straightforward, even with the documentation. I am a bit disapointed by the fact the css must be very specific an it can not be generic. For example it looks like it's not possible to ask for a combobox each time there is a restriction type with enumeration or is it? The xxe configuration files look even more obscur to me and it's hard for me to figure out what should go into the configuration file and what should go into the css. A final question: are there simple default css files and/or config files that would work for any schema in ordre to have a not too bad styled view. I tried starting with an empty css and empty xxe file but the result is very ugly. Thanks again, Frederic 2007/3/30, Hussein Shafie <hussein at xmlmind.com>: > 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 > >

