Hi Hussein, Thank you very much for your reply and good proposals.
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. 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> 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. Is this the recommended way to do this, i.e. grouping and naming consecutive elements for external references. Best reg. Kaj. -----Original Message----- From: Hussein Shafie [mailto:huss...@xmlmind.com] Sent: 4. juni 2013 12:58 To: Kaj Hjøllund Jensen Cc: 'xmleditor-support@xmlmind.com' Subject: Re: [XXE] Edit / Reference / Copy as reference is grey On 06/04/2013 09:15 AM, Kaj Hjøllund Jensen wrote: > > Thank you very much for your reply, -this explains very well what the > problem is, however it does not explain how xml-mind has allowed this > text without a para. I only used XML-mind to edit the document, and I > am the only author. Can it have happened during some copy/paste operation ? > In principle, this is almost impossible to achieve: * May be your document was initially structurally invalid (that is, severely invalid) and in such case, XMLmind XML Editor puts temporarily itself in a ``lenient'' mode. It automatically switches from ``lenient'' mode to its normal ``strict'' mode once all validity errors have been fixed by the user. OR * May be you have used "Edit|Force Deletion" ( http://www.xmlmind.com/xmleditor/_distrib/doc/help/editMenu.html ) because you were stuck. This caused the document to become structurally invalid and XMLmind XML Editor automatically entered the ``lenient'' mode. > I have corrected the full document now, and there were many places where > text had been inserted without being enclosed by a paragraph. Now, only > after fixing all occurrences, "Copy as Reference" works again. I will keep > a look in the future, to get a clue how I got this plain text inserted, > and let you know. See above. > > My next challenge is that I would like to "Wrap" some paragraphs and > figures together inside a paragraph, so that I am able to reference it all > together with a "copy as reference". > I have marked the elements to be wrapped, but when I select to Wrap, the > "Para" is not an option. Which wrapping element can I chose for this > purpose ? I'm sorry but I don't understand "some paragraphs and figures together inside a paragraph". If a paragraph contains anything other than inline elements and inline images, then it is not a paragraph any more. The fact that the DocBook 5 schema (a mistake IMHO) allows to insert figures, lists, tables, etc, inside a para does not mean that you have to do it. When you want to add a figure, list or table (i.e. a ``block'') to your document, please use the DocBook toolbar or "Insert After" or "Insert Before" for that. Please do not use "Insert". The DocBook 5 elements expected to contain images, captions, etc, are: * http://www.docbook.org/tdg5/en/html/informalfigure.html * http://www.docbook.org/tdg5/en/html/figure.html -- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support