XXE does not like the way you have written your schema (being valid does not mean that is XXE-friendly -- see http://www.xmlmind.com/xmleditor/_distrib/doc/rngsupport/index.html).
Find attached to this email a working schema/instance/css. This is the best XXE can do for you. Note that country is followed by a combobox which just contains Germany. This is normal, given the schema. (step1.png) * If you *replace* the country by another one (e.g. with name="France") using Edit|Replace (step2.png), * and then, you insert a city element (step3.png), * the city combobox will after these 2 operations contain "Paris", "Lyon", "Bordeaux". (step4.png) klaus e. werner wrote: > I'm stuck when trying to build an editor button for an attribute *which > is part of a group* (of an attribute and an element). > > I explain myself: > > I want to have a cascading XML like this: > > <location> > <locationclass coverage="Europe"> > <country name="Germany"> > <city name="Berlin"/> > </country> > </locationclass> > </location> > > I've built an RNG schema like this: > > <grammar datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" > xmlns="http://relaxng.org/ns/structure/1.0"> > <define name="locationclass-italy"> > <element name="locationclass"> > <attribute name="coverage"> > <value type="token">Europe</value> > </attribute> > <element name="country"> > <choice> > <group> > <attribute name="name"> > <value type="token">France</value> > </attribute> > </group> > <group> > <attribute name="name"> > <value type="token">Germany</value> > </attribute> > <optional> > <element name="city"> > <choice> > <group> > <attribute name="name"> > <value type="token">Berlin</value> > </attribute> > </group> > <group> > <attribute name="name"> > <value type="token">Frankfurt</value> > </attribute> > </group> > </choice> > </element> > </optional> > </group> > <group> > <attribute name="name"> > <value type="token">Italy</value> > </attribute> > </group> > </choice> > </element> > </element> > </define> > </grammar> > > Text editors cope with this structure quite well, but XXE refuses to let > me edit the NAME value of the attribute - obviously because it is not a > simple enumeration but inside a grouped structure. > > The CSS I'm using for XXE is: > > country, city > { display: inline; } > > country:before, city:before > { display: marker; content: combo-box(attribute, name); } > > Any help for overcoming the XXE problem (or any other work around) would > be welcome! -------------- next part -------------- A non-text attachment was scrubbed... Name: instance.xml Type: text/xml Size: 238 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20051011/f6307fb3/attachment.xml -------------- next part -------------- A non-text attachment was scrubbed... Name: schema.rng Type: text/xml Size: 1981 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20051011/f6307fb3/attachment-0001.xml -------------- next part -------------- A non-text attachment was scrubbed... Name: simple.css Type: text/css Size: 286 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20051011/f6307fb3/attachment.css -------------- next part -------------- A non-text attachment was scrubbed... Name: step1.png Type: image/png Size: 1212 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20051011/f6307fb3/attachment.png -------------- next part -------------- A non-text attachment was scrubbed... Name: step2.png Type: image/png Size: 1822 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20051011/f6307fb3/attachment-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: step3.png Type: image/png Size: 1322 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20051011/f6307fb3/attachment-0002.png -------------- next part -------------- A non-text attachment was scrubbed... Name: step4.png Type: image/png Size: 2393 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20051011/f6307fb3/attachment-0003.png

