Nat Pryce wrote: > 2008/4/30 Hussein Shafie <hussein at xmlmind.com>: >> No, there is no bug here. When you cannot copy from A to B (no matter what >> are A and B), it is *always* because [1] you didn't select the right node >> and/or the right Paste command OR because [2] the document type to which B >> is conforming forbids you to do so. > > Then the bug (from the point of view of the user) is that XXE gives no > indication at all of what is happening. It just appears to ignore the > keystroke. > > Could I submit an enhancement request: make XXE display some kind of > unobtrusive error message to the user (in the status bar maybe) > explaining why it cannot paste content.
I'm really sorry to reject your RFE one more time, but I don't see which message to print in the status bar. Something like "Operation not permitted in this context" would not help you much. >> --> You cannot freely copy content between DocBook 4 (where elements have >> no namespace) and DocBook 5 (where elements have a namespace). > > This is the problem, then. > >> Note that Professional Edition has an easy to use "Convert to DocBook v5+ >> then open" menu item. > > I didn't do that because I didn't want to convert the document to > another version, only copy content from it. If it is not a > destructive conversion, the menu item should be renamed. The conversion is not destructive. I would suggest to convert your DocBook 4 document to a temporary DocBook 5 document, then copy and paste from there. The "Convert to DocBook v5+ then open" menu item really makes this a snap. >> --> You can copy text as paragraphs from any application to XXE when a >> DocBook 4 or 5, XHTML or DITA document is opened. > > I wanted to copy some basic formatting (emphasis). But, as a > fallback, I tried using Control-c, Esc-w to copy text as paragraphs > and it didn't work. There is no bug here. In XXE, Ctrl-C copies XML and not plain text. That's why Esc-w, which expects plain text, cannot work. May be you have already converted your DocBook 4 document to HTML? If this is the case, please open the HTML in a web browser, select paragraphs in the Web browser, press Ctrl-C, then switch to XXE and press Esc-w. > > Just copying between Docbook 4 and 5 would be enough. Are there any > Java hooks that would let me write it myself? Sure. Please write a custom command in Java and declare it in the DocBook 5 configuration. How to do this is explained here: http://www.xmlmind.com/xmleditor/_distrib/doc/dev/command.html Declaring a command in a configuration file is described here: http://www.xmlmind.com/xmleditor/_distrib/doc/configure/command.html

