Thank you very much for your support Hussein, I am back on track. Thank you also for taking time to explain about XInclude. You get 5 stars out of 5 from me.
Best reg. Kaj. -----Original Message----- From: Hussein Shafie [mailto:huss...@xmlmind.com] Sent: 5. juni 2013 10:53 To: Kaj Hjøllund Jensen Cc: xmleditor-support@xmlmind.com Subject: Re: [XXE] Edit / Reference / Copy as reference is grey On 06/04/2013 11:38 AM, Kaj Hjøllund Jensen wrote: > > …..If I try to wrap two paragraphs (CTRL+SHIFT+T), I only get these > options: Annontation, blockquote, caution, constraintdef, epigraph, > important, informalexampel, informalfugure, note, sidebar, tip, warning. > The suggested elements correspond to what is allowed by the DocBook 5 schema. Kaj Hjøllund Jensen wrote: > I did not use "Force Deletion" from the Edit menu, however if this > function has a keyboard shortcut, then I might have done it by mistake. "Force Deletion" has no keyboard shortcut. (Using "Force Deletion" is almost never needed.) > > As regards to "wrapping" consecutive elements, to be able to "copy as > reference", my idea is as follows: > > <para xml:id="parWrap"> > > <para> > Paragraph 1 > </para> > > <para> > Paragraph 2 > </para> > > <figure> > <title> > ..... > </figure> > > </para> A para may not contain other para. > > and then I should be able to refer to the two paragraphs and the one > figure all-together by using the ID "parWrap". > I see that it is not possible (and recommended) to wrap these 3 elements > using a "para", however I have tried now using an "InformalExample", and > it works. What you need seems to be the DocBook 5 equivalent of XHTML's div, that is, a general purpose container having no special semantics. DocBook 5 has no such div element, therefore informalexample seems to be the most ``neutral'' choice among blockquote, caution, etc. > Is this the recommended way to do this, i.e. grouping and naming > consecutive elements for external references. Yes. This is the simplest and safest way to do that. However, you can also: 1) Turn on option "Allow advanced use of XInclude" (Options|Preferences, Edit section). This configuration step is done once for all. More information in: http://www.xmlmind.com/xmleditor/_distrib/doc/help/editOptions.html 2) Select the 2 paras and the figure using "Select|Extend Selection to Following Sibling" (keyboard shortcut "Esc ->") 3) Use "Copy As Reference". A Warning dialog box will explain you the drawbacks of using such method. (Uncheck "Warn about advanced use of XInclude" if you don't want to see this dialog box any more.) 4) Paste a reference to the copied *range* of elements. -- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support