Monday, March 16, 2009, 1:11:38 PM, Hussein Shafie wrote: > Daniel Dekany wrote: >> If I select range of characters (pink background), and then I press >> Ctrl+T (or Ctrl+Shift+T), XXE simply will not offer the "link" >> element. (As a workaround I can insert a "link" element, and then >> copy-paste the #text into its body.) > > Other workaround: use the corresponding toolbar button (or bind the > command executed by the toolbar button to a keystroke: > http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.kit.part.AddKeyboardShortcutDialog.html) > > > > >> This problem only occurs with >> DocBook 5. A RELAX NG related bug maybe. >> > > No, this is not a bug, but a limitation. This limitation has already > been reported by a number of users. Therefore, we have removed this > limitation (to a certain extent; not in the general case) in next > version (4.2.2 or 4.3). [snip]
I'm happy that this will be worked around, but... this limitation should not exist in general. When someone wants to convert/wrap something into an element, then he rightly expects that all elements that could occur there (with whatever attributes) will be listed. That after selecting an element open questions still remain is a completely separate issue (I mean, it should be). If XXE is in doubt, maybe it should just ask the user. Or even just tell that he won't add the element because you-know-what. I think everything is better than elements mystically disappearing from the repertoire. It's so confusing, especially for those who are not entirely sure wether the element is allowed there or not. Oh, while we are here... I find it quite annoying that when inserting a link, XXE adds ??? as the default link target attribute, and then doesn't even give focus to the attribute value editor. So I have to mouse into the proper part of the attribute editor to type it, and then hit Enter and then Esc (this last step some will not find out, and start to fight his/her way back to the main editor with mouse). In 95% of cases when I add a link, I want to enter the target immediately. Maybe the most convenient would be if XXE just pops up a dialog before actually adding the element, where I can enter the attribute value, hit Enter, and that's it, I'm back to the main editor. There it could even offer both linkend and xml:link, so that kind of problem is solved as well... I fill whichever I want, ambiguity solved. And there is a tendency that the same would be practical for most required attributes, regardless of the schema in question. -- Best regards, Daniel Dekany

