Marsoner Stephan wrote: > > how is it done that an Element with an ID-attribute (or key-attribute when > using xml schema) gets an automatically generated value when added?
Add a "newElementContent" configuration element to the XXE configuration file used for the class of documents of interest. For example, if I add this to XXE_install_dir/config/docbook/docbook.xxe, all elements with a *mandatory* ID attribute (for example anchor) gets an automatically generated value when added. --- <newElementContent generateIds="true" /> --- See http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s04s15.html Notes: * There is currently no way to generate IDs when the ID attribute is not required. * All this cannot be done with the key-attribute of an XML-Schema. > And is there a "simple" way to fill a combo-box for a IDREF/keyref-attribute > with ID/key-values, that are already present in the XML-document? Yes. The Attribute tool already has such list. Use the "List of Values" button near the "Value:" text field (after selecting the IDREF attribute). You can also embed a button showing such list in the document view itself. This is done by modifying the CSS style sheet. DocBook example (add this to XXE_install_dir/config/docbook/css/docbook2.imp): --- link:after { content: command-button(command, "putAttribute", parameter, "linkend", icon, icon(pop-down)); } --- See http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s06s02.html#command-button and http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s05s31.html

