Jan Bares wrote:
>>See what I mean?
>>
>>This is not a bug. This is a compromise.
>>
>>Imagine that you generate the same HTML file 10 times in the same
>>editing session (which is quite common) and that, each time, XXE asks
>>you to confirm that you really want to overwrite the file, you would go
>>crazy (Well, personally, I would go crazy).
> 
> 
> I think that this is bad compromise. If XXE silently overwrites my source
> file, I will quit using it, because it is dangerous. Your sample is strange
> because when you for the first time say yes, you will loose you source file
> and any later attempts to generate new HTML will fail :-). The reason why it
> works, is that you have the file in memory and save it each time before the
> transformation - what if XXE crashes during editing, or power is down? You
> will loose you work.
> 
> I suggest to use different naming options. For instance you can add new
> option that will not replace the filename extension with new extension, but
> adds the new extension: source.xlm -> source.xml.xml (with WordML). Or you
> can use something like source.xml -> sourceXX.xml, where the XX is
> configurable string ("Word" for instance).

I agree that asking the user to confirm that she/he is OK to overwrite 
the generated file is not a good solution.

As you have described it, automatically suggesting the proper filename 
(i.e. source_word.xml, but also source.rtf for RTF, source.pdf for PDF, 
etc) is certainly a good way to solve the problem. Plus, not having to 
type a filename is very handy.

We'll try to implement that in next release (too late for XXE V2.8 Patch 1).



> XXE is the best tool for me, in fact the only tool that meets most of my XML
> editor expectations. But the fact, that I can silently loose my work makes
> me doubtful. Are there other possibilites how can I silently delete my work
> with XXE?

There are certainly other ways to overwrite the file you are editing in 
XXE (more generally, to overwrite by mistake files you don't want to 
overwrite).

I cannot tell you *exactly* which ones, but I am sure that there are 
several other ways to loose your work by mistake.

This has never happened to me (note that I have already run "rm -rf" on 
my home directory by mistake!).

No user has ever complained about this misbehavior, therefore I cannot 
tell you anything about what happened to them.


Reply via email to