On 12/29/2010 02:02 PM, Marc Haemmerle wrote:
> Another detailed example.
>
> The following works:
> I create a new DITA task using "File|New" and then save it to disk using
> "File|Save As".
> I change the default file name to "test" and the file type "DITA Files" is
> set.
> When I hit "Save" I get - like I expected - the file test.dita.
(FYI, the ".dita" extension is currently ``guessed'' by examining the
filename extensions of the various DITA topic templates.)
>
> The following doesn't work:
> I create a new DITA task using "File|New" and then save it to disk using
> "File|Save As".
> I change the default file name to "subject.test" and the file type "DITA
> Files" is set.
> When I hit "Save" I get the file subject.test and not - what I suspected -
> subject.test.dita.
In our opinion, implementing what you expect would cause as much harm as
good. Let's take another example. Let's replace ".test" by ".xml" in the
above example:
The user wants to save the DITA task as "subject.xml" (".xml" is a
commonly used -albeit not recommended- file extension for DITA
documents). According to you, XMLmind XML Editor should append ".dita"
to this filename, which would give us "subject.xml.dita".
In summary, as long as a specific filename extension is not *strictly*
*required* for a given XML document type, changing the current behavior
of XMLmind XML Editor would not be a good idea.
In other words, if the DITA standard made mandatory to use ".dita"
extension for its topics[*], then you could report the following bug:
XMLmind XML Editor allows to create DITA topic files having a filename
extension other than ".dita".
---
[*] This is currently not the case. See
http://docs.oasis-open.org/dita/v1.2/os/spec/archSpec/fileext.html#fileext
>
> Other programs like Microsoft Office always add the extension that matches
> the file type, even if the file name contains dots. That is what our users
> expect.
>
Microsoft Word, for example, works on a fixed, rather small, set of
well-known file formats: .rtf, .doc, .dot, .docx, etc. Therefore your
comparison between Microsoft Office and a generic XML editor such as XXE
is not fair.
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support