Boris Goldowsky wrote: > Any suggestions of how I could facilitate re-use of common values of > CDATA attributes? > > We have at least one attribute in our schema that, although it can > legally take any value, the same few values are used many times within > each file. It would be nice to be able to specify an attribute value > editor that was a textbox-with-completion or combobox that would suggest > for re-use the values that currently occur in the file, without > preventing the user from typing a new value. I'm not sure if there's a > way to create such a thing? > > Note the list will be different from file to file, so I would prefer not > to hard code the list in the CSS. If I wanted to do that, I think I see > how to do it with the combobox @ > http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/combo-box.html >
The only way to implement what you want is to embed a custom control written in Java[tm] in the styled view. How to do this is explained here: "XMLmind XML Editor - Developer's Guide" "Solution of problem #4: implement an AttributeValueEditor" http://www.xmlmind.com/xmleditor/_distrib/doc/dev/styleext.html#solution4 --- PS: When we answer this, most readers of this mailing list will understand it as: this problem has no practical solution. This is absolutely not the case. A third party, experienced, Java programmer, familiar with XXE, can really implement such custom attribute editor in no time. And of course, such extension is very easy to deploy and is guaranteed to survive to XXE upgrades.

