Monday, March 16, 2009, 5:18:10 PM, Hussein Shafie wrote: > Daniel Dekany wrote: >> 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. > > We haven't found a way to completely remove this limitation without a > major impact on XMLmind XML Editor performance (whatever the schema of > the document being edited). The heuristic we have chosen is just a good > compromise. > > > >> 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. > > I'm sorry but after a lot of thoughts about this issue and after trying > other XML Editors (e.g. Framemaker+XML) which work that way (that is, > not being too restrictive about the elements suggested to the user and > letting the user specify what she/he wants in hard cases by popping up > dialog boxes), we have deliberately (and definitely) chosen not to make > XMLmind XML Editor work that way.
I think I was misunderstood. It's not that XXE should show all elements... it's that it should show all elements that are allowed to occur at that current context, according to the Schema. Currently you don't show some such elements because... because you couldn't automatically add the initial required attributes, if I understand well. That's what I call confusing. > In a couple of years, we'll probably find that the average PC is > powerful enough and we'll completely remove the current limitation. At > that time, you'll be able to convert selected text using Edit|Convert to > "link" and to "link(href)". The behavior of command convert will then be > 100% consistent with the behavior of the other commands. Maybe I miss something here, but assembling the list of the allowed elements without considering the attribute-related issues should be faster than doing the same with considering the attribute-related issues. Then, only when the user chooses to do the wrapping with the element, only then XXE had to figure out which are the (implicitly) required attributes, and that only for a single element. I wouldn't think it's slow. >> 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. > > Please try what follows just after inserting a link element: > > [1] Press Ctrl-E. This gives the focus to the attribute *value* field. > > As of XXE v4.1, attribute linkend is automatically selected (to make it > simple: because it contains "???"). (Many thanks to Kevin Yank who has > suggested this simple and neat enhancement: > http://www.xmlmind.com/pipermail/xmleditor-support/2008-July/006770.html > > [2] Type the value of the attribute. > > [3] Press Enter to commit the attribute value and automatically move the > focus to the document view. > > More information in "Edit options", "Automatically select an attribute", > http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.guiutil.PreferencesEditorDialog.html#editOptions OK, sorry, I missed this somehow. (Not like I think it's too user-friendly even this way... but whatever.) > -- > XMLmind XML Editor Support List > xmleditor-support at xmlmind.com > http://www.xmlmind.com/mailman/listinfo/xmleditor-support -- Best regards, Daniel Dekany

