Rishi Khan wrote: > You can open a new section, copy as reference, and paste it into a > DocBook book. The book references the section document as > 'Untitled.xml'. However, then you go and save the section and give it a > real name and now the book reference is wrong. As long as the DocBook > book is open, everything is fine. When you close it and reopen, it > cannot find the reference (rightly so!). The only way to edit the > xi:include is in a text editor (at least to the best of my limited > knowledge). > > I suggest popping up a dialog when the user tries to 'copy as reference' > using an unsaved file stating that the file should be saved first before > referencing. The same goes for copying INTO an unsaved file because XXE > will get the wrong relative path unless the unsaved file is saved into > the same directory as the referenced file. > > I know this is nit-picking, but what are your thoughts? Obviously, a > user shouldn't try to reference an unsaved file, but it would be nice if > the software warned them of their impending stupid action.
We are well aware of this problem but we haven't found a good way to solve it. Note that turning on the "Immediately save newly created document" option (Option|Preferences, New section) prevents this problem. Better than nothing... See http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.dialog.PreferencesEditorDialog.html#newOptions

