Tom?? Klinkovsk? wrote: > Hello, > > I wanted to switch from DocBook 4 to 5, so I played a little bit with > DocBook 5 in XmlMind 4.2.1, and I found a behaviour that I don't > understand. The DB5 schema allows para/link/text() encapsulation, but > XmlMind doesn't seem to allow that. This is how to reach the > situation: > > - New file (Ctrl-N), DocBook v5+, Article > - Go to <para> > - Insert "Hello World" > - Select "World" > - Convert the selection to a new element (Ctrl-T or Ctrl+Shift-T) > - The "link" element is not offered > > I know there is a toolbar button "Convert to link", which works well. > I just would like to know why it is impossible to convert selected > text to a link in a "regular way". Is it a problem of RelaxNG itself > or of RelaxNG used for guided editing (I remember an XmlMind article > speaking about RelaxNG problems). >
No, you cannot convert the selection to a link having attribute linkend using Ctrl-T or Ctrl+Shift-T. This is a limitation of XMLmind XML Editor which cannot suggest by itself "convert to link with attribute linkend" OR "convert to linkend with attribute xlink:href" (the linkend and xlink:href attributes are mutually exclusive but one of these two attributes is required). If you often need to convert some text to a link, you may bind the action invoked by toolbar button "Convert to link" to a keystroke of your choice. [1] Use toolbar button "Convert to link". [2] Select Options|Customize Configuration|Add Keyboard Shortcut [3] Specify a keystroke and choose the "Convert to link" from the "Choose from last executed commands..." combobox. See http://www.xmlmind.com/xmleditor/_distrib/doc/help/optionsMenu.html#customizeConfigurationMenu See http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.kit.part.AddKeyboardShortcutDialog.html

