Thanks a lot! With xmldata.css it works! that's great! Actually it is almost perfect for my schema there only one littlet thing: I have abtract types in my schema, would you have an example at hand of a css which allows to select all the possible extensions of the abstract type through a combobox?
Many thanks again for your great help! Frederic 2007/3/30, Hussein Shafie <hussein at xmlmind.com>: > Fr?d?ric Boone wrote: > > 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. > > > > --> Writing a configuration file is not strictly needed. For example: > form-sampler.xml starts with: > --- > <?xml version="1.0" encoding="ISO-8859-1"?> > > <?xml-stylesheet type="text/css" href="form-sampler/form-sampler.css" > title="Stylesheet using combo-box(), check-box(), text-field(), etc" ?> > > <?xml-stylesheet type="text/css" href="form-sampler/form-sampler2.css" > alternate="yes" title="Stylesheet exclusively using value-editor()" ?> > > <doc > xsi:schemaLocation="http://www.xmlmind.com/xmleditor/schema/form-sampler > form-sampler/form-sampler.xsd" > xmlns="http://www.xmlmind.com/xmleditor/schema/form-sampler" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:ns="http://www.xmlmind.com/xmleditor/schema/form-sampler"> > > ... > --- > > > > --> Writing a good CSS may take a while, depending on the size of your > schema. For example, it took 10 days to write the CSS for DocBook. Note > that this is not specific to XMLmind XML Editor. > > > > --> Please open form-sampler.xml one more time and this time, use the > "View" menu to switch from CSS called "Stylesheet using combo-box(), > etc" to CSS called "Stylesheet exclusively using value-editor()". > > No much differences at first sight. But if you look at the source of > form-sampler/form-sampler2.css using a text editor, you'll find this CSS > very very simple compared to form-sampler/form-sampler.css: > > --- > double1, > float1, > long1, > int1, > short1, > byte1, > day1, > monthDay1, > month1, > yearMonth1, > year1, > dateTime1, > time1, > date1, > cymklista, > cymka, > cymklist1, > cymk1, > string1, > uri1, > integer1, > rgb1, > disabled, > onoff { > content: value-editor(attribute, value); > } > --- > > See > http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/value-editor.html > > > > --> We also have a ready-to-use CSS (leveraging value-editor()) which is > totally generic and which may be used to style *any* strongly typed XML > data. You'll find it in: XXE_install_dir/addon/config/common/css/xmldata.css > > >

